more idiomatic, bugfix too

This commit is contained in:
qadan
2020-02-10 00:38:55 -04:00
parent ce9ccac4d3
commit ff3b879a02
2 changed files with 23 additions and 13 deletions

View File

@@ -536,6 +536,19 @@ class CollectionState(object):
def has_turtle_rock_medallion(self, player):
return self.has(self.world.required_medallions[player][1], player)
def can_boots_clip_lw(self, player):
if self.world.mode[player] == 'inverted':
return self.has_Boots(player) and self.has_Pearl(player)
return self.has_Boots(player)
def can_boots_clip_dw(self, player):
if self.world.mode[player] != 'inverted':
return self.has_Boots(player) and self.has_Pearl(player)
return self.has_Boots(player)
def can_bunny_dmd(self, player):
return self.world.get_region('Death Mountain', player).can_reach(self) and self.has_Mirror(player)
def collect(self, item, event=False, location=None):
if location:
self.locations_checked.add(location)