From 962eb7c97c76c84390b8b809ad2ca220eb7d36a9 Mon Sep 17 00:00:00 2001 From: Will Colding Date: Sat, 27 Apr 2024 13:53:30 -0400 Subject: [PATCH] Add option for 1-Lap mode --- Options.py | 5 +++++ __init__.py | 1 + 2 files changed, 6 insertions(+) diff --git a/Options.py b/Options.py index 5c37e14..1391afb 100644 --- a/Options.py +++ b/Options.py @@ -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 @@ -64,4 +68,5 @@ class SWROptions(PerGameCommonOptions): ai_scaling: AIScaling additional_ai_multiplier: AdditionalAIMultiplier enable_multiplier_control: EnableMultiplierControl + one_lap_mode: OneLapMode deathlink: DeathLink \ No newline at end of file diff --git a/__init__.py b/__init__.py index 6c61ee9..b681127 100644 --- a/__init__.py +++ b/__init__.py @@ -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 }