mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Celeste 64: Option Groups (#3321)
* Celeste 64: Option Groups * Retarget OptionGroup import
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
|
|
||||||
from Options import Choice, Range, Toggle, DeathLink, PerGameCommonOptions
|
from Options import Choice, Range, Toggle, DeathLink, OptionGroup, PerGameCommonOptions
|
||||||
|
|
||||||
|
|
||||||
class DeathLinkAmnesty(Range):
|
class DeathLinkAmnesty(Range):
|
||||||
@@ -47,7 +47,9 @@ class MoveShuffle(Toggle):
|
|||||||
- Air Dash
|
- Air Dash
|
||||||
- Skid Jump
|
- Skid Jump
|
||||||
- Climb
|
- Climb
|
||||||
|
|
||||||
NOTE: Having Move Shuffle and Standard Logic Difficulty will guarantee that one of the four Move items will be immediately accessible
|
NOTE: Having Move Shuffle and Standard Logic Difficulty will guarantee that one of the four Move items will be immediately accessible
|
||||||
|
|
||||||
WARNING: Combining Move Shuffle and Hard Logic Difficulty can require very difficult tricks
|
WARNING: Combining Move Shuffle and Hard Logic Difficulty can require very difficult tricks
|
||||||
"""
|
"""
|
||||||
display_name = "Move Shuffle"
|
display_name = "Move Shuffle"
|
||||||
@@ -75,7 +77,9 @@ class Carsanity(Toggle):
|
|||||||
class BadelineChaserSource(Choice):
|
class BadelineChaserSource(Choice):
|
||||||
"""
|
"""
|
||||||
What type of action causes more Badeline Chasers to start spawning
|
What type of action causes more Badeline Chasers to start spawning
|
||||||
|
|
||||||
Locations: The number of locations you've checked contributes to Badeline Chasers
|
Locations: The number of locations you've checked contributes to Badeline Chasers
|
||||||
|
|
||||||
Strawberries: The number of Strawberry items you've received contributes to Badeline Chasers
|
Strawberries: The number of Strawberry items you've received contributes to Badeline Chasers
|
||||||
"""
|
"""
|
||||||
display_name = "Badeline Chaser Source"
|
display_name = "Badeline Chaser Source"
|
||||||
@@ -86,7 +90,9 @@ class BadelineChaserSource(Choice):
|
|||||||
class BadelineChaserFrequency(Range):
|
class BadelineChaserFrequency(Range):
|
||||||
"""
|
"""
|
||||||
How many of the `Badeline Chaser Source` actions must occur to make each Badeline Chaser start spawning
|
How many of the `Badeline Chaser Source` actions must occur to make each Badeline Chaser start spawning
|
||||||
|
|
||||||
NOTE: Choosing `0` disables Badeline Chasers entirely
|
NOTE: Choosing `0` disables Badeline Chasers entirely
|
||||||
|
|
||||||
WARNING: Turning on Badeline Chasers alongside Move Shuffle could result in extremely difficult situations
|
WARNING: Turning on Badeline Chasers alongside Move Shuffle could result in extremely difficult situations
|
||||||
"""
|
"""
|
||||||
display_name = "Badeline Chaser Frequency"
|
display_name = "Badeline Chaser Frequency"
|
||||||
@@ -104,6 +110,24 @@ class BadelineChaserSpeed(Range):
|
|||||||
default = 3
|
default = 3
|
||||||
|
|
||||||
|
|
||||||
|
celeste_64_option_groups = [
|
||||||
|
OptionGroup("Goal Options", [
|
||||||
|
TotalStrawberries,
|
||||||
|
StrawberriesRequiredPercentage,
|
||||||
|
]),
|
||||||
|
OptionGroup("Sanity Options", [
|
||||||
|
Friendsanity,
|
||||||
|
Signsanity,
|
||||||
|
Carsanity,
|
||||||
|
]),
|
||||||
|
OptionGroup("Badeline Chasers", [
|
||||||
|
BadelineChaserSource,
|
||||||
|
BadelineChaserFrequency,
|
||||||
|
BadelineChaserSpeed,
|
||||||
|
]),
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class Celeste64Options(PerGameCommonOptions):
|
class Celeste64Options(PerGameCommonOptions):
|
||||||
death_link: DeathLink
|
death_link: DeathLink
|
||||||
|
@@ -7,7 +7,7 @@ from .Items import Celeste64Item, unlockable_item_data_table, move_item_data_tab
|
|||||||
from .Locations import Celeste64Location, strawberry_location_data_table, friend_location_data_table,\
|
from .Locations import Celeste64Location, strawberry_location_data_table, friend_location_data_table,\
|
||||||
sign_location_data_table, car_location_data_table, location_table
|
sign_location_data_table, car_location_data_table, location_table
|
||||||
from .Names import ItemName, LocationName
|
from .Names import ItemName, LocationName
|
||||||
from .Options import Celeste64Options
|
from .Options import Celeste64Options, celeste_64_option_groups
|
||||||
|
|
||||||
|
|
||||||
class Celeste64WebWorld(WebWorld):
|
class Celeste64WebWorld(WebWorld):
|
||||||
@@ -24,6 +24,8 @@ class Celeste64WebWorld(WebWorld):
|
|||||||
|
|
||||||
tutorials = [setup_en]
|
tutorials = [setup_en]
|
||||||
|
|
||||||
|
option_groups = celeste_64_option_groups
|
||||||
|
|
||||||
|
|
||||||
class Celeste64World(World):
|
class Celeste64World(World):
|
||||||
"""Relive the magic of Celeste Mountain alongside Madeline in this small, heartfelt 3D platformer.
|
"""Relive the magic of Celeste Mountain alongside Madeline in this small, heartfelt 3D platformer.
|
||||||
|
Reference in New Issue
Block a user