diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-11-01 14:32:04 -0400 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2025-11-01 14:32:04 -0400 |
| commit | f3b490b10aeac32ba859b929ff13ff882d818a17 (patch) | |
| tree | 1fbcc27fc7fed2646ea86fede3f28b26a58a0297 /apworld/client/gamedata.gd | |
| parent | 21013ec0d1e3953276f11bd8cce12f33d46a33ec (diff) | |
| download | lingo2-archipelago-f3b490b10aeac32ba859b929ff13ff882d818a17.tar.gz lingo2-archipelago-f3b490b10aeac32ba859b929ff13ff882d818a17.tar.bz2 lingo2-archipelago-f3b490b10aeac32ba859b929ff13ff882d818a17.zip | |
Store stable IDs in multiworld state
Diffstat (limited to 'apworld/client/gamedata.gd')
| -rw-r--r-- | apworld/client/gamedata.gd | 4 |
1 files changed, 4 insertions, 0 deletions
| diff --git a/apworld/client/gamedata.gd b/apworld/client/gamedata.gd index 3a35125..d7e3136 100644 --- a/apworld/client/gamedata.gd +++ b/apworld/client/gamedata.gd | |||
| @@ -15,6 +15,7 @@ var symbol_item_ids = [] | |||
| 15 | var anti_trap_ids = {} | 15 | var anti_trap_ids = {} |
| 16 | var location_name_by_id = {} | 16 | var location_name_by_id = {} |
| 17 | var ending_display_name_by_name = {} | 17 | var ending_display_name_by_name = {} |
| 18 | var port_id_by_ap_id = {} | ||
| 18 | 19 | ||
| 19 | var kSYMBOL_ITEMS | 20 | var kSYMBOL_ITEMS |
| 20 | 21 | ||
| @@ -99,6 +100,9 @@ func load(data_bytes): | |||
| 99 | var map_data = port_id_by_map_node_path[map.get_name()] | 100 | var map_data = port_id_by_map_node_path[map.get_name()] |
| 100 | map_data[port.get_path()] = port.get_id() | 101 | map_data[port.get_path()] = port.get_id() |
| 101 | 102 | ||
| 103 | if port.has_ap_id(): | ||
| 104 | port_id_by_ap_id[port.get_ap_id()] = port.get_id() | ||
| 105 | |||
| 102 | for progressive in objects.get_progressives(): | 106 | for progressive in objects.get_progressives(): |
| 103 | progressive_id_by_ap_id[progressive.get_ap_id()] = progressive.get_id() | 107 | progressive_id_by_ap_id[progressive.get_ap_id()] = progressive.get_id() |
| 104 | 108 | ||
