Prev: 27288 Up: Map Next: 27450
27424: Handle Slug Weapon Hit
Used by the routine at UpdateSlug.
A weapon has hit the slug. A smoke bomb kills it, a streamer stuns it and the repellent spray has no effect.
Input
A State of the weapon
IX Slug object
SlugWeaponHit 27424 AND %00111111 Keep only bits 0-5 (the type of the weapon).
27426 CP 18 Jump to SlugWeaponHit_Stun if the weapon is a streamer.
27428 JR Z,SlugWeaponHit_Stun
27430 CP 8 Jump to UpdateSlug_NoWeaponHit if the weapon is the repellent spray.
27432 JP Z,UpdateSlug_NoWeaponHit
27435 LD BC,53 BC=53 (the points for the kill).
27438 CALL AddPointsToScore Add the points to the score using AddPointsToScore.
27441 JP ExplodeBug Jump to ExplodeBug to explode the slug.
SlugWeaponHit_Stun 27444 CALL StunBug Stun the slug using StunBug.
27447 JP UpdateSlug_NoWeaponHit Jump to UpdateSlug_NoWeaponHit.
Prev: 27288 Up: Map Next: 27450