Better Shooter strategy

Poolshark and Tosser no longer cheat :)
This commit is contained in:
Pecusx
2022-07-11 21:43:07 +02:00
parent e94a356e6d
commit 6868eb8626
4 changed files with 19 additions and 3 deletions
+2
View File
@@ -193,6 +193,7 @@ EnoughEnergy
sta ShieldEnergy,x
; decrease in inventory
clc
lda (temp),y
sbc #1
sta (temp),y ; has address of TanksWeaponsTable
NoUseDefensive
@@ -306,6 +307,7 @@ AngleTable ; 16 bytes ;ba w $348b L$3350
sta ShieldEnergy,x
; decrease in inventory
clc
lda (temp),y
sbc #1
sta (temp),y
DefensiveInUse
+16 -2
View File
@@ -446,8 +446,8 @@ AfterManualShooting
cmp #ind_Nuclear_Winter_
bne StandardShoot
ShootAtomicWinter
; --- nuclear winter ---
jsr NuclearWinter
; --- atomic winter ---
jsr AtomicWinter
jmp NextPlayerShoots ; and we skip shoot
ShootWhiteFlag
; --- white flag ---
@@ -681,6 +681,20 @@ MetodOfDeath
jsr ExplosionDirect
mva #sfx_silencer sfx_effect
; Clear current Shooter settings. After that, Shooter will "search" for the target again
ldx NumberOfPlayers
dex
@ lda skillTable,x
cmp #2 ; clear variables only if Shooter
bne NotShooter
lda #0
sta PreviousAngle,x
sta PreviousEnergyL,x
sta PreviousEnergyH,x
NotShooter
dex
bpl @-
; jump to after explosion routines (soil fallout, etc.)
; After going through these routines we are back
; to checking if a tank exploded and maybe we have
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -2514,7 +2514,7 @@ MIRValreadyAll
.endp
; -------------------------------------------------
.proc NuclearWinter
.proc AtomicWinter
; -------------------------------------------------
; This routine is run from inside of the main loop
; and replaces Shoot and Flight routines