public PlayerResources()
 {
     itemInventory = new ItemInventory();
     itemInventory.PickUpItemWithId(0, 10); // 10 Berries
     tools = new UsableTool[ItemModel.instance.toolData.Count];
     for (int i = 0; i < ItemModel.instance.toolData.Count; ++i)
     {
         tools[i] = new UsableTool(i, 0); // 0 - Boat, 1 - Food
     }
     Money = 0;
     RecalculateGearScore();
 }
Example #2
0
 public void SetTrackableTool(UsableTool newTool)
 {
     tool = newTool;
     ResetIcon();
     ResetDurabilityValue();
 }
Example #3
0
 public Sprite GetToolIcon(UsableTool tool)
 {
     return(icons[toolData[tool.Id].tierDictionaryName[tool.Tier]]);
 }