![]() |
Routines |
| Prev: C192 | Up: Map | Next: C1D7 |
|
Hero presses '0' while thief is idle (before gun drawn). Checks gun
flag — if no gun, shows "Não tenho pistola" (no_gun_bubble) and returns to
BF3C. If gun present, fires and kills thief.
|
||||
| shoot_thief | C1C2 | LD A,($C33D) | If no gun (var_inv_gun == 0) → "Não tenho pistola" (no_gun_bubble) | |
| C1C5 | CP $00 | |||
| C1C7 | CALL Z,no_gun_bubble | |||
| C1CA | LD A,($C33D) | If still no gun → back to idle loop (thief_encounter_0) | ||
| C1CD | CP $00 | |||
| C1CF | JP Z,thief_encounter_0 | |||
| C1D2 | LD A,$00 | A = 0 | ||
| C1D4 | LD ($C34A),A | Clear PRNG2 (var_prng2) | ||
| Prev: C192 | Up: Map | Next: C1D7 |