diff options
-rw-r--r-- | apworld/__init__.py | 5 | ||||
-rw-r--r-- | apworld/static_logic.py | 3 | ||||
-rw-r--r-- | apworld/version.py | 1 | ||||
-rw-r--r-- | client/Archipelago/manager.gd | 3 | ||||
-rw-r--r-- | client/Archipelago/settings_screen.gd | 3 |
5 files changed, 9 insertions, 6 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 | |||
8 | from .player_logic import Lingo2PlayerLogic | 8 | from .player_logic import Lingo2PlayerLogic |
9 | from .regions import create_regions | 9 | from .regions import create_regions |
10 | from .static_logic import Lingo2StaticLogic | 10 | from .static_logic import Lingo2StaticLogic |
11 | from .version import APWORLD_VERSION | ||
11 | 12 | ||
12 | MAJOR_VERSION = 1 | ||
13 | MINOR_VERSION = 0 | ||
14 | 13 | ||
15 | class Lingo2WebWorld(WebWorld): | 14 | class 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 |
diff --git a/apworld/static_logic.py b/apworld/static_logic.py index c112d8e..07800f8 100644 --- a/apworld/static_logic.py +++ b/apworld/static_logic.py | |||
@@ -154,3 +154,6 @@ class Lingo2StaticLogic: | |||
154 | return f"{game_map.display_name} ({room.panel_display_name})" | 154 | return f"{game_map.display_name} ({room.panel_display_name})" |
155 | else: | 155 | else: |
156 | return game_map.display_name | 156 | return game_map.display_name |
157 | |||
158 | def get_data_version(self) -> int: | ||
159 | return self.objects.version | ||
diff --git a/apworld/version.py b/apworld/version.py new file mode 100644 index 0000000..645cce6 --- /dev/null +++ b/apworld/version.py | |||
@@ -0,0 +1 @@ | |||
APWORLD_VERSION = 0 | |||
diff --git a/client/Archipelago/manager.gd b/client/Archipelago/manager.gd index 383be1f..6eea2bd 100644 --- a/client/Archipelago/manager.gd +++ b/client/Archipelago/manager.gd | |||
@@ -1,7 +1,6 @@ | |||
1 | extends Node | 1 | extends Node |
2 | 2 | ||
3 | const MAJOR_VERSION = 1 | 3 | const MOD_VERSION = 0 |
4 | const MINOR_VERSION = 0 | ||
5 | 4 | ||
6 | var SCRIPT_client | 5 | var SCRIPT_client |
7 | var SCRIPT_keyboard | 6 | var SCRIPT_keyboard |
diff --git a/client/Archipelago/settings_screen.gd b/client/Archipelago/settings_screen.gd index a3bc25e..bc201b6 100644 --- a/client/Archipelago/settings_screen.gd +++ b/client/Archipelago/settings_screen.gd | |||
@@ -67,6 +67,7 @@ func _ready(): | |||
67 | global.add_child(textclient_instance) | 67 | global.add_child(textclient_instance) |
68 | 68 | ||
69 | var ap = global.get_node("Archipelago") | 69 | var ap = global.get_node("Archipelago") |
70 | var gamedata = global.get_node("Gamedata") | ||
70 | ap.connect("ap_connected", connectionSuccessful) | 71 | ap.connect("ap_connected", connectionSuccessful) |
71 | ap.connect("could_not_connect", connectionUnsuccessful) | 72 | ap.connect("could_not_connect", connectionUnsuccessful) |
72 | ap.connect("connect_status", connectionStatus) | 73 | ap.connect("connect_status", connectionStatus) |
@@ -90,7 +91,7 @@ func _ready(): | |||
90 | history_box.get_popup().connect("id_pressed", historySelected) | 91 | history_box.get_popup().connect("id_pressed", historySelected) |
91 | 92 | ||
92 | # Show client version. | 93 | # Show client version. |
93 | $Panel/title.text = "ARCHIPELAGO (%d.%d)" % [ap.MAJOR_VERSION, ap.MINOR_VERSION] | 94 | $Panel/title.text = "ARCHIPELAGO (%d.%d)" % [gamedata.objects.get_version(), ap.MOD_VERSION] |
94 | 95 | ||
95 | # Increase font size in text boxes. | 96 | # Increase font size in text boxes. |
96 | $Panel/server_box.add_theme_font_size_override("font_size", 36) | 97 | $Panel/server_box.add_theme_font_size_override("font_size", 36) |