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/tracker.py | |
| 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/tracker.py')
| -rw-r--r-- | apworld/tracker.py | 5 |
1 files changed, 4 insertions, 1 deletions
| diff --git a/apworld/tracker.py b/apworld/tracker.py index c65317c..d473af4 100644 --- a/apworld/tracker.py +++ b/apworld/tracker.py | |||
| @@ -47,7 +47,10 @@ class Tracker: | |||
| 47 | self.world.create_regions() | 47 | self.world.create_regions() |
| 48 | 48 | ||
| 49 | if self.world.options.shuffle_worldports: | 49 | if self.world.options.shuffle_worldports: |
| 50 | port_pairings = {int(fp): int(tp) for fp, tp in slot_data["port_pairings"].items()} | 50 | port_pairings = { |
| 51 | self.world.static_logic.port_id_by_ap_id[int(fp)]: self.world.static_logic.port_id_by_ap_id[int(tp)] | ||
| 52 | for fp, tp in slot_data["port_pairings"].items() | ||
| 53 | } | ||
| 51 | connect_ports_from_ut(port_pairings, self.world) | 54 | connect_ports_from_ut(port_pairings, self.world) |
| 52 | 55 | ||
| 53 | self.refresh_state() | 56 | self.refresh_state() |
