Prev: A09C Up: Map Next: A0DE
A0BC: Mark an object as dead or broken
Changes the adjectives of object A: the second adjective is removed and the first becomes DEAD for a character (bit 6 of its flags) or BROKEN for anything else. So after a fight, 'thorin' becomes 'the dead thorin'.
A0BC PUSH IX
A0BE CALL $9B25 IX = the object's record
A0C1 LD (IX+$0C),$00 Remove the second adjective
A0C5 LD (IX+$0D),$00
A0C9 LD DE,$00CD The first adjective becomes BROKEN...
A0CC BIT 6,(IX+$07) ...unless it is a living thing (bit 6)...
A0D0 JR Z,$A0D5
A0D2 LD DE,$0192 ...which becomes DEAD
A0D5 LD (IX+$0A),E
A0D8 LD (IX+$0B),D
A0DB POP IX
A0DD RET
Prev: A09C Up: Map Next: A0DE