Prev: C412 Up: Map Next: C439
C426: Transform Item
Rather than use item properties, the game just has separate objects that don't exist until an action is performed.
An example is:
Item ID Item Name
02 "A match"
03 "A lighted match"
When the match is lit by the player; item 02 is destroyed and replaced with item 03.
Input
B From item ID
C To item ID
TransformItem C426 LD A,B A=B.
C427 CALL ObjectEventLocator Call ObjectEventLocator.
C42A PUSH BC Stash BC and AF on the stack.
C42B PUSH AF
C42C LD C,$00 C=00.
C42E CALL Handler_UpdateObjectLocation Call Handler_UpdateObjectLocation.
C431 POP AF Restore AF and BC from the stack.
C432 POP BC
C433 LD B,C B=C.
C434 LD C,A C=A.
C435 CALL Handler_UpdateObjectLocation Call Handler_UpdateObjectLocation.
C438 RET Return.
Prev: C412 Up: Map Next: C439