Prev: 8C86 Up: Map Next: 8CEA
8CC8: TAKE and CARRY
If the actor already has the target: 'you are already carrying the X.' Otherwise, after the weight checks (8C86), the actor becomes the object's holder (byte 1 of its record). Taking the rope also takes anything tied to it.
8CC8 CALL $9BCD Is the actor already holding the target?
8CCB LD HL,$AD04 "you are already carrying the X."
8CCE JP C,$72D4 Yes: say so
This entry point is used by the routine at 8C75.
8CD1 CALL $8C86 Check the weights
8CD4 CALL $9C99 Dry run? Then stop: it would work
8CD7 LD A,($B5DB) The actor becomes the target's holder
8CDA LD (IX+$01),A
8CDD LD A,(IX+$01) Was it the rope (object 18)?
8CE0 CP $12
8CE2 RET NZ No: done
8CE3 LD A,($B5DB) Yes: whatever is tied to the rope goes with it
8CE6 LD ($C256),A
8CE9 RET
Prev: 8C86 Up: Map Next: 8CEA