Prev: A5D1 Up: Map Next: A5FB
A5E2: After something is thrown through the trap door
The large trap door's record has this under key 0 after its handler for action 44, THROW THROUGH. If what went through was the barrel, and it has landed in location 33, the forest river, timer 0 is set going: two turns later BARREL_REACHES_LAKE takes it, and anyone inside, on to the long lake.
BARREL_THROWN A5E2 LD A,(TARGET) Not the barrel: nothing
A5E5 CP $13
A5E7 RET NZ
A5E8 CALL ONLY_IF_DONE Only if the throw really happened, and worked
A5EB LD IX,BARREL Not in the forest river: nothing
A5EF LD A,(IX+$10)
A5F2 CP $21
A5F4 RET NZ
A5F5 LD A,$02 Start timer 0 at two turns
A5F7 LD (TIMER0_COUNT),A
A5FA RET
Prev: A5D1 Up: Map Next: A5FB