![]() |
Routines |
Prev: AF08 | Up: Map | Next: AF31 |
Used by the routines at ECA2, Process_GetCloak, Process_DropTorc, Process_DropHelmet, Process_DropCloak, Process_BuyMeatFromTraderWithIron, F179, F1DF, F26C, F293, Process_WearTorc, Process_WearHelmet, Process_WearAmulet, Process_DropAmulet, F4B9, Process_WearCloak, F544 and F620.
Rather than use item properties, the game just has separate objects that don't exist until an action is performed.
An example is:
|
||||||||||||||||
TransformItem | AF1E | LD A,B | A=B. | |||||||||||||
AF1F | CALL ItemLocator | Call ItemLocator. | ||||||||||||||
AF22 | PUSH BC | Stash BC and AF on the stack. | ||||||||||||||
AF23 | PUSH AF | |||||||||||||||
AF24 | LD C,$00 | C=00. | ||||||||||||||
AF26 | CALL $AF08 | Call AF08. | ||||||||||||||
AF29 | POP AF | Restore AF and BC from the stack. | ||||||||||||||
AF2A | POP BC | |||||||||||||||
AF2B | LD B,C | B=C. | ||||||||||||||
AF2C | LD C,A | C=A. | ||||||||||||||
AF2D | CALL $AF08 | Call AF08. | ||||||||||||||
AF30 | RET | Return. | ||||||||||||||
View the equivalent code in The Jewels Of Babylon.
|
Prev: AF08 | Up: Map | Next: AF31 |