From 4ae885f392261b939e6f21b47d545f609c6e1965 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Wed, 27 Aug 2025 17:14:57 -0400 Subject: Set apworld victory condition --- apworld/options.py | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'apworld/options.py') diff --git a/apworld/options.py b/apworld/options.py index 77f0ae3..d984beb 100644 --- a/apworld/options.py +++ b/apworld/options.py @@ -1,6 +1,6 @@ from dataclasses import dataclass -from Options import PerGameCommonOptions, Toggle +from Options import PerGameCommonOptions, Toggle, Choice class ShuffleDoors(Toggle): @@ -8,6 +8,25 @@ class ShuffleDoors(Toggle): display_name = "Shuffle Doors" +class VictoryCondition(Choice): + """Victory condition.""" + display_name = "Victory Condition" + option_gray_ending = 0 + option_purple_ending = 1 + option_mint_ending = 2 + option_black_ending = 3 + option_blue_ending = 4 + option_cyan_ending = 5 + option_red_ending = 6 + option_plum_ending = 7 + option_orange_ending = 8 + option_gold_ending = 9 + option_yellow_ending = 10 + option_green_ending = 11 + option_white_ending = 12 + + @dataclass class Lingo2Options(PerGameCommonOptions): shuffle_doors: ShuffleDoors + victory_condition: VictoryCondition -- cgit 1.4.1