Bladeren bron

[fixed] cost for "Eat and Run" for other locations.
[moved] Eat and Run from food_menu to the specific eateries.

3xpurt 5 jaren geleden
bovenliggende
commit
c9831a56e3
6 gewijzigde bestanden met toevoegingen van 15 en 9 verwijderingen
  1. 3 0
      locations/ParkKafe.qsrc
  2. 3 0
      locations/burger.qsrc
  3. 3 0
      locations/cafe_parco.qsrc
  4. 0 9
      locations/food_menu.qsrc
  5. 3 0
      locations/gkafe.qsrc
  6. 3 0
      locations/lakecafe.qsrc

+ 3 - 0
locations/ParkKafe.qsrc

@@ -13,6 +13,9 @@ if $ARGS[0] = 'start':
 	'<center><img <<$set_imgh>> src="images/locations/city/centralpark/parkcafe.jpg"></center>'
 
 	act 'See the menu':gs 'food_menu'
+	if money >= 300:
+		act 'Eat and run (0:20) (300₽)':gt 'food', 'f_food'
+	end
 	'Whilst sitting and eating in the summer cafe. You take a moment and enjoy the beautiful scenery.'
 
 	arand = rand(1, 7)

+ 3 - 0
locations/burger.qsrc

@@ -33,6 +33,9 @@ if $ARGS[0] = 'start':
 	end
 
 	act 'See the menu':gs 'food_menu'
+	if money >= 300:
+		act 'Eat and run (0:20) (300₽)':gt 'food', 'f_food'
+	end
 
 	if IvanPodstavaQW = 2:
 		act 'Go into the office to Anatoly Borisovich':gt 'burger', 'office'

+ 3 - 0
locations/cafe_parco.qsrc

@@ -25,6 +25,9 @@ if $args[0]= 'inner':
 	'<center><img <<$set_imgh>> src="images/locations/pavlovsk/park/cafe/caffe_del_parco_in.jpg"></center>'
 
 	act 'See the menu':gs 'food_menu'
+	if money >= 300:
+		act 'Eat and run (0:20) (300₽)':gt 'food', 'f_food'
+	end
 
 	act 'Go back outside': gt 'gskver', 'start'
 

+ 0 - 9
locations/food_menu.qsrc

@@ -19,9 +19,6 @@ act 'Back':killvar 'food_loc' & gt $loc, $metka
 killvar '$_drink'
 killvar '$_eat'
 if $loc = 'burger':
-	if money >= 300:
-		act 'Eat and run (0:20) (300₽)':gt 'food', 'f_food'
-	end
 	'<center><b><font color="maroon">Diner Bystroeshka</font></b></center>'
 	*nl
 	!'<center><img <<$set_imgh>> src="images/shared/menus/burger.png"</center><br>'
@@ -62,7 +59,6 @@ if $loc = 'burger':
 	$_drink['5,price'] = 180
 end
 if $loc = 'gkafe':
-	act 'Eat and run':gt 'food', 'f_food'
 	'<center><b><font color="maroon">Borislav''s cafe</font></b></center>'
 	*nl
 	'<center><img <<$set_imgh>> src="images/shared/drinks/cafedrinks.jpg"</center><br>'
@@ -174,7 +170,6 @@ if $loc = 'brothel':
 	end
 end
 if $loc = 'cafe_parco':
-	act 'Eat and run':gt 'food', 'f_food'
 	'<center><h4><font color="maroon">Cafe "Del Parco"</font></h4></center>'
 	*nl
 	'<center><img <<$set_imgh>> src="images/shared/drinks/cafedrinks.jpg"</center><br>'
@@ -214,7 +209,6 @@ if $loc = 'cafe_parco':
 	$_drink['5,price'] = 200
 end
 if $loc = 'kafe':
-	act 'Eat and run':gt 'food', 'f_food'
 	'<center><b><font color="maroon">The Roadhouse</font></b></center>'
 	*nl
 	'<center><img <<$set_imgh>> src="images/shared/drinks/dinerdrinks.jpg"</center><br>'
@@ -254,7 +248,6 @@ if $loc = 'kafe':
 	$_drink['5,price'] = 180
 end
 if $loc = 'lakecafe':
-	act 'Eat and run':gt 'food', 'f_food'
 	'<center><B><font color=maroon>The Lake Cafe</font></B></center>'
 	*nl
 	'<center><img <<$set_imgh>> src="images/shared/drinks/cafedrinks.jpg"</center><br>'
@@ -294,7 +287,6 @@ if $loc = 'lakecafe':
 	$_drink['5,price'] = 200
 end
 if $loc = 'liamelkafe':
-	act 'Eat and run':gt 'food', 'f_food'
 	'<center><B><font color=maroon>Tiny Cafe</font></B></center>'
 	*nl
 	'<center><img <<$set_imgh>> src="images/shared/drinks/cafedrinks.jpg"</center><br>'
@@ -334,7 +326,6 @@ if $loc = 'liamelkafe':
 	$_drink['5,price'] = 200
 end
 if $loc = 'ParkKafe':
-	act 'Eat and run':gt 'food', 'f_food'
 	'<center><B><font color=maroon>Park Cafe</font></B></center>'
 	*nl
 	'<center><img <<$set_imgh>> src="images/shared/drinks/cafedrinks.jpg"</center><br>'

+ 3 - 0
locations/gkafe.qsrc

@@ -109,6 +109,9 @@ if $ARGS[0] = 'menu':
 	$loc = 'gkafe'
 	$metka = ''
 	act 'See the menu':gs 'food_menu'
+	if money >= 300:
+		act 'Eat and run (0:20) (300₽)':gt 'food', 'f_food'
+	end
 end
 
 if $ARGS[0] = 'boris':

+ 3 - 0
locations/lakecafe.qsrc

@@ -67,6 +67,9 @@ if $ARGS[0] = 'main':
 		'The diner has a single <a href="exec:gt ''laketoilet'', ''main''">toilet</a> available, for both males and females.'
 
 		act 'See the menu':gs 'food_menu'
+		if money >= 300:
+			act 'Eat and run (0:20) (300₽)':gt 'food', 'f_food'
+		end
 	end
 
 	if LCwork2 >= 1 and LCwork2day ! daystart and hour = 18: