Prev: A16C Up: Map Next: A1AE
A18C: Rename an object BROKEN, or a character DEAD
Used by the routines at DO_STRIKE, KILL and THORIN_KILLED.
The first adjective of its name becomes BROKEN, or DEAD for a character, and the second is dropped.
Input
A The object
BROKEN_OR_DEAD A18C PUSH IX
A18E CALL GET_OBJECT
A191 LD (IX+$0C),$00
A195 LD (IX+$0D),$00
A199 LD DE,$00CD
A19C BIT 6,(IX+$07)
A1A0 JR Z,BROKEN_OR_DEAD_0
A1A2 LD DE,$0192
BROKEN_OR_DEAD_0 A1A5 LD (IX+$0A),E
A1A8 LD (IX+$0B),D
A1AB POP IX
A1AD RET
Prev: A16C Up: Map Next: A1AE