Example #1
0
        ////////////////

        public override bool CanUseItem(Player player)
        {
            var mymod         = (LicensesMod)this.mod;
            int maxRarityCost = WildcardLicenseItem.ComputeMaxCost();

            if (this.item.stack > maxRarityCost)
            {
                Main.NewText("Invalid stack size. Stack size must correspond to a valid item ranking value (rarity).", Color.Yellow);
            }

            return(this.item.stack <= maxRarityCost);
        }