mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 12:11:33 -06:00
Somehow, OR conditional logic was STILL not being considered. This should fix it.
This commit is contained in:
@@ -26,7 +26,7 @@ def interpret_rule(rule_set: list[list[str]], player: int):
|
||||
|
||||
access_list: list[Callable[[CollectionState], bool]] = []
|
||||
for item_set in rule_set:
|
||||
access_list.append(lambda state: state.has_all(item_set, player))
|
||||
access_list.append(lambda state, items=tuple(item_set): state.has_all(items, player))
|
||||
return access_list
|
||||
|
||||
#Each item in the list is a separate list of rules. Each separate list is just an "OR" condition.
|
||||
|
Reference in New Issue
Block a user