mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Clique: Refactors and Additional Features supported by v1.5 (#1989)
This commit is contained in:
10
worlds/clique/Rules.py
Normal file
10
worlds/clique/Rules.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from typing import Callable
|
||||
|
||||
from BaseClasses import CollectionState, MultiWorld
|
||||
|
||||
|
||||
def get_button_rule(multiworld: MultiWorld, player: int) -> Callable[[CollectionState], bool]:
|
||||
if getattr(multiworld, "hard_mode")[player]:
|
||||
return lambda state: state.has("Button Activation", player)
|
||||
|
||||
return lambda state: True
|
Reference in New Issue
Block a user