Prev: AEF7 Up: Map Next: AF11
AF08: Handler: Update Item Location
Input
B Item ID
C Room ID
Handler_UpdateItemLocation AF08 LD HL,$A66C HL=Table_ItemEventLocations.
AF0B LD D,$00 Load the item ID into DE.
AF0D LD E,B
AF0E ADD HL,DE Add the item ID to Table_ItemEventLocations.
AF0F LD (HL),C Update the table with the new room ID in C.
AF10 RET Return.
Prev: AEF7 Up: Map Next: AF11