Minor simplification

This commit is contained in:
codemann8
2022-10-20 10:31:24 -05:00
parent 6e3b4a6b2d
commit d8fc0ff752

View File

@@ -1253,10 +1253,7 @@ class CollectionState(object):
return self.has('Mirror Shield', player) or self.has('Cane of Byrna', player) or self.has('Cape', player)
def is_not_bunny(self, region, player):
if self.has_Pearl(player):
return True
return not region.can_cause_bunny(player)
return self.has_Pearl(player) or not region.can_cause_bunny(player)
def can_reach_light_world(self, player):
if True in [i.is_light_world for i in self.reachable_regions[player]]: