public void Start(Weapon item, ScrollOfEnchantWeapon scrollOfEnchant) { _itemToEnchant = item; _scrollOfEnchant = scrollOfEnchant; EnchantButton.Text += item.EnchantmentLevel + 1; SetSlot(ItemSlot, _itemToEnchant); SetSlot(ScrollOfEnchantSlot, _scrollOfEnchant); }
public override Item Build(int level, double additionalKoef = 1.0) { var item = new ScrollOfEnchantWeapon() { Level = level, }; item.GoldValue.Base = GetItemGoldValue(level); item.UpdateGoldValueKoef(); return(item); }
public override IEnumerable <IItem> Build(int level, int count) { var newLevel = GetItemLevel(level); var item = new ScrollOfEnchantWeapon() { Level = newLevel, Quantity = count, }; item.GoldValue.Base = GetItemGoldValue(newLevel); item.UpdateGoldValueKoef(); return(new[] { item }); }