Prev: 53349 Up: Map Next: 53403
53372: Maroc has destroyed a creature - initialise disintegration
Used by the routines at 52616 and 53349.
Creature has been hit by Maroc's missile/bolt/weapon, or wraith has collided with Maroc when he is protected by WRAITHBANE.
Maroc destroying goblins with a missile
53372 LD A,(60238) Creature properties byte
53375 AND %00000111 Filter out bits 3-7 (animations, frames etc.)
53377 OR %00100101 Set bits:
  • 0 (indicates item on-screen)
  • 2 (item will need erasing)
  • 5 (indiactes disintegrating creature)
Setting bit 5 also ensures (a) the disintegration animation isn't stopped for the FREEZE spell, and (b) the creature will stop moving (e.g. towards Maroc) while disintegrating
53379 LD (60238),A ...and re-store
53382 LD A,1 Set graphic frame offset to 1 (no offset)
53384 LD (60240),A
53387 LD A,98 Address pointer number to disintegration effect graphics (39045)
53389 CALL 57538 Set up graphics
Continued from above (disintegrating creature), and also from 53364 - if a creature has reached Maroc's position, it will stop moving and continue to drain his energy.
If it's a wraith that and it's been destroyed by Maroc's WRAITHBANE, the disintegration graphic is animated but does not move.
53392 LD A,0
53394 LD (60236),A Set horizontal movement speed/direction to 0
53397 LD (60237),A Set vertical movement speed/direction to 0
53400 JP 53885
Prev: 53349 Up: Map Next: 53403