# Mission 043 played through (plans/briefs/world043.md).
wait 30
expect mission = 43
# S: the start cave (walk 40), the red arrow (28, 34) beside the spawn left for the end.
# Treasure 2 on the north ledge and treasure 1 on the west ledge, each a jump up (walk 42).
go 30 27.6 tol 0.1
go 30 25 jump 2.0
until ground = 1
expect y >= 41.95
until treasures = 1 max 200
go 30 27.6
until ground = 1
go 26.6 30 tol 0.1
go 24.3 30 jump 2.0
until ground = 1
expect y >= 41.95
go 24 30 tol 0.15
until treasures = 2 max 200
# W: east down the passages. Through the slot in the first cross wall (x 42, z 31) in one
# jump over the mine lying in it.
go 27 31
go 40.9 31 tol 0.05
go 45 31 jump 4.1
until ground = 1
expect x >= 43
# Down to the south passage (walk 37); the pocket east of it: treasure 3 on its block, a jump
# up (walk 39).
go 47 31.5
until ground = 1
go 47 37
go 51.6 37 tol 0.1
go 54 37 jump 2.6
until ground = 1
expect y >= 38.95
go 54 37 tol 0.15
until treasures = 3 max 200
go 50 37
until ground = 1
go 47 37
# South through the second slot (z 44) over its mine.
go 47 42.9 tol 0.05
go 47 47 jump 4.1
until ground = 1
expect z >= 45
go 47.5 51.2
until ground = 1
expect y <= 33.05
# East (walk 33): the pocket north of the passage (treasure 4), then the third slot (x 56,
# z 51) jumped over its mine; down at its end (walk 29), north, and down the shaft into the
# grotto (walk 14).
go 54 50.6
go 54 45 tol 0.15
until treasures = 4 max 200
go 54 50.6
go 54 51
go 54.9 51 tol 0.05
go 59 51 jump 4.1
until ground = 1
expect x >= 57
go 62 51
go 63.5 51
until ground = 1
expect y <= 29.05
go 63 41
go 63 39.5
until ground = 1 max 400
expect y <= 14.05
# G: the grotto's treasure 5 and egg, a helicopter (70, 30), up the shaft (71, 39) through the
# ring's hole between its two hanging mines into chamber 1 and onto its shelf (walk 37):
# treasure 6.
# Onto the item (the original's 28 px boxes, BD-0021).
go 66 29 tol 0.15
go 66 29.4 tol 0.15
until treasures = 5 max 200
go 67 30 tol 0.15
until mtick >= 4029 max 1500  # where an egg was taken before BD-0073 (beyond 10 lives it stays)
go 69.85 30 tol 0.15
hold 6 action
wait 30
go 71 38.5 tol 0.3
wait 40
go 71 39 tol 0.15
wait 40
fly 71 37.70 39 tol 0.3 max 2000
expect y >= 37.2
fly 76 37.70 46 tol 0.3
go 76 46 tol 0 with crouch until ground = 1 max 600
until ground = 1 max 200
go 76 46 tol 0.2
until treasures = 6 max 200
# F: the tube down south-west (from (72, 36, 47) to (61, 27, 61)) into chamber 2 (walk 24),
# flown along its floor: treasure 7 on chamber 2's floor.
fly 72.5 37.13 46.5 tol 0.3
# Down into the tube's mouth first: flown in at hover height, each lower step of its ceiling
# meets the helicopter's crash band (7 px over his head, Decor.cpp:5264-5283, OR-0019).
hold 60 crouch
go 61 61 tol 0.4 with crouch
go 58 63 tol 0.3 with crouch
until ground = 1 max 200
go 58 63 tol 0.2
until treasures = 7 max 200
# Treasure 8 in the niche high in the south wall (from (60, 28, 66) to (62, 28, 69)).
fly 58 28.60 63 tol 0.3 max 2000
expect y >= 28.1
fly 60.3 28.60 65.8 tol 0.3
# Onto the item, dipping toward its floor: the original's boxes reach 22 px below his feet
# (BD-0021).
fly 62 28.60 69 tol 0.15
# 10-14 pass (autoplay_search).
hold 12 crouch
go 62 69 tol 0.1
until treasures = 8 max 200
go 60.3 65.8 tol 0.3
# The chimney: its foot (a tube west at y 26), up to the side niche (y 36, north to z 68) for
# treasure 9, on up to the dome (walk 46).
# The heights as the hovering helicopter's run before BD-0070 (it sinks when let be now): the tube
# at 26.2, the niche at 36.2 (its floor 36: the treasure taken just above it), the dome at 46.5.
fly 60.3 26.2 65.8 tol 0.3 max 900
fly 54 26.2 63.2 tol 0.3
fly 50 26.2 62 tol 0.3
fly 50 36.5 62 tol 0.3 max 2000
expect y >= 36
fly 50 36.5 67.5 tol 0.3
fly 50 36.15 68 tol 0.1 max 900
until treasures = 9 max 200
fly 50 36.5 62.2 tol 0.3
fly 50 46.5 62.2 tol 0.3 max 2000
expect y >= 46.2
# The dome: treasure 10 on the ledge six high (walk 52), treasure 11 on the ledge four high
# (walk 50), the egg on its floor.
fly 47 46.6 61 tol 0.3
fly 47 52.17 61 tol 0.3 max 2000
# Not up to the dome's ceiling: over the ledge's edge it is a cell lower (y 54), and the climb's
# drift there met the helicopter's crash band (OR-0019; 100-120 pass, autoplay_search).
fly 44.4 52.17 64.4 tol 0.3
go 44.4 64.4 tol 0 with crouch until ground = 1 max 600
until ground = 1 max 200
go 44 64 tol 0.2
until treasures = 10 max 200
fly 39.3 52.13 56.4 tol 0.3
go 39.3 56.4 tol 0 with crouch until ground = 1 max 600
until ground = 1 max 200
go 39 56 tol 0.2
until treasures = 11 max 200
fly 42 50.13 56.4 tol 0.3
go 42 56.4 tol 0 with crouch until ground = 1 max 600
until ground = 1 max 200
expect y <= 46.05
go 42 56 tol 0.2
until mtick >= 8790 max 1500  # where an egg was taken before BD-0073 (beyond 10 lives it stays)
# R: the way back, a tube from the dome's north side at y 51: up into it, along it to the block
# under the pocket in its roof, up into the pocket and down onto the block (treasure 12), on
# to its end, down the shaft and the tube into the start cave's roof.
fly 42 51.50 56 tol 0.3 max 2000
expect y >= 51
fly 41 51.50 55.2 tol 0.3
fly 38.5 51.50 51.0 tol 0.3
fly 37.6 51.50 49.3 tol 0.25
fly 37 53.23 48 tol 0.3
go 37 48 tol 0 with crouch until ground = 1 max 600
until ground = 1 max 200
go 37 48 tol 0.2
until treasures = 12 max 200
fly 36.4 52.20 47 tol 0.3
go 36.4 47 tol 0 with crouch until ground = 1 max 600
wait 30
go 32.4 41.6 tol 0.3
go 32 39.5 tol 0.3
hold 70 crouch
wait 40
go 31 34.8 tol 0.1 with crouch
hold 120 crouch
until ground = 1 max 300
expect y <= 40.05
go 28 34 until exit = 1
expect treasures = 12
until mission = 40 max 900
expect phase = Play
wait 120
