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