Browse Source

[fixed] changed actions to kitchen dynamics, [added] refillable water bottle to mey_home

julzor 5 years ago
parent
commit
5b7372e494
1 changed files with 13 additions and 126 deletions
  1. 13 126
      locations/mey_home.qsrc

+ 13 - 126
locations/mey_home.qsrc

@@ -131,13 +131,14 @@ end
 
 ! kitchen
 if $ARGS[0] = '1':
-	cls
+	*clr & cla
 	$loc = 'mey_home'
 	$metka = '1'
 	$locclass = 'kitr'
 	$menu_loc = 'mey_home'
 	$menu_arg = '1'
 	menu_off = 0
+	gs 'kit_din'
 	gs 'stat'
 	'<center><h4><font color="maroon">Kitchen</font></h4></center>'
 	'<center><img <<$set_imgh>> src="images/locations/pavlovsk/resident/meynolds/kitchen.jpg"></center>'
@@ -158,136 +159,22 @@ if $ARGS[0] = '1':
 			act 'Finish': gt 'mey_home', '1'
 		end
 	end
-	!copy acts from [gadhouse]
-	act 'Eat a full meal (0:30)':gs 'food', 'm_meal'
-
-	act 'Eat a light meal (0:20)':gs 'food', 's_meal'
-
-	act 'Have a snack (0:05)':gs 'food', 'snack'
-
-	act 'Drink some water (0:05)':gs 'beverage', 'bev_wat'
-
-	act 'Have a cup of tea (0:05)':
-		cls
-		if pcs_hydra >= 100:
-			'You don''t need any more tea.'
-		else
-			minut += 5
-			pcs_hydra += 80
-			cumspclnt = 2
-			gs 'cum_cleanup'
-			pcs_breath = 0
-			pcs_mood += rand(3, 6)
-			'You make a refreshing cup of tea and everything seems a little better.'
-		end
-	
-		gs 'stat'
-
-		act 'Get up from the table':gt 'mey_home', '1'
-	end
-
-	if pranik > 0:
-		'You brought your <<pranik>> tea biscuits with you.'
 
-		act 'Drink tea with biscuits (0:05)':
-			menu_off = 1
-			cla
-			*clr
-			minut += 5
-			pranik -= 1
-			pcs_health += 30
-			pcs_mood += 30
-			pcs_energy += 20
-			pcs_hydra += 60
-			cumspclnt = 2
-			gs 'cum_cleanup'
-			pcs_breath = 0
-			fat += 4
-			frost = 0
-			gs 'stat'
-			'<center><img <<$set_imgh>> src="images/shared/food/food.jpg"></center>'
-			'You enjoy a cup of tea while you eat some tea biscuits. You know they''re too sweet and can''t be good for your figure, but they taste so good!'
+	act 'Eat a full meal (0:30)':gs 'food', 'm_meal'
 
-			act 'Get up from the table':gt 'mey_home', '1'
-		end
-	end
+	act 'Eat a light meal (0:25)':gs 'food', 's_meal'
 
-	if edaD > 0:
-		act 'Eat diet food (0:30)':
-			menu_off = 1
-			cla
-			*clr
-			frost = 0
-			minut += 30
-			pcs_health += 10
-			pcs_mood += 20
-			edaD -= 1
-			'<center><img <<$set_imgh>> src="images/shared/food/food.jpg"></center>'
-			if pcs_energy >= 100:
-				'You prepare a diet meal and try to eat it, but you''re really not hungry at all. You can''t finish the meal.'
-			elseif pcs_energy >= 80:
-				pcs_energy += 40
-				'You try to enjoy the diet meal, but half-way in you realize you weren''t all that hungry yet. You manage to finish the meal, but feel like it was kind of a waste to prepare it.'
-			else
-				pcs_energy += 80
-				'The diet meal is tasty, and you enjoy eating it.'
-			end
-
-			act 'Get up from the table':gt 'mey_home', '1'
-		end
-	end
+	act 'Have a snack (0:15)':gs 'food', 'snack'
 
+	dynamic $driwater
+	dynamic $dritea
+	dynamic $fill_bottle
+	dynamic $edaD
+	dynamic $pranik
 	dynamic $fatdel
-
-	if lekarstvo > 0:
-		'You have <<lekarstvo>> tablet(s) left.'
-
-		if sick > 0 and lekarday ! daystart:
-			act 'Take a pill (0:05)':
-				menu_off = 1
-				cla
-				*clr
-				minut += 5
-				lekarday = daystart
-				lekarstvo -= 1
-				sick -= sick * 20 / 100
-				if pcs_hydra < 50 : pcs_hydra += 30 else pcs_hydra +=15
-				if pcs_hydra > 100: pcs_hydra = 100
-
-				'<center><img <<$set_imgh>> src="images/locations/shared/apartment/event/sick/lekr<<picrand>>.jpg"></center>'
-				'You swallow the pill, and shortly after you feel a bit better.'
-
-				act 'Continue':gt 'mey_home', '1'
-			end
-		end
-	end
-
-	if vitamin > 0:
-		'You have <<vitamin>> vitamin pills left.'
-
-		if vitaminday ! daystart:
-			act 'Take vitamins (0:05)':
-				menu_off = 1
-				cla
-				*clr
-
-				minut += 5
-				vitaminday = daystart
-				vitamin -= 1
-				frost = 0
-
-				if KandidozOnce = 1:Kandidoz -= 2
-				if GerpesOnce = 1:Gerpes -= 2
-				if SifacOnce = 1 and Sifilis >= 10:Sifilis -= rand(0, 1)
-
-				pcs_skin += 1
-
-				'You take some vitamins to stay healthy.'
-
-				act 'Continue':gt 'mey_home', '1'
-			end
-		end
-	end
+	dynamic $fatdel
+	dynamic $lekarstvo
+	dynamic $vitamin
 
 	gs 'events', 'read'