![]() |
Routines |
Prev: C412 | Up: Map | Next: C439 |
Used by the routines at Action_Examine, Action_Take, Action_DropThrow, Action_???, Action_Shooting, Action_Drink, Action_Open, Action_CloseShut, Action_Shout, Action_Pull, Action_Wear, Action_LightStrike and Action_Unlock.
Rather than use item properties, the game just has separate objects that don't exist until an action is performed.
An example is:
|
||||||||||||||||
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 |