Exemplo n.º 1
0
    public List <string> GetEquippables(EquipmentSlot slot)
    {
        List <string> temp = new List <string>();

        foreach (ItemContainer item in items)
        {
            string key = item.itemKey;

            if (key != "")
            {
                Item itemObj = Globals.campaign.GetItemCopy(key);

                if (itemObj.IsEquippable())
                {
                    EquippableItem te = itemObj.GetEquippedItem();

                    if (te.ValidSlot(slot))
                    {
                        temp.Add(key);
                    }
                }
            }
        }

        return(temp);
    }