![]() |
Routines |
| Prev: C486 | Up: Map | Next: C4A2 |
|
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 | C48F | LD A,B | Call GetObjectLocation to fetch where the original object is. | |
| C490 | CALL GetObjectLocation | |||
| C493 | PUSH BC | Call UpdateObjectLocation to clear the original object. | ||
| C494 | PUSH AF | |||
| C495 | LD C,$00 | |||
| C497 | CALL UpdateObjectLocation | |||
| C49A | POP AF | Restore the new object and its destination from the stack. | ||
| C49B | POP BC | |||
| C49C | LD B,C | Call UpdateObjectLocation to put the new object in its place. | ||
| C49D | LD C,A | |||
| C49E | CALL UpdateObjectLocation | |||
| C4A1 | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: C486 | Up: Map | Next: C4A2 |