diff options
Diffstat (limited to 'apworld')
-rw-r--r-- | apworld/__init__.py | 3 | ||||
-rw-r--r-- | apworld/static_logic.py | 5 | ||||
-rw-r--r-- | apworld/version.py | 1 |
3 files changed, 4 insertions, 5 deletions
diff --git a/apworld/__init__.py b/apworld/__init__.py index 1af31c0..96f6804 100644 --- a/apworld/__init__.py +++ b/apworld/__init__.py | |||
@@ -11,7 +11,6 @@ from .options import Lingo2Options | |||
11 | from .player_logic import Lingo2PlayerLogic | 11 | from .player_logic import Lingo2PlayerLogic |
12 | from .regions import create_regions, shuffle_entrances, connect_ports_from_ut | 12 | from .regions import create_regions, shuffle_entrances, connect_ports_from_ut |
13 | from .static_logic import Lingo2StaticLogic | 13 | from .static_logic import Lingo2StaticLogic |
14 | from .version import APWORLD_VERSION | ||
15 | from ..LauncherComponents import Component, Type, components, launch as launch_component, icon_paths | 14 | from ..LauncherComponents import Component, Type, components, launch as launch_component, icon_paths |
16 | 15 | ||
17 | 16 | ||
@@ -138,7 +137,7 @@ class Lingo2World(World): | |||
138 | 137 | ||
139 | slot_data: dict[str, object] = { | 138 | slot_data: dict[str, object] = { |
140 | **self.options.as_dict(*slot_options), | 139 | **self.options.as_dict(*slot_options), |
141 | "version": [self.static_logic.get_data_version(), APWORLD_VERSION], | 140 | "version": self.static_logic.get_data_version(), |
142 | } | 141 | } |
143 | 142 | ||
144 | if self.options.shuffle_worldports: | 143 | if self.options.shuffle_worldports: |
diff --git a/apworld/static_logic.py b/apworld/static_logic.py index ef70b58..e59a47d 100644 --- a/apworld/static_logic.py +++ b/apworld/static_logic.py | |||
@@ -166,5 +166,6 @@ class Lingo2StaticLogic: | |||
166 | else: | 166 | else: |
167 | return game_map.display_name | 167 | return game_map.display_name |
168 | 168 | ||
169 | def get_data_version(self) -> int: | 169 | def get_data_version(self) -> list[int]: |
170 | return self.objects.version | 170 | version = self.objects.version |
171 | return [version.major, version.minor, version.patch] | ||
diff --git a/apworld/version.py b/apworld/version.py deleted file mode 100644 index ac799cd..0000000 --- a/apworld/version.py +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | APWORLD_VERSION = 6 | ||