• Journey's End on PC - Find info here and here. Please report bugs and issues for PC 1.4 and 1.4.1 to Re-Logic here.
  • Journey's End on Mobile - Find info here. Report bugs for Mobile 1.4 to DR Studios at this link and give as much detail as possible.
  • 1.4 will bring many changes to the PC version. We strongly advise making plans to back up your worlds and players prior to updating your game. More details here.
  • Console and Switch - The latest news can be found here. To report a bug, please use this link.

Armor Set Debuff

SplatMaster

Terrarian
I am trying to make an armor set where you are able to inflict ShadowFlame, On Fire, and Frostburn, but the set bonus ends up giving me the debuffs.
Code:
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;

namespace AceAjax.Items
{
    [AutoloadEquip(EquipType.Head)]
    public class TantalumHelmet : ModItem
    {
        public override void SetDefaults()
        {
            item.width = 18;
            item.height = 18;
            item.value = 10000;
            item.rare = ItemRarityID.Green;
            item.defense = 5;
        }

        public override bool IsArmorSet(Item head, Item body, Item legs)
        {
            return body.type == ModContent.ItemType<TantalumShirt>() && legs.type == ModContent.ItemType<TantalumPants>();
        }
        public override void UpdateEquip(Player player)
        {
            player.buffImmune[BuffID.OnFire] = true;
            player.statManaMax2 += 20;
            player.maxMinions++;
        }
        public override void UpdateArmorSet(Player player)
        {
            player.setBonus = "You inflict On Fire Frostburn and Shadowflame, plus 15% more damage";
            player.AddBuff(BuffID.OnFire, 999);
            player.AddBuff(BuffID.ShadowFlame, 999);
            player.AddBuff(BuffID.Frostburn, 999);
            player.allDamage -= 0.15f;
        }

        public override void AddRecipes()
        {
            ModRecipe recipe = new ModRecipe(mod);
            recipe.AddIngredient(ModContent.ItemType<TantalumBar>(), 25);
            recipe.AddTile(TileID.WorkBenches);
            recipe.SetResult(this);
            recipe.AddRecipe();
        }
    }
}
Could someone please explain how I can fix this?
 
Top Bottom