mirror of
https://github.com/pkali/scorch_src.git
synced 2026-05-20 22:34:21 +02:00
Cyborg's battery SFX and optimization
This commit is contained in:
@@ -219,18 +219,12 @@ AngleTable ; 16 bytes ;ba w $348b L$3350
|
||||
lda Energy,x
|
||||
cmp #60
|
||||
bcs EnoughEnergy
|
||||
; lower than 30 units - check battery
|
||||
; lower than 60 units - check battery
|
||||
ldy #ind_Battery
|
||||
lda (temp),y ; has address of TanksWeaponsTable
|
||||
cmp #2
|
||||
bcc LowBatteries
|
||||
; we have more than 2 batteries - use one
|
||||
sec
|
||||
sbc #1
|
||||
sta (temp),y
|
||||
lda #99
|
||||
sta Energy,x
|
||||
jsr MaxForceCalculate
|
||||
bcs UseBattery.UseIt
|
||||
EnoughEnergy
|
||||
LowBatteries
|
||||
; if low energy ten use battery (no RTS :) )
|
||||
@@ -262,6 +256,7 @@ EnoughEnergy
|
||||
lda (temp),y ; has address of TanksWeaponsTable
|
||||
beq NoBatteries
|
||||
; we have batteries - use one
|
||||
UseIt
|
||||
sec
|
||||
sbc #1
|
||||
sta (temp),y
|
||||
|
||||
+1
-1
@@ -639,7 +639,7 @@ CreditsStart
|
||||
dta d" "*
|
||||
dta d"Ideas, help and QA"^
|
||||
dta d"Bocianu, Probabilitydragon,"^
|
||||
dta d"EnderDude, Dracon, TDC,"^
|
||||
dta d"EnderDude, Dracon, Jakub Husak, TDC,"^
|
||||
dta d"Beeblebrox, KrzysRog, lopezpb,"^
|
||||
dta d"brad-colbert, archon800, nowy80,"^
|
||||
dta d"Shaggy the Atarian, RetroBorsuk, ZPH"
|
||||
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
Reference in New Issue
Block a user