Minor change in point counting.

This commit is contained in:
Pecusx
2022-11-15 17:05:37 +01:00
parent 22fc555f8e
commit 8086a78d79
3 changed files with 9 additions and 6 deletions
+9 -6
View File
@@ -824,26 +824,29 @@ NoPlayerNoDeath
;clear NoDeathCounter here ;clear NoDeathCounter here
sta noDeathCounter sta noDeathCounter
mva #sfx_death_begin sfx_effect
; display defensive text here (well, defensive ; display defensive text here (well, defensive
; is not the real meaning, it should be pre-death, ; is not the real meaning, it should be pre-death,
; but I am too lazy to change names of variables) ; but I am too lazy to change names of variables)
; in X there is a number of tank that died ; in X there is a number of tank that died
lda #77 ; mumber of defensive text after BFG!
bit AfterBFGflag ; check BFG flag
bmi TextAfterBFG
; if BFG then no points for dead tanks ...
lda CurrentResult lda CurrentResult
clc clc
adc ResultsTable,x adc ResultsTable,x
sta ResultsTable,x sta ResultsTable,x
inc CurrentResult ;inc CurrentResult
mva #sfx_death_begin sfx_effect
lda #77 ; mumber of defensive text after BFG!
bit AfterBFGflag
bmi TextAfterBFG
; RandomizeDeffensiveText ; RandomizeDeffensiveText
randomize talk.NumberOfOffensiveTexts (talk.NumberOfDeffensiveTexts+talk.NumberOfOffensiveTexts-1) randomize talk.NumberOfOffensiveTexts (talk.NumberOfDeffensiveTexts+talk.NumberOfOffensiveTexts-1)
TextAfterBFG TextAfterBFG
sta TextNumberOff sta TextNumberOff
inc CurrentResult ; ... but increase result of winner (BFG)
ldy TankTempY ldy TankTempY
mva #$ff plot4x4color mva #$ff plot4x4color
jsr DisplayOffensiveTextNr jsr DisplayOffensiveTextNr
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.