KH2: Promise charm logic (#2635)
This commit is contained in:
parent
5dcaa6ca20
commit
325a510ba7
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue