:: gadsarai[mod mod_gad]
<<set $here = 'gadsarai'>>
<<set $ARGS = $location_var[$here]>>
<!-- !2021/05/08-->
<<if !$location_var[$here][0]>>
	<<set $loc_arg = ''>>
	<<set $loc = 'gadsarai'>>
	<<set $menu_loc = 'gadsarai'>>
	<<set $menu_arg = ''>>
	<<set $menu_off = 0>>
	<<set $location_type = 'secluded'>>
	<center><h4>Grandparents'' Barn</h4></center>
	<<if $time.month >= 4 and $time.month <= 10>>
		<<if $time.hour >= 6 and $time.hour < 22>>
			<<image "locations/gadukino/village/sarai.jpg">>
		<<else>>
			<<image "locations/gadukino/village/sarai_night.jpg">>
		<</if>>
	<<else>>
		<<if $time.hour >= 8 and $time.hour < 18>>
			<<image "locations/gadukino/village/sarai_winter.jpg">>
		<<else>>
			<<image "locations/gadukino/village/sarai_winter_night.jpg">>
		<</if>>
	<</if>>
	Your grandparents'' old barn could hold some valuable items if you spend time searching.
	The right side of the barn is piled high with various boxes, barrels, and chests of items.
	You can store some extra mushrooms and berries here if you don't want to carry them around all the time.
	The left side of the barn has stalls for your grandparents'' horse, cow, and boar.
	<<actCLA 'Go back to the yard'>>
		<<set $time.minutes += 1>> <<gt 'gaddvor'>>
	<</actCLA>>
	<<if getvar("$grandpaQW['chore_fetch_firewood']") == 1>>
		<<actCLA 'Gather firewood for Grandpa (0:10)'>>
			<<if $time.month >= 4 and $time.month <= 10>>
				<<image "locations/gadukino/village/firewood.jpg">>
			<<else>>
				<<image "locations/gadukino/village/firewood_winter.jpg">>
			<</if>>
			You decide to grab the firewood that your grandfather asked for, loading up as much as you can carry.
			<<setinit $grandpaQW['chore_fetch_firewood'] = 2>>
			<<set $time.minutes += 10>>
			<<act 'Finish'>>
				<<gt 'gadsarai'>>
			<</act>>
			<<actCLA 'Return back to your grandfather'>>
				<<set $time.minutes += 2>> <<gt 'gadhouse' 'grandpa'>>
			<</actCLA>>
		<</actCLA>>
	<</if>>
	<<gs 'bicycle' 'gadsarai'>>
	<<if ($time.month < 4 or $time.month > 10) or ($time.hour < 9 or $time.hour > 20) or (getvar("$grandpaQW['chore_feed_horse']") == 1 or getvar("$grandpaQW['chore_brush_horse']") == 1 or getvar("$grandpaQW['chore_lead_horse_to_field']") == 1 or getvar("$grandpaQW['chore_bathe_horse']") == 1)>>
		<<act 'Enter the horses stall'>>
			<<gt 'gadsarai' 'horse'>>
		<</act>>
	<</if>>
	<<if ($time.month < 4 or $time.month > 10) or ($time.hour < 9 or $time.hour > 20) or (getvar("$grandpaQW['chore_feed_cow']") == 1 or $grandmaQW['chore_milk_cow'] or getvar("$grandpaQW['chore_lead_cow_to_field']") == 1 or getvar("$grandpaQW['chore_herd_cattle']") == 1)>>
		<<act 'Enter the cows stall'>>
			<<gt 'gadsarai' 'cow'>>
		<</act>>
	<</if>>
	<<act 'Enter the boars stall'>>
		<<gt 'gadsarai' 'boar'>>
	<</act>>
	<<act 'Search around in the barn (0:15)'>>
		<<gt 'gadsarai' 'search'>>
	<</act>>
	<<if getvar("$vcard") > 0>>
		<<actCLA 'View your vintage porn cards'>>
	<<set $card_loc = 'gadsarai'>> <<set $card_deck = 0>> <<gt 'card'>>
<</actCLA>>

	<</if>>
	<<if getvar("$card") > 0>>
		<<actCLA 'View your new porn cards'>>
	<<set $card_loc = 'gadsarai'>> <<set $card_deck = 1>> <<gt 'card'>>
