Prev: 37362 Up: Map Next: 37395
37374: Handle Room Item
The handler for the items in a room that do nothing. The attributes of the cells that it covers are set by SetGraphicAttributes every time, but the graphic is only drawn (by DrawItemGraphic) when GameFlags is zero.
Input
IX The item entity
HandlerRoomItem 37374 LD E,(IX+3) Fetch the X position of the item.
37377 LD D,(IX+4) Fetch the Y position of the item.
37380 DEC D Move up one pixel.
37381 LD C,(IX+0) Fetch the graphic of the item.
37384 LD B,(IX+5) Fetch the attribute of the item.
37387 CALL SetGraphicAttributes Call SetGraphicAttributes to set the attributes.
37390 LD A,(24084) Fetch the game flags from GameFlags.
37393 AND A Test whether any of the game flags are set.
37394 RET NZ Return if they are.
Continue on to DrawItemGraphic.
Prev: 37362 Up: Map Next: 37395