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
|
||||||
|
|||||||
+1
-1
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user