Prev: 44817 Up: Map Next: 44849
44830: Transform Item
Input
B From item ID
C To item ID
TransformItem 44830 LD A,B Call ItemLocator with the source item ID.
44831 CALL ItemLocator
A now contains the location of the source ID.
44834 PUSH BC Stash the item IDs and source item room ID on the stack.
44835 PUSH AF
44836 LD C,0 Call Handler_UpdateItemLocation and disable the source item.
44838 CALL Handler_UpdateItemLocation
44841 POP AF Restore the source item room ID and item IDs from the stack.
44842 POP BC
Activate the destination item in the same room.
44843 LD B,C Load the destination item ID into B.
44844 LD C,A Load the source room ID into C.
44845 CALL Handler_UpdateItemLocation Call Handler_UpdateItemLocation.
44848 RET Return.
View the equivalent code in The Jewels Of Babylon.
Prev: 44817 Up: Map Next: 44849