Merge remote-tracking branch 'remotes/origin/Dev-owg' into DoorDevUnstable
This commit is contained in:
@@ -65,6 +65,8 @@ class World(object):
|
||||
self.custom = custom
|
||||
self.customitemarray = customitemarray
|
||||
self.can_take_damage = True
|
||||
self.hints = hints
|
||||
|
||||
self.hints = hints.copy()
|
||||
self.dynamic_regions = []
|
||||
self.dynamic_locations = []
|
||||
@@ -109,7 +111,7 @@ class World(object):
|
||||
set_player_attr('can_access_trock_front', None)
|
||||
set_player_attr('can_access_trock_big_chest', None)
|
||||
set_player_attr('can_access_trock_middle', None)
|
||||
set_player_attr('fix_fake_world', True)
|
||||
set_player_attr('fix_fake_world', logic not in ['owglitches', 'nologic'] or shuffle in ['crossed', 'insanity', 'madness_legacy'])
|
||||
set_player_attr('mapshuffle', False)
|
||||
set_player_attr('compassshuffle', False)
|
||||
set_player_attr('keyshuffle', False)
|
||||
@@ -752,6 +754,31 @@ 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 == '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 != 'inverted':
|
||||
return self.has_Boots(player) and self.has_Pearl(player)
|
||||
return self.has_Boots(player)
|
||||
|
||||
def can_get_glitched_speed_lw(self, player):
|
||||
rules = [self.has_Boots(player), any([self.has('Hookshot', player), self.has_sword(player)])]
|
||||
if self.world.mode == 'inverted':
|
||||
rules.append(self.has_Pearl(player))
|
||||
return all(rules)
|
||||
|
||||
def can_get_glitched_speed_dw(self, player):
|
||||
rules = [self.has_Boots(player), any([self.has('Hookshot', player), self.has_sword(player)])]
|
||||
if self.world.mode != 'inverted':
|
||||
rules.append(self.has_Pearl(player))
|
||||
return all(rules)
|
||||
|
||||
def can_superbunny_mirror_with_sword(self, player):
|
||||
return self.has_Mirror(player) and self.has_sword(player)
|
||||
|
||||
def collect(self, item, event=False, location=None):
|
||||
if location:
|
||||
self.locations_checked.add(location)
|
||||
|
||||
Reference in New Issue
Block a user