![]()  | 
Routines | 
| Prev: A652 | Up: Map | Next: A66C | 
| 
 
Used by the routines at A280, Handler_DestroyItemEvent, Handler_UpdateItemEventCurrentRoom, ScenicEventTriggered, TransformItem, AA26, Handler_PickUpItem, Handler_DropItem and MovePlayerToRoom.
 
  | 
||||||||||
| Handler_UpdateItemLocation | A663 | LD HL,$9F88 | HL=Table_ItemLocations. | |||||||
| A666 | LD D,$00 | Load the item ID into DE. | ||||||||
| A668 | LD E,B | |||||||||
| A669 | ADD HL,DE | Add the item ID to Table_ItemLocations. | ||||||||
| A66A | LD (HL),C | Update the table with the new room ID in C. | ||||||||
| A66B | RET | Return. | ||||||||
| Prev: A652 | Up: Map | Next: A66C |