浏览代码

[added] more subscription options to city fitness centre (still need to do monthly sub, and work out a way to prevent exploiting it).
[changed] tidied up the entry description to the gym area, and now the action menu subscription options only show when you don't have a sub, to prevent accidentally spending more money (can still buy via main screen).
[changed] exit gym to the top.

3xpurt 5 年之前
父节点
当前提交
87017f484a
共有 1 个文件被更改,包括 61 次插入22 次删除
  1. 61 22
      locations/fit.qsrc

+ 61 - 22
locations/fit.qsrc

@@ -12,34 +12,73 @@ if $ARGS[0] = 'start':
 	gs 'themes', 'indoors'
 	'<center><b><font color="maroon">Fitness Center</font></b></center>'
 	'<center><img <<$set_imgh>> src="images/locations/city/citycenter/gym/fit.jpg"></center>'
+	*nl
 	'This modern and well staffed fitness center provides all the latest equipment and trainers to help you make the most of them.'
 	*nl
-	'Buy subscription for 30 classes (3,000 <b>₽</b>), pool use is free to members.'
-	'You must wear sportswear for all classes.'
-
-	if abonement > 0:'Subscription is valid for <<abonement>> more classes.'
+	'At the reception you may buy '+iif(abonement > 0, 'a subscription package', 'an additional subscription package')+' for access to all available facilities.'
+	if abonement > 0:'Your existing subscription package is valid for <<abonement>> more classes.'
+	*nl
+	'<b>Available Packages:</b>'
+	'<a href="exec: abonement +=30">30 classes (3,000 <b>₽</b>)</a>'
+	'<a href="exec: abonement +=20">20 classes (2,250 <b>₽</b>)</a>'
+	'<a href="exec: abonement +=10">10 classes (1,500 <b>₽</b>)</a>'
+	*nl
+	'<b>Included classes:</b>'
+	'Running'
+	'Crossfit'
+	'Aerobics'
+	'Weights'
+	'Cross Trainer'
+	'Tennis'
+	'Kickboxing'
+	'Swimming pool.'
+	*nl
+	'Sportswear is required for all available classes.'
 
 	act 'Leave': minut += 5 & gt 'down'
 
-	if money >= 3000:
-		act 'Buy a subscription (3,000 <b>₽</b>)':
+	if abonement > 0:
+		act 'Go to the dressing room':
+			gt 'fit', 'dressing room'
+		end
+	else
+		act 'Use the pool (100 <b>₽</b>)': gt 'fit', 'dressing room'
+	end
+
+	if money >= 3000 and abonement = 0:
+		act 'Buy 30 classes (3,000 <b>₽</b>)':
 			cla
 			menu_off = 1
 			money -= 3000
 			abonement += 30
-			'You bought a subscription for 30 lessons, including free use of the pool.'
+			'You bought a subscription for 30 classes, and access to all facilities.'
 
 			act 'Move away from cashier':gt 'fit', 'start'
 		end
 	end
 
-	if abonement > 0:
-		act 'Go to the dressing room':
+	if money >= 2250 and abonement = 0:
+		act 'Buy 20 classes (2,250 <b>₽</b>)':
 			cla
-			gt 'fit', 'dressing room'
+			menu_off = 1
+			money -= 2250
+			abonement += 20
+			'You bought a subscription for 20 classes, and access to all facilities.'
+
+			act 'Move away from cashier':gt 'fit', 'start'
+		end
+	end
+
+	if money >= 1500 and abonement = 0:
+		act 'Buy 30 classes (1,500 <b>₽</b>)':
+			cla
+			menu_off = 1
+			money -= 1500
+			abonement += 10
+			'You bought a subscription for 10 classes, and access to all facilities.'
+
+			act 'Move away from cashier':gt 'fit', 'start'
 		end
-	else
-		act 'Use the pool (100 <b>₽</b>)': gt 'fit', 'dressing room'
 	end
 end
 
@@ -64,6 +103,16 @@ if $ARGS[0] = 'dressing room':
 		'In the locker room you notice <a href="exec:gt ''fit'', ''fitgirl''">a cute girl</a>.'
 	end
 
+	act 'Exit the locker room':
+		if $clothingworntype ! 'nude' and $clothingworntype ! 'swimwear':
+			gt 'fit', 'start'
+		else
+			cla
+			msg'<b><font color = red>You need to get dressed.</font></b>'
+			act 'Return': gt 'fit', 'dressing room'
+		end
+	end
+
 	act 'Take a shower (0:15)':
 		cla
 		*clr
@@ -134,16 +183,6 @@ if $ARGS[0] = 'dressing room':
 			end
 		end
 	end
-
-	act 'Exit the locker room':
-		if $clothingworntype ! 'nude' and $clothingworntype ! 'swimwear':
-			gt 'fit', 'start'
-		else
-			cla
-			msg'<b><font color = red>You need to get dressed.</font></b>'
-			act 'Return': gt 'fit', 'dressing room'
-		end
-	end
 end
 
 if $ARGS[0] = 'fitgirl':