Skip to content

Commit

Permalink
Celeste 64: Option Groups (#3321)
Browse files Browse the repository at this point in the history
* Celeste 64: Option Groups

* Retarget OptionGroup import
  • Loading branch information
PoryGone authored May 21, 2024
1 parent a1c2e87 commit 20134d3
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
26 changes: 25 additions & 1 deletion worlds/celeste64/Options.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from dataclasses import dataclass

from Options import Choice, Range, Toggle, DeathLink, PerGameCommonOptions
from Options import Choice, Range, Toggle, DeathLink, OptionGroup, PerGameCommonOptions


class DeathLinkAmnesty(Range):
Expand Down Expand Up @@ -47,7 +47,9 @@ class MoveShuffle(Toggle):
- Air Dash
- Skid Jump
- Climb
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
"""
display_name = "Move Shuffle"
Expand Down Expand Up @@ -75,7 +77,9 @@ class Carsanity(Toggle):
class BadelineChaserSource(Choice):
"""
What type of action causes more Badeline Chasers to start spawning
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
"""
display_name = "Badeline Chaser Source"
Expand All @@ -86,7 +90,9 @@ class BadelineChaserSource(Choice):
class BadelineChaserFrequency(Range):
"""
How many of the `Badeline Chaser Source` actions must occur to make each Badeline Chaser start spawning
NOTE: Choosing `0` disables Badeline Chasers entirely
WARNING: Turning on Badeline Chasers alongside Move Shuffle could result in extremely difficult situations
"""
display_name = "Badeline Chaser Frequency"
Expand All @@ -104,6 +110,24 @@ class BadelineChaserSpeed(Range):
default = 3


celeste_64_option_groups = [
OptionGroup("Goal Options", [
TotalStrawberries,
StrawberriesRequiredPercentage,
]),
OptionGroup("Sanity Options", [
Friendsanity,
Signsanity,
Carsanity,
]),
OptionGroup("Badeline Chasers", [
BadelineChaserSource,
BadelineChaserFrequency,
BadelineChaserSpeed,
]),
]


@dataclass
class Celeste64Options(PerGameCommonOptions):
death_link: DeathLink
Expand Down
4 changes: 3 additions & 1 deletion worlds/celeste64/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from .Locations import Celeste64Location, strawberry_location_data_table, friend_location_data_table,\
sign_location_data_table, car_location_data_table, location_table
from .Names import ItemName, LocationName
from .Options import Celeste64Options
from .Options import Celeste64Options, celeste_64_option_groups


class Celeste64WebWorld(WebWorld):
Expand All @@ -24,6 +24,8 @@ class Celeste64WebWorld(WebWorld):

tutorials = [setup_en]

option_groups = celeste_64_option_groups


class Celeste64World(World):
"""Relive the magic of Celeste Mountain alongside Madeline in this small, heartfelt 3D platformer.
Expand Down

0 comments on commit 20134d3

Please sign in to comment.