mirror of
https://github.com/pkali/scorch_src.git
synced 2026-05-21 06:39:46 +02:00
decrease activated defensives #26
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user