Prev: 54434 Up: Map Next: 54480
54456: Paint red areas outside current character's room if IX points to current character's complex state data
Used by the routines at 54383, 54419, 55433 and 55616.
Input
IX Address of complex state data for an entity
54456 LD A,(34208) Set zero flag if Drutt-mode flag is reset...
54459 BIT 0,A ...
54461 LD A,(IX+8) Load entity class value of entity at IX into A
54464 JR NZ,54471 If zero flag is reset (i.e. Drutt mode) then skip ahead to 54471
54466 CP 31 If entity class is 31 (i.e. Berk)...
54468 JR Z,54474 ...then paint red areas outside accessible areas of current character's current room and return
54470 RET Return
54471 CP 18 If entity class is not 18 (i.e. Drutt)...
54473 RET NZ ...then return
54474 PUSH HL Store HL
54475 CALL 53887 Paint red areas outside accessible areas of current character's current room
54478 POP HL Restore HL
54479 RET Return
Prev: 54434 Up: Map Next: 54480