![]()  | 
Routines | 
| Prev: F518 | Up: Map | Next: F544 | 
  | 
||||||||
| Process_EatMeat | F52E | LD A,$3A | Call IsPlayerCarryingItem with item 3A: "Some meat". | |||||
| F530 | CALL IsPlayerCarryingItem | |||||||
| 
 
The player has the meat in their inventory, so eat it!
 
 | 
||||||||
| F533 | LD A,E | Call Handler_DestroyItemEvent with the item ID of the originally requsted item. | ||||||
| F534 | CALL Handler_DestroyItemEvent | |||||||
| 
 
The meat has been consumed so handle the inventory count.
 
 | 
||||||||
| F537 | LD HL,$A790 | Decrease *Count_InventoryItems by one. | ||||||
| F53A | DEC (HL) | |||||||
| 
 
Print "O.K.".
 
 | 
||||||||
| F53B | CALL Response_OK_Duplicate | Call Response_OK_Duplicate. | ||||||
| 
 
Print "It was a little tough.".
 
 | 
||||||||
| F53E | LD HL,$DC41 | HL=Messaging_WasLittleTough. | ||||||
| F541 | JP PrintStringAndNewline_Duplicate | Jump to PrintStringAndNewline_Duplicate. | ||||||
| Prev: F518 | Up: Map | Next: F544 |