AI ​​uses White Flag

This commit is contained in:
Pecusx
2022-07-27 22:40:53 +02:00
parent 3855b0e2cf
commit 807da90fda
2 changed files with 7 additions and 0 deletions
+7
View File
@@ -170,6 +170,13 @@ loop
lda #99 lda #99
sta Energy,x sta Energy,x
NoBatteries NoBatteries
; if very low energy and no battery then use White Flag
lda Energy,x
cmp #5
bcs EnoughEnergy
; lower than 5 units - white flag
lda #ind_White_Flag_____
sta ActiveDefenceWeapon,x
EnoughEnergy EnoughEnergy
; use best defensive :) ; use best defensive :)
; but not allways ; but not allways
BIN
View File
Binary file not shown.