Shivers: Add collect behavior option. (#3854)

* Add collect behavior option.

* Add comma

Co-authored-by: Scipio Wright <scipiowright@gmail.com>

---------

Co-authored-by: Scipio Wright <scipiowright@gmail.com>
This commit is contained in:
Kory Dondzila 2024-08-31 06:30:42 -05:00 committed by GitHub
parent 920cffda2d
commit 8ed466bf24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 18 additions and 1 deletions

View File

@ -92,6 +92,21 @@ class FullPots(Choice):
option_mixed = 2
class PuzzleCollectBehavior(Choice):
"""
Defines what happens to puzzles on collect.
- Solve None: No puzzles will be solved when collected.
- Prevent Out Of Logic Access: All puzzles, except Red Door and Skull Door, will be solved when collected.
This prevents out of logic access to Gods Room and Slide.
- Solve All: All puzzles will be solved when collected. (original behavior)
"""
display_name = "Puzzle Collect Behavior"
option_solve_none = 0
option_prevent_out_of_logic_access = 1
option_solve_all = 2
default = 1
@dataclass
class ShiversOptions(PerGameCommonOptions):
ixupi_captures_needed: IxupiCapturesNeeded
@ -104,3 +119,4 @@ class ShiversOptions(PerGameCommonOptions):
early_lightning: EarlyLightning
location_pot_pieces: LocationPotPieces
full_pots: FullPots
puzzle_collect_behavior: PuzzleCollectBehavior

View File

@ -219,7 +219,8 @@ class ShiversWorld(World):
"ElevatorsStaySolved": self.options.elevators_stay_solved.value,
"EarlyBeth": self.options.early_beth.value,
"EarlyLightning": self.options.early_lightning.value,
"FrontDoorUsable": self.options.front_door_usable.value
"FrontDoorUsable": self.options.front_door_usable.value,
"PuzzleCollectBehavior": self.options.puzzle_collect_behavior.value,
}