Esempio n. 1
0
 private void AddNewItem(PlayerItemElement element)
 {
     PlayerItemElements.Add(element);
     Sort();
 }
Esempio n. 2
0
 public void OnSelected(PlayerItemElement item)
 {
     selectedPlayerItem = item.PlayerItem;
     ItemInfoElement.Init(selectedPlayerItem);
 }
Esempio n. 3
0
    private int GetPriority(PlayerItemElement p0)
    {

        switch (p0.PlayerItem.Slot)
        {
            case Slot.physical_weapon:
            case Slot.magic_weapon:
                return 10 + p0.PlayerItem.Id;
            case Slot.body:
                return 8;
            case Slot.helm:
                return 8;
            case Slot.Talisman:
                return 7;
            case Slot.bonus:
                return 6;
            case Slot.recipe:
                return 5;
            case Slot.executable:
                if (p0.PlayerItem is ExecEnchantItem)
                    return 4;
                return 3;
        }
        return 0;

    }