![]() |
Routines |
| Prev: 6A83 | Up: Map | Next: 6AC4 |
|
Stops wearing the object and carries it instead. Message 1C says you are not wearing it.
|
||||||||||
| RemoveWorn | 6AAD | CALL ObjectAddress | Call ObjectAddress. | |||||||
| 6AB0 | LD A,($5D8A) | Jump to RemoveWorn_Do if it is *WornObject. | ||||||||
| 6AB3 | CP C | |||||||||
| 6AB4 | JR Z,RemoveWorn_Do | |||||||||
|
Print "you are not wearing it.".
|
||||||||||
| 6AB6 | LD A,$1C | Print SystemMessage_1C using PrintSystemMessage. | ||||||||
| 6AB8 | JP GetObject_Refuse | |||||||||
|
The worn object is now carried.
|
||||||||||
| RemoveWorn_Do | 6ABB | LD A,($5D89) | Write *CarriedObject into the object's location. | |||||||
| 6ABE | LD (HL),A | |||||||||
| 6ABF | LD HL,$5D8C | Increment *CarriedCount. | ||||||||
| 6AC2 | INC (HL) | |||||||||
| 6AC3 | RET | Return. | ||||||||
| Prev: 6A83 | Up: Map | Next: 6AC4 |