:: gaddvor[mod mod_gad]
<<set $here = 'gaddvor'>>
<<set $ARGS = $location_var[$here]>>
<<if !$location_var[$here][0]>>
	<<set $music_loop = 0>>
	<<set $loc_arg = ''>>
	<<set $loc = 'gaddvor'>>
	<<set $location_type = 'public_outdoors'>>
	<<set $menu_loc = 'gaddvor'>>
	<<set $menu_arg = ''>>
	<<set $menu_off = 0>>
	<<set $locclass to null>>
	<<gs 'gadukino_event' 'sound'>>
	<center><h4>Your grandparents'' yard</h4></center>
	<<if $time.month >= 4 and $time.month <= 10>>
		<<if $time.hour >= 6 and $time.hour < 22>>
			<<image "locations/gadukino/village/dvor.jpg">>
		<<else>>
			<<image "locations/gadukino/village/dvor_night.jpg">>
		<</if>>
	<<else>>
		<<if $time.hour >= 8 and $time.hour < 18>>
			<<image "locations/gadukino/village/dvor_winter.jpg">>
		<<else>>
			<<image "locations/gadukino/village/dvor_winter_night.jpg">>
		<</if>>
	<</if>>
	A fenced yard behind your grandparents'' house. The yard contains a small barn, garden, root cellar, and banya where you can bathe.
	<<if $wardrobe.clothingworntype == 'nude'>>
		You are naked and can only go into your grandparent''s house to get dressed or go to the banya.
		<<actCLA 'Enter your grandparents` house'>>
			<<set $time.minutes += 1>> <<gt 'gadhouse' 'start'>>
		<</actCLA>>
		<<actCLA 'Enter the banya'>>
			<<set $time.minutes += 1>> <<gt 'gadbana'>>
		<</actCLA>>
	<<else>>
		<<if getvar("$grandmaQW['chore_feed_chickens']") == 1 or ($time.hour >= 6 and $time.hour < 20 and $time.month >= 4 and $time.month <= 10)>>
			In the yard there are several <<link "chickens">><<gt 'gaddvor' 'chickens'>><</link>> running around.

		<</if>>
		<<if setup.func('homes_properties', 'is_current_home') and $time.hour > 7 and $time.hour < 20 and getvar("$rex['owned']") == 1>>
			<<if $status['dog'] == ''>>
				<<gt 'pet_dog' 'name'>>
			<<else>>
				<<if $rex['gadukino_day'] != $time.daystart>>
					<<setinit $rex['relationship'] += 2>>
					<<setinit $rex['gadukino_day'] = $time.daystart>>
				<</if>>
				'<br><<link '<<$rex[''name'']>>'>><<gt  'pet_dog'  'gadukino'>><</link>> is running around in the garden.'
			<</if>>
		<</if>>
	<</if>>
	<<if getvar("$mira_guest") == 1>>
		Miraloc = 7 & 'Your friend <<link 'Mira'>><<gt  'miroslava'  'Start'>><</link>> stands next to you.'

	<</if>>
	<<if getvar("$MiraLoc") != 7>>
		<<set $mira_guest = 0>>

	<</if>>
	<<actCLA '<b>Leave and go into the village</b>'>>
		<<if $wardrobe.clothingworntype != 'nude'>>
			<<set $time.minutes += 5>>
			<<gt 'gadukino'>>
		<<else>>
			<<msg '<b><font color = red>You need to get dressed.</font></b>'>>
			<<gt 'gaddvor'>>
		<</if>>
	<</actCLA>>
	<<if getvar("$grandpaQW['chore_clean_yard']") == 1>>
		<<actCLA 'Clean up the yard for Grandpa (1:00)'>>
			<<if $time.month >= 4 and $time.month <= 10>>
				<<image "locations/gadukino/village/clean_yard1.jpg">>
				Armed with a rake, you begin cleaning the yard. You're pleased seeing the yard clean. You return the rake to the shed and continue on with your business.
			<<else>>
				<<image "locations/gadukino/village/clean_yard2.jpg">>
				Armed with a shovel, you begin clearing the yard of snow. You're pleased with yourself seeing the courtyard is free of snow. You return the shovel to the shed and continue on with your business.
			<</if>>
			<<set $time.minutes += 60>>
			<<setinit $grandpaQW['chore_clean_yard'] = 2>>
			<<if $time.month >= 4 and $time.month <= 10>>
				<<set $pc.fat -= rand(1,3)>>
				<<set $pc.pcs_stam -= 5>>
				<<run $pc.sweatAdd(10)>>
			<<else>>
				<<run $pc.skillExperienceGain('strength',1)>>
				<<set $pc.fat -= rand(1,5)>>
				<<set $pc.pcs_stam -= 10>>
				<<run $pc.sweatAdd(5)>>
			<</if>>
			<<act 'Finish'>>
				<<gt 'gaddvor'>>
			<</act>>
			<<actCLA 'Return back to your grandfather'>>
				<<set $time.minutes += 1>> <<gt 'gadhouse' 'grandpa'>>
			<</actCLA>>
		<</actCLA>>
	<</if>>
	<<actCLA 'Enter your grandparents` house'>>
		<<set $time.minutes += 1>> <<gt 'gadhouse' 'start'>>
	<</actCLA>>
	<<actCLA 'Enter the banya'>>
		<<set $time.minutes += 1>> <<gt 'gadbana'>>
	<</actCLA>>
	<<actCLA 'Go to the barn'>>
		<<set $time.minutes += 1>> <<gt 'gadsarai'>>
	<</actCLA>>
	<<actCLA 'Go to the root cellar'>>
		<<set $time.minutes += 1>> <<gt 'gaddvor' 'root_cellar'>>
	<</actCLA>>
	<<actCLA 'Go to the garden'>>
		<<set $time.minutes += 1>> <<gt 'gadgarden' 'garden'>>
	<</actCLA>>
	<<if getvar("$grandmaQW['chore_feed_chickens']") == 1 or ($time.hour >= 6 and $time.hour < 20 and $time.month >= 4 and $time.month <= 10)>>
		<<act 'Look at your grandparents` chickens'>>
	<<gt 'gaddvor' 'chickens'>>
