-
Notifications
You must be signed in to change notification settings - Fork 704
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clique: Update to new options API (#3759)
- Loading branch information
1 parent
8e06ab4
commit 68a92b0
Showing
5 changed files
with
47 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
from typing import Callable | ||
from typing import Callable, TYPE_CHECKING | ||
|
||
from BaseClasses import CollectionState, MultiWorld | ||
from BaseClasses import CollectionState | ||
|
||
if TYPE_CHECKING: | ||
from . import CliqueWorld | ||
|
||
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) | ||
|
||
def get_button_rule(world: "CliqueWorld") -> Callable[[CollectionState], bool]: | ||
if world.options.hard_mode: | ||
return lambda state: state.has("Button Activation", world.player) | ||
|
||
return lambda state: True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters