DOOM 1993: Update to use new Options + logic fixes + Doc fix (#3138)

This commit is contained in:
David St-Louis
2024-04-18 12:56:10 -04:00
committed by GitHub
parent 2704015eef
commit ffff63e6f3
4 changed files with 204 additions and 195 deletions

View File

@@ -1,6 +1,5 @@
import typing
from Options import AssembleOptions, Choice, Toggle, DeathLink, DefaultOnToggle, StartInventoryPool
from Options import PerGameCommonOptions, Choice, Toggle, DeathLink, DefaultOnToggle, StartInventoryPool
from dataclasses import dataclass
class Goal(Choice):
@@ -140,21 +139,22 @@ class Episode4(Toggle):
display_name = "Episode 4"
options: typing.Dict[str, AssembleOptions] = {
"start_inventory_from_pool": StartInventoryPool,
"goal": Goal,
"difficulty": Difficulty,
"random_monsters": RandomMonsters,
"random_pickups": RandomPickups,
"random_music": RandomMusic,
"flip_levels": FlipLevels,
"allow_death_logic": AllowDeathLogic,
"pro": Pro,
"start_with_computer_area_maps": StartWithComputerAreaMaps,
"death_link": DeathLink,
"reset_level_on_death": ResetLevelOnDeath,
"episode1": Episode1,
"episode2": Episode2,
"episode3": Episode3,
"episode4": Episode4
}
@dataclass
class DOOM1993Options(PerGameCommonOptions):
start_inventory_from_pool: StartInventoryPool
goal: Goal
difficulty: Difficulty
random_monsters: RandomMonsters
random_pickups: RandomPickups
random_music: RandomMusic
flip_levels: FlipLevels
allow_death_logic: AllowDeathLogic
pro: Pro
start_with_computer_area_maps: StartWithComputerAreaMaps
death_link: DeathLink
reset_level_on_death: ResetLevelOnDeath
episode1: Episode1
episode2: Episode2
episode3: Episode3
episode4: Episode4