Prev: 42555 Up: Map Next: 42571
42562: Handler: Update Item/ Event For The Current Room
Used by the routines at 43577 and MovePlayerToRoom.
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).
Input
A Item/ event ID
Handler_UpdateItemEventCurrentRoom 42562 LD B,A Load the item/ event ID into B.
42563 LD A,(41222) Load C with *CurrentRoom.
42566 LD C,A
42567 CALL Handler_UpdateItemLocation Call Handler_UpdateItemLocation.
42570 RET Return.
View the equivalent code in;
Prev: 42555 Up: Map Next: 42571