![]() |
Routines |
| Prev: 26800 | Up: Map | Next: 26882 |
|
Puts a carried or worn object down in the current room. Message 23 says you don't have it.
|
||||
| DropObject | 26852 | LD A,(23946) | An object that is worn is put down without changing the carried count. | |
| 26855 | CP C | |||
| 26856 | JR Z,DropObject_Put | |||
| 26858 | LD A,(23945) | An object that is carried is counted down. | ||
| 26861 | CP C | |||
| 26862 | JR Z,DropObject_Count | |||
| 26864 | LD A,23 | Message 23: you don't have it. | ||
| 26866 | JR GetObject_Refuse | |||
| DropObject_Count | 26868 | LD HL,23948 | One fewer object is carried. | |
| 26871 | DEC (HL) | |||
| DropObject_Put | 26872 | CALL ObjectAddress | Write the current room into the object's location. | |
| 26875 | LD A,(23943) | |||
| 26878 | LD (HL),A | |||
| 26879 | JP RoomHasChanged | Jump to RoomHasChanged so the room is described again. | ||
| Prev: 26800 | Up: Map | Next: 26882 |