Exemple #1
0
        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")));
        }
Exemple #2
0
 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());
 }
Exemple #3
0
        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);
            }
        }
Exemple #4
0
 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());
 }