Use wrench resource for quest instead of item name 'Wrench'
parent
635655f7a6
commit
421a7636df
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue