From 421a7636df43f71b3af72a4db807d957c9ccc36e Mon Sep 17 00:00:00 2001 From: Martin Felis Date: Fri, 6 Sep 2024 14:01:45 +0200 Subject: [PATCH] Use wrench resource for quest instead of item name 'Wrench' --- quests/builder_missing_tool_quest.gd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/quests/builder_missing_tool_quest.gd b/quests/builder_missing_tool_quest.gd index 7127fd3..2c30d15 100644 --- a/quests/builder_missing_tool_quest.gd +++ b/quests/builder_missing_tool_quest.gd @@ -37,9 +37,9 @@ func _process(_delta): if is_completed: return - for item in _player.inventory.get_items(): - if item.name == "Wrench": - is_wrench_found = true + var wrench_item:Item = load("res://data/items/wrench.tres") + if _player.inventory.has_all([wrench_item]): + is_wrench_found = true if is_bridge_built: is_completed = true