KH: what? yeah, it's HK (#420)

* KH: what? yeah, it's HK
someone this hadn't been spotted yet.

* KH: also fix the start AST Node, just in case we add those in at some point (currently they resolve to True/False anyway)
This commit is contained in:
Fabian Dill
2022-04-05 15:01:33 +02:00
committed by GitHub
parent f2055daf1a
commit 2def8f35ad
3 changed files with 398 additions and 400 deletions

View File

@@ -328,10 +328,8 @@ class HKLogicMixin(LogicMixin):
def _hk_notches(self, player: int, *notches: int) -> int:
return sum(self.world.worlds[player].charm_costs[notch] for notch in notches)
def _kh_option(self, player: int, option_name: str) -> int:
if option_name == "RandomizeCharmNotches":
return self.world.RandomCharmCosts[player] != -1
def _hk_option(self, player: int, option_name: str) -> int:
return getattr(self.world, option_name)[player].value
def _kh_start(self, player, start_location: str) -> bool:
def _hk_start(self, player, start_location: str) -> bool:
return self.world.StartLocation[player] == start_location