Wargroove: Switched to options API. (#3306)

* Wargroove: Switched to options API.

* Update Options.py

* Update __init__.py

* Options is plural

* Wargroove: Options updates with some small fixes.

---------

Co-authored-by: Exempt-Medic <60412657+Exempt-Medic@users.noreply.github.com>
This commit is contained in:
FlySniper
2024-05-16 12:46:13 -04:00
committed by GitHub
parent 467bbd7754
commit 705cb2e816
2 changed files with 18 additions and 20 deletions

View File

@@ -1,5 +1,6 @@
import typing
from Options import Choice, Option, Range
from dataclasses import dataclass
from Options import Choice, Option, Range, PerGameCommonOptions
class IncomeBoost(Range):
@@ -30,9 +31,8 @@ class CommanderChoice(Choice):
option_unlockable_factions = 1
option_random_starting_faction = 2
wargroove_options: typing.Dict[str, type(Option)] = {
"income_boost": IncomeBoost,
"commander_defense_boost": CommanderDefenseBoost,
"commander_choice": CommanderChoice
}
@dataclass
class WargrooveOptions(PerGameCommonOptions):
income_boost: IncomeBoost
commander_defense_boost: CommanderDefenseBoost
commander_choice: CommanderChoice