diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-01-15 15:13:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-15 21:13:29 +0100 |
commit | a834180195305fe0be91bd0ced5b75de104b7520 (patch) | |
tree | 6b4c1f8713e54dea7b75b9abe20c224178d02921 /options.py | |
parent | 1c7fcd002eb59e8cda09997eb89ecd609aff7275 (diff) | |
download | lingo-apworld-a834180195305fe0be91bd0ced5b75de104b7520.tar.gz lingo-apworld-a834180195305fe0be91bd0ced5b75de104b7520.tar.bz2 lingo-apworld-a834180195305fe0be91bd0ced5b75de104b7520.zip |
Lingo: Add speed boost mode (#3989)
* Add speed boost mode * Update generated.dat * Modify the actual trap weights option when speed boost mode is on * EOF newline * Update generated.dat
Diffstat (limited to 'options.py')
-rw-r--r-- | options.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/options.py b/options.py index 2d6e996..f9d04f6 100644 --- a/options.py +++ b/options.py | |||
@@ -232,6 +232,14 @@ class TrapWeights(OptionDict): | |||
232 | default = {trap_name: 1 for trap_name in TRAP_ITEMS} | 232 | default = {trap_name: 1 for trap_name in TRAP_ITEMS} |
233 | 233 | ||
234 | 234 | ||
235 | class SpeedBoostMode(Toggle): | ||
236 | """ | ||
237 | If on, the player's default speed is halved, as if affected by a Slowness Trap. Speed Boosts are added to | ||
238 | the item pool, which temporarily return the player to normal speed. Slowness Traps are removed from the pool. | ||
239 | """ | ||
240 | display_name = "Speed Boost Mode" | ||
241 | |||
242 | |||
235 | class PuzzleSkipPercentage(Range): | 243 | class PuzzleSkipPercentage(Range): |
236 | """Replaces junk items with puzzle skips, at the specified rate.""" | 244 | """Replaces junk items with puzzle skips, at the specified rate.""" |
237 | display_name = "Puzzle Skip Percentage" | 245 | display_name = "Puzzle Skip Percentage" |
@@ -260,6 +268,7 @@ lingo_option_groups = [ | |||
260 | Level2Requirement, | 268 | Level2Requirement, |
261 | TrapPercentage, | 269 | TrapPercentage, |
262 | TrapWeights, | 270 | TrapWeights, |
271 | SpeedBoostMode, | ||
263 | PuzzleSkipPercentage, | 272 | PuzzleSkipPercentage, |
264 | ]) | 273 | ]) |
265 | ] | 274 | ] |
@@ -287,6 +296,7 @@ class LingoOptions(PerGameCommonOptions): | |||
287 | shuffle_postgame: ShufflePostgame | 296 | shuffle_postgame: ShufflePostgame |
288 | trap_percentage: TrapPercentage | 297 | trap_percentage: TrapPercentage |
289 | trap_weights: TrapWeights | 298 | trap_weights: TrapWeights |
299 | speed_boost_mode: SpeedBoostMode | ||
290 | puzzle_skip_percentage: PuzzleSkipPercentage | 300 | puzzle_skip_percentage: PuzzleSkipPercentage |
291 | death_link: DeathLink | 301 | death_link: DeathLink |
292 | start_inventory_from_pool: StartInventoryPool | 302 | start_inventory_from_pool: StartInventoryPool |