Prev: B9BE Up: Map Next: BA09
B9E6: Update color attribute for weapon icon on HUD
Used by the routine at 9470.
B9E6 LD A,($A1DB) Return if HDU flash active
B9E9 CP $FF
B9EB RET NZ
B9EC LD HL,($A1AE) Set HL to the pointer into attribute file for the weapon icon
B9EF CALL $B9F9 Handle icon weapon color change
B9F2 LD HL,($A1AE) Set HL to the pointer into attribute buffer for the weapon icon
B9F5 LD DE,$8CFF
B9F8 ADD HL,DE
B9F9 LD A,($A1AD) Set A the color attribute based on weapon energy level
B9FC INC A
B9FD INC A
Set weapon icon in HUD the color attribute at A
B9FE LD (HL),A Set color attribute for first row
B9FF INC HL
BA00 LD (HL),A
BA01 LD DE,$001F Point HL to the next row
BA04 ADD HL,DE
BA05 LD (HL),A Set color attribute for the second row
BA06 INC HL
BA07 LD (HL),A
BA08 RET
Prev: B9BE Up: Map Next: BA09