![]() |
Routines |
| Prev: 60197 | Up: Map | Next: 60233 |
|
Used by the routines at Drop_Frog, Drop_Box, Drop_Flower, Drop_Map, Drop_Scroll, Drop_Ruby, Drop_Diamond, Drop_Sapphire, Drop_Emerald, Drop_Pearl, Drop_Tinderbox, Drop_Money, Drop_Bible, Drop_Wand, Drop_Flute, Drop_Carpet, Drop_CopperKey, Drop_GoldKey, Drop_JewelledKey, Drop_Songbird, Drop_Sword, Drop_Spear, Drop_Dagger, Drop_Pillow, Drop_Falcon, Drop_Bottle, Drop_Water, Drop_Acid, Drop_Oil, Drop_Lyre, Drop_Mandolin, Drop_Fragments, Drop_Crowbar, Drop_Shovel, Drop_Cage, Drop_Coin, Drop_Honey, Drop_Meat, Drop_Cross, Drop_Mirror, Drop_WhitePotion and Drop_BlackPotion.
Refuse the drop when the object is not carried; otherwise drop it.
|
||||||||
| Drop_IsPlayerHoldingItem | 60209 | CALL IsObjectInInventory | Call IsObjectInInventory. | |||||
|
Print "You're not carrying ".
|
||||||||
| 60212 | LD HL,45457 | HL=Messaging_YoureNotCarrying. | ||||||
| 60215 | JP NZ,PrintStringAndItThemHandler | Jump to PrintStringAndItThemHandler if the item is not being held. | ||||||
|
The player has the item in their inventory so drop it.
|
||||||||
| DropItem | 60218 | LD B,E | Copy the item ID into B. | |||||
| 60219 | LD A,(44749) | C=*CurrentRoom. | ||||||
| 60222 | LD C,A | |||||||
|
Alter the items location from the players inventory to the current room ID.
|
||||||||
| 60223 | CALL SetItemRoom | Call SetItemRoom. | ||||||
| 60226 | LD HL,44698 | Decrease *Count_InventoryItems by one. | ||||||
| 60229 | DEC (HL) | |||||||
| 60230 | JP Response_OK_GameLoop | Jump to Response_OK_GameLoop. | ||||||
|
View the equivalent code in;
|
||||||||
| Prev: 60197 | Up: Map | Next: 60233 |