1
0
Selaa lähdekoodia

[fixed] wrong if condition

julzor 5 vuotta sitten
vanhempi
sitoutus
32b4b1cec4
2 muutettua tiedostoa jossa 6 lisäystä ja 2 poistoa
  1. 3 1
      locations/gaptek.qsrc
  2. 3 1
      locations/pharmacy.qsrc

+ 3 - 1
locations/gaptek.qsrc

@@ -360,12 +360,14 @@ if $ARGS[0] = 'buy_bottle_med':
 end
 
 if $ARGS[0] = 'buy_antifungal':
-	if Kandidoz > 0:
+	if Kandidoz >= 30:
 		money -= 1050
 		Kandidoz = 0
 		gs 'stat'
 		$gardmess = '<center><font color="green">You bought 1 <b>Antifungal medication</b>.</font></center><br>You put the money on the counter and immediately open the package and swallow the tablet. A while later, you feel better.'
 		gt 'gaptek', 'start'
+	elseif Kandidoz < 30 and KandidozOnce > 0:
+		'You don''t need the medication right now. Your thrush is currently in remission, taking vitamins will ensure that it stays that way.'
 	else
 		msg '<center>You don''t need any antifungal medication right now.</center>'
 		*nl

+ 3 - 1
locations/pharmacy.qsrc

@@ -76,12 +76,14 @@ if $ARGS[0] = 'shop' or $ARGS[0] = '':
 end
 
 if $ARGS[0] = 'buy_antifungal':
-	if Kandidoz > 0:
+	if Kandidoz >= 30:
 		money -= 1050
 		Kandidoz = 0
 		gs 'stat'
 		$gardmess = '<center><font color="green">You bought 1 <b>Antifungal medication</b>.</font></center><br>You put the money on the counter and immediately open the package and swallow the tablet. A while later, you feel better.'
 		gt 'pharmacy', 'shop'
+	elseif Kandidoz < 30 and KandidozOnce > 0:
+		'You don''t need the medication right now. Your thrush is currently in remission, taking vitamins will ensure that it stays that way.'
 	else
 		msg '<center>You don''t need any antifungal medication right now.</center>'
 		*nl