Skip to content

Commit

Permalink
revert level short circuit
Browse files Browse the repository at this point in the history
  • Loading branch information
JaredWeakStrike committed Dec 20, 2023
1 parent 6166c16 commit 2e99a6b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions worlds/kh2/Rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,7 @@ def hundred_acre_unlocked(self, state: CollectionState, amount) -> bool:
return state.has(ItemName.TornPages, self.player, amount)

def level_locking_unlock(self, state: CollectionState, amount):
if state.has(ItemName.PromiseCharm, self.player):
return True
else:
return amount <= sum([state.count(item_name, self.player) for item_name in visit_locking_dict["2VisitLocking"]])
return amount <= sum([state.count(item_name, self.player) for item_name in visit_locking_dict["2VisitLocking"]])

def summon_levels_unlocked(self, state: CollectionState, amount) -> bool:
return amount <= sum([state.count(item_name, self.player) for item_name in summons])
Expand Down

0 comments on commit 2e99a6b

Please sign in to comment.