public override bool UseItem(Player player) { EndlessAmmoPlayer modPlayer = player.GetModPlayer <EndlessAmmoPlayer>(); if (modPlayer.hasEndlessAmmo) { return(false); } modPlayer.UnlockEndlessAmmo(); return(true); }
public override bool CanUseItem(Player player) { EndlessAmmoPlayer modPlayer = player.GetModPlayer <EndlessAmmoPlayer>(); return(!modPlayer.hasEndlessAmmo); }