Beispiel #1
0
 public void RemoveItem()
 {
     playerInventory.AddItem(itemSlot.item);
     itemSlot.Initialize(null, null);
     ResetModifierSlots();
     previouseSelectedSlot = null;
 }
Beispiel #2
0
 private void HandleSelectionColor(EnchantmentModifierSlot slot)
 {
     if (previouseSelectedSlot != null)
     {
         previouseSelectedSlot.Deselect();
     }
     slot.Select();
     previouseSelectedSlot = slot;
 }
Beispiel #3
0
        public void SelectModifier(EnchantmentModifierSlot slot)
        {
            HandleSelectionColor(slot);

            ModifiableItem.Modifier mod = slot.GetModifier();

            if (mod == null)
            {
                rerollBtn.text = "Reroll for 0";
                return;
            }
            if (itemSlot.item.rarity == Rank.Rare && mod.rarity == Rank.Normal)
            {
                rerollBtn.text = "Reroll for " + rerollPrices[1];
            }
            else
            {
                rerollBtn.text = "Reroll for " + rerollPrices[(int)mod.rarity];
            }
        }