Prev: 27267 Up: Map Next: 27332
27309: Action: Take Object Off
Stops wearing the object and carries it instead. Message 28 says you are not wearing it.
Input
B Object number
C Object location
RemoveWorn 27309 CALL ObjectAddress Point at the object's location.
27312 LD A,(23946) Not worn continues to the refusal.
27315 CP C
27316 JR Z,RemoveWorn_Do
27318 LD A,28 Message 28: you are not wearing it.
27320 JP GetObject_Refuse
RemoveWorn_Do 27323 LD A,(23945) The carried id replaces the worn location, and the carried count rises.
27326 LD (HL),A
27327 LD HL,23948
27330 INC (HL)
27331 RET Return.
Prev: 27267 Up: Map Next: 27332