Use wrench resource for quest instead of item name 'Wrench'

main
Martin Felis 2024-09-06 14:01:45 +02:00
parent 635655f7a6
commit 421a7636df
1 changed files with 3 additions and 3 deletions

View File

@ -37,9 +37,9 @@ func _process(_delta):
if is_completed: if is_completed:
return return
for item in _player.inventory.get_items(): var wrench_item:Item = load("res://data/items/wrench.tres")
if item.name == "Wrench": if _player.inventory.has_all([wrench_item]):
is_wrench_found = true is_wrench_found = true
if is_bridge_built: if is_bridge_built:
is_completed = true is_completed = true