Beispiel #1
0
    private void itemEqp(InventoryHolder user, GameObject item, string slotName)
    {
        int itemCount = user.GetItemCount(item.GetComponent <Item>());

        if (itemCount < 1)
        {
            itemGive(user, item, 1);
        }
        user.ForceEquip(item.GetComponent <Item>(), slotName);
    }
Beispiel #2
0
    private string itemHas(InventoryHolder user, GameObject item, int stack)
    {
        int itemCount = user.GetItemCount(item.GetComponent <Item>());

        return((itemCount >= stack) ? "T" : "F");
    }
Beispiel #3
0
 private string itemNum(InventoryHolder user, GameObject item, int stack)
 {
     return(user.GetItemCount(item.GetComponent <Item>()).ToString());
 }