decrease activated defensives #26
This commit is contained in:
BIN
Binary file not shown.
@@ -780,6 +780,16 @@ invSelectDef
|
|||||||
tay
|
tay
|
||||||
ldx tankNr
|
ldx tankNr
|
||||||
sta ActiveDefenceWeapon,x
|
sta ActiveDefenceWeapon,x
|
||||||
|
; decrease number of defensives
|
||||||
|
lda TanksWeaponsTableL,x
|
||||||
|
sta weaponPointer
|
||||||
|
lda TanksWeaponsTableH,x
|
||||||
|
sta weaponPointer+1
|
||||||
|
lda (weaponPointer),y
|
||||||
|
sec
|
||||||
|
sbc #1
|
||||||
|
sta (weaponPointer),y
|
||||||
|
|
||||||
lda DefensiveEnergy,y
|
lda DefensiveEnergy,y
|
||||||
sta ShieldEnergy,x
|
sta ShieldEnergy,x
|
||||||
rts
|
rts
|
||||||
|
|||||||
Reference in New Issue
Block a user