![]()  | 
Routines | 
| Prev: 50154 | Up: Map | Next: 50170 | 
| 
 
Used by the routines at MovePlayerToRoom and Action_Move.
 
Updates a given item/ event ID so it appears in the current room. Used for example, when an item is dropped (so it changes from being 1 - in the players inventory, to the current room ID).
 
  | 
||||||||
| Handler_UpdateItemEventCurrentRoom | 50161 | LD B,A | Load the item/ event ID into B. | |||||
| 50162 | LD A,(48331) | Load C with *CurrentRoom. | ||||||
| 50165 | LD C,A | |||||||
| 50166 | CALL Handler_UpdateObjectLocation | Call Handler_UpdateObjectLocation. | ||||||
| 50169 | RET | Return. | ||||||
| Prev: 50154 | Up: Map | Next: 50170 |