diff --git a/constants.asm b/constants.asm index 0c263e5..52e2379 100644 --- a/constants.asm +++ b/constants.asm @@ -263,7 +263,7 @@ WeaponPriceH ; weapons prices (tables with prices of weapons) .by >price_Ton_of_Dirt____ .by >price_Liquid_Dirt____ .by >price_Dirt_Charge____ - .by >price_Earth_Disrupter + .by >price_Buy_me_________ .by >price_Plasma_Blast___ .by >price_Laser__________ .by >price______________33 @@ -329,7 +329,7 @@ WeaponPriceL .by 0 +GetRandomDefensive + randomize ind_Battery________ ind_Nuclear_Winter_ + tay + lda WeaponUnits,y ; check if weapon exist + beq GetRandomDefensive + +NoSuprise lda TanksWeaponsTableL,x sta weaponPointer lda TanksWeaponsTableH,x @@ -810,8 +837,6 @@ positiveMoney lda #99 sta (weaponPointer),y LessThan100 - sty LastWeapon ; store last purchased weapon - ; because we must put screen pointer next to it mva #0 PositionOnTheList ; to move the pointer to the top when no more monies jmp Purchase.AfterPurchase