2024-08-11 08:47:17 -04:00
|
|
|
from typing import Callable, TYPE_CHECKING
|
2023-07-19 17:16:03 -05:00
|
|
|
|
2024-08-11 08:47:17 -04:00
|
|
|
from BaseClasses import CollectionState
|
2023-07-19 17:16:03 -05:00
|
|
|
|
2024-08-11 08:47:17 -04:00
|
|
|
if TYPE_CHECKING:
|
|
|
|
|
from . import CliqueWorld
|
2023-07-19 17:16:03 -05:00
|
|
|
|
2024-08-11 08:47:17 -04:00
|
|
|
|
|
|
|
|
def get_button_rule(world: "CliqueWorld") -> Callable[[CollectionState], bool]:
|
|
|
|
|
if world.options.hard_mode:
|
|
|
|
|
return lambda state: state.has("Button Activation", world.player)
|
2023-07-19 17:16:03 -05:00
|
|
|
|
|
|
|
|
return lambda state: True
|