You just need this:-snip-
C#:
public override void UpdateArmorSet(Player player) {
// your other codes here
player.palladiumRegen = true;
}
You have to write NPC. in from of the downedBoss2. And you don't need "== true".C#:if (downedBoss2 == true) { }
C#:
if(NPC.downedBoss2){
// do your thing
}
My question : Is it a good idea to cache item/buff/projectile etc IDs? Of course I would reset/set them as my mod unloads/loads.
C#:
using static Terraria.ModLoader.ModContent;
public class IDs{
public class Item{
// some static fields that hold itemtype values
public static int TestItem;
}
public class Buff{
// same here
public static int TestBuff;
}
internal static Initialize(){
// I would use ModContent.ItemType<T>() etc to set the values of the fields
Item.TestItem = ItemType<TestItem>();
Buff.TestBuff = BuffType<TestBuff>();
}
}