Prev: 42257 Up: Map Next: 42413
42395: Remove current object from Magic Knight's inventory and add it to a character's then return to main game loop
Used by the routines at 42441, 42479, 42482, 42485 and 42488.
Input
IX Address of first empty entry in a character's current inventory
42395 LD A,(41779) Load Current Object into first empty entry in character's current inventory...
42398 LD (IX+0),A ...
42401 LD C,A Load C with index of Current Object
42402 LD B,5 Load B with 5 (five inventory slots)
42404 LD HL,24848 Point HL at start of Magic Knight's current inventory (carrying)...
42407 CALL 48341 Remove Current Object from Magic Knight's current inventory (carrying) and tidy up remaining entries
42410 JP 41727 Show Magic Knight's current inventory and jump back to main game loop
Prev: 42257 Up: Map Next: 42413