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