diff options
Diffstat (limited to 'apworld/player_logic.py')
| -rw-r--r-- | apworld/player_logic.py | 8 |
1 files changed, 8 insertions, 0 deletions
| diff --git a/apworld/player_logic.py b/apworld/player_logic.py index 7bfd49f..ea74266 100644 --- a/apworld/player_logic.py +++ b/apworld/player_logic.py | |||
| @@ -223,6 +223,7 @@ class Lingo2PlayerLogic: | |||
| 223 | double_letter_amount: dict[str, int] | 223 | double_letter_amount: dict[str, int] |
| 224 | goal_room_id: int | 224 | goal_room_id: int |
| 225 | rte_mapping: list[int] | 225 | rte_mapping: list[int] |
| 226 | custom_mint_ending: str | None | ||
| 226 | 227 | ||
| 227 | def __init__(self, world: "Lingo2World"): | 228 | def __init__(self, world: "Lingo2World"): |
| 228 | self.world = world | 229 | self.world = world |
| @@ -237,6 +238,7 @@ class Lingo2PlayerLogic: | |||
| 237 | self.real_items = list() | 238 | self.real_items = list() |
| 238 | self.starting_items = list() | 239 | self.starting_items = list() |
| 239 | self.double_letter_amount = dict() | 240 | self.double_letter_amount = dict() |
| 241 | self.custom_mint_ending = None | ||
| 240 | 242 | ||
| 241 | def should_shuffle_map(game_map) -> bool | set[int]: | 243 | def should_shuffle_map(game_map) -> bool | set[int]: |
| 242 | if world.options.daedalus_only: | 244 | if world.options.daedalus_only: |
| @@ -302,6 +304,12 @@ class Lingo2PlayerLogic: | |||
| 302 | raise OptionError(f"When Restrict Letter Placements is enabled and Shuffle Letters is set to Progressive, " | 304 | raise OptionError(f"When Restrict Letter Placements is enabled and Shuffle Letters is set to Progressive, " |
| 303 | f"both Shuffle Doors and Shuffle Symbols must be disabled (Player {world.player}).") | 305 | f"both Shuffle Doors and Shuffle Symbols must be disabled (Player {world.player}).") |
| 304 | 306 | ||
| 307 | if world.options.custom_mint_ending.value != "": | ||
| 308 | self.custom_mint_ending = ''.join(filter(str.isalpha, world.options.custom_mint_ending.value)).lower() | ||
| 309 | |||
| 310 | if len(self.custom_mint_ending) > 52: | ||
| 311 | raise OptionError(f"Custom Mint Ending should not be greater than 52 letters (Player {world.player}).") | ||
| 312 | |||
| 305 | maximum_masteries = 13 + len(world.options.enable_gift_maps.value) | 313 | maximum_masteries = 13 + len(world.options.enable_gift_maps.value) |
| 306 | if world.options.enable_icarus: | 314 | if world.options.enable_icarus: |
| 307 | maximum_masteries += 1 | 315 | maximum_masteries += 1 |
