Prev: D065 Up: Map Next: D09B
D07C: Maroc has destroyed a creature - initialise disintegration
Used by the routines at CD88 and D065.
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
D07C LD A,($EB4E) Creature properties byte
D07F AND %00000111 Filter out bits 3-7 (animations, frames etc.)
D081 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
D083 LD ($EB4E),A ...and re-store
D086 LD A,$01 Set graphic frame offset to 1 (no offset)
D088 LD ($EB50),A
D08B LD A,$62 Address pointer number to disintegration effect graphics (9885)
D08D CALL $E0C2 Set up graphics
Continued from above (disintegrating creature), and also from D074 - 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.
D090 LD A,$00
D092 LD ($EB4C),A Set horizontal movement speed/direction to 0
D095 LD ($EB4D),A Set vertical movement speed/direction to 0
D098 JP $D27D
Prev: D065 Up: Map Next: D09B