public override void CheckActive() { Player player = Main.player[projectile.owner]; TheepPlayer modPlayer = player.GetModPlayer <TheepPlayer>(mod); if (player.dead) { modPlayer.fungusMinion = false; } if (modPlayer.fungusMinion) { projectile.timeLeft = 2; } }
public override void Update(Player player, ref int buffIndex) { TheepPlayer modPlayer = player.GetModPlayer <TheepPlayer>(mod); if (player.ownedProjectileCounts[mod.ProjectileType("KinokoProj")] > 0) { modPlayer.fungusMinion = true; } if (!modPlayer.fungusMinion) { player.DelBuff(buffIndex); buffIndex--; } else { player.buffTime[buffIndex] = 18000; } }