# Mission 045 played through (plans/briefs/world045.md).
wait 30
expect mission = 45
# S, the plateau (walk 20): the lift (13, 87) up to the ledge in the west corner (walk 26),
# jumped onto as it waits at the bottom: treasure 1 and three eggs.
go 16 86
go 14.4 87 tol 0.1
lift 13 21 87 max 600
go 13 87 jump 1.5 tol 0.15
until ground = 1
expect y >= 20.95
face 270
until y >= 25.98 max 300
go 10 87 tol 0.15
expect y >= 25.95
until treasures = 1 max 200
go 11 84.3 tol 0.15
until mtick >= 852 max 1500  # where an egg was taken before BD-0073 (beyond 10 lives it stays)
go 10 84.3 tol 0.15
until mtick >= 937 max 1500  # where an egg was taken before BD-0073 (beyond 10 lives it stays)
go 9 84.3 tol 0.15
until mtick >= 1014 max 1500  # where an egg was taken before BD-0073 (beyond 10 lives it stays)
go 10 80.6
until ground = 1
expect y <= 20.05
# The moat (z 63-69): the raft of lifts in step (x 19-21) boarded at the south bank as it
# waits there, ridden across, off at the north bank.
go 18 74
go 20 70.4 tol 0.1
lift 20 20 69 max 600
go 20 68.6 tol 0.15
until z <= 63.9 max 400
go 20 61
expect y >= 19.95
# P, the gallery (z 56): crouching along its line of stones and pads under the three mines
# hanging at Blupi's height, to door 1 (45, 56), open with one.
go 22 52 tol 0.15
until mtick >= 2042 max 1500  # where an egg was taken before BD-0073 (beyond 10 lives it stays)
go 30 56
go 33.6 56 tol 0.1
go 40.8 56 tol 0.15 with crouch max 900
expect y >= 19.95
go 44 56
go 46.5 56
# H, the hop hall: the chain of four lifts and three rests over the pit of mines (z 56-57),
# each lift stepped onto as it waits level with where he stands.
go 47.6 56.5 tol 0.1
lift 49 20 56 max 600
go 49 56.5 tol 0.15
until y <= 15.02 max 400
go 50 56.5 tol 0.15
expect y >= 14.95
lift 51 15 56 max 900
go 51 56.5 tol 0.15
until y >= 21.98 max 400
go 52 56.5 tol 0.15
expect y >= 21.95
lift 53 22 56 max 900
go 53 56.5 tol 0.15
until y <= 18.02 max 400
go 54 56.5 tol 0.15
expect y >= 17.95
lift 55 18 56 max 900
go 55 56.5 tol 0.15
until y >= 19.98 max 400
go 57 56.5
expect y >= 19.95
go 60 56 tol 0.15
until mtick >= 4311 max 1500  # where an egg was taken before BD-0073 (beyond 10 lives it stays)
# B: the ferry (63-69, z 55-57; 40 ticks, two seconds at the ledge) boarded as it waits,
# left from its front edge as it arrives at the road.
go 61.5 56
go 62.3 56 tol 0.1
lift 63 20 56 max 600
go 63 56 tol 0.15
until x >= 68.3 max 300
go 71 56.5
expect y >= 19.95
# The road: the bulldozer drives its middle lane (72-84). Wait in the south lane for it at
# the far end, pass the first pinch point (mines at x 75 either side) in its lane, wait in the
# south lane for it to pass back west, pass the second pinch point (x 81) behind it.
go 71 57 tol 0.15
near 84 20 56 0.5 max 1500
go 73.5 57
go 74.2 56
go 76 56
go 77.5 57 tol 0.15
near 72 20 56 0.5 max 1500
go 80 57
go 80.6 56
go 82 56
go 83 57
go 86 56
# G, the hangar: treasure 2 between the invert and a mine along its north side.
go 90 50
go 90 48 tol 0.15
until treasures = 2 max 200
# A helicopter (91, 61), flown north through the hangar's opening, over the balcony and down
# into the core; off it on the cellar floor (walk 8).
go 90.5 52
go 91 60.85 tol 0.15
hold 6 action
wait 30
fly 93.5 21.39 51 tol 0.4
fly 93.5 21.39 45 tol 0.4
fly 89 21.39 40 tol 0.4
fly 86 21.39 33.5 tol 0.4
go 86 33.5 tol 0 with crouch until ground = 1 max 600
until ground = 1 max 300
expect y <= 8.05
hold 6 action
wait 30
# R, the cellar on foot: six treasures round the lava pools, beside its mine (87, 31) and its
# invert (70, 29), the one at (66, 23) in a booth behind a crusher; two eggs.
go 89.4 33
go 88.4 29.6 tol 0.15
until treasures = 3 max 200
go 86 15
# Onto the item (the original's 28 px boxes, BD-0021).
go 86 14 tol 0.15
go 86 14.4 tol 0.15
until treasures = 4 max 200
go 75 12.4 tol 0.15
until treasures = 5 max 200
go 64 13.4 tol 0.15
until treasures = 6 max 200
go 63 16
go 69 17.5
go 69.4 22
# The treasure in its booth (66, 23), the doorway (66, 24) a crusher under a lintel: in and out
# while it is up (it squashes at 0-2 of its 10 steps).
go 68.5 25.6
go 66 25.6 tol 0.15
until crush = 3 max 100
go 66 23 tol 0.15
until treasures = 7 max 200
until crush = 3 max 100
go 66 25.6 tol 0.15
go 68.5 25.6
go 68.5 31.4
# Onto the item (the original's 28 px boxes, BD-0021).
go 70 32 tol 0.15
go 69.6 32 tol 0.15
until treasures = 8 max 200
# Onto the item (the original's 28 px boxes, BD-0021).
go 64 37 tol 0.15
go 64 36.6 tol 0.15
until mtick >= 11833 max 1500  # where an egg was taken before BD-0073 (beyond 10 lives it stays)
go 62 36.6 tol 0.15
until mtick >= 11941 max 1500  # where an egg was taken before BD-0073 (beyond 10 lives it stays)
# A floor helicopter (60, 33) up over the cage on its column (walls 44-46, open above), down
# into it: treasure 3 beside its pillar.
go 60.08 33.12 tol 0.15
hold 6 action
wait 30
fly 60.08 47.70 33.12 tol 0.3 max 2000
expect y >= 47.2
fly 74 47.70 23.5 tol 0.3
go 74 23.5 tol 0 with crouch until ground = 1 max 600
until ground = 1 max 300
expect y <= 44.05
# The treasure at (74, 44, 24): within 28 px of it (BD-0021).
go 74 23.85 tol 0.1
until treasures = 9 max 200
# A, the attic behind the walk-through cheese high in the west wall (walk 52): flown in at
# its floor level, treasure 4 on the floor, treasure 5 on the ledge (walk 55), three eggs.
fly 74 52.80 23.6 tol 0.3 max 2000
expect y >= 52.3
fly 59 52.80 15 tol 0.4
fly 53 52.80 17.6 tol 0.3
go 53 17.6 tol 0 with crouch until ground = 1 max 600
until ground = 1 max 200
go 53 18 tol 0.2
until treasures = 10 max 200
fly 53 55.70 18 tol 0.3 max 2000
expect y >= 55.2
fly 49.6 55.70 12.4 tol 0.3
go 49.6 12.4 tol 0 with crouch until ground = 1 max 600
until ground = 1 max 200
go 49.3 12.2 tol 0.2
until treasures = 11 max 200
fly 51.4 55.09 11.3 tol 0.2
go 51.4 11.3 tol 0 with crouch until ground = 1 max 600
until ground = 1 max 200
go 51.2 11.2 tol 0.2
until mtick >= 15153 max 1500  # where an egg was taken before BD-0073 (beyond 10 lives it stays)
go 52 11.2 tol 0.2
until mtick >= 15254 max 1500  # where an egg was taken before BD-0073 (beyond 10 lives it stays)
go 53 11.2 tol 0.2
until mtick >= 15340 max 1500  # where an egg was taken before BD-0073 (beyond 10 lives it stays)
# X: out through the cheese, down to the exit landing (walk 36), west along the corridor under
# its lintel of crushers (x 53, one high) while they are up, to the red arrow.
fly 53.5 52.13 15 tol 0.3
fly 64.5 52.13 15 tol 0.4
# Down the shaft (no floor under it here) to 37.4, then over the landing and onto it.
fly 64.5 37.4 15 tol 0.3 max 1200
until y <= 38 max 300
fly 59.5 37.4 23.5 tol 0.3
go 59.5 23.5 tol 0 with crouch until ground = 1 max 600
until ground = 1 max 200
expect y <= 36.05
go 55 23 tol 0.3
until crush = 3 max 100
go 50 23 tol 0.3 until exit = 1
until exit = 1 max 200
expect treasures = 11
until mission = 40 max 900
expect phase = Play
wait 120
