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 sta ShieldEnergy,x
; decrease in inventory ; decrease in inventory
clc clc
lda (temp),y
sbc #1 sbc #1
sta (temp),y ; has address of TanksWeaponsTable sta (temp),y ; has address of TanksWeaponsTable
NoUseDefensive NoUseDefensive
@@ -306,6 +307,7 @@ AngleTable ; 16 bytes ;ba w $348b L$3350
sta ShieldEnergy,x sta ShieldEnergy,x
; decrease in inventory ; decrease in inventory
clc clc
lda (temp),y
sbc #1 sbc #1
sta (temp),y sta (temp),y
DefensiveInUse DefensiveInUse
+16 -2
View File
@@ -446,8 +446,8 @@ AfterManualShooting
cmp #ind_Nuclear_Winter_ cmp #ind_Nuclear_Winter_
bne StandardShoot bne StandardShoot
ShootAtomicWinter ShootAtomicWinter
; --- nuclear winter --- ; --- atomic winter ---
jsr NuclearWinter jsr AtomicWinter
jmp NextPlayerShoots ; and we skip shoot jmp NextPlayerShoots ; and we skip shoot
ShootWhiteFlag ShootWhiteFlag
; --- white flag --- ; --- white flag ---
@@ -681,6 +681,20 @@ MetodOfDeath
jsr ExplosionDirect jsr ExplosionDirect
mva #sfx_silencer sfx_effect 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.) ; jump to after explosion routines (soil fallout, etc.)
; After going through these routines we are back ; After going through these routines we are back
; to checking if a tank exploded and maybe we have ; 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 .endp
; ------------------------------------------------- ; -------------------------------------------------
.proc NuclearWinter .proc AtomicWinter
; ------------------------------------------------- ; -------------------------------------------------
; This routine is run from inside of the main loop ; This routine is run from inside of the main loop
; and replaces Shoot and Flight routines ; and replaces Shoot and Flight routines