Prev: 903C Up: Map Next: 9078
9055: INVENTORY
Prints 'you are carrying.' and then either ' nothing' or a list of the objects held by the actor (9EF8), using 9CEC to count them first.
9055 CALL $9C99 Dry run? Then stop here: it always works
9058 LD HL,$ACE9 "you are carrying."
905B CALL $72D4
905E LD A,($B5DB) A = the current actor
9061 CALL $9CEC Are they carrying anything visible at all?
9064 AND A
9065 LD HL,$B22D " nothing"
9068 JP Z,$72D4 If not, say so
906B LD A,($B5DB) Otherwise: A = the actor again
906E LD IX,($B5FC) B = the actor's own room
9072 LD B,(IX+$10)
9075 JP $9EF8 List everything they hold
Prev: 903C Up: Map Next: 9078