Prev: D727 Up: Map Next: D76C
D74C: The update routine for the bonus of graphic 3: all three hits back
The same as SPEED_BONUS, except that touching it gives the knight back all three hits of this life (HITS), with sound effect 2 for seven turns. Drawn by the build, the picture is a flask.
Input
IX The bonus's record (BONUS)
HITS_BONUS D74C LD C,$04 Is the knight within three cells of it?
D74E CALL NEAR_KNIGHT
D751 JR C,HITS_BONUS_0
D753 LD (IX+$00),$00 No: the bonus is gone
D757 RET
HITS_BONUS_0 D758 CALL TOUCHING_KNIGHT Yes: done unless he is touching it
D75B RET NC
D75C LD (IX+$00),$0C Touched: it vanishes (VANISHING)
D760 LD A,$03 Three hits again
D762 LD (HITS),A
D765 LD HL,$0207 Sound effect 2, for seven turns
D768 LD (EFFECT_TIME),HL
D76B RET
Prev: D727 Up: Map Next: D76C