about summary refs log tree commit diff stats
path: root/Archipelago/client.gd
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-09-11 16:52:39 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-09-11 16:52:39 -0400
commit3dc880b18277e4587aeb167f1f831bc8f1b9bf48 (patch)
tree2e08a798522882c4527632a0245229b5243b440b /Archipelago/client.gd
parent3d51a24e12ab8a84631c54852b4b5b43144676ed (diff)
downloadlingo-archipelago-3dc880b18277e4587aeb167f1f831bc8f1b9bf48.tar.gz
lingo-archipelago-3dc880b18277e4587aeb167f1f831bc8f1b9bf48.tar.bz2
lingo-archipelago-3dc880b18277e4587aeb167f1f831bc8f1b9bf48.zip
Use static item/location IDs
Diffstat (limited to 'Archipelago/client.gd')
-rw-r--r--Archipelago/client.gd8
1 files changed, 4 insertions, 4 deletions
diff --git a/Archipelago/client.gd b/Archipelago/client.gd index 9f15506..068f300 100644 --- a/Archipelago/client.gd +++ b/Archipelago/client.gd
@@ -588,16 +588,16 @@ func processItem(item, index, from, flags):
588 if _item_id_to_name.has(item): 588 if _item_id_to_name.has(item):
589 item_name = _item_id_to_name[item] 589 item_name = _item_id_to_name[item]
590 590
591 if gamedata.door_ids_by_item_id.has(item_name): 591 if gamedata.door_ids_by_item_id.has(int(item)):
592 var doorsNode = get_tree().get_root().get_node("Spatial/Doors") 592 var doorsNode = get_tree().get_root().get_node("Spatial/Doors")
593 for door_id in gamedata.door_ids_by_item_id[item_name]: 593 for door_id in gamedata.door_ids_by_item_id[int(item)]:
594 doorsNode.get_node(door_id).openDoor() 594 doorsNode.get_node(door_id).openDoor()
595 595
596 if gamedata.painting_ids_by_item_id.has(item_name): 596 if gamedata.painting_ids_by_item_id.has(int(item)):
597 var real_parent_node = get_tree().get_root().get_node("Spatial/Decorations/Paintings") 597 var real_parent_node = get_tree().get_root().get_node("Spatial/Decorations/Paintings")
598 var fake_parent_node = get_tree().get_root().get_node_or_null("Spatial/AP_Paintings") 598 var fake_parent_node = get_tree().get_root().get_node_or_null("Spatial/AP_Paintings")
599 599
600 for painting_id in gamedata.painting_ids_by_item_id[item_name]: 600 for painting_id in gamedata.painting_ids_by_item_id[int(item)]:
601 var painting_node = real_parent_node.get_node_or_null(painting_id) 601 var painting_node = real_parent_node.get_node_or_null(painting_id)
602 if painting_node != null: 602 if painting_node != null:
603 painting_node.movePainting() 603 painting_node.movePainting()