Skip to content

Commit

Permalink
Add option for 1-Lap mode
Browse files Browse the repository at this point in the history
  • Loading branch information
wcolding committed Apr 27, 2024
1 parent 6aae1d8 commit 962eb7c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Options.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ class DisablePartDamage(DefaultOnToggle):
"""Prevents parts from being damaged and removes pit droids from the item pool. Extra money will be added to the pool."""
display_name = "Disable Part Damage"

class OneLapMode(Toggle):
"""Races only require 1 lap to complete"""
display_name = "1-Lap Mode"

@dataclass
class SWROptions(PerGameCommonOptions):
progressive_parts: ProgressiveParts
Expand All @@ -64,4 +68,5 @@ class SWROptions(PerGameCommonOptions):
ai_scaling: AIScaling
additional_ai_multiplier: AdditionalAIMultiplier
enable_multiplier_control: EnableMultiplierControl
one_lap_mode: OneLapMode
deathlink: DeathLink
1 change: 1 addition & 0 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def fill_slot_data(self):
"AIScaling": self.options.ai_scaling.value,
"AdditionalAIMultiplier": self.options.additional_ai_multiplier.value,
"EnableMultiplierControl": self.options.enable_multiplier_control.value,
"OneLapMode": self.options.one_lap_mode.value,
"DeathLink": self.options.deathlink.value
}

Expand Down

0 comments on commit 962eb7c

Please sign in to comment.