diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-09-13 10:52:12 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2025-09-13 10:52:12 -0400 |
commit | fd7007157f9c9b7f8b12adc6aa601b4a5d89df05 (patch) | |
tree | 22e21fa20df96ade3f670a8b50d699f64dc9f1da /apworld | |
parent | 2a7637a434e3879be0af9ba37df91b8badca51aa (diff) | |
download | lingo2-archipelago-fd7007157f9c9b7f8b12adc6aa601b4a5d89df05.tar.gz lingo2-archipelago-fd7007157f9c9b7f8b12adc6aa601b4a5d89df05.tar.bz2 lingo2-archipelago-fd7007157f9c9b7f8b12adc6aa601b4a5d89df05.zip |
[Apworld] Added compatability for python 3.11
Diffstat (limited to 'apworld')
-rw-r--r-- | apworld/player_logic.py | 2 | ||||
-rw-r--r-- | apworld/static_logic.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apworld/player_logic.py b/apworld/player_logic.py index 8e2a523..17af77f 100644 --- a/apworld/player_logic.py +++ b/apworld/player_logic.py | |||
@@ -157,7 +157,7 @@ class AccessRequirements: | |||
157 | parts.append(f"complete_at={self.complete_at}") | 157 | parts.append(f"complete_at={self.complete_at}") |
158 | if len(self.possibilities) > 0: | 158 | if len(self.possibilities) > 0: |
159 | parts.append(f"possibilities={self.possibilities}") | 159 | parts.append(f"possibilities={self.possibilities}") |
160 | return f"AccessRequirements({", ".join(parts)})" | 160 | return "AccessRequirements(" + ", ".join(parts) + ")" |
161 | 161 | ||
162 | 162 | ||
163 | class PlayerLocation(NamedTuple): | 163 | class PlayerLocation(NamedTuple): |
diff --git a/apworld/static_logic.py b/apworld/static_logic.py index 1ace1e7..1017ec7 100644 --- a/apworld/static_logic.py +++ b/apworld/static_logic.py | |||
@@ -130,7 +130,7 @@ class Lingo2StaticLogic: | |||
130 | for panel_id in door.panels] | 130 | for panel_id in door.panels] |
131 | panel_names.sort() | 131 | panel_names.sort() |
132 | 132 | ||
133 | return f"{map_part} - {", ".join(panel_names)}" | 133 | return map_part + " - " + ", ".join(panel_names) |
134 | 134 | ||
135 | def get_door_location_name_by_id(self, door_id: int) -> str: | 135 | def get_door_location_name_by_id(self, door_id: int) -> str: |
136 | door = self.objects.doors[door_id] | 136 | door = self.objects.doors[door_id] |