KH2: Promise charm logic (#2635)

This commit is contained in:
JaredWeakStrike 2024-01-16 09:26:18 -05:00 committed by GitHub
parent 5dcaa6ca20
commit 325a510ba7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -83,6 +83,8 @@ class KH2Rules:
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: