diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-07-25 17:09:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-25 23:09:37 +0200 |
commit | 00c16023c45301224400a06f31f637fdedba00ee (patch) | |
tree | 1bcf96a8076980c82bb7d686fc209b5a26ce51ea /__init__.py | |
parent | 1c142350c379d503de512953072f55a8737c30d2 (diff) | |
download | lingo-apworld-00c16023c45301224400a06f31f637fdedba00ee.tar.gz lingo-apworld-00c16023c45301224400a06f31f637fdedba00ee.tar.bz2 lingo-apworld-00c16023c45301224400a06f31f637fdedba00ee.zip |
Lingo: Changed minimum progression requirement (#3672)
Diffstat (limited to '__init__.py')
-rw-r--r-- | __init__.py | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/__init__.py b/__init__.py index 3b67617..a1b8b7c 100644 --- a/__init__.py +++ b/__init__.py | |||
@@ -9,7 +9,7 @@ from worlds.AutoWorld import WebWorld, World | |||
9 | from .datatypes import Room, RoomEntrance | 9 | from .datatypes import Room, RoomEntrance |
10 | from .items import ALL_ITEM_TABLE, ITEMS_BY_GROUP, TRAP_ITEMS, LingoItem | 10 | from .items import ALL_ITEM_TABLE, ITEMS_BY_GROUP, TRAP_ITEMS, LingoItem |
11 | from .locations import ALL_LOCATION_TABLE, LOCATIONS_BY_GROUP | 11 | from .locations import ALL_LOCATION_TABLE, LOCATIONS_BY_GROUP |
12 | from .options import LingoOptions, lingo_option_groups | 12 | from .options import LingoOptions, lingo_option_groups, SunwarpAccess, VictoryCondition |
13 | from .player_logic import LingoPlayerLogic | 13 | from .player_logic import LingoPlayerLogic |
14 | from .regions import create_regions | 14 | from .regions import create_regions |
15 | 15 | ||
@@ -54,14 +54,17 @@ class LingoWorld(World): | |||
54 | player_logic: LingoPlayerLogic | 54 | player_logic: LingoPlayerLogic |
55 | 55 | ||
56 | def generate_early(self): | 56 | def generate_early(self): |
57 | if not (self.options.shuffle_doors or self.options.shuffle_colors or self.options.shuffle_sunwarps): | 57 | if not (self.options.shuffle_doors or self.options.shuffle_colors or |
58 | (self.options.sunwarp_access >= SunwarpAccess.option_unlock and | ||
59 | self.options.victory_condition == VictoryCondition.option_pilgrimage)): | ||
58 | if self.multiworld.players == 1: | 60 | if self.multiworld.players == 1: |
59 | warning(f"{self.multiworld.get_player_name(self.player)}'s Lingo world doesn't have any progression" | 61 | warning(f"{self.player_name}'s Lingo world doesn't have any progression items. Please turn on Door" |
60 | f" items. Please turn on Door Shuffle, Color Shuffle, or Sunwarp Shuffle if that doesn't seem" | 62 | f" Shuffle or Color Shuffle, or use item-blocked sunwarps with the Pilgrimage victory condition" |
61 | f" right.") | 63 | f" if that doesn't seem right.") |
62 | else: | 64 | else: |
63 | raise OptionError(f"{self.multiworld.get_player_name(self.player)}'s Lingo world doesn't have any" | 65 | raise OptionError(f"{self.player_name}'s Lingo world doesn't have any progression items. Please turn on" |
64 | f" progression items. Please turn on Door Shuffle, Color Shuffle or Sunwarp Shuffle.") | 66 | f" Door Shuffle or Color Shuffle, or use item-blocked sunwarps with the Pilgrimage" |
67 | f" victory condition.") | ||
65 | 68 | ||
66 | self.player_logic = LingoPlayerLogic(self) | 69 | self.player_logic = LingoPlayerLogic(self) |
67 | 70 | ||