Prev: AA6E Up: Map Next: AAA8
AA8A: Handler: Drop Item
Handler_DropItem AA8A JP NZ,Handler_RunScript_10 The item stays in the inventory.
AA8D LD A,(IX+$01) A=*IX+01.
AA90 CALL Handler_RunScript_15 Call Handler_RunScript_15.
The item is in the players inventory, so move its location to the current room.
AA93 LD B,A B=A.
AA94 LD A,($A106) C=*CurrentRoom.
AA97 LD C,A
AA98 CALL Handler_UpdateItemLocation Call Handler_UpdateItemLocation.
Player has dropped an item so handle the inventory count.
AA9B LD HL,$A0D2 Decrease *Count_InventoryItems by one.
AA9E DEC (HL)
Print "O.K.".
AA9F LD HL,$001A HL=Messaging_OK.
AAA2 CALL PrintCompressedStringAndNewline Call PrintCompressedStringAndNewline.
AAA5 JP Handler_RunScript_10 Jump to Handler_RunScript_10.
View the equivalent code in;
Prev: AA6E Up: Map Next: AAA8