:: swamp_yard
<<set $here = 'swamp_yard'>>
<<set $ARGS = $location_var[$here]>>
<<gs 'hunter_ambient' 'schedule'>>
<<if $location_var[$here][0] == 'start'>>
	<<set $loc = 'swamp_yard'>>
	<<set $loc_arg = 'start'>>
	<<set $menu_loc = 'swamp_yard'>>
	<<set $menu_arg = 'start'>>
	<<set $menu_off = 0>>
	<<set $location_type = 'secluded'>>
	<<set $hunterscabin = 1>>
	<<gs 'gadukino_event' 'sound'>>
	<<if getvar("$lost_girl") == 1>>
		<<if $time.daystart > $forest_lostday + 1 and rand(forest_lostday - daystart, 30) >= 30 and $time.dayStage == 2>>
			<<gt 'gadforestlost' 'rescue' 'ranger' 'swamp_yard'>>
		<</if>>
	<</if>>
	<center><B>The yard in front of the hut</B></center>
	<<if $time.month >= 5 and $time.month <= 9>>
		<center><img <<$set_imgh>> src="images/locations/gadukino/hunters/'+iif(dayStage < 4,'swamp_yard.jpg','swamp_yard_night.jpg')+'"></center>
	<<else>>
		<center><img <<$set_imgh>> src="images/locations/gadukino/hunters/'+iif(dayStage < 4,'swamp_yard_winter.jpg','swamp_yard_winter_night.jpg')+'"></center>
	<</if>>
	Behind the hut, there is a <<link "spring">><<gt 'swampspring'>><</link>>. If you continue further down, there is a small <<link "creek">><<gt 'backwater'>><</link>>  with relatively clean water.
	<<if getvar("$hunters_available") == 1>>
		<<if getvar("$hunters_were_met") == 0>>
			<<if getvar("$hunters_outside") == 1>>
				You spot some unfamiliar <<link "people">><<gt 'hunters' 'start'>><</link>> standing in front of the hut.
			<</if>>
		<<else>>
			<<if getvar("$hunters_outside") == 1>>
				<<if getvar("$hunters_evening") == 1>>
					You hear some gunshots and see <<link "Andrei">><<gt 'swamp_woods' 'shooting_practice'>><</link>>, not too far in the distance, shooting some bottles.
					<<link "Igor and Sergey">><<gt 'hunters' 'start'>><</link>> are standing in the front yard.
				<<else>>
					<<if getvar("$campfire") == 1 and getvar("$hunters_chattime") == 0>>
						You see the hunters are sitting by the <<link "campfire">><<gt 'swamp_yard' 'campfire'>><</link>>
					<<else>>
						You notice the <<link "hunters">><<gt 'hunters' 'start'>><</link>> standing in the front yard.
					<</if>>
				<</if>>
			<<else>>
				The camp is quiet, but you can hear the hunters'' voices from the hut.
			<</if>>
		<</if>>
	<<else>>
		<<if getvar("$hunters_were_met") == 0>>
			The camp is quiet. There''s nobody here right now, but the camp looks like it is likely in use and not abandoned.
		<<else>>
			<<if getvar("$hunters_hunting") == 1>>
				<p>The hunters are most likely out hunting for a couple hours. You have the camp to yourself!</p>
			<<else>>
				The camp is quiet. The hunters are asleep in the hut.
			<</if>>
		<</if>>
	<</if>>
	<<act '<b>Go to the swamp</b>'>>
		<<gt 'swamp_yard' 'swamp_escape'>>
	<</act>>
	<<gs 'bicycle' 'swamp_yard'>>
	<<act 'Go into the house'>>
		<<gt 'swamphouse' 'start'>>
	<</act>>
	<<act 'Approach the firepit'>>
		<<gt 'swamp_yard' 'campfire'>>
	<</act>>
	<<act 'Visit the spring'>>
		<<gt 'swampspring'>>
	<</act>>
	<<act 'Visit the creek'>>
		<<gt 'backwater'>>
	<</act>>
	<<actCLA 'Explore the woods'>>
		<<set $time.minutes += 10>> <<gt 'swamp_woods' 'start'>>
	<</actCLA>>
	<<if getvar("$hunters_outside") == 1 and getvar("$hunters_available") == 1 and rand(1,2) == 1>>
		<<gs 'swamp_yard' 'daytime_flavor_events'>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'campfire'>>
	<!-- !TODO: Add mechanic so that fire slowly goes through wood and extinguishes when there is no more left-->
	<<set $loc = 'swamp_yard'>>
	<<set $loc_arg = 'campfire'>>
	<<set $menu_off = 1>>
	<<gs 'hunter_ambient' 'schedule'>>
	<<act 'Move away'>>
		<<gt 'swamp_yard' 'start'>>
	<</act>>
	<<if getvar("$campfire") == 1>>
		<<image `'locations/gadukino/hunters/'+iif(dayStage = 2,'campfire_day.jpg','campfire_night.jpg')+''`>>
		A nice, warm campfire you can sit and relax by. You can use it for cooking something or heating up some water to bathe.
		You can also put it out with the bucket if there is enough water.
		<<if getvar("$hunters_breakfast") == 1 or getvar("$hunters_lunch") == 1>>
			 			<<image "locations/gadukino/hunters/hanters1.jpg">>
			The hunters also sit around the campfire, talking and joking about all kinds of stuff before heading out hunting.
			<<act 'Chat (0:30)'>>
				<<gt 'hunter_interactions' 'chat_with_hunters'>>
			<</act>>
			<!-- !TODO: Flesh out the learning content here-->
			<<actCLA 'Ask for some survival tips (0:10)'>>
				<<set $hunter_lessons += 1>>
				<<if getvar("$hunter_collective_opinion") > 25>>
					<<set $hunter_collective_opinion -= 1>>
					<<run $pc.skillExperienceGain('bushcraft',1)>>
					<<set $time.minutes += 10>>
					The hunters talk to you about some of their experiences when they first started out.
				<<else>>
					<<if getvar("$hunter_lessons") > 10 AND hunter_sexual_comfort>>
						<!-- !TODO: Prototype implementation for the creekside event, to be revamped-->
						Sergei tells you to go by the creek for the next lesson about how to scope the area for a hunt.
						<<set $hunter_lessons -= 8>>
						<<act 'Further'>>
							<<gt 'hunter_favors' 'creekside_gangbang_request'>>
						<</act>>
					<<else>>
						<<set $time.minutes += 20>>
						The hunters do not even bother to answer you. Instead, you sit quietly for twenty minutes before getting on to other business.
					<</if>>
				<</if>>
				<<act 'Further'>>
					<<gt 'swamp_yard' 'campfire'>>
				<</act>>
			<</actCLA>>
		<</if>>
		<<if getvar("$hunters_drink") == 1>>
			 			<<image "locations/gadukino/hunters/fireside_drink.jpg">>
			The hunters are drinking and chatting loudly. You can join them for a chat or maybe a drink or two if you like.
			<<act 'Chat (0:30)'>>
				<<gt 'hunter_interactions' 'chat_with_hunters'>>
			<</act>>
			<<act 'Ask them for a drink'>>
				<<gt 'hunter_interactions' 'join_drinking'>>
			<</act>>
		<</if>>
		<<if getvar("$bucket") >= 3>>
			<<actCLA 'Put out the fire'>>
				<<image "locations/gadukino/hunters/campfire_put_out.jpg">>
				You pour some water to extinguish the campfire.
				<<set $campfire = 0>>
				<<set $time.minutes += 5>>
				<<set $bucket -= 3>>
				<<act 'Further'>>
					<<gt 'swamp_yard' 'campfire'>>
				<</act>>
			<</actCLA>>
		<</if>>
		<<if getvar("$bucket") > 0>>
			<<if getvar("$boletus") > 0 and getvar("$mushroom_soup") == 0>>
				<<actCLA 'Cook some mushroom soup (0:30)'>>
	<<gs 'hunter_favors' 'mushroom_soup'>>
