Skip to content

Commit

Permalink
Add Start Inventory From Pool
Browse files Browse the repository at this point in the history
Just as the title implies
  • Loading branch information
dontjoome authored Nov 26, 2024
1 parent 0dade05 commit 266bc24
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions worlds/smz3/Options.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import typing
from Options import Choice, Option, PerGameCommonOptions, Toggle, DefaultOnToggle, Range, ItemsAccessibility
from dataclasses import dataclass

from Options import Choice, Option, Toggle, DefaultOnToggle, Range, ItemsAccessibility, StartInventoryPool

class SMLogic(Choice):
"""This option selects what kind of logic to use for item placement inside
Expand Down Expand Up @@ -127,19 +127,21 @@ class EnergyBeep(DefaultOnToggle):
"""Toggles the low health energy beep in Super Metroid."""
display_name = "Energy Beep"

@dataclass
class SMZ3Options(PerGameCommonOptions):
accessibility: ItemsAccessibility
sm_logic: SMLogic
sword_location: SwordLocation
morph_location: MorphLocation
goal: Goal
key_shuffle: KeyShuffle
open_tower: OpenTower
ganon_vulnerable: GanonVulnerable
open_tourian: OpenTourian
spin_jumps_animation: SpinJumpsAnimation
heart_beep_speed: HeartBeepSpeed
heart_color: HeartColor
quick_swap: QuickSwap
energy_beep: EnergyBeep

smz3_options: typing.Dict[str, type(Option)] = {
"start_inventory_from_pool": StartInventoryPool,
"accessibility": ItemsAccessibility,
"sm_logic": SMLogic,
"sword_location": SwordLocation,
"morph_location": MorphLocation,
"goal": Goal,
"key_shuffle": KeyShuffle,
"open_tower": OpenTower,
"ganon_vulnerable": GanonVulnerable,
"open_tourian": OpenTourian,
"spin_jumps_animation": SpinJumpsAnimation,
"heart_beep_speed": HeartBeepSpeed,
"heart_color": HeartColor,
"quick_swap": QuickSwap,
"energy_beep": EnergyBeep
}

0 comments on commit 266bc24

Please sign in to comment.