<</act>>

	<</if>>
	<<if rand(1,5) == 1 and $time.hour >= 9 and $time.hour <= 19 and $npc('A60').rel >= 15 and getvar("$Mira_no") == 0 and !$weather.isRaining and $mira_guestday != $time.daystart and ($npc('A63').QW < 13 or $npc('A60').QW >= 10 or getvar("$mirasex") > 1)>>
		<<set $menu_off = 1>>
		<<gs 'miroslava' 'miraclothes'>>
		You went out into the yard and noticed Mira standing there.
		<p>"Oh, $pc.name_nick, hi. I hope you don't mind me visiting. I was bored being home alone," she said, smiling.</p>
		<<set $mira_guestday = $time.daystart>>
		<<set $time.minutes += 5>>
		<<set $mira_guest = 1>>
		<<act 'Continue'>>
			<<gt 'gaddvor'>>
		<</act>>
	<</if>>
	<<set $clothesAtLocation = setup.func('lost_clothes_here',$CURLOC)>>
	<<if getvar("$clothesAtLocation") == 1>>
		<<if $wardrobe.clothingworntype == 'nude'>>
			<<actCLA 'Get dressed'>>
				<<gs 'clothing' 'recover_lost_clothes' 'gaddvor' 1>>
				<<gs 'underwear' 'wear'>>
				<<gt 'gaddvor'>>
			<</actCLA>>
		<<else>>
			<<actCLA 'Pick up your clothes'>>
				<<gs 'clothing' 'recover_lost_clothes' 'gaddvor'>>
				You picked up your clothes.
				<<gt 'gaddvor'>>
			<</actCLA>>
		<</if>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'root_cellar'>>
	<<set $loc_arg = 'root_cellar'>>
	<center><h4>Root Cellar</h4></center>
	<<image "locations/gadukino/village/root_cellar.jpg">>
	<<if $boletus_stored + getvar("$bilberry_stored") >= 20>>
		Your grandparents'' root cellar is full.
	<<elseif $boletus_stored + getvar("$bilberry_stored") > 0>>
		Your grandparents'' root cellar is partially full.
	<<else>>
		Your grandparents'' root cellar is empty.
	<</if>>
	Even though your grandparents allow you to store extra mushrooms and berries you pick, they reserve the right to use them, too, so you aren''t surprised if any go missing.
	<<if getvar("$boletus_stored") > 0>>
		You currently are storing <b><<boletus_stored>></b> kg of raw mushrooms.

	<</if>>
	<<if getvar("$bilberry_stored") > 0>>
		You currently are storing <b><<bilberry_stored>></b> kg of raw berries.

	<</if>>
	<<if $boletus + $boletus_cooked + getvar("$bilberry") >= 5>>
		Your basket is full and you cannot carry more.
	<<elseif $boletus + $boletus_cooked + getvar("$bilberry") > 0>>
		Your basket is partially full.
	<<else>>
		Your basket is empty.
	<</if>>
	<<if getvar("$boletus") > 0>>
		You currently are carrying <b><<boletus>></b> kg of raw mushrooms.

	<</if>>
	<<if getvar("$boletus_cooked") > 0>>
		You currently are carrying <b><<boletus_cooked>></b> kg of cooked mushrooms.

	<</if>>
	<<if getvar("$bilberry") > 0>>
		You currently are carrying <b><<bilberry>></b> kg of raw berries.

	<</if>>
	<<actCLA 'Go back to the yard'>>
		<<set $time.minutes += 1>> <<gt 'gaddvor'>>
	<</actCLA>>
	<<if ($boletus_stored + getvar("$bilberry_stored") < 20) and (getvar("$boletus") > 0 or getvar("$bilberry") > 0)>>
		<<actCLA 'Store as many raw mushrooms and berries that will fit (Max 20 kgs):'>>
			<<warn 'JUMP MARKER ENCOUNTERED: :store_bb_loop'>>
			<<if getvar("$boletus") > 0>>
				<<set $boletus_stored += 1>>
				<<set $boletus -= 1>>
				<<if $boletus_stored + getvar("$bilberry_stored") < 20>>
					<<warn 'JUMP COMMAND ENCOUNTERED: jump store_bb_loop'>>

				<</if>>
			<</if>>
			<<if getvar("$bilberry") > 0>>
				<<set $bilberry_stored += 1>>
				<<set $bilberry -= 1>>
				<<if $boletus_stored + getvar("$bilberry_stored") < 20>>
					<<warn 'JUMP COMMAND ENCOUNTERED: jump store_bb_loop'>>

				<</if>>
			<</if>>
			<<gt 'gaddvor' 'root_cellar'>>
		<</actCLA>>
		<<if getvar("$boletus") > 0>>
			<<actCLA 'Store 1 kg of raw mushrooms'>>
				<<set $boletus_stored += 1>>
				<<set $boletus -= 1>>
				<<gt 'gaddvor' 'root_cellar'>>
			<</actCLA>>
		<</if>>
		<<if getvar("$bilberry") > 0>>
			<<actCLA 'Store 1 kg of raw berries'>>
				<<set $bilberry_stored += 1>>
				<<set $bilberry -= 1>>
				<<gt 'gaddvor' 'root_cellar'>>
			<</actCLA>>
		<</if>>
	<</if>>
	<<if (getvar("$boletus_stored") > 0 or getvar("$bilberry_stored") > 0) and $boletus + $boletus_cooked + getvar("$bilberry") < 5>>
		<<actCLA 'Retrieve as many raw mushrooms and berries as you can carry (Max 5 kgs)'>>
			<<warn 'JUMP MARKER ENCOUNTERED: :retrieve_bb_loop'>>
			<<if getvar("$boletus_stored") > 0>>
				<<set $boletus += 1>>
				<<set $boletus_stored -= 1>>
				<<if $boletus + $boletus_cooked + getvar("$bilberry") < 5>>
					<<warn 'JUMP COMMAND ENCOUNTERED: jump retrieve_bb_loop'>>

				<</if>>
			<</if>>
			<<if getvar("$bilberry_stored") > 0>>
				<<set $bilberry += 1>>
				<<set $bilberry_stored -= 1>>
				<<if $boletus + $boletus_cooked + getvar("$bilberry") < 5>>
					<<warn 'JUMP COMMAND ENCOUNTERED: jump retrieve_bb_loop'>>

				<</if>>
			<</if>>
			<<gt 'gaddvor' 'root_cellar'>>
		<</actCLA>>
		<<if (getvar("$boletus_stored") > 0 and getvar("$grandmaQW['chore_can_mushrooms']") != 1) or (getvar("$boletus_stored") > 5 and getvar("$grandmaQW['chore_can_mushrooms']") == 1)>>
			<<actCLA 'Retrieve 1 kg of raw mushrooms'>>
				<<set $boletus += 1>>
				<<set $boletus_stored -= 1>>
				<<gt 'gaddvor' 'root_cellar'>>
			<</actCLA>>
		<</if>>
		<<if (getvar("$bilberry_stored") > 0 and getvar("$grandmaQW['chore_can_berries']") != 1) or (getvar("$bilberry_stored") > 5 and getvar("$grandmaQW['chore_can_berries']") == 1)>>
			<<actCLA 'Retrieve 1 kg of raw berries'>>
				<<set $bilberry += 1>>
				<<set $bilberry_stored -= 1>>
				<<gt 'gaddvor' 'root_cellar'>>
			<</actCLA>>
		<</if>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'chickens'>>
	<<set $loc_arg = 'chickens'>>
	<<image "locations/gadukino/village/chickens1.jpg">>
	Ordinary chickens clucking about their pen.
	<<set $time.minutes += 1>>
	<<act 'Leave'>>
		<<gt 'gaddvor'>>
	<</act>>
	<!-- !job Granny-->
	<<if getvar("$grandmaQW['chore_feed_chickens']") == 1>>
		<<actCLA 'Feed the chickens'>>
			<<image "locations/gadukino/village/chickens2.jpg">>
			You decide to feed the chickens. You pick up a bucket full of bird''s seed and grain mix and toss it on the ground. They immediately rush over and start to greedily eat. You watch them for a bit before you go about your business.
			<<set $time.minutes += 30>>
			<<setinit $grandmaQW['chore_feed_chickens'] = 2>>
			<<run $pc.skillExperienceGain('handyWork',rand(0,3))>>
			<<act 'Finish'>>
				<<gt 'gaddvor'>>
			<</act>>
			<<actCLA 'Return back to your grandmother'>>
				<<set $time.minutes += 1>> <<gt 'gadhouse' 'grandma'>>
			<</actCLA>>
		<</actCLA>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'cikl'>>
	<!-- !! vovan, from 1.2.5-->
	<<set $hunters_check = 0>>
	<<set $mushroom_pickers = 0>>
	<<set $mira_go_river = 0>>
	<<set $forestpicnic = 0>>
	<<if getvar("$Mira_no") > 0>>
		<<setn $Mira_no -= 1>>

	<</if>>
	<<if getvar("$Mira_no") < 0>>
		<<set $Mira_no = 0>>

	<</if>>
	<!-- !! new grandparent chore stuff, for 0.8.0-->
	<<if getvar("$gadstay") == 1 and getvar("$lost_girl") == 0>>
		<<if $time.daystart > $CON_HELPER_0 and $time.daystart > $CON_HELPER_1>>
			<<if ($time.daystart - grandmaQW['last_day_helped'])>>
				<p>You haven't helped your grandparents with any chores in daystart - grandmaQW['last_day_helped'] days. You should help out more often to stay on your grandparents' good side.</p>
			<<else>>
				<p>You haven't helped your grandparents with any chores in daystart - grandpaQW['last_day_helped'] days. You should help out more often to stay on your grandparents' good side.</p>
			<</if>>
			<<setinit $grandmaQW['help_amount'] -= 1>>
		<</if>>
	<</if>>
	<!-- !! disappointing grandma-->
	<<if getvar("$grandmaQW['chore_clean_floor']") == 1 or getvar("$grandmaQW['chore_clean_floor']") == 2>>
		<<setinit $grandmaQW['chore_clean_floor'] = 0>>
		<<setinit $grandmaQW['disappointment'] = 1>>
	<<elseif getvar("$grandmaQW['chore_wash_clothes']") == 1 or getvar("$grandmaQW['chore_wash_clothes']") == 2>>
		<<setinit $grandmaQW['chore_wash_clothes'] = 0>>
		<<setinit $grandmaQW['disappointment'] = 1>>
	<<elseif getvar("$grandmaQW['chore_milk_cow']") == 1 or getvar("$grandmaQW['chore_milk_cow']") == 2>>
		<<setinit $grandmaQW['chore_milk_cow'] = 0>>
		<<setinit $grandmaQW['disappointment'] = 1>>
	<<elseif getvar("$grandmaQW['chore_groceries']") == 1 or getvar("$grandmaQW['chore_groceries']") == 2>>
		<<setinit $grandmaQW['chore_groceries'] = 0>>
		<<setinit $grandmaQW['disappointment'] = 1>>
	<<elseif getvar("$grandmaQW['chore_can_mushrooms']") == 1 or getvar("$grandmaQW['chore_can_mushrooms']") == 2>>
		<<setinit $grandmaQW['chore_can_mushrooms'] = 0>>
		<<setinit $grandmaQW['disappointment'] = 1>>
	<<elseif getvar("$grandmaQW['chore_can_berries']") == 1 or getvar("$grandmaQW['chore_can_berries']") == 2>>
		<<setinit $grandmaQW['chore_can_berries'] = 0>>
		<<setinit $grandmaQW['disappointment'] = 1>>
	<<elseif getvar("$grandmaQW['chore_can_veggies']") == 1 or getvar("$grandmaQW['chore_can_veggies']") == 2>>
		<<setinit $grandmaQW['chore_can_veggies'] = 0>>
		<<setinit $grandmaQW['disappointment'] = 1>>
	<<elseif getvar("$grandmaQW['chore_feed_chickens']") == 1 or getvar("$grandmaQW['chore_feed_chickens']") == 2>>
		<<setinit $grandmaQW['chore_feed_chickens'] = 0>>
		<<setinit $grandmaQW['disappointment'] = 1>>
	<<elseif getvar("$grandmaQW['chore_work_in_garden']") == 1 or getvar("$grandmaQW['chore_work_in_garden']") == 2>>
		<<setinit $grandmaQW['chore_work_in_garden'] = 0>>
		<<setinit $grandmaQW['disappointment'] = 1>>
	<<elseif getvar("$grandmaQW['chore_water_garden']") == 1 or getvar("$grandmaQW['chore_water_garden']") == 2>>
		<<setinit $grandmaQW['chore_water_garden'] = 0>>
		<<setinit $grandmaQW['disappointment'] = 1>>
	<<elseif getvar("$grandmaQW['chore_collect_strawberries']") == 1 or getvar("$grandmaQW['chore_collect_strawberries']") == 2>>
		<<setinit $grandmaQW['chore_collect_strawberries'] = 0>>
		<<setinit $grandmaQW['disappointment'] = 1>>
	<<elseif getvar("$grandmaQW['chore_collect_fruit']") == 1 or getvar("$grandmaQW['chore_collect_fruit']") == 2>>
		<<setinit $grandmaQW['chore_collect_fruit'] = 0>>
		<<setinit $grandmaQW['disappointment'] = 1>>
	<<elseif getvar("$grandmaQW['chore_harvest_garden']") == 1 or getvar("$grandmaQW['chore_harvest_garden']") == 2>>
		<<setinit $grandmaQW['chore_harvest_garden'] = 0>>
		<<setinit $grandmaQW['disappointment'] = 1>>
	<<elseif getvar("$grandmaQW['chore_gather_mushrooms']") == 1 or getvar("$grandmaQW['chore_gather_mushrooms']") == 2>>
		<<setinit $grandmaQW['disappointment'] = 2>>
	<<elseif getvar("$grandmaQW['chore_gather_mushrooms']") == 1 or getvar("$grandmaQW['chore_gather_mushrooms']") == 2 and getvar("$grandmaQW['disappointment']") == 2>>
		<<setinit $grandmaQW['chore_gather_mushrooms'] = 0>>
		<<setinit $grandmaQW['chore_mushroom_quantity'] = 0>>
		<<setinit $grandmaQW['disappointment'] = 1>>
	<<elseif getvar("$grandmaQW['chore_gather_berries']") == 1 or getvar("$grandmaQW['chore_gather_berries']") == 2>>
		<<setinit $grandmaQW['disappointment'] = 2>>
	<<elseif getvar("$grandmaQW['chore_gather_berries']") == 1 or getvar("$grandmaQW['chore_gather_berries']") == 2 and getvar("$grandmaQW['disappointment']") == 2>>
		<<setinit $grandmaQW['chore_gather_berries'] = 0>>
		<<setinit $grandmaQW['chore_berry_quantity'] = 0>>
		<<setinit $grandmaQW['disappointment'] = 1>>
	<<elseif getvar("$grandmaQW['chore_gather_both']") == 1 or getvar("$grandmaQW['chore_gather_both']") == 2>>
		<<setinit $grandmaQW['disappointment'] = 2>>
	<<elseif getvar("$grandmaQW['chore_gather_both']") == 1 or getvar("$grandmaQW['chore_gather_both']") == 2 and getvar("$grandmaQW['disappointment']") == 2>>
		<<setinit $grandmaQW['chore_gather_both'] = 0>>
		<<setinit $grandmaQW['chore_mushroom_quantity'] = 0>>
		<<setinit $grandmaQW['chore_berry_quantity'] = 0>>
		<<setinit $grandmaQW['disappointment'] = 1>>
	<</if>>
	<!-- !! disappointing grandpa-->
	<<if getvar("$grandpaQW['chore_fetch_firewood']") == 1 or getvar("$grandpaQW['chore_fetch_firewood']") == 2>>
		<<setinit $grandpaQW['chore_fetch_firewood'] = 0>>
		<<setinit $grandpaQW['disappointment'] = 1>>
	<<elseif getvar("$grandpaQW['chore_feed_horse']") == 1 or getvar("$grandpaQW['chore_feed_horse']") == 2>>
		<<setinit $grandpaQW['chore_feed_horse'] = 0>>
		<<setinit $grandpaQW['disappointment'] = 1>>
	<<elseif getvar("$grandpaQW['chore_feed_cow']") == 1 or getvar("$grandpaQW['chore_feed_cow']") == 2>>
		<<setinit $grandpaQW['chore_feed_cow'] = 0>>
		<<setinit $grandpaQW['disappointment'] = 1>>
	<<elseif getvar("$grandpaQW['chore_clean_yard']") == 1 or getvar("$grandpaQW['chore_clean_yard']") == 2>>
		<<setinit $grandpaQW['chore_clean_yard'] = 0>>
		<<setinit $grandpaQW['disappointment'] = 1>>
	<<elseif getvar("$grandpaQW['chore_feed_boar']") == 1 or getvar("$grandpaQW['chore_feed_boar']") == 2>>
		<<setinit $grandpaQW['chore_feed_boar'] = 0>>
		<<setinit $grandpaQW['disappointment'] = 1>>
	<<elseif getvar("$grandpaQW['chore_bathe_horse']") == 1 or getvar("$grandpaQW['chore_bathe_horse']") == 2>>
		<<setinit $grandpaQW['chore_bathe_horse'] = 0>>
		<<setinit $grandpaQW['chore_bathe_horse_prog'] = 0>>
		<<setinit $grandpaQW['disappointment'] = 1>>
	<<elseif getvar("$grandpaQW['chore_brush_horse']") == 1 or getvar("$grandpaQW['chore_brush_horse']") == 2>>
		<<setinit $grandpaQW['chore_brush_horse'] = 0>>
		<<setinit $grandpaQW['disappointment'] = 1>>
	<<elseif getvar("$grandpaQW['chore_lead_horse_to_field']") == 1 or getvar("$grandpaQW['chore_lead_horse_to_field']") == 2>>
		<<setinit $grandpaQW['chore_lead_horse_to_field'] = 0>>
		<<setinit $grandpaQW['disappointment'] = 1>>
	<<elseif getvar("$grandpaQW['chore_herd_cattle']") == 1 or getvar("$grandpaQW['chore_herd_cattle']") == 2>>
		<<setinit $grandpaQW['chore_herd_cattle'] = 0>>
		<<setinit $grandpaQW['disappointment'] = 1>>
	<<elseif getvar("$grandpaQW['chore_lead_cow_to_field']") == 1 or getvar("$grandpaQW['chore_lead_cow_to_field']") == 2>>
		<<setinit $grandpaQW['chore_lead_cow_to_field'] = 0>>
		<<setinit $grandpaQW['disappointment'] = 1>>
	<<elseif getvar("$grandpaQW['chore_gather_mushrooms']") == 1 or getvar("$grandpaQW['chore_gather_mushrooms']") == 2>>
		<<setinit $grandpaQW['disappointment'] = 2>>
	<<elseif getvar("$grandpaQW['chore_gather_mushrooms']") == 1 or getvar("$grandpaQW['chore_gather_mushrooms']") == 2 and getvar("$grandpaQW['disappointment']") == 2>>
		<<setinit $grandpaQW['chore_gather_mushrooms'] = 0>>
		<<setinit $grandpaQW['chore_mushroom_quantity'] = 0>>
		<<setinit $grandpaQW['disappointment'] = 1>>
	<<elseif getvar("$grandpaQW['chore_gather_berries']") == 1 or getvar("$grandpaQW['chore_gather_berries']") == 2>>
		<<setinit $grandpaQW['disappointment'] = 2>>
	<<elseif getvar("$grandpaQW['chore_gather_berries']") == 1 or getvar("$grandpaQW['chore_gather_berries']") == 2 and getvar("$grandpaQW['disappointment']") == 2>>
		<<setinit $grandpaQW['chore_gather_berries'] = 0>>
		<<setinit $grandpaQW['chore_berry_quantity'] = 0>>
		<<setinit $grandpaQW['disappointment'] = 1>>
	<<elseif getvar("$grandpaQW['chore_gather_both']") == 1 or getvar("$grandpaQW['chore_gather_both']") == 2>>
		<<setinit $grandpaQW['disappointment'] = 2>>
	<<elseif getvar("$grandpaQW['chore_gather_both']") == 1 or getvar("$grandpaQW['chore_gather_both']") == 2 and getvar("$grandpaQW['disappointment']") == 2>>
		<<setinit $grandpaQW['chore_gather_both'] = 0>>
		<<setinit $grandpaQW['chore_mushroom_quantity'] = 0>>
		<<setinit $grandpaQW['chore_berry_quantity'] = 0>>
		<<setinit $grandpaQW['disappointment'] = 1>>
	<<elseif getvar("$grandpaQW['chore_bale_hay']") == 1 or getvar("$grandpaQW['chore_bale_hay']") == 2>>
		<<setinit $grandpaQW['chore_bale_hay'] = 0>>
		<<setinit $grandpaQW['disappointment'] = 1>>
	<</if>>
	<!-- !! grandparents use root cellar-->
	<<if getvar("$boletus_stored") > 0>>
		<<set $boletus_stored -= rand(0,1)>>

	<</if>>
	<<if getvar("$bilberry_stored") > 0>>
		<<set $bilberry_stored -= rand(0,1)>>

	<</if>>
	<<if getvar("$boletus_stored") < 0>>
		<<set $boletus_stored = 0>>

	<</if>>
	<<if getvar("$bilberry_stored") < 0>>
		<<set $bilberry_stored = 0>>

	<</if>>
	<!-- !! end of new grandparent chore stuff, for 0.8.0-->
	<<if getvar("$catout") != 0>>
		<<set $catout = 0>>

	<</if>>
	<<if getvar("$feedcat") != 0>>
		<<set $feedcat = 0>>

	<</if>>
<</if>>
