about summary refs log tree commit diff stats
path: root/apworld/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'apworld/__init__.py')
-rw-r--r--apworld/__init__.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/apworld/__init__.py b/apworld/__init__.py index c45e8b3..8051e0f 100644 --- a/apworld/__init__.py +++ b/apworld/__init__.py
@@ -1,7 +1,7 @@
1""" 1"""
2Archipelago init file for Lingo 2 2Archipelago init file for Lingo 2
3""" 3"""
4from BaseClasses import ItemClassification, Item 4from BaseClasses import ItemClassification, Item, Tutorial
5from worlds.AutoWorld import WebWorld, World 5from worlds.AutoWorld import WebWorld, World
6from .items import Lingo2Item 6from .items import Lingo2Item
7from .options import Lingo2Options 7from .options import Lingo2Options
@@ -9,10 +9,20 @@ from .player_logic import Lingo2PlayerLogic
9from .regions import create_regions 9from .regions import create_regions
10from .static_logic import Lingo2StaticLogic 10from .static_logic import Lingo2StaticLogic
11 11
12MAJOR_VERSION = 1
13MINOR_VERSION = 0
12 14
13class Lingo2WebWorld(WebWorld): 15class Lingo2WebWorld(WebWorld):
14 rich_text_options_doc = True 16 rich_text_options_doc = True
15 theme = "grass" 17 theme = "grass"
18 tutorials = [Tutorial(
19 "Multiworld Setup Guide",
20 "A guide to playing Lingo 2 with Archipelago.",
21 "English",
22 "en_Lingo_2.md",
23 "setup/en",
24 ["hatkirby"]
25 )]
16 26
17 27
18class Lingo2World(World): 28class Lingo2World(World):
@@ -32,6 +42,8 @@ class Lingo2World(World):
32 static_logic = Lingo2StaticLogic() 42 static_logic = Lingo2StaticLogic()
33 item_name_to_id = static_logic.item_name_to_id 43 item_name_to_id = static_logic.item_name_to_id
34 location_name_to_id = static_logic.location_name_to_id 44 location_name_to_id = static_logic.location_name_to_id
45 item_name_groups = static_logic.item_name_groups
46 location_name_groups = static_logic.location_name_groups
35 47
36 player_logic: Lingo2PlayerLogic 48 player_logic: Lingo2PlayerLogic
37 49
@@ -72,11 +84,13 @@ class Lingo2World(World):
72 "shuffle_control_center_colors", 84 "shuffle_control_center_colors",
73 "shuffle_doors", 85 "shuffle_doors",
74 "shuffle_letters", 86 "shuffle_letters",
87 "shuffle_symbols",
75 "victory_condition", 88 "victory_condition",
76 ] 89 ]
77 90
78 slot_data = { 91 slot_data = {
79 **self.options.as_dict(*slot_options), 92 **self.options.as_dict(*slot_options),
93 "version": [MAJOR_VERSION, MINOR_VERSION],
80 } 94 }
81 95
82 return slot_data 96 return slot_data