示例#1
0
        public override bool UseItem(Player player)
        {
            EndlessAmmoPlayer modPlayer = player.GetModPlayer <EndlessAmmoPlayer>();

            if (modPlayer.hasEndlessAmmo)
            {
                return(false);
            }

            modPlayer.UnlockEndlessAmmo();
            return(true);
        }
示例#2
0
        public override bool CanUseItem(Player player)
        {
            EndlessAmmoPlayer modPlayer = player.GetModPlayer <EndlessAmmoPlayer>();

            return(!modPlayer.hasEndlessAmmo);
        }