Prev: C0F8 Up: Map Next: C192
C17A: Shoot handler — lighter encounter (entry from lighter_shoot_flag / '0' key)
Reached when the player presses '0' during the lighter encounter (thief_lighter), or jumped to directly from lighter_shoot_flag.
Clears LAST K. Checks the gun flag (var_inv_gun): if zero, calls no_gun_bubble (hero says "Não tenho pistola"). If still unarmed, loops back to the lighter dialogue at thief_lighter_2.
If the hero has the gun, jumps to thief_shot to fire.
Clear LAST K and check gun
shoot_lighter C17A LD A,$00 Clear LAST K ($5C08)
C17C LD ($5C08),A
C17F LD A,($C33D) If no gun (var_inv_gun == 0) → say "Não tenho pistola" (no_gun_bubble)
C182 CP $00
C184 CALL Z,no_gun_bubble
C187 LD A,($C33D) If still no gun (var_inv_gun == 0) → back to lighter ask (thief_lighter_2)
C18A CP $00
C18C JP Z,thief_lighter_2
C18F JP thief_shot Else → fire gun (thief_shot)
Prev: C0F8 Up: Map Next: C192