decrease activated defensives #26

This commit is contained in:
2022-06-15 00:11:01 -04:00
parent 8ab450ff48
commit b19d218670
3 changed files with 11 additions and 1 deletions
+10
View File
@@ -780,6 +780,16 @@ invSelectDef
tay
ldx tankNr
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
sta ShieldEnergy,x
rts