mirror of
https://github.com/pkali/scorch_src.git
synced 2026-05-21 14:49:46 +02:00
Energy updates on status bar after AI uses battery
This commit is contained in:
@@ -1900,6 +1900,7 @@ ActiveDefence
|
|||||||
sta statusBuffer+80+39
|
sta statusBuffer+80+39
|
||||||
NoDefenceName
|
NoDefenceName
|
||||||
|
|
||||||
|
DisplayEnergy
|
||||||
;=========================
|
;=========================
|
||||||
;displaying the energy of a tank
|
;displaying the energy of a tank
|
||||||
;=========================
|
;=========================
|
||||||
|
|||||||
@@ -335,6 +335,7 @@ displayloop1
|
|||||||
;-------------------------------------------------
|
;-------------------------------------------------
|
||||||
.proc DisplayStatus
|
.proc DisplayStatus
|
||||||
;-------------------------------------------------
|
;-------------------------------------------------
|
||||||
|
DisplayEnergy
|
||||||
DisplayAngle
|
DisplayAngle
|
||||||
ldx TankNr
|
ldx TankNr
|
||||||
rts
|
rts
|
||||||
|
|||||||
@@ -247,9 +247,9 @@ LowBatteries
|
|||||||
lda #ind_White_Flag
|
lda #ind_White_Flag
|
||||||
sta ActiveDefenceWeapon,x
|
sta ActiveDefenceWeapon,x
|
||||||
jsr PutTankNr ; and draw tank witch Flag
|
jsr PutTankNr ; and draw tank witch Flag
|
||||||
clc
|
|
||||||
EnoughEnergy
|
EnoughEnergy
|
||||||
rts ; Carry = 0 - White Flag , Carry = 1 - We don't give up :)
|
jsr DisplayStatus.DisplayEnergy
|
||||||
|
rts
|
||||||
.endp
|
.endp
|
||||||
;
|
;
|
||||||
.proc UseBattery
|
.proc UseBattery
|
||||||
|
|||||||
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user