@@ -220,14 +220,14 @@ def get_invalid_bunny_revival_dungeons():
220220
221221def  overworld_glitch_connections (world , player ):
222222    # Boots-accessible locations. 
223-     create_owg_connections (player , world , get_boots_clip_exits_lw (world .mode [player ] ==  'inverted' ))
224-     create_owg_connections (player , world , get_boots_clip_exits_dw (world .mode [player ] ==  'inverted' , player ))
223+     create_owg_connections (player , world , get_boots_clip_exits_lw (world .worlds [player ]. options . mode  ==  'inverted' ))
224+     create_owg_connections (player , world , get_boots_clip_exits_dw (world .worlds [player ]. options . mode  ==  'inverted' , player ))
225225
226226    # Glitched speed drops. 
227-     create_owg_connections (player , world , get_glitched_speed_drops_dw (world .mode [player ] ==  'inverted' ))
227+     create_owg_connections (player , world , get_glitched_speed_drops_dw (world .worlds [player ]. options . mode  ==  'inverted' ))
228228
229229    # Mirror clip spots. 
230-     if  world .mode [player ] !=  'inverted' :
230+     if  world .worlds [player ]. options . mode  !=  'inverted' :
231231        create_owg_connections (player , world , get_mirror_clip_spots_dw ())
232232        create_owg_connections (player , world , get_mirror_offset_spots_dw ())
233233    else :
@@ -237,24 +237,24 @@ def overworld_glitch_connections(world, player):
237237def  overworld_glitches_rules (world , player ):
238238
239239    # Boots-accessible locations. 
240-     set_owg_connection_rules (player , world , get_boots_clip_exits_lw (world .mode [player ] ==  'inverted' ), lambda  state : can_boots_clip_lw (state , player ))
241-     set_owg_connection_rules (player , world , get_boots_clip_exits_dw (world .mode [player ] ==  'inverted' , player ), lambda  state : can_boots_clip_dw (state , player ))
240+     set_owg_connection_rules (player , world , get_boots_clip_exits_lw (world .worlds [player ]. options . mode  ==  'inverted' ), lambda  state : can_boots_clip_lw (state , player ))
241+     set_owg_connection_rules (player , world , get_boots_clip_exits_dw (world .worlds [player ]. options . mode  ==  'inverted' , player ), lambda  state : can_boots_clip_dw (state , player ))
242242
243243    # Glitched speed drops. 
244-     set_owg_connection_rules (player , world , get_glitched_speed_drops_dw (world .mode [player ] ==  'inverted' ), lambda  state : can_get_glitched_speed_dw (state , player ))
244+     set_owg_connection_rules (player , world , get_glitched_speed_drops_dw (world .worlds [player ]. options . mode  ==  'inverted' ), lambda  state : can_get_glitched_speed_dw (state , player ))
245245    # Dark Death Mountain Ledge Clip Spot also accessible with mirror. 
246-     if  world .mode [player ] !=  'inverted' :
246+     if  world .worlds [player ]. options . mode  !=  'inverted' :
247247        add_alternate_rule (world .get_entrance ('Dark Death Mountain Ledge Clip Spot' , player ), lambda  state : state .has ('Magic Mirror' , player ))
248248
249249    # Mirror clip spots. 
250-     if  world .mode [player ] !=  'inverted' :
250+     if  world .worlds [player ]. options . mode  !=  'inverted' :
251251        set_owg_connection_rules (player , world , get_mirror_clip_spots_dw (), lambda  state : state .has ('Magic Mirror' , player ))
252252        set_owg_connection_rules (player , world , get_mirror_offset_spots_dw (), lambda  state : state .has ('Magic Mirror' , player ) and  can_boots_clip_lw (state , player ))
253253    else :
254254        set_owg_connection_rules (player , world , get_mirror_offset_spots_lw (player ), lambda  state : state .has ('Magic Mirror' , player ) and  can_boots_clip_dw (state , player ))
255255
256256    # Regions that require the boots and some other stuff. 
257-     if  world .mode [player ] !=  'inverted' :
257+     if  world .worlds [player ]. options . mode  !=  'inverted' :
258258        world .get_entrance ('Turtle Rock Teleporter' , player ).access_rule  =  lambda  state : (can_boots_clip_lw (state , player ) or  can_lift_heavy_rocks (state , player )) and  state .has ('Hammer' , player )
259259        add_alternate_rule (world .get_entrance ('Waterfall of Wishing' , player ), lambda  state : state .has ('Moon Pearl' , player ) or  state .has ('Pegasus Boots' , player ))
260260    else :
0 commit comments