summary refs log tree commit diff stats
path: root/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to '__init__.py')
-rw-r--r--__init__.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/__init__.py b/__init__.py index da8a246..a8dac86 100644 --- a/__init__.py +++ b/__init__.py
@@ -1,6 +1,8 @@
1""" 1"""
2Archipelago init file for Lingo 2Archipelago init file for Lingo
3""" 3"""
4from logging import warning
5
4from BaseClasses import Item, ItemClassification, Tutorial 6from BaseClasses import Item, ItemClassification, Tutorial
5from worlds.AutoWorld import WebWorld, World 7from worlds.AutoWorld import WebWorld, World
6from .items import ALL_ITEM_TABLE, LingoItem 8from .items import ALL_ITEM_TABLE, LingoItem
@@ -49,6 +51,14 @@ class LingoWorld(World):
49 player_logic: LingoPlayerLogic 51 player_logic: LingoPlayerLogic
50 52
51 def generate_early(self): 53 def generate_early(self):
54 if not (self.options.shuffle_doors or self.options.shuffle_colors):
55 if self.multiworld.players == 1:
56 warning(f"{self.multiworld.get_player_name(self.player)}'s Lingo world doesn't have any progression"
57 f" items. Please turn on Door Shuffle or Color Shuffle if that doesn't seem right.")
58 else:
59 raise Exception(f"{self.multiworld.get_player_name(self.player)}'s Lingo world doesn't have any"
60 f" progression items. Please turn on Door Shuffle or Color Shuffle.")
61
52 self.player_logic = LingoPlayerLogic(self) 62 self.player_logic = LingoPlayerLogic(self)
53 63
54 def create_regions(self): 64 def create_regions(self):