<</actCLA>>

	<</if>>
	<<if $pc.horny >= 50>>
		<<act 'Masturbate'>>
	<<gt 'selfplay' 'start'>>
<</act>>

	<</if>>
	<!-- !!	Serpent is not ready yet, so remarking out til then.-->
	<!-- !!	if findneck = 1: act 'You hear a scraping noice above you.':gt 'serpent'-->
<</if>>
<<if $location_var[$here][0] == 'search'>>
	<<if $npc('A221').qw > 0 and $grigory_barn != $time.daystart and $time.hour > 8 and $time.hour < 12>>
		<<gt 'grigory' 'barn'>>

	<</if>>
	<<set $time.minutes += 15>>
	<<if getvar("$BikeLoc") == 0 and rand(0,10) >= 6>>
		<<set $BikeLoc = 1>>
		<<run $pc.skillExperienceGain('observation',3)>>
		<<image "locations/gadukino/village/findbike.jpg">>
		You find an old bicycle in the far corner of the barn. It's in surprisingly good condition. You pull it out of the barn and clean it up.
	<<elseif getvar("$findbag") == 0 and $wardrobe.purse.isValidItem == 0 and rand(0,10) >= 7>>
		<<set $findbag = 1>>
		<<if getvar("$findbag") == 1>>
			

		<</if>>
		<<run $pc.skillExperienceGain('observation',3)>>
		<<image "pc/items/gm/purses/5.jpg">>
		<p>In a far corner of the barn, you find a hessian sack filled with mostly junk, but at the bottom, you find a good-quality messenger bag.</p>
		<p>You can use this cool-looking bag as a handbag.</p>
		<<run $wardrobe.wear('gm_purse_5')>>
	<<elseif getvar("$vcard") == 0 and getvar("$vcard_trash") == 0 and rand(0,10) >= 8>>
		<<set $vcard = 1>>
		<<run $pc.skillExperienceGain('observation',3)>>
		<<image "locations/gadukino/village/vcards.jpg">>
		<p>"Hmm, what's this?" You've found an unopened deck of vintage adult playing cards still in its original cellophane wrapper.</p>
	<<elseif getvar("$findbraclet") == 0 and rand(0,10) >= 9>>
		<<set $findbraclet = 1>>
		<<run $pc.skillExperienceGain('observation',3)>>
		<<image "locations/gadukino/village/bracelet.jpg">>
		While looking through the barn, you spot a metal glint under a wood pile. Upon closer inspection, you see a silver bracelet crafted into a snake''s likeness. Strange, but fantastic that you would find something this valuable in the barn.
	<<elseif getvar("$findbraclet") > 0 and getvar("$findneck") == 0 and rand(0,10) >= 10>>
		<<set $findneck = 1>>
		<<run $pc.skillExperienceGain('observation',3)>>
		<<image "locations/gadukino/village/necklace.jpg">>
		<<if setup.startingCharacterTagsIncludes('magic')>>
			While looking through the barn, your foot goes through a rotten floorboard. You suddenly feel the presence of something magical under the floor. You get on your belly and look through the hole in the floor. You find a small box made of black wood. You pick up the box and see it's covered in strange writing and glyphs that look like serpents. A feeling of power is coming from within the box. You lift the box''s lid and see a black metal necklace that looks like a coiled snake with ruby eyes. You feel the power coming from the necklace, but it doesn''t feel like any power you have ever felt.
		<<else>>
			<p>While looking through the barn, your foot goes through a rotten floorboard and gets stuck. As you work your foot free, you glimpse something underneath the floor - a box or something. You get on your belly and look through the hole in the floor. You find a small box made of black wood. You pick up the box and see it's covered in strange writing and glyphs that look like serpents. The exotic look of the box gives you gooseflesh, and you find yourself holding your breath as you prepare to open the box. You lift the box's lid and see a black metal necklace that looks like a coiled snake with ruby eyes. You inspect the necklace, watching the light sparkle as it is reflected by the facets on the deep red rubies. You cannot begin to guess what this necklace must be worth.</p>
		<</if>>
	<<else>>
		<<run $pc.skillExperienceGain('observation',rand(0,1))>>
		<<image "locations/gadukino/village/junk_barn.jpg">>
		In the barn, you find many mouldy magazines, rusty tools and equipment, toys, and dusty, yellowed books. The entire barn reeks of mould and decay.
	<</if>>
	<<act 'Finish'>>
		<<gt 'gadsarai'>>
	<</act>>