<</actCLA>>

			<</if>>
			<<if getvar("$raw_meat") > 0 and getvar("$meat_stew") == 0>>
				<<actCLA 'Cook some meat stew (1:00)'>>
	<<gs 'hunter_favors' 'meat_stew'>>
<</actCLA>>

			<</if>>
		<</if>>
		<<if getvar("$bucket") >= 5 and getvar("$hotwater") == 0>>
			<<actCLA 'Heat up water (0:30)'>>
				<<image "locations/gadukino/hunters/hotwater.jpg">>
				<<set $time.minutes += 30>>
				<<set $bucket -= 5>>
				<<set $hotwater = 1>>
				<<set $water_heated += 1>>
				<<if getvar("$water_heated") > 5 and ($pc.pcs_inhib < 85 or getvar("$hunter_sexual_comfort") > 25)>>
					"It is too tedious to keep heating up water", you think to yourself.
				<<else>>
					<p>With the now-heated water, you can bathe yourself in the tub.</p>
				<</if>>
				<<act 'Continue'>>
					<<gt 'swamp_yard' 'campfire'>>
				<</act>>
			<</actCLA>>
		<</if>>
		<<actCLA 'Eat a meal'>>
			<<act 'Return'>>
				<<gt 'swamp_yard' 'campfire'>>
			<</act>>
			<<act 'Eat jerky and trail mix'>>
				<<gt 'food' 'jerky'>>
			<</act>>
			<<if getvar("$meat_stew") > 0>>
				<<actCLA 'Eat meat stew'>>
					<<gt 'beverage' 'meat_stew'>>
					<<set $meat_stew -= 1>>
					<<if getvar("$meat_stew") > 0>>
						<p>There's meat_stew '+iif(meat_stew > 1, 'servings','serving')+' of stew left in the pot</p>
					<<else>>
						You have finished the last of the stew. The pot is empty.
					<</if>>
				<</actCLA>>
			<</if>>
			<<if getvar("$mushroom_soup") > 0>>
				<<actCLA 'Eat mushroom soup'>>
					<<gt 'beverage' 'mush_soup'>>
					<<set $mushroom_soup -= 1>>
					<<if getvar("$mushroom_soup") > 0>>
						<p>There's mushroom_soup '+iif(mushroom_soup > 1, 'servings','serving')+' of soup left in the pot</p>
					<<else>>
						You have finished the last of the soup, and the pot is empty.
					<</if>>
				<</actCLA>>
			<</if>>
			<<if getvar("$bilberry") > 0>>
				<<act 'Eat berries'>>
					<<gt 'food' 'bilberry'>>
				<</act>>
			<</if>>
		<</actCLA>>
		<<if $pc.alko > 8>>
			<<gt 'hunter_interactions' 'drunken_blackout'>>
		<</if>>
	<<else>>
		<<image `'locations/gadukino/hunters/'+iif(dayStage = 2,'campfire_out_day.jpg','campfire_out_night.jpg')+''`>>
		You can use this firepit to light a fire if you have some firewood available.
		<!-- !TODO: Tie fire lighting to bushcraft, make hunters do it on their schedule or with Sveta asking-->
		<<if getvar("$firewood") >= 10 and getvar("$campfire") == 0>>
			<<actCLA 'Light fire'>>
				<<image `'locations/gadukino/hunters/'+iif($wardrobe.clothingworntype ! 'nude','campfire_light.jpg','campfire_light_nude.jpg')+''`>>
				You use some chopped wood, dry branches and twigs to light a campfire in the firepit.
				<<set $firewood -= 10>>
				<<set $campfire = 1>>
				<<set $time.minutes += 15>>
				<<act 'Further'>>
					<<gt 'swamp_yard' 'campfire'>>
				<</act>>
			<</actCLA>>
		<<elseif getvar("$firewood") < 10 and getvar("$campfire") == 0>>
			There is some wood and twigs by the pit but not enough to light a new fire. You will probably need to collect branches, chop some or ask a hunter to do so.
		<</if>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'swamp_escape'>>
	<!-- !add chance to swamped by illume-->
	<<if getvar("$hunters_available") == 1 and getvar("$hunters_outside") == 1>>
		<<if $time.hour >= 6 and $time.hour < 21>>
			<<set $time.minutes += 5>>
			<<if rand(0,9) > 8>>
				<<gt 'swamp' 'start' else gt 'swamp' 'stuck'>>

			<</if>>
		<<else>>
			<<image "locations/gadukino/hunters/handshelp.jpg">>
			As you start moving into the swamp, Igor calls after you.
			<!-- !TODO: Different line depending on opinion and slut-->
			<p>"$pc.name_nick, where are you going? You will get stuck in there!</p>
			<<act 'Turn back'>>
				<<gt 'swamp_yard' 'start'>>
			<</act>>
			<<actCLA 'Ignore him and keep going'>>
				<<set $time.minutes += 5>>
				<!-- !TODO: Add skill clothing and temp check here instead of praying to RNGesus-->
				<<if rand(0,9) > 8>>
					<<gt 'swamp' 'start' else gt 'swamp' 'stuck'>>

				<</if>>
			<</actCLA>>
		<</if>>
	<<else>>
		<<set $time.minutes += 5>>
		<!-- !TODO: Here too, also see how to avoid duplicating. Maybe create a child event node?-->
		<<if ($time.hour >= 6 and $time.hour < 21) or rand(0,9) > 6>>
			<<gt 'swamp' 'start' else gt 'swamp' 'stuck'>>

		<</if>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'daytime_flavor_events'>>
	<<gs 'hunter_ambient' 'schedule'>>
	<<if rand(1,30) == 1 and getvar("$hunters_available") > 0>>
		<<gt 'hunter_interactions' 'skirt_breeze'>>
	<<elseif rand(1,10) == 1 and getvar("$hunters_available") > 0>>
		<<gt 'hunter_favors' 'housekeeping_request'>>
	<<elseif rand(1,12) == 1 and getvar("$hunters_available") > 0>>
		<<gt 'hunter_ambient' 'yard_convo'>>
	<<elseif rand(1, hunter_sexual_comfort / 4 + 2) == 1 and getvar("$hunters_available") > 0>>
		<<gt 'hunter_interactions' 'naked_encounter'>>
	<<elseif rand(1,15) == 1 and getvar("$hunters_available") > 0>>
		<<gt 'hunter_ambient' 'bring_food'>>
	<</if>>
<</if>>
