# Mission 058 played through (plans/briefs/world058.md): world 5's last, ended at the golden key.
wait 30
expect mission = 58
# A, the start room (walk 20): its egg, up the two steps in the north-east corner (walk 22, 24)
# and into the high doorway (walk 25) of the lava hall.
go 12 81
# Onto the item (the original's 28 px boxes, BD-0021).
go 11 79 tol 0.15
go 11.3 79.4 tol 0.15
go 14.6 80.5 tol 0.1
face 90
go 16.6 80.5 jump 1.6 tol 0.2
until ground = 1
expect y >= 21.95
go 18.2 80.5 jump 1.6 tol 0.2
until ground = 1
expect y >= 23.95
go 20.6 80.5 jump 2.4 tol 0.25
until ground = 1
expect y >= 24.95
# K, the lava hall: four stones, each a jump over a cell of lava, to the pedestal and the red key.
go 21 80.5 tol 0.15
go 24.8 80.5 jump 2.7 tol 0.25
until ground = 1
go 24.6 81 tol 0.15
go 27.8 81 jump 2.7 tol 0.25
until ground = 1
go 27.6 82 tol 0.15
go 30.8 82 jump 2.7 tol 0.25
until ground = 1
go 30.6 83 tol 0.15
go 33.8 83 jump 2.7 tol 0.25
until ground = 1
go 33.6 84 tol 0.15
go 36.8 84 jump 2.7 tol 0.25
until ground = 1
expect y >= 25.95
go 37 85 tol 0.2
until keys = 1 max 120
# Back over the stones and out of the doorway down into the start room.
go 36.4 84 tol 0.15
go 33.2 84 jump 2.7 tol 0.25
until ground = 1
go 33.4 83 tol 0.15
go 30.2 83 jump 2.7 tol 0.25
until ground = 1
go 30.4 82 tol 0.15
go 27.2 82 jump 2.7 tol 0.25
until ground = 1
go 27.4 81 tol 0.15
go 24.2 81 jump 2.7 tol 0.25
until ground = 1
go 24.4 80.5 tol 0.15
go 21.2 80.5 jump 2.7 tol 0.25
until ground = 1
expect y >= 24.95
# Clear of the walk-22 step (x 16-17, to 15.5) with his 18 px: he steps off it rather than
# flying over it, his walk easing in again on every landing (BD-0059).
go 14.6 80.5 tol 0.15
until ground = 1 max 300
expect y <= 20.05
# B: the red door opens to the key; the mine corridor (walk 20) under the lava hall: weaving
# between its five mines, through its three gates (x 33, 35, 37) as each one's mine is up.
go 18.4 83
go 21.5 83
go 23 83 tol 0.15
go 24.5 82.5 tol 0.15
go 26 82 tol 0.15
go 27.5 82.5 tol 0.15
go 29 83 tol 0.15
go 31.8 83 tol 0.1
near 33 22 83 0.15 max 300
go 34 83 tol 0.1
near 35 22 83 0.15 max 300
go 36 83 tol 0.1
near 37 22 83 0.15 max 300
go 39 83 tol 0.15
# C, the cave: the rim (walk 20) and its egg; the islands, each a jump over a cell and two down:
# I1 (18) and its egg, I2 (16) off its tank's line (z 75), the golden key's island GK (14),
# off it down to the cave's floor (8).
go 42.5 84
go 43 85.4 tol 0.15
go 45.6 82 tol 0.15
face 90
go 48.8 82 jump 2.7 tol 0.25
until ground = 1
expect y <= 18.05
# Onto the item (the original's 28 px boxes, BD-0021).
go 51 83 tol 0.15
go 51 82.4 tol 0.2
go 52 79.6 tol 0.15
face 180
go 52 76.6 jump 2.6 tol 0.25
until ground = 1
expect y <= 16.05
go 53.6 76.4 tol 0.15
go 53.8 73.6 tol 0.15
face 90
go 56.6 73.6 jump 2.6 tol 0.25
until ground = 1
expect y <= 14.05
go 54.5 73.6
until ground = 1 max 300
expect y <= 8.05
# T, the tank tunnel (x 29-41, z 61): its two tanks fire along it and their shots fly on out of
# its mouth across the cave's floor along z 61. The drink on the floor (47, 8, 67), south of that
# line: unseen and untouchable for 20 s, across the floor tank's line (x 44) and through the
# tunnel to treasure 1 (26, 8, 61) and back; the drink at the mouth (42, 8, 60) on the way out,
# for the walk east to the corridor of tanks (x 79), north of the lava pool (z 56-62).
go 48 69
go 47.08 67.13 tol 0.1
hold 2 action
go 43 63
go 41.5 61
# Onto the item (the original's 28 px boxes, BD-0021).
go 26 61 tol 0.15
go 26.5 61 tol 0.2 until treasures = 1
go 41.5 61
go 42.08 60.13 tol 0.1
hold 2 action
until treasures = 1 max 120
go 43 63.5
go 77 63.5
go 78.4 61
# D, the corridor of tanks (z 59-63): the drink at its mouth (80, 8, 59), unseen past the three
# tanks swinging across it and its two mines, north through the doorway (89, 58), under the mine
# hanging in it, into the crate room E.
go 79.96 59.14 tol 0.06
hold 2 action
go 88.5 59.4
go 89 59.3 tol 0.15
go 89 56 with crouch
# E: the tunnel north (x 89, z 42-47) full of five crates. Walking into the last pushes the
# whole row (crates in a row move together), into the vault until the first meets its north
# wall (z 35): the row stands along x 89 from z 35 to 39. The vault's treasures along z 37
# either side of it, then the one under the row's middle crate, pushed east off it.
go 89 49
go 89.00 39.89 tol 0.05 max 1200
crate 89 8 35 tol 0.06 max 60
crate 89 8 39 tol 0.06 max 60
go 88 39.6
go 88 37 tol 0.15
go 86 37 tol 0.15
go 86 39.6
go 90 39.6
go 90 37 tol 0.15
go 92 37 tol 0.15
go 92 39.6
go 88 39.6
go 87.6 37 tol 0.1
face 90
go 90.6 37 tol 0.2 max 600
go 89 37 tol 0.15
until treasures = 8 max 120
go 89 40
go 89 49
# F, the lollipop shaft: the lollipop at its foot (95, 8, 51), then a licked jump onto each of its
# three platforms (2 x 2, shuttling a cell along Z; z 51 always on them), east, west, east, and
# west onto the top ledge (walk 24); out south onto the deck G.
go 92 51
go 94.75 51 tol 0.08
hold 2 action
wait 120
face 90
go 96.6 51 jump 2.3 tol 0.25
until ground = 1
expect y >= 11.95
face 270
go 94.4 51 jump 2.3 tol 0.25
until ground = 1
expect y >= 15.95
face 90
go 96.6 51 jump 2.3 tol 0.25
until ground = 1
expect y >= 19.95
face 270
go 94.6 51 jump 2.3 tol 0.25
until ground = 1
expect y >= 23.95
go 94.6 55.5
# G, the deck (walk 24): into the helicopter (88, 24, 64), up to walk 31 and west over the flight
# barrier at the deck's edge, across the cave to the slime pillar P (x 60-62, z 84-86, walk 30),
# down onto its corner (60, 84): treasure 9. A mine sweeps the pillar's other diagonal, from
# (60, 86) to (62, 84) and back: out of the helicopter, round by the corner (62, 84) to the far
# corner (62, 86) for treasure 10 as the mine leaves (60, 86) (cutting the corners: a stop to
# turn there lets it catch up), back round by (60, 86) as it leaves (62, 84), into the
# helicopter again.
go 89.5 62
go 88.15 64 tol 0.1
face 270
hold 2 action
wait 20
fly 60.3 31.03 84.3 tol 0.95 max 1200
wait 60
fly 60.3 31.03 84.3 tol 0.15
wait 30
go 60.3 84.3 tol 0 with crouch until ground = 1 max 400
expect y <= 30.1
hold 2 action
wait 30
face 80
near 60 30 86 0.15 max 600
# Its mine is at the original's 2 cells/s now (BD-0016): 80-96 pass (autoplay_search).
wait 88
go 61.7 84.05 tol 0.15
go 62.15 85 tol 0.15
go 62 86 tol 0.15
face 260
near 62 30 84 0.15 max 600
# And back past it: 64-88 pass (autoplay_search, BD-0016).
wait 76
go 60.3 85.95 tol 0.15
go 59.85 85 tol 0.15
go 60.2 84.3 tol 0.15
wait 10
hold 2 action
wait 30
# Over to the golden key's island GK, down south of its arch (z 73.5) between the drops of the
# helicopter over it (59/61, 72), north under the arch to the golden key (60, 14, 70).
fly 60 30.54 73.5 tol 0.9 max 600
wait 60
fly 60 30.54 73.5 tol 0.15
wait 30
go 60 73.5 tol 0 with crouch until ground = 1 max 600
expect y <= 14.1
go 60 70 until exit = 1
expect treasures = 10
until mission = 1 max 900
expect phase = Play
wait 60
