![]() |
Routines |
Prev: 50177 | Up: Map | Next: 50214 |
Used by the routines at Handler_DestroyItemEvent, Handler_UpdateItemEventCurrentRoom, ScenicEventTriggered, TransformItem, 61268, Action_Take, Action_DropThrow and Action_???.
|
||||||||||
Handler_UpdateObjectLocation | 50194 | BIT 7,B | Jump to UpdateObjectLocation_NonScenic if this is a normal object/ event. | |||||||
50196 | JR Z,UpdateObjectLocation_NonScenic | |||||||||
Handle non-scenic events.
Prepare object/ event ID for use.
|
||||||||||
50198 | RES 7,B | Clear the scenic flag. | ||||||||
50200 | LD HL,48248 | HL=Table_ScenicEventLocations. | ||||||||
50203 | JR UpdateObjectLocation | Jump to UpdateObjectLocation. | ||||||||
Handle non-scenic events.
|
||||||||||
UpdateObjectLocation_NonScenic | 50205 | LD HL,48112 | HL=Table_ItemLocations. | |||||||
Both object/ event types continue from here.
|
||||||||||
UpdateObjectLocation | 50208 | LD D,0 | Load the event ID into DE. | |||||||
50210 | LD E,B | |||||||||
50211 | ADD HL,DE | Add the event ID to the event locations table. | ||||||||
50212 | LD (HL),C | Update the table with the new room ID in C. | ||||||||
50213 | RET | Return. |
Prev: 50177 | Up: Map | Next: 50214 |