Prev: 27196 Up: Map Next: 27265
27240: Action: Drop Everything
Puts every object that is carried down in the current room and clears the carried count.
DropEverything 27240 LD B,254 Count 254 object slots.
27242 LD HL,24010 Point HL at ObjectLocations.
Drop one carried object into this room.
DropEverything_One 27245 LD A,(23945) Jump to DropEverything_Next if it is not *CarriedObject.
27248 CP (HL)
27249 JR NZ,DropEverything_Next
27251 LD A,(23943) Write *CurrentRoom into its location.
27254 LD (HL),A
Move on to the next object.
DropEverything_Next 27255 INC HL The next object.
27256 DJNZ DropEverything_One Jump to DropEverything_One until every slot is done.
27258 XOR A Write 0 to *CarriedCount.
27259 LD (23948),A
The carried objects are now in this room.
27262 JP RoomHasChanged Jump to RoomHasChanged.
Prev: 27196 Up: Map Next: 27265