mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-20 22:33:43 +02:00
And more bytes :)
This commit is contained in:
@@ -20,6 +20,16 @@ AIRoutines
|
|||||||
.word Spoiler-1 ;Spoiler
|
.word Spoiler-1 ;Spoiler
|
||||||
.word Cyborg-1 ;Cyborg
|
.word Cyborg-1 ;Cyborg
|
||||||
.word Unknown-1 ;Unknown
|
.word Unknown-1 ;Unknown
|
||||||
|
;----------------
|
||||||
|
PurchaseAIRoutines
|
||||||
|
.word MoronPurchase-1
|
||||||
|
.word ShooterPurchase-1 ;ShooterPurchase
|
||||||
|
.word PoolsharkPurchase-1 ;PoolsharkPurchase
|
||||||
|
.word TosserPurchase-1 ;TosserPurchase
|
||||||
|
.word TosserPurchase-1 ;ChooserPurchase
|
||||||
|
.word CyborgPurchase-1 ;SpoilerPurchase
|
||||||
|
.word CyborgPurchase-1 ;CyborgPurchase
|
||||||
|
.word TosserPurchase-1 ;UnknownPurchase
|
||||||
|
|
||||||
;----------------------------------------------
|
;----------------------------------------------
|
||||||
.proc ArtificialIntelligence ;
|
.proc ArtificialIntelligence ;
|
||||||
@@ -29,10 +39,9 @@ AIRoutines
|
|||||||
;----------------------------------------------
|
;----------------------------------------------
|
||||||
asl
|
asl
|
||||||
tay
|
tay
|
||||||
:2 dey ;credit KK
|
lda AIRoutines-1,y ; -1 and -2 because AI players are numbered from 1 not from 0 (Human)
|
||||||
lda AIRoutines+1,y
|
|
||||||
pha
|
pha
|
||||||
lda AIRoutines,y
|
lda AIRoutines-2,y
|
||||||
pha
|
pha
|
||||||
; it's no necessary - PrepareAIShoot is next proc :)
|
; it's no necessary - PrepareAIShoot is next proc :)
|
||||||
; jsr PrepareAIShoot
|
; jsr PrepareAIShoot
|
||||||
@@ -845,6 +854,7 @@ skipThisPlayer
|
|||||||
TankHit
|
TankHit
|
||||||
rts
|
rts
|
||||||
.endp
|
.endp
|
||||||
|
|
||||||
;----------------------------------------------
|
;----------------------------------------------
|
||||||
.proc PurchaseAI ;
|
.proc PurchaseAI ;
|
||||||
; A - skill of the TankNr
|
; A - skill of the TankNr
|
||||||
@@ -853,25 +863,13 @@ TankHit
|
|||||||
;----------------------------------------------
|
;----------------------------------------------
|
||||||
asl
|
asl
|
||||||
tax
|
tax
|
||||||
:2 dex ;credit KK
|
lda PurchaseAIRoutines-1,x ; -1 and -2 because AI players are numbered from 1 not from 0 (Human)
|
||||||
lda PurchaseAIRoutines+1,x
|
|
||||||
pha
|
pha
|
||||||
lda PurchaseAIRoutines,x
|
lda PurchaseAIRoutines-2,x
|
||||||
pha
|
pha
|
||||||
rts
|
; rts ; MoronPurchase has rts :)
|
||||||
.endp
|
.endp
|
||||||
|
|
||||||
;----------------
|
|
||||||
PurchaseAIRoutines
|
|
||||||
.word MoronPurchase-1
|
|
||||||
.word ShooterPurchase-1 ;ShooterPurchase
|
|
||||||
.word PoolsharkPurchase-1 ;PoolsharkPurchase
|
|
||||||
.word TosserPurchase-1 ;TosserPurchase
|
|
||||||
.word TosserPurchase-1 ;ChooserPurchase
|
|
||||||
.word CyborgPurchase-1 ;SpoilerPurchase
|
|
||||||
.word CyborgPurchase-1 ;CyborgPurchase
|
|
||||||
.word TosserPurchase-1 ;UnknownPurchase
|
|
||||||
|
|
||||||
;----------------------------------------------
|
;----------------------------------------------
|
||||||
.proc MoronPurchase
|
.proc MoronPurchase
|
||||||
;Moron buys nothing
|
;Moron buys nothing
|
||||||
|
|||||||
BIN
Binary file not shown.
BIN
Binary file not shown.
Reference in New Issue
Block a user