mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-21 06:39:40 +02:00
isInventory var
This commit is contained in:
BIN
Binary file not shown.
@@ -203,6 +203,7 @@ OptionsYLoop
|
|||||||
.proc CallPurchaseForEveryTank
|
.proc CallPurchaseForEveryTank
|
||||||
|
|
||||||
mva #0 TankNr
|
mva #0 TankNr
|
||||||
|
sta isInventory
|
||||||
@
|
@
|
||||||
ldx TankNr
|
ldx TankNr
|
||||||
lda SkillTable,x
|
lda SkillTable,x
|
||||||
@@ -295,6 +296,10 @@ CreateList
|
|||||||
; checking if the weapon of the given number is present
|
; checking if the weapon of the given number is present
|
||||||
lda WeaponUnits,x
|
lda WeaponUnits,x
|
||||||
jeq NoWeapon
|
jeq NoWeapon
|
||||||
|
|
||||||
|
bit isInventory
|
||||||
|
;bmi itIsInventory
|
||||||
|
|
||||||
; checking if we can afford buying this weapon
|
; checking if we can afford buying this weapon
|
||||||
ldy tanknr
|
ldy tanknr
|
||||||
lda moneyH,y
|
lda moneyH,y
|
||||||
@@ -304,7 +309,11 @@ CreateList
|
|||||||
cmp WeaponPriceL,x
|
cmp WeaponPriceL,x
|
||||||
@
|
@
|
||||||
jcc TooLittleCash
|
jcc TooLittleCash
|
||||||
|
bcs notInventory
|
||||||
|
|
||||||
|
itIsInventory
|
||||||
|
|
||||||
|
notInventory
|
||||||
; we have enough cash and the weapon can be
|
; we have enough cash and the weapon can be
|
||||||
; added to the list
|
; added to the list
|
||||||
stx temp ; number of weapon will be necessary later
|
stx temp ; number of weapon will be necessary later
|
||||||
|
|||||||
@@ -30,6 +30,8 @@ RoundNrDisplay
|
|||||||
;=====================================================
|
;=====================================================
|
||||||
variablesStart ; zeroing starts here
|
variablesStart ; zeroing starts here
|
||||||
;=====================================================
|
;=====================================================
|
||||||
|
isInventory .ds 1 ; 0 - purchase, $ff - inventory
|
||||||
|
;--------------
|
||||||
drawFunction .ds 1 ; 0 - plot, %10000000 - LineLength (N), %01000000 - DrawCheck (V)
|
drawFunction .ds 1 ; 0 - plot, %10000000 - LineLength (N), %01000000 - DrawCheck (V)
|
||||||
;--------------
|
;--------------
|
||||||
sfx_effect .ds 1
|
sfx_effect .ds 1
|
||||||
|
|||||||
@@ -1058,6 +1058,7 @@ notpressed
|
|||||||
@
|
@
|
||||||
cmp #$0d ; I
|
cmp #$0d ; I
|
||||||
bne @+
|
bne @+
|
||||||
|
mva #$ff isInventory
|
||||||
jsr Purchase
|
jsr Purchase
|
||||||
mva #0 escFlag
|
mva #0 escFlag
|
||||||
jsr SetMainScreen
|
jsr SetMainScreen
|
||||||
|
|||||||
Reference in New Issue
Block a user