mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-21 06:39:40 +02:00
inventory offensive weapons selection #26
This commit is contained in:
+15
-7
@@ -670,7 +670,7 @@ SecondSelected
|
||||
weaponPtr = temp
|
||||
isPriceZero = tempXRoller
|
||||
bit isInventory
|
||||
bmi @+
|
||||
bmi inventorySelect
|
||||
|
||||
lda WhichList
|
||||
bne PurchaseDeffensive
|
||||
@@ -726,13 +726,21 @@ LessThan100
|
||||
; additional check for unfinished game
|
||||
; if weapon was free (price == $0)
|
||||
; then have nothing...
|
||||
lda isPriceZero
|
||||
bne @+
|
||||
lda #0
|
||||
sta (weaponPtr),y
|
||||
@
|
||||
mva #0 PositionOnTheList ; to move the pointer to the top when no more monies
|
||||
; lda isPriceZero
|
||||
; bne @+
|
||||
; lda #0
|
||||
; sta (weaponPtr),y
|
||||
@ mva #0 PositionOnTheList ; to move the pointer to the top when no more monies
|
||||
jmp Purchase.AfterPurchase
|
||||
|
||||
inventorySelect
|
||||
ldy PositionOnTheList
|
||||
lda IndexesOfWeaponsL1,y
|
||||
ldx tankNr
|
||||
sta activeWeapon,x
|
||||
|
||||
rts
|
||||
|
||||
.endp
|
||||
|
||||
.proc PutLitteChar
|
||||
|
||||
Reference in New Issue
Block a user