![]() |
Routines |
| Prev: 43630 | Up: Map | Next: 43688 |
|
|
||||
| Handler_DropItem | 43658 | JP NZ,Handler_RunScript_10 | The item stays in the inventory. | |
| 43661 | LD A,(IX+1) | A=*IX+1. | ||
| 43664 | CALL Handler_RunScript_15 | Call Handler_RunScript_15. | ||
|
The item is in the players inventory, so move its location to the current room.
|
||||
| 43667 | LD B,A | B=A. | ||
| 43668 | LD A,(41222) | C=*CurrentRoom. | ||
| 43671 | LD C,A | |||
| 43672 | CALL Handler_UpdateItemLocation | Call Handler_UpdateItemLocation. | ||
|
Player has dropped an item so handle the inventory count.
|
||||
| 43675 | LD HL,41170 | Decrease *Count_InventoryItems by one. | ||
| 43678 | DEC (HL) | |||
|
Print "O.K.".
|
||||
| 43679 | LD HL,26 | HL=Messaging_OK. | ||
| 43682 | CALL PrintCompressedStringAndNewline | Call PrintCompressedStringAndNewline. | ||
| 43685 | JP Handler_RunScript_10 | Jump to Handler_RunScript_10. | ||
|
View the equivalent code in;
|
||||
| Prev: 43630 | Up: Map | Next: 43688 |