![]() |
Routines |
| Prev: 50310 | Up: Map | Next: 50338 |
|
Used by the routines at Action_ExamineItem, Handler_NotCarryingIt, Action_Give, Handler_ApplyCombatResult, Handler_ApplySecondCombatResult, Handler_FightOpponent, Handler_KillTheWarrior, Handler_KillTheWitch, Handler_KillTheBlacksmith, Action_Open, Handler_OpenTheChest, Action_Close, Action_Wear, Action_Tie and Action_Unlock.
Put the new object where the old one was, and clear the old one.
|
||||
| TransformItem | 50319 | LD A,B | Call GetObjectLocation to fetch where the original object is. | |
| 50320 | CALL GetObjectLocation | |||
| 50323 | PUSH BC | Call UpdateObjectLocation to clear the original object. | ||
| 50324 | PUSH AF | |||
| 50325 | LD C,0 | |||
| 50327 | CALL UpdateObjectLocation | |||
| 50330 | POP AF | Restore the new object and its destination from the stack. | ||
| 50331 | POP BC | |||
| 50332 | LD B,C | Call UpdateObjectLocation to put the new object in its place. | ||
| 50333 | LD C,A | |||
| 50334 | CALL UpdateObjectLocation | |||
| 50337 | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: 50310 | Up: Map | Next: 50338 |