Apply suggestions from code review

Co-authored-by: Scipio Wright <scipiowright@gmail.com>
This commit is contained in:
Jarno
2025-08-31 21:36:57 +02:00
committed by GitHub
parent 068f18f0d7
commit 5c7435e631
8 changed files with 23 additions and 21 deletions

View File

@@ -42,7 +42,7 @@ class StateLogic:
return power_level is None or state.has(building_event_prefix + power_level.to_name(), self.player)
def can_produce_all(self, state: CollectionState, parts: Optional[Iterable[str]]) -> bool:
return parts is None or \
return parts is None or \
state.has_all(map(self.to_part_event, parts), self.player)
def can_produce_all_allowing_handcrafting(self, state: CollectionState, logic: GameLogic,