![]()  | 
Routines | 
| Prev: 62014 | Up: Map | Next: 62060 | 
| 
 | 
||||
| 
 
The player wants to throw the food to the wolves, check if the player is carrying the meat.
 
 | 
||||
| Process_ThrowFoodToWolves | 62041 | LD A,34 | Call IsPlayerCarryingItem with item 34: "Some food". | |
| 62043 | CALL IsPlayerCarryingItem | |||
| 
 
The player is carrying the food, so destroy the item.
 
 | 
||||
| 62046 | LD A,E | Call Handler_DestroyItemEvent with the item ID originally passed to the routine. | ||
| 62047 | CALL Handler_DestroyItemEvent | |||
| 
 
The wolves have eaten an item so handle the inventory count.
 
 | 
||||
| 62050 | LD HL,42896 | Decrease *Count_InventoryItems by one. | ||
| 62053 | DEC (HL) | |||
| 
 
Print "The wolves eat the food.".
 
 | 
||||
| 62054 | LD HL,55087 | HL=Messaging_WolvesEatTheFood. | ||
| 62057 | JP PrintStringAndNewline_Duplicate | Jump to PrintStringAndNewline_Duplicate. | ||
| Prev: 62014 | Up: Map | Next: 62060 |