![]()  | 
Routines | 
| Prev: 50094 | Up: Map | Next: 50148 | 
| 
 
Used by the routines at CheckObjectInInventory and TransformItem.
 
 
  | 
||||||||||||
| ObjectEventLocator | 50128 | LD E,A | Load the event ID into DE. | |||||||||
| 50129 | LD D,0 | |||||||||||
| 50131 | BIT 7,A | Jump to ObjectEventLocator_ScenicEvents if this is a scenic object/ event. | ||||||||||
| 50133 | JR NZ,ObjectEventLocator_ScenicEvents | |||||||||||
| 50135 | LD HL,48112 | HL=Table_ItemLocations. | ||||||||||
| 50138 | JR ObjectEventLocator_Return | Jump to ObjectEventLocator_Return. | ||||||||||
| ObjectEventLocator_ScenicEvents | 50140 | LD HL,48248 | HL=Table_ScenicEventLocations. | |||||||||
| 
 
Prepare object/ event ID for use.
 
 | 
||||||||||||
| 50143 | RES 7,E | Clear the scenic flag. | ||||||||||
| ObjectEventLocator_Return | 50145 | ADD HL,DE | Add the event ID to the event locations table. | |||||||||
| 50146 | LD A,(HL) | A=*HL. | ||||||||||
| 50147 | RET | Return. | ||||||||||
| Prev: 50094 | Up: Map | Next: 50148 |