Prev: 41924 Up: Map Next: 42069
42036: Remove current object from current character's inventory and add it to Magic Knight's then return to main game loop
Used by the routines at 42085, 42091, 42105, 42220, 42226, 42232 and 42238.
42036 LD A,(41937) Point IX at current inventory of Current Character...
42039 CALL 45450 ...
42042 PUSH IX Copy value from IX...
42044 POP HL ...to HL
42045 LD A,(41779) Load C with index of Current Object...
42048 LD C,A ...
42049 LD B,5 Load B with 5 (five inventory slots)
42051 CALL 48341 Remove object C from Current Character's inventory
42054 LD A,(41779) Load C with index of Current Object...
42057 LD C,A ...
42058 LD B,5 Load B with 5 (five inventory slots)
42060 LD HL,24848 Point HL at start of Magic Knight's current inventory (carrying)...
42063 CALL 45380 ...and wait for interrupt then load object C into the first empty slot
42066 JP 41727 Show Magic Knight's current inventory and jump back to main game loop
Prev: 41924 Up: Map Next: 42069