Prev: 8134 Up: Map Next: 817C
814B: The wizard fires his spell
Used by the routine at UPDATE_WIZARD.
The wizard's fire routine, called from UPDATE_WIZARD. The same tests as SERF_FIRE -- refuse if a shot is already in the air or IN_DOORWAY is set, make a noise, launch -- with SOUND_SWEEP_DOWN for its noise and sprite $34 for the spell.
WIZARD_FIRE 814B LD A,($EA98)
814E AND A
814F RET NZ
8150 LD A,($5E2D)
8153 AND A
8154 RET NZ
8155 CALL SOUND_SWEEP_DOWN
8158 CALL FIRE_WEAPON
815B LD HL,$EA98
815E LD (HL),$34
This entry point is used by the routines at KNIGHT_FIRE and SERF_FIRE.
LAUNCH_SHOT 8160 INC HL
8161 LD A,(IX+$01)
8164 LD (HL),A
8165 INC HL
8166 INC HL
8167 LD A,(IX+$03)
816A LD (HL),A
816B INC HL
816C LD A,(IX+$04)
816F LD (HL),A
8170 PUSH IX
8172 LD IX,$EA98
8176 CALL DRAW_THING
8179 POP IX
817B RET
Prev: 8134 Up: Map Next: 817C