mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-03-23 22:23:24 -07:00
12 lines
351 B
Python
12 lines
351 B
Python
from typing import Callable
|
|
|
|
from BaseClasses import CollectionState
|
|
from Options import PerGameCommonOptions
|
|
|
|
|
|
def get_button_rule(options: PerGameCommonOptions, player: int) -> Callable[[CollectionState], bool]:
|
|
if getattr(options, "hard_mode"):
|
|
return lambda state: state.has("Button Activation", player)
|
|
|
|
return lambda state: True
|