1
0
Selaa lähdekoodia

[fixed] money not being taken for using the pool in fit.
[changed] buying classes actions to show when you aready have classes.

3xpurt 4 vuotta sitten
vanhempi
säilyke
8010a8917a
1 muutettua tiedostoa jossa 9 lisäystä ja 5 poistoa
  1. 9 5
      locations/fit.qsrc

+ 9 - 5
locations/fit.qsrc

@@ -51,12 +51,16 @@ if $ARGS[0] = 'start':
 
 	if abonement > 0:
 		act 'Go to the dressing room': gt 'fit', 'dressing room'
-	else
-		act 'Use the pool (100 <b>₽</b>)': gt 'fit', 'dressing room'
+	elseif money > 100:
+		act 'Use the pool (100 <b>₽</b>)':
+			money -= 100
+			gs 'stat'
+			gt 'fit', 'dressing room'
+		end
 	end
 
 	if money >= 3000:
-		act 'Buy 30 classes (3,000 <b>₽</b>)':
+		act ''+iif(abonement > 0, 'Buy an extra','Buy')+' 30 classes (3,000 <b>₽</b>)':
 			cla
 			menu_off = 1
 			money -= 3000
@@ -68,7 +72,7 @@ if $ARGS[0] = 'start':
 	end
 
 	if money >= 2250:
-		act 'Buy 20 classes (2,250 <b>₽</b>)':
+		act ''+iif(abonement > 0, 'Buy an extra','Buy ')+' 20 classes (2,250 <b>₽</b>)':
 			cla
 			menu_off = 1
 			money -= 2250
@@ -80,7 +84,7 @@ if $ARGS[0] = 'start':
 	end
 
 	if money >= 1500:
-		act 'Buy 10 classes (1,500 <b>₽</b>)':
+		act ''+iif(abonement > 0, 'Buy an extra','Buy ')+' 10 classes (1,500 <b>₽</b>)':
 			cla
 			menu_off = 1
 			money -= 1500