public override bool CanTownNPCSpawn(int numTownnpcs, int money) { if (Fargowiltas.ModLoaded["FargowiltasSouls"] && (bool)ModLoader.GetMod("FargowiltasSouls").Call("DevianttAlive")) return false; return GetInstance<FargoConfig>().Devi && !FargoGlobalNPC.AnyBossAlive() && (FargoWorld.DownedBools["rareEnemy"] || (Fargowiltas.ModLoaded["FargowiltasSouls"] && (bool)ModLoader.GetMod("FargowiltasSouls").Call("Masomode"))); }
public override bool CanTownNPCSpawn(int numTownNPCs, int money) { if (Fargowiltas.ModLoaded["FargowiltasSouls"] && ((bool)ModLoader.GetMod("FargowiltasSouls").Call("MutantAlive") || (bool)ModLoader.GetMod("FargowiltasSouls").Call("AbomAlive"))) { return(false); } return(GetInstance <FargoConfig>().Abom&& NPC.downedGoblins && !FargoGlobalNPC.AnyBossAlive()); }
public override void AI() { npc.life = npc.lifeMax; if (FargoGlobalNPC.AnyBossAlive()) { npc.life = 0; npc.HitEffect(); npc.StrikeNPCNoInteraction(int.MaxValue, 0, 0, false, false, false); } }
public override bool CanTownNPCSpawn(int numTownnpcs, int money) { if (Fargowiltas.ModLoaded["FargowiltasSouls"] && (bool)ModLoader.GetMod("FargowiltasSouls").Call("MutantAlive")) { return(false); } return(GetInstance <FargoConfig>().Mutant&& FargoWorld.DownedBools["boss"] && !FargoGlobalNPC.AnyBossAlive()); }