Sfoglia il codice sorgente

[added] eating breakfast alone if parents are in gadukino and eating breakfast alone at hour = 8, when you missed the family breakfast
[changed] moved the food effects from kuhrpar into food

julzor 4 anni fa
parent
commit
40df374bc3
2 ha cambiato i file con 34 aggiunte e 28 eliminazioni
  1. 17 0
      locations/food.qsrc
  2. 17 28
      locations/kuhrPar.qsrc

+ 17 - 0
locations/food.qsrc

@@ -859,6 +859,23 @@ if $ARGS[0] = 'bilberry':
 	end
 end
 
+if $ARGS[0] = 'family_meals':
+	frost = 0
+	minut += 20
+	pcs_health += 10
+	pcs_mood += 10
+	fat += iif($ARGS[1] = 'dinner', 8, 6)
+	pcs_energy += 60
+	if pcs_hydra >= 100:
+		pcs_hydra += 30
+	else
+		pcs_hydra += 60
+	end
+	cumspclnt = 2
+	gs 'cum_cleanup'
+	pcs_breath = 0
+end
+
 if $ARGS[0] = 'aftermeal':
 
 	if pcs_energy > 100:

+ 17 - 28
locations/kuhrPar.qsrc

@@ -42,20 +42,7 @@ gs 'family'
 if hour = 7 and breakfast_day ! daystart and indorf = 0: 
 	act 'Eat breakfast with your family (0:20)': 
 		*clr & cla
-		frost = 0
-		minut += 20
-		pcs_health += 10
-		pcs_mood += 10
-		fat += 6
-		pcs_energy += 60
-		if pcs_hydra >= 100:
-			pcs_hydra += 30
-		else
-			pcs_hydra += 60
-		end
-		cumspclnt = 2
-		gs 'cum_cleanup'
-		pcs_breath = 0
+		gs 'food', 'family_meals', 'breakfast'
 		npc_rel['A29'] += 1
 		breakfast_day = daystart
 		gs 'stat'
@@ -73,20 +60,7 @@ if hour = 7 and breakfast_day ! daystart and indorf = 0:
 elseif hour = 18 and minut <= 30 and dinner_day ! daystart and indorf = 0: 
 	act 'Eat dinner with your family (0:20)': 
 		*clr & cla
-		frost = 0
-		minut += 20
-		pcs_health += 10
-		pcs_mood += 10
-		fat += 8
-		pcs_energy += 60
-		if pcs_hydra >= 100:
-			pcs_hydra += 30
-		else
-			pcs_hydra += 60
-		end
-		cumspclnt = 2
-		gs 'cum_cleanup'
-		pcs_breath = 0
+		gs 'food', 'family_meals', 'dinner'
 		npc_rel['A29'] += 1
 		dinner_day = daystart
 		gs 'stat'
@@ -114,6 +88,21 @@ elseif hour = 18 and minut <= 30 and dinner_day ! daystart and indorf = 0:
 		act 'Get up from the table': gt $loc, $metka
 	end
 else
+	if (hour = 8 or (hour = 7 and indorf = 1)) and breakfast_day ! daystart:
+		act 'Eat breakfast alone (0:15)':
+			*clr & cla
+			menu_off = 1
+			minut += 15
+			breakfast_day = daystart
+			gs 'food', 'family_meals', 'breakfast'
+			gs 'stat'			
+			'<center><img <<$set_imgh>> src="images/shared/food/breakfast_'+rand(0,1)+'.jpg"></center>'
+			'You enjoy a nice and quiet breakfast. The portions were moderate and<<$mtxt>>'
+			'You accompany it with a mug of tea.'
+			
+			act 'Get up from the table': gt $loc, $metka
+		end
+	end
 	act 'Eat a full meal (0:30)':gs 'food', 'm_meal'
 	act 'Eat a light meal (0:25)':gs 'food', 's_meal'
 	act 'Have a snack (0:15)':gs 'food', 'snack'