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,8 +37,8 @@ func _process(_delta):
if is_completed:
return
for item in _player.inventory.get_items():
if item.name == "Wrench":
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: