Better gifts (Buy me!)

This commit is contained in:
Pecusx
2022-11-15 16:37:00 +01:00
parent a33d7d541d
commit 22fc555f8e
7 changed files with 25 additions and 7 deletions
+1 -1
View File
@@ -510,7 +510,7 @@ NamesOfWeapons ;the comment is an index in the tables
dta d"Ton of Dirt " ; 27
dta d"Liquid Dirt " ; 28
dta d"Dirt Charge " ; 29
dta d"Buy me! " ; 30
dta d"Best F...g Gifts" ; 30
dta d"Laser " ; 31
;------defensives
dta d"White Flag " ; 32
+5
View File
@@ -484,6 +484,7 @@ NoGameOverYet
jsr SetPMWidth
lda #0
sta AfterBFGflag ; reset BFG flag
sta COLOR2 ; status line "off"
sta COLOR1
@@ -836,8 +837,12 @@ NoPlayerNoDeath
inc CurrentResult
mva #sfx_death_begin sfx_effect
lda #77 ; mumber of defensive text after BFG!
bit AfterBFGflag
bmi TextAfterBFG
; RandomizeDeffensiveText
randomize talk.NumberOfOffensiveTexts (talk.NumberOfDeffensiveTexts+talk.NumberOfOffensiveTexts-1)
TextAfterBFG
sta TextNumberOff
ldy TankTempY
mva #$ff plot4x4color
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+2 -4
View File
@@ -795,11 +795,9 @@ Suprise ; get a random weapon
bcc GetRandomDefensive
GetRandomOffensive
randomize ind_Missile________ last_offensive_____
cmp #ind_Buy_me_________
beq GetRandomOffensive
tay
; lda WeaponUnits,y ; check if weapon exist
;cmp #ind_Buy_me_________ ; buy me do not buy buy me :)
;beq GetRandomOffensive
tay
bne NoSuprise ; Y always <> 0
GetRandomDefensive
randomize ind_Battery________ last_defensive_____
+1
View File
@@ -279,6 +279,7 @@ UpNdown .DS 1
temptankX .DS 2
temptankNr .DS 1
AfterBFGflag .DS 1
;----------------------------------------------------
;Variables from textproc.s65
+16 -2
View File
@@ -49,7 +49,7 @@ ExplosionRoutines
.word tonofdirt-1 ;Ton_of_Dirt____;_27
.word liquiddirt-1 ;Liquid_Dirt____;_28
.word dirtcharge-1 ;Dirt_Charge____;_29
.word VOID-1 ;Buy_me_________;_30
.word BFG-1 ;Buy_me_________;_30
.word laser-1 ;Laser__________;_31
VOID
@@ -57,7 +57,20 @@ tracer
rts
.endp
; ------------------------
.proc BFG
; Kill all :)
ldx NumberOfPlayers
dex
lda #$00
CheckNextTankBFG
cpx TankNr ; not me!
beq @+
sta Energy,x
@ dex
bpl CheckNextTankBFG
stx AfterBFGflag ; $ff
rts
.endp
; ------------------------
.proc babymissile
mva #sfx_baby_missile sfx_effect
@@ -1396,6 +1409,7 @@ pressedTAB
jmp BeforeFire
CTRLpressedTAB
mva #sfx_purchase sfx_effect
ldx TankNr
lda ActiveWeapon,x
cmp #first_offensive____ ; #0