Prev: 68B0 Up: Map Next: 6902
68E4: Action: Drop
Puts a carried or worn object down in the current room. Message 17 says you don't have it.
Input
B Object number
C Object location
DropObject 68E4 LD A,($5D8A) Jump to DropObject_Put if it is *WornObject.
68E7 CP C
68E8 JR Z,DropObject_Put
68EA LD A,($5D89) Jump to DropObject_Count if it is *CarriedObject.
68ED CP C
68EE JR Z,DropObject_Count
Print "you don't have it.".
68F0 LD A,$17 Print SystemMessage_17 using PrintSystemMessage.
68F2 JR GetObject_Refuse
Count one fewer carried object.
DropObject_Count 68F4 LD HL,$5D8C Decrement *CarriedCount.
68F7 DEC (HL)
Put the object in this room.
DropObject_Put 68F8 CALL ObjectAddress Call ObjectAddress.
68FB LD A,($5D87) Write *CurrentRoom into its location.
68FE LD (HL),A
Describe the room again.
68FF JP RoomHasChanged Jump to RoomHasChanged.
Prev: 68B0 Up: Map Next: 6902