Prev: 9404 Up: Map Next: 946D
9428: PUT IN or DROP IN a river: swept away
A river is in two places, and whatever goes in comes out at the other, downstream: "and it gets swept away.". If that was the player, carried off in something, and the river leads nowhere, it is death.
INTO_THE_RIVER 9428 CALL CAN_LIFT_HERE
942B CALL FOR_REAL
942E LD A,(ACTOR_AT)
9431 LD IX,(INSTRUMENT_RECORD)
9435 LD B,(IX+$00)
INTO_THE_RIVER_0 9438 CP (IX+$10)
943B JR Z,INTO_THE_RIVER_1
943D INC IX
943F DJNZ INTO_THE_RIVER_0
9441 JP CANNOT_DO
INTO_THE_RIVER_1 9444 LD A,(IX+$11)
9447 DEC B
9448 JR NZ,INTO_THE_RIVER_2
944A XOR A
INTO_THE_RIVER_2 944B PUSH AF
944C LD HL,MSG_AND_IT_GET_SWEPT
944F CALL RUN_MESSAGE_HL
9452 POP AF
9453 LD IX,(TARGET_RECORD)
9457 LD (IX+$10),A
945A LD (IX+$01),$FF
945E LD B,A
945F LD A,(TARGET)
9462 CALL MOVE_CONTENTS
9465 LD A,(PLAYER_WHERE)
9468 AND A
9469 JP Z,PLAYER_DIES
946C RET
Prev: 9404 Up: Map Next: 946D