Prev: 45019 Up: Map Next: 45125
45080: AndroidInfoCheck
Room-info hook (RefreshRoomInfo) when the Android is in the viewed room (caller's Z flag): offer ATTACK unless the viewed crew member's own attack countdown is still running.
Used by the routine at 36793.
45080 RET NZ not the Android's room: done
45081 PUSH IX
45083 PUSH DE
45084 LD A,(31241) IX -> the viewed slot's record
45087 ADD A,A
45088 ADD A,A
45089 ADD A,A
45090 LD E,A
45091 LD D,0
45093 LD IX,29566
45097 ADD IX,DE
45099 LD A,(IX+3) in combat (state 4)?
45102 CP 4
45104 JR Z,45111
45106 POP DE no: offer ATTACK
45107 POP IX
45109 JR 45119
45111 LD A,(IX+0) countdown still running?
45114 OR A
45115 POP DE
45116 POP IX
45118 RET NZ yes: leave the view alone
45119 CALL 45278 swap a live "RmveGrille" pick to ATTACK
45122 JP 36844 and continue the info refresh
Prev: 45019 Up: Map Next: 45125