<</if>>
<<if $location_var[$here][0] == 'horse'>>
	<<set $time.minutes += 1>>
	<center><h4>Grandparents'' Barn</h4></center>
	<<image "locations/gadukino/village/horse.jpg">>
	Grandfather''s trusted workhorse, Desperado.
	<<actCLA 'Leave'>>
		<<set $time.minutes += 1>> <<gt 'gadsarai'>>
	<</actCLA>>
	<<if getvar("$grandpaQW['chore_feed_horse']") == 1>>
		<<actCLA 'Feed the horse (0:30)'>>
			<<set $time.minutes += 30>>
			<<setinit $grandpaQW['chore_feed_horse'] = 2>>
			<<run $pc.skillExperienceGain('handyWork',rand(1,3))>>
			<<image "locations/gadukino/village/feed_horse.jpg">>
			You grab a sack of grain and fill Desperado''s feed bucket. Then, you hang the bucket from his stall and gently pat his nose as he begins to eat.
			You watch him eat for a little while before moving on.
			<<act 'Finish'>>
				<<gt 'gadsarai' 'horse'>>
			<</act>>
			<<actCLA 'Return back to your grandfather'>>
				<<set $time.minutes += 3>> <<gt 'gadhouse' 'grandpa'>>
			<</actCLA>>
		<</actCLA>>
	<</if>>
	<<if getvar("$grandpaQW['chore_lead_horse_to_field']") == 1>>
		<<actCLA 'Lead the horse to the field (1:00)'>>
			<<set $time.minutes += 60>>
			<<setinit $grandpaQW['chore_lead_horse_to_field'] = 2>>
			<<run $pc.skillExperienceGain('handyWork',rand(1,3))>>
			<<image "locations/gadukino/village/horse_field.jpg">>
			You take Desperado by the bridle and lead him to the field. You let him free in the paddock area and watch him run about before moving on.
			<<act 'Continue'>>
				<<gt 'gadfield' 'field'>>
			<</act>>
			<<actCLA 'Return back to your grandfather (0:30)'>>
				<<set $time.minutes += 30>> <<gt 'gadhouse' 'grandpa'>>
			<</actCLA>>
		<</actCLA>>
	<</if>>
	<<if getvar("$grandpaQW['chore_bathe_horse']") == 1>>
		<<actCLA 'Lead the horse to the river (0:30)'>>
			<<set $time.minutes += 30>>
			<<setinit $grandpaQW['chore_bathe_horse_prog'] = 1>>
			<<run $pc.skillExperienceGain('handyWork',rand(1,3))>>
			<<image "locations/gadukino/village/horse_field.jpg">>
			You take Desperado by the bridle and lead him to the river.
			<<act 'Continue'>>
				<<gt 'gadriver' 'gadbitch'>>
			<</act>>
		<</actCLA>>
	<</if>>
	<<if getvar("$grandpaQW['chore_bathe_horse']") == 2>>
		<<actCLA 'Return back to your grandfather'>>
			<<set $time.minutes += 3>> <<gt 'gadhouse' 'grandpa'>>
		<</actCLA>>
	<</if>>
	<<if getvar("$grandpaQW['chore_brush_horse']") == 1>>
		<<actCLA 'Groom the horse (1:00)'>>
			<<set $time.minutes += 60>>
			<<setinit $grandpaQW['chore_brush_horse'] = 2>>
			<<run $pc.skillExperienceGain('handyWork',rand(1,3))>>
			<<image "locations/gadukino/village/comb_horse.jpg">>
			<p>You spend about an hour cleaning and brushing Desperado, scrubbing his coat and brushing his mane and tail. Finally, you are satisfied with the result - he looks as clean and healthy as ever.</p>
			<<act 'Finish'>>
				<<gt 'gadsarai' 'horse'>>
			<</act>>
			<<actCLA 'Return back to your grandfather'>>
				<<set $time.minutes += 3>> <<gt 'gadhouse' 'grandpa'>>
			<</actCLA>>
		<</actCLA>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'cow'>>
	<<set $time.minutes += 1>>
	<center><h4>Grandparents'' Barn</h4></center>
	<<image "locations/gadukino/village/cow.jpg">>
	Grandma''s favorite animal, the cow, Dawn.
	<<actCLA 'Leave'>>
		<<set $time.minutes += 1>> <<gt 'gadsarai'>>
	<</actCLA>>
	<<if getvar("$grandmaQW['chore_milk_cow']") == 1>>
		<<actCLA 'Milk the cow (0:30)'>>
			<<set $time.minutes += 30>>
			<<setinit $grandmaQW['chore_milk_cow'] = 2>>
			<<run $pc.skillExperienceGain('handyWork',rand(1,3))>>
			<<image "locations/gadukino/village/milk_cow.jpg">>
			You start milking Dawn, improving each time you do it.
			<<act 'Finish'>>
				<<gt 'gadsarai' 'cow'>>
			<</act>>
			<<actCLA 'Return back to your grandmother'>>
				<<set $time.minutes += 3>> <<gt 'gadhouse' 'grandma'>>
			<</actCLA>>
		<</actCLA>>
	<</if>>
	<<if getvar("$grandpaQW['chore_feed_cow']") == 1>>
		<<actCLA 'Feed the cow (0:30)'>>
			<<set $time.minutes += 30>>
			<<setinit $grandpaQW['chore_feed_cow'] = 2>>
			<<run $pc.skillExperienceGain('handyWork',rand(1,3))>>
			<<image "locations/gadukino/village/feed_cow.jpg">>
			<p>Dawn is excited about feeding time, shaking her head and doing little cow tippy-taps with her feet. You dump some hay in her trough and watch as she digs in.</p>
			<<act 'Finish'>>
				<<gt 'gadsarai' 'cow'>>
			<</act>>
			<<actCLA 'Return back to your grandfather'>>
				<<set $time.minutes += 3>> <<gt 'gadhouse' 'grandpa'>>
			<</actCLA>>
		<</actCLA>>
	<</if>>
	<<if getvar("$grandpaQW['chore_lead_cow_to_field']") == 1 or getvar("$grandpaQW['chore_herd_cattle']") == 1>>
		<<actCLA 'Lead the cow to the field (1:00)'>>
			<<set $time.minutes += 60>>
			<<run $pc.skillExperienceGain('handyWork',rand(1,3))>>
			<<image "locations/gadukino/village/cow_field.jpg">>
			<<if getvar("$grandpaQW['chore_lead_cow_to_field']") == 1>>
				You lead Dawn to the field, where you let the shepherds take over.
				<<setinit $grandpaQW['chore_lead_cow_to_field'] = 2>>
			<</if>>
			<<if getvar("$grandpaQW['chore_herd_cattle']") == 1>>
				You lead Dawn to the field, where your grandfather awaits you. It's his turn to keep an eye on the cows..

			<</if>>
			<<act 'Continue'>>
				<<gt 'gadfield' 'cow'>>
			<</act>>
			<<if getvar("$grandpaQW['chore_lead_cow_to_field']") == 2>>
				<<actCLA 'Return back to your grandfather (0:30)'>>
	<<setn $time.minutes += 30>> <<gt 'gadhouse' 'grandpa'>>
