mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-20 22:33:43 +02:00
Simple shield added
Only for test. Now all players has active Shield before game.
This commit is contained in:
+7
-1
@@ -665,8 +665,14 @@ DistanceCheckLoop
|
||||
adc #1
|
||||
:3 asl
|
||||
tay
|
||||
; check shields
|
||||
lda ActiveDefenceWeapon,x
|
||||
cmp #56 ; shield
|
||||
beq UseShield
|
||||
jsr DecreaseEnergyX
|
||||
|
||||
jmp EndOfDistanceCheckLoop
|
||||
UseShield
|
||||
mva #0 ActiveDefenceWeapon,x ; deactivate defense weapons
|
||||
TankIsNotWithinTheRange
|
||||
EndOfDistanceCheckLoop
|
||||
txa
|
||||
|
||||
Reference in New Issue
Block a user