Merge remote-tracking branch 'remotes/origin/dungeon_entrance_fix' into DoorDevUnstable

This commit is contained in:
compiling
2020-11-02 10:28:54 +11:00
2 changed files with 23 additions and 36 deletions

View File

@@ -588,6 +588,8 @@ class CollectionState(object):
def has_sm_key(self, item, player, count=1):
if self.world.retro[player]:
if self.world.mode[player] == 'standard' and self.world.doorShuffle[player] == 'vanilla' and item == 'Small Key (Escape)':
return True # Cannot access the shop until escape is finished. This is safe because the key is manually placed in make_custom_item_pool
return self.can_buy_unlimited('Small Key (Universal)', player)
if count == 1:
return (item, player) in self.prog_items