mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
SoE: update to v0.46.1
* install via pypi, pin hashes * add OoB logic option * add sequence break logic option * fix turd ball texts * add option to fix OoB * better textbox handling when turning in energy core fragments
This commit is contained in:
@@ -3,7 +3,7 @@ from typing import Protocol, Set
|
||||
from BaseClasses import MultiWorld
|
||||
from worlds.AutoWorld import LogicMixin
|
||||
from . import pyevermizer
|
||||
from .Options import EnergyCore
|
||||
from .Options import EnergyCore, OutOfBounds, SequenceBreaks
|
||||
|
||||
# TODO: Options may preset certain progress steps (i.e. P_ROCK_SKIP), set in generate_early?
|
||||
|
||||
@@ -61,4 +61,10 @@ class SecretOfEvermoreLogic(LogicMixin):
|
||||
if w.energy_core == EnergyCore.option_fragments:
|
||||
progress = pyevermizer.P_CORE_FRAGMENT
|
||||
count = w.required_fragments
|
||||
elif progress == pyevermizer.P_ALLOW_OOB:
|
||||
if world.worlds[player].out_of_bounds == OutOfBounds.option_logic:
|
||||
return True
|
||||
elif progress == pyevermizer.P_ALLOW_SEQUENCE_BREAKS:
|
||||
if world.worlds[player].sequence_breaks == SequenceBreaks.option_logic:
|
||||
return True
|
||||
return self._soe_count(progress, world, player, count) >= count
|
||||
|
Reference in New Issue
Block a user