![]()  | 
Routines | 
| Prev: 62744 | Up: Map | Next: 62788 | 
  | 
||||||||
| Process_EatMeat | 62766 | LD A,58 | Call IsPlayerCarryingItem with item 58: "Some meat". | |||||
| 62768 | CALL IsPlayerCarryingItem | |||||||
| 
 
The player has the meat in their inventory, so eat it!
 
 | 
||||||||
| 62771 | LD A,E | Call Handler_DestroyItemEvent with the item ID of the originally requsted item. | ||||||
| 62772 | CALL Handler_DestroyItemEvent | |||||||
| 
 
The meat has been consumed so handle the inventory count.
 
 | 
||||||||
| 62775 | LD HL,42896 | Decrease *Count_InventoryItems by one. | ||||||
| 62778 | DEC (HL) | |||||||
| 
 
Print "O.K.".
 
 | 
||||||||
| 62779 | CALL Response_OK_Duplicate | Call Response_OK_Duplicate. | ||||||
| 
 
Print "It was a little tough.".
 
 | 
||||||||
| 62782 | LD HL,56385 | HL=Messaging_WasLittleTough. | ||||||
| 62785 | JP PrintStringAndNewline_Duplicate | Jump to PrintStringAndNewline_Duplicate. | ||||||
| Prev: 62744 | Up: Map | Next: 62788 |