New funky defensive weapon - Long Barrel

This commit is contained in:
Pecusx
2022-08-11 10:46:23 +02:00
parent 22785ecdd5
commit 950d6922b4
7 changed files with 39 additions and 17 deletions
+7
View File
@@ -837,6 +837,12 @@ invSelectDef
mva #99 Energy,x
bne DecreaseDefensive ; bypass activation
NotBattery
cmp #ind_Long_Barrel____
bne NotBarrel
; if activate long barrel, we do it differently too
mva #LongBarrel BarrelLength,x
bne DecreaseDefensive ; bypass activation
NotBarrel
cmp #ind_White_Flag_____
bne NotWhiteFlag
cmp ActiveDefenceWeapon,x
@@ -1959,6 +1965,7 @@ MakeAllTanksVisible
sta ActiveDefenceWeapon,x
dex
bpl MakeAllTanksVisible
jsr SetStandardBarrels
; start music and animations
lda #song_ending_looped