Prev: 6A98 Up: Map Next: 6B3A
6B20: 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 6B20 AND %00111111 Keep only bits 0-5 (the type of the weapon).
6B22 CP $12 Jump to SlugWeaponHit_Stun if the weapon is a streamer.
6B24 JR Z,SlugWeaponHit_Stun
6B26 CP $08 Jump to UpdateSlug_NoWeaponHit if the weapon is the repellent spray.
6B28 JP Z,UpdateSlug_NoWeaponHit
6B2B LD BC,$0035 BC=35 (the points for the kill).
6B2E CALL AddPointsToScore Add the points to the score using AddPointsToScore.
6B31 JP ExplodeBug Jump to ExplodeBug to explode the slug.
SlugWeaponHit_Stun 6B34 CALL StunBug Stun the slug using StunBug.
6B37 JP UpdateSlug_NoWeaponHit Jump to UpdateSlug_NoWeaponHit.
Prev: 6A98 Up: Map Next: 6B3A