diff --git a/scorch.xex b/scorch.xex index 7ce17fd..c301287 100644 Binary files a/scorch.xex and b/scorch.xex differ diff --git a/textproc.asm b/textproc.asm index e6ec647..dbd0afb 100644 --- a/textproc.asm +++ b/textproc.asm @@ -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 diff --git a/variables.asm b/variables.asm index 756257a..b24c535 100644 --- a/variables.asm +++ b/variables.asm @@ -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) ;money players have (maybe one more byte is needed?) .DS [MaxPlayers] -moneyL +moneyL .DS [MaxPlayers] ;---------------------------------------------------- gainH ;how much money player gets after the round