Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Celeste 64: Option Groups #3321

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading