Beispiel #1
0
    public Equipment OnEquipSlot(Equipment equipment, Equipment.PartsType type)
    {
        int InvenIndex = (int)type;

        if (EmptySlot(InvenIndex))
        {
            Inventory[InvenIndex] = equipment;
        }

        else
        {
            return(ChangeSlot(equipment, InvenIndex));
        }

        return(null);
    }
Beispiel #2
0
    public Equipment OffEEquipSlot(Equipment.PartsType type)
    {
        int InvenIndex = (int)type;

        return(ChangeSlot(null, InvenIndex));
    }