about summary refs log tree commit diff stats
path: root/apworld/__init__.py
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2025-09-10 20:12:06 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2025-09-10 20:12:06 -0400
commit6b2a2fc0106ca5f7824475bbcb918f950802aca2 (patch)
treeceafc78c696b6f46906ae3547d1a4ac402ee7c74 /apworld/__init__.py
parentfc53398bc667f77efff8d4004e44663fbf244ac8 (diff)
downloadlingo2-archipelago-6b2a2fc0106ca5f7824475bbcb918f950802aca2.tar.gz
lingo2-archipelago-6b2a2fc0106ca5f7824475bbcb918f950802aca2.tar.bz2
lingo2-archipelago-6b2a2fc0106ca5f7824475bbcb918f950802aca2.zip
[Apworld] Read major version from datafile
Diffstat (limited to 'apworld/__init__.py')
-rw-r--r--apworld/__init__.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/apworld/__init__.py b/apworld/__init__.py index 8051e0f..4044d76 100644 --- a/apworld/__init__.py +++ b/apworld/__init__.py
@@ -8,9 +8,8 @@ from .options import Lingo2Options
8from .player_logic import Lingo2PlayerLogic 8from .player_logic import Lingo2PlayerLogic
9from .regions import create_regions 9from .regions import create_regions
10from .static_logic import Lingo2StaticLogic 10from .static_logic import Lingo2StaticLogic
11from .version import APWORLD_VERSION
11 12
12MAJOR_VERSION = 1
13MINOR_VERSION = 0
14 13
15class Lingo2WebWorld(WebWorld): 14class Lingo2WebWorld(WebWorld):
16 rich_text_options_doc = True 15 rich_text_options_doc = True
@@ -90,7 +89,7 @@ class Lingo2World(World):
90 89
91 slot_data = { 90 slot_data = {
92 **self.options.as_dict(*slot_options), 91 **self.options.as_dict(*slot_options),
93 "version": [MAJOR_VERSION, MINOR_VERSION], 92 "version": [self.static_logic.get_data_version(), APWORLD_VERSION],
94 } 93 }
95 94
96 return slot_data 95 return slot_data