Mire Falling Bridge logic refinement for possible trap door movement

This commit is contained in:
aerinon
2022-08-23 15:27:22 -06:00
parent 3e7dfaf856
commit 5b8b0cb7f8
5 changed files with 33 additions and 13 deletions

View File

@@ -847,6 +847,10 @@ def create_doors(world, player):
create_door(player, 'Mire Failure Bridge E', Intr).dir(Ea, 0xc3, Mid, High).no_exit().trap(0x1).pos(2),
create_door(player, 'Mire Failure Bridge W', Nrml).dir(We, 0xc3, Mid, High).pos(5),
create_door(player, 'Mire Falling Bridge WN', Intr).dir(We, 0xc3, Top, High).pos(1),
create_door(player, 'Mire Falling Bridge Hook Path', Lgcl),
create_door(player, 'Mire Falling Bridge Hook Only Path', Lgcl),
create_door(player, 'Mire Falling Bridge Primary Path', Lgcl), # dynamic
create_door(player, 'Mire Falling Bridge Failure Path', Lgcl), # dynamic
create_door(player, 'Mire Map Spike Side EN', Intr).dir(Ea, 0xc3, Top, High).no_exit().trap(0x2).pos(1),
create_door(player, 'Mire Map Spot WN', Nrml).dir(We, 0xc3, Top, High).small_key().pos(0),
create_door(player, 'Mire Crystal Dead End NW', Nrml).dir(No, 0xc3, Left, High).pos(4),
@@ -1477,6 +1481,10 @@ def create_doors(world, player):
controller_door(south_controller, world.get_door('Ice Cross Top Push Block Bottom', player))
controller_door(east_controller, world.get_door('Ice Cross Bottom Push Block Right', player))
controller_door(east_controller, world.get_door('Ice Cross Top Push Block Right', player))
failure_controller = world.get_door('Mire Falling Bridge W', player)
primary_controller = world.get_door('Mire Falling Bridge WS', player)
controller_door(failure_controller, world.get_door('Mire Falling Bridge Failure Path', player))
controller_door(primary_controller, world.get_door('Mire Falling Bridge Primary Path', player))
assign_entrances(world, player)