Added inheritance for quests, finished quest implementation (90%), v1.4.0

This commit is contained in:
Nicola Sovic
2022-07-12 19:58:28 +02:00
parent 408339387d
commit 3f8d9c0551
18 changed files with 388 additions and 144 deletions

View File

@@ -37,10 +37,12 @@ namespace Assets.Scripts
InventorySlot toDelete = GameObject.Find("Inventory").GetComponent<Inventory>().getDrag().GetComponent<InventorySlot>();
if (toDelete.place == ItemPlace.BAG)
{
GameObject.Find("QuestLog").GetComponent<QuestLog>().updateQuests("collect", toDelete.getItem(toDelete.getCurrentBag()), -1);
toDelete.removeItem();
}
else
{
GameObject.Find("QuestLog").GetComponent<QuestLog>().updateQuests("collect", toDelete.getEquip(), -1);
toDelete.removeEquip();
}
GameObject.Find("Inventory").GetComponent<Inventory>().dragImage.GetComponent<RawImage>().color = new Color(0, 0, 0, 0);