Prev: 54385 Up: Map Next: 54439
54421: Is The Character Wearing The China Man Disguise?
Used by the routines at 51606, 52162, 52265 and IsSherlockTheChinaMan.
Input
A Character ID
Output
A Either 255 for when the character isn't the China man, else the attribute byte
IsCharacterTheChinaMan 54421 CP 255 Return if the character is inactive (255).
54423 RET Z
54424 CALL FetchObjectDataPointer Call FetchObjectDataPointer.
54427 LD A,1 Is the character the "China Man"?
54429 CP (IX+0)
54432 LD A,255 Set a default in A of 255 for when the character isn't wearing the China mans disguise.
54434 RET NZ Return if the character isn't the "China Man".
The character is wearing the disguise, so return with the attribute byte instead.
54435 LD A,(IX+15) A=*IX+15.
54438 RET Return.
Prev: 54385 Up: Map Next: 54439