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
BIN
View File
Binary file not shown.
+10
View File
@@ -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
+1 -1
View File
@@ -49,7 +49,7 @@ moneyH ;we place zero at the end of prices and money
;and have range from 0 to 99990 (not too much) ;and have range from 0 to 99990 (not too much)
;money players have (maybe one more byte is needed?) ;money players have (maybe one more byte is needed?)
.DS [MaxPlayers] .DS [MaxPlayers]
moneyL moneyL
.DS [MaxPlayers] .DS [MaxPlayers]
;---------------------------------------------------- ;----------------------------------------------------
gainH ;how much money player gets after the round gainH ;how much money player gets after the round