public static HasItem ( object obj ) : bool | ||
obj | object | |
Résultat | bool |
public void InvUpdate() //Function for inventory updates, setup above { if (InventoryData.HasItem("Diary")) //Checking the inventory for an item added { state = "Pick up Diary (1/1)"; StatusUpdate(); //run the function to update to any new changes to the quest state } }
static void InvUpdate() //Function for inventory updates, setup above { if (!state.Equals("Finished")) { //Check for the wood, tools, and cider in the inventory, set the boolean values if (InventoryData.HasItem(ItemDictionary.itemDict.GetItem("Planks"))) { items[0] = true; } if (InventoryData.HasItem(ItemDictionary.itemDict.GetItem("Cider"))) { items[1] = true; } if (InventoryData.HasItem(ItemDictionary.itemDict.GetItem("Tools"))) { items[2] = true; } QuestDictionary.GetUpdate("Rebuild Town Bridge"); //Update the status after new items } }