public override bool CheckDead(NPC npc)
        {
            Player           player    = Main.player[Main.myPlayer];
            FargoSoulsPlayer modPlayer = player.GetModPlayer <FargoSoulsPlayer>();

            if (TimeFrozen)
            {
                npc.life = 1;
                return(false);
            }

            //            /*if (npc.boss && FargoSoulsUtil.BossIsAlive(ref mutantBoss, ModContent.NPCType<MutantBoss.MutantBoss>()) && npc.type != ModContent.NPCType<MutantBoss.MutantBoss>())
            //            {
            //                npc.active = false;
            //                SoundEngine.PlaySound(npc.DeathSound, npc.Center);
            //                return false;
            //            }*/

            if (modPlayer.WoodEnchantActive)
            {
                //register extra kill per kill (2x as fast)
                Main.BestiaryTracker.Kills.RegisterKill(npc);
            }

            if (Needled && npc.lifeMax > 1 && npc.lifeMax != int.MaxValue) //super dummy
            {
                CactusEnchant.CactusProc(npc, player);
            }

            return(true);
        }
示例#2
0
        public override void UpdateAccessory(Player player, bool hideVisual)
        {
            FargoSoulsPlayer modPlayer = player.GetModPlayer <FargoSoulsPlayer>();

            modPlayer.LifeForce = true;
            modPlayer.BeeEffect(hideVisual);
            modPlayer.SpiderEffect(hideVisual);
            modPlayer.BeetleEffect();
            PumpkinEnchant.PumpkinEffect(player, Item);
            modPlayer.TurtleEffect(hideVisual);
            CactusEnchant.CactusEffect(player);
        }