<</actCLA>>

			<</if>>
		<</actCLA>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'boar'>>
	<<set $time.minutes += 1>>
	<center><h4>Grandparents'' Barn</h4></center>
	<<image "locations/gadukino/village/boar.jpg">>
	One of your grandparents'' dearest possessions, the boar, Nickle.
	<<actCLA 'Leave'>>
		<<set $time.minutes += 1>> <<gt 'gadsarai'>>
	<</actCLA>>
	<<if getvar("$grandpaQW['chore_feed_boar']") == 1>>
		<<actCLA 'Feed the hog (0:30)'>>
			<<set $time.minutes += 30>>
			<<setinit $grandpaQW['chore_feed_boar'] = 2>>
			<<run $pc.skillExperienceGain('handyWork',rand(1,3))>>
			<<image "locations/gadukino/village/feed_boar.jpg">>
			You grab the feed bag and fill Nickle''s trough. You stand there and watch for a few minutes as he eats like a... well, like a pig.
			<<act 'Finish'>>
				<<gt 'gadsarai' 'boar'>>
			<</act>>
			<<actCLA 'Return back to your grandfather'>>
				<<set $time.minutes += 3>> <<gt 'gadhouse' 'grandpa'>>
			<</actCLA>>
		<</actCLA>>
	<</if>>
<</if>>
