Browse Source

[fixes] Eat and run should be for free in gkafe if your mother didn't throw you out of the house
[fixes] the food should only be for free in food_menu if the school isn't blocked

julzor 5 years ago
parent
commit
8d9a1c6428
2 changed files with 5 additions and 2 deletions
  1. 1 1
      locations/food_menu.qsrc
  2. 4 1
      locations/gkafe.qsrc

+ 1 - 1
locations/food_menu.qsrc

@@ -52,7 +52,7 @@ if $loc = 'gkafe':
 	'<center><b><font color="maroon">Borislav''s cafe</font></b></center>'
 	*nl
 	'<center><img <<$set_imgh>> src="images/shared/drinks/cafedrinks.jpg"</center><br>'
-	if home_owned[2] = 1 or SchoolBlock = 1:
+	if storyline > 0 and SchoolBlock = 0:
 		$_eat['0,name'] = 'Vegetarian Piroshki'
 		$_eat['0,type'] = 'pirosh'
 		$_eat['0,price'] = 'Free'

+ 4 - 1
locations/gkafe.qsrc

@@ -101,9 +101,12 @@ if $ARGS[0] = 'menu':
 	$loc = 'gkafe'
 	$metka = ''
 	act 'See the menu':gs 'food_menu'
-	if money >= 350:
+	if (StoryLine = 0 or (StoryLine > 0 and SchoolBlock = 1)) and money >= 350:
 		act 'Eat and run (0:20) (350 <b>₽</b>)':money -= 350 & gt 'food', 'f_food'
 	end
+	if storyline > 0 and SchoolBlock = 0:
+		act 'Eat and run (0:20)': gt 'food', 'f_food'
+	end
 end
 
 if $ARGS[0] = 'boris':