Skip to content

Commit

Permalink
KH2: Promise charm logic (ArchipelagoMW#2635)
Browse files Browse the repository at this point in the history
  • Loading branch information
JaredWeakStrike authored and Jouramie committed Feb 28, 2024
1 parent 08e266b commit dae4d89
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions worlds/kh2/Rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ 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 self.world.options.Promise_Charm and state.has(ItemName.PromiseCharm, self.player):
return True
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:
Expand Down

0 comments on commit dae4d89

Please sign in to comment.