code:
:: Farm Work
<<set $outside to 1>><<set $location to "alex_farm">><<set $bus to "farm">><<effects>>
<<farm_work_update>>
You are on Alex's farm. A rustic farmhouse overlooks a yard and chicken coop. Other buildings nestle between trees and hedgerows.
<<if $exhibitionism lt 75 and $exposed gte 2 and $farm_naked is 1>>With so many places to hide your <<lewdness>>, you do your best to avoid exposing yourself and avoid Alex where you can.<</if>>

<<if $farm.build isnot undefined and $farm.build isnot 0>>
	<<switch $farm.build>>
	<<case "wall 1">>
		The wall is being repaired.
	<<case "wall 2">>
		The wall is being reinforced.
	<<case "wall 3">>
		A modern fence is being built around the farm.
	<<case "wall 4">>
		Barbed wire is being affixed atop the fence.
	<<case "tower 1">>
		A tower is being built by the fields.
	<<case "tower 2">>
		Searchlights are being affixed atop the watchtower.
	<<case "woodland 1">>
		The fence is being extended around an area of woodland.
	<<case "woodland 2">>
		The fence is being extended around a fecund area of woodland.
	<<case "woodland 3">>
		The fence is being extended around a prodigious area of woodland.
	<<case "kennel 1">>
		Vicious apparatus is being installed in the kennel.
	<<case "barn 1">>
		New milking equipment is being installed in the barn.
	<<case "barn 2">>
		An extension is being built on the barn.
	<<case "stable 1">>
		The stable is being expanded.
	<<case "coop 1">>
		The coop is being expanded.
	<<case "coop 2">>
		The coop is being expanded.
	<<case "parasites 1">>
		The parasite barn is being built.
	<<case "parasites 2">>
		The parasite barn is being expanded.
	<<case "irrigation">>
		Irrigation is being installed in a field.
	<</switch>>
	<<if $hour gte 6>>
		Workers traipse across the farm.
	<</if>>

<</if>>

<<if $farm_stage lte 6>>
	You'll earn <<printmoney $farm.wage>> for every hour worked.
<</if>>

<<if ($exposed gte 2 and $uncomfortable.nude is true) or ($exposed is 1 and $uncomfortable.underwear is true)>>
	<<if $farm.build_timer gte 1 and $hour gte 6>>
		You sneak across the farm, keeping your <<lewdness>> covered as best you can. You hope you aren't spotted by the workers.
	<<else>>
		You sneak across the farm, keeping your <<lewdness>> covered as best you can.
	<</if>>

<</if>>

<<if $farm_stage lt 12>>
	<<set _clearing to (100 - $farm.clearing)>>
	<<set $percent=Math.floor((_clearing/100)*100)>>
	One of the fields is being cleared,
	<<if $farm.clearing lte 0>>
		and is ready for planting!

		<<print '

'>>

	<<elseif $farm.clearing lte 20>>
		and is almost ready for planting.

		<<print '

'>>

	<<elseif $farm.clearing lte 40>>
		and is starting to look civilised.

		<<print '

'>>

	<<elseif $farm.clearing lte 60>>
		and soil has been exposed in places.

		<<print '

'>>

	<<elseif $farm.clearing lte 80>>
		but the tangle remains defiant.

		<<print '

'>>

	<<elseif $farm.clearing lte 99>>
		but little progress has been made.

		<<print '

'>>

	<<else>>
		but remains a jungle of weeds.

		<<print '

'>>

	<</if>>

<</if>>

<<if $farm_count is undefined>>
	<<set $farm_count to 0>>
<<elseif $farm_count gte 60>>
	<<set $farm_count -= 60>>
	<<if $farm_stage lte 6>>
		<<set $money += $farm.wage>>
		You've earned <<printmoney $farm.wage>>

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

<<if $fields_damaged gte 0>>
	<<farm_damage_report>>

	<<link [[Next|Farm Work]]>><</link>>

<<elseif $stress gte 10000>>
	<<passoutfarmroad>>
<<elseif $farm_attack_timer is 0 and $hour gte 21>>
	<<npc Alex>><<person1>>
	Alex rushes over. "Remy's here," <<he>> says. "We can do this. Go get ready, I'll
	<<if $farm.tower_guard>>
		check on $farm.tower_guard."
	<<else>>
		see if I can spot them."
	<</if>>

	<<farm_assault_intro>>

	<<link [[Prepare|Farm Assault Wardrobe]]>><<endevent>><<set $phase to 2>><</link>>

<<elseif ($parasite.left_ear.name is "slime" or $parasite.right_ear.name is "slime") and $slimeFarmNaked is undefined and $rng lte ($corruption_slime / 2) and $slimeFarmNakedStored is undefined and $exposed lt 2>>
	You feel the slime in your head command you to expose yourself and hide your clothes while you work today. It promises rewards if you comply, and threatens consequences if you do not.

	<<link [[Obey|Farm Slime Strip Obey]]>><<corruption 1>><<pain -4>><<stress -6>><<trauma -12>><<set $submissive += 1>><</link>><<gcorruption>><<lpain>><<lltrauma>><<lstress>>

	<<link [[Defy|Farm Slime Strip Defy]]>><<corruption -1>><<pain 8>><<stress 6>><<trauma 6>><<set $submissive -= 1>><</link>><<lcorruption>><<ggpain>><<ggtrauma>><<ggstress>>

<<elseif ($parasite.left_ear.name is "slime" or $parasite.right_ear.name is "slime") and $slimeFarmNaked is true and $slimeFarmNakedStored is undefined>>
	Following the slime's command, you find a spot where you think your clothes will be safe and strip before heading to work.
	<<undressclothes "farmHidingSpot">><<set $slimeFarmNakedStored to true>><<set $slimeFarmNaked to true>>

	<<link [[Next|Farm Work]]>><</link>>
<<elseif ($parasite.left_ear.name is "slime" or $parasite.right_ear.name is "slime") and $slimeFarmNaked is true and ($worn.lower.name.includes("towel") or $worn.upper.name.includes("towel")) and $farm_naked is 1>>
	<<generalRuined "upper">><<generalRuined "lower">>
	Following the slime's command, you leave the towel for Alex to find.

	<<link [[Next|Farm Work]]>><</link>>
<<elseif ($hour lte 5 or $hour gte 22 or ($hour is 21 and $farm_end is 1)) and $farm_stage lt 7>>
	<<link [[Sneak into the barn (0:05)|Farm Barn]]>><<pass 5>><</link>>

	<<link [[Leave|Farmland]]>><</link>>

<<elseif $exposed gte 2 and $farm_naked isnot 1 and $farm_stage lt 7>>
	You hide behind a fence, concealing your <<lewdness>>.

	<<if $exhibitionism gte 75>>
		<<link [[Work anyway|Farm Work Naked]]>><<npcincr Alex lust 3>><<set $farm_naked to 1>><</link>><<exhibitionist5>><<gglust>>

	<<elseif $slimeFarmNakedStored is true>>
		<<if $exhibitionism gte 55>>
			<<set _stress to 10>>
			<<set _trauma to 0>>
		<<elseif $exhibitionism gte 35>>
			<<set _stress to 20>>
			<<set _trauma to 10>>
		<<else>>
			<<set _stress to 40>>
			<<set _trauma to 40>>
		<</if>>
		<<link [[Work anyway|Farm Work Naked]]>><<npcincr Alex lust 3>><<set $farm_naked to 1>><<stress _stress>><<trauma _trauma>><</link>><<gglust>>
		<<if _stress is 40>><<ggstress>><<else>><<gstress>><</if>>
		<<if _trauma is 40>><<ggtrauma>><<elseif _trauma is 5>><<gtrauma>><</if>>

	<</if>>
	<<if $farm_work.alex isnot undefined and $farm_work.alex isnot "shower" and $hour gte 6 and $hour lte 20 and $slimeFarmNakedStored is undefined>>
		<<if $worn.upper.exposed gte 2 or $worn.lower.exposed gte 2>>
			<<link [[Ask Alex for clothes (0:05)|Farm Alex Clothes]]>><<farm_yield -1>><<npcincr Alex dom 1>><<npcincr Alex lust 1>><</link>><<exhibitionist1>><<lfarm>><<gdom "Alex">><<glust>>

		<<else>>
			<<link [[Ask Alex for something to dry with (0:05)|Farm Alex Dry]]>><<farm_yield -1>><<npcincr Alex dom 1>><<npcincr Alex lust 1>><</link>><<exhibitionist1>><<lfarm>><<gdom "Alex">><<glust>>

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

	<<link [[Leave|Farmland]]>><</link>>

<<elseif ($farm_shift gte 360 or $farm.clearing lte 50) and $farm_stage is 2>>
	<<farmVisitor>>
<<elseif $farm_stage is 3 and $farm.clearing lte 0>>
	<<earnFeat "Farmhand">>
	<<farmStage4>>
<<elseif $farm_stage is 4 and $farm.clearing lte 0>>
	<<set $farm.aggro to 0>>
	<<farmStage5>>
	<<set $remy_seen to "farm">>
<<elseif $farm_stage is 5 and $farm.clearing lte 0>>
	<<earnFeat "Farmer">>
	<<set $farm_countdown to 3>>
	<<farmStage6>>
<<elseif $farm_stage is 6 and ($farm_countdown lte 0 or $farm.clearing lte 50)>>
	<<npc Alex>><<person1>>
	Alex emerges from <<his>> shed. <<He>> looks worried. "Can you smell that?" <<he>> asks. It's faint, but something is burning.

	"Neighbour might have let a bonfire get out of control," <<he>> says, scanning the horizon for smoke. "Best be safe. Could you check the sheds? I'll skirt the farm."

	<<link [[Next|Farm Stage 7]]>><<set $farm_countdown to 7>><<set $farm_stage to 7>><<set $alex_countdown to 3>><<set $wardrobes.alexFarm.unlocked to true>><</link>>
<<elseif $farm_stage gte 7 and $NPCName[$NPCNameList.indexOf("Alex")].love gte 50 and $alex_countdown lte 0>>
	<<npc Alex>><<person1>>
	You return to the courtyard in front of the farmhouse. You hear footsteps fast approaching. You turn just in time to see Alex. With a laugh, <<he>> grapples and drags you off your feet.

	You're left on your back. Alex straddles you, and pins your wrists to the earth. "What's wrong?" <<he>> teases. "Can't you break free?"<<gglust>><<npcincr Alex lust 5>><<gdom>><<npcincr Alex dom 1>>

	<<link [[Get on top|Farm Love Get]]>><<unset $alex_countdown>><</link>><<physiquedifficulty 1 16000>>

	<<link [[Get annoyed|Farm Love Annoyed]]>><<unset $alex_countdown>><</link>>

	<<link [[Flirt|Farm Love Flirt]]>><<npcincr Alex love 1>><<npcincr Alex lust 5>><<unset $alex_countdown>><</link>><<promiscuous1>><<glove>><<gglust>>

<<elseif $farm_stage is 7 and $farm.clearing lte 0>>
	You observe the fifth field. It was a tangled mess not long ago.

	<<npc Alex>><<person1>><<generate2>>
	You hear an unfamiliar <<person2>><<personsimple>>.
	<<if $panicattacks gte 1 and $controlled is 0>>
		You feel a surge of panic. Then you hear Alex respond, and <<his>> relaxed voice calms you.
	<<else>>
		<<Hes>> speaking with Alex.
	<</if>>
	You walk over.

	"It is expensive," the <<person>> nods. "But if it's security you want, you get what you pay for."

	"Thanks," Alex replies. "I'll be in touch."

	<<if $exposed gte 1>>
		The <<person>> turns to leave, but stops when <<he>> sees you. <<covered>> <<He>> regains <<his>> composure, and pretends not to look at you as <<he>> leaves the farm.
	<<else>>
		The <<person>> nods at you on the way out.
	<</if>>

	<<link [[Next|Farm Stage 8]]>><<set $farm.clearing to 100>><<set $farm_stage to 8>><<add_plot farm earth 3 large>><</link>>

<<elseif $farm_stage is 8 and $farm.clearing lte 0>>
	You observe the sixth field. It was a tangled mess not long ago.

	<<npc Alex>><<person1>>
	You hear a bang from Alex's shed. The door flies open, and a strange, multi-limbed creature leaps out, surrounded by smoke. Alex runs out after it, holding a cage.

	<<link [[Catch it|Farm Stage 9 Catch]]>><<set $farm_stage to 9>><<set $farm.clearing to 100>><<add_plot farm earth 3 large>><</link>><<dancedifficulty 1 1000>>

	<<link [[Leave it to Alex|Farm Stage 9 Leave]]>><<set $farm_stage to 9>><<set $farm.clearing to 100>><<add_plot farm earth 3 large>><</link>>

<<elseif $farm_stage is 9 and $farm.clearing lte 0>>
	You observe the seventh field. It was a tangled mess not long ago.

	<<npc Alex>><<person1>>
	You hear a rustle. A strange leathery creature darts from beneath.

	A net hurls from behind you, landing on the creature. It tightens as the creature flails. There's a rope attached. You turn to see Alex. <<He>> pulls the creature closer.

	"It works!" <<he>> exclaims as <<he>> holds up the squirming net. "These blighters are hard to catch."

	<<link [[Be impressed|Farm Stage 10 Impressed]]>><<set $farm_stage to 10>><<set $farm.clearing to 100>><<add_plot farm earth 3 large>><<npcincr Alex love 1>><</link>><<glove>>

	<<link [[Be dismissive|Farm Stage 10 Dismiss]]>><<set $farm_stage to 10>><<set $farm.clearing to 100>><<add_plot farm earth 3 large>><<npcincr Alex love -1>><<npcincr Alex love -3>><</link>><<llove>><<lldom>>

<<elseif $farm_stage is 10 and $farm.clearing lte 0>>
	You observe the eighth  field. It was a tangled mess not long ago.

	<<npc Alex>><<person1>>
	You see Alex kneeling at the base of the <<farm_fence>>. <<He>> gazes at a strange purple flower. Seeds scatter into <<his>> palm when <<he>> prods it.

	"Seen weeds like this before," <<he>> says. "Can't find them in any book, and never found one seeding." <<He>> rises. "Do you think we could get them to take? Remy grows them. They must have value."

	<<link [[Be confident|Farm Stage 11 Confident]]>><<set $farm_stage to 11>><<set $farm.clearing to 100>><<add_plot farm earth 3 large>><</link>>

	<<link [[Advise caution|Farm Stage 11 Caution]]>><<set $farm_stage to 11>><<set $farm.clearing to 100>><<add_plot farm earth 3 large>><</link>>

<<elseif $farm_stage is 11 and $farm.clearing lte 0>>
	<<earnFeat "Cultivator">>

	You observe the ninth field. It was a tangled mess not long ago.

	<<npc Alex>><<person1>>
	Alex stands at your side.

	<<link [[Hold hands|Farm Stage 12 Hands]]>><<set $farm_stage to 12>><<set $farm.clearing to 100>><<npcincr Alex love 1>><<add_plot farm earth 3 large>><</link>><<handholdingvirginitywarning>><<glove>>

	<<link [[Pat back|Farm Stage 12 Pat]]>><<set $farm_stage to 12>><<set $farm.clearing to 100>><<add_plot farm earth 3 large>><</link>>

<<elseif $hour is 21 and $farm_end is undefined and $farm_stage lt 7>>
	<<set $farm_end to 1>>
	<<npc Alex>><<person1>>
	<<if $exposed gt 0 and $season is "winter">>
		Alex wipes the sweat off <<his>> forehead as <<he>> approaches you. "Done for another day," <<he>> says, blushing. "It's getting rather cold, you might want to wear something warmer." <<glust>><<npcincr Alex lust 1>>
	<<elseif $exposed gt 0>>
		Alex wipes the sweat off <<his>> forehead as <<he>> approaches you. "Done for another day," <<he>> says, blushing. "It'll be getting colder, you might want to wear a little more." <<glust>><<npcincr Alex lust 1>>
	<<else>>
		Alex wipes the sweat off <<his>> forehead as <<he>> approaches you. "Done for another day," <<he>> says, smiling.
	<</if>>
	<<if $farm_count gte 1 and $farm_stage lte 6>>
		<<set $money += $farm.wage>>
		"Here's a little extra." <<He>> hands you <<printmoney $farm.wage>>.
	<</if>>

	You walk down the road leading away from the farm.

	<<link [[Next|Farmland]]>><<endevent>><</link>>
<<elseif $farm.build_finished.includes("wall 1")>>
	<<run $farm.build_finished.delete("wall 1")>>
	You examine the perimeter wall. The stonework is repaired, and now envelopes the entire farm. Aside from the entrance, the river, and the great hedge. You feel more secure.<<lltrauma>><<llstress>><<trauma -12>><<stress -12>>

	<<link [[Next|Farm Work]]>><</link>>

<<elseif $farm.build_finished.includes("wall 2")>>
	<<run $farm.build_finished.delete("wall 2")>>
	You examine the perimeter wall. The stone has been reinforced with cement. Remy's goons will have a harder time damaging it.

	<<link [[Next|Farm Work]]>><</link>>

<<elseif $farm.build_finished.includes("wall 3")>>
	<<run $farm.build_finished.delete("wall 3")>>
	The project is complete. A tall metal fence now surrounds the farm. Intruders will have a harder time getting in. You feel more secure.
	<<lltrauma>><<llstress>><<trauma -12>><<stress -12>>

	<<link [[Next|Farm Work]]>><</link>>

<<elseif $farm.build_finished.includes("wall 4")>>
	<<run $farm.build_finished.delete("wall 4")>>
	The fence now menaces with barbed wire. No one's getting over.

	<<link [[Next|Farm Work]]>><</link>>

<<elseif $farm.build_finished.includes("tower 1")>>
	<<run $farm.build_finished.delete("tower 1")>>
	<<npc Alex>><<person1>>
	A watchtower now stands guard over the fields. You stand at its base. It looms above you. A head appears, leaning out the top. It's Alex.

	"Come up," <<he>> says. "The view is fantastic."

	You climb the wooden stairs, and emerge at the top. There's a roof overhead, but it's otherwise open. You can see the entire farm, the moor in one direction, and even the sea in the other.

	"We'll need to hire someone," Alex says, looking out. "They can stand guard here overnight. Catch Remy in the act if <<nnpc_he Remy>> tries anything while we sleep." <<He>> tries to shake the railing. It seems solid. "There's a pub in town, near the entrance. My <<if $pronoun is "m">>dad's<<else>>mum's<</if>> hired staff there before. That's where I'd look."

	<<He>> turns and walks down the stairs.

	<<link [[Next|Farm Work]]>><<endevent>><</link>>

<<elseif $farm.build_finished.includes("tower 2")>>
	<<run $farm.build_finished.delete("tower 2")>>
	A searchlight now gazes from the watchtower. No more hiding in the dark.

	<<link [[Next|Farm Work]]>><</link>>

<<elseif $farm.build_finished.includes("woodland 1")>>
	<<run $farm.build_finished.delete("woodland 1")>>
	<<location "forest">>
	You enter the farm's new woodland.
	<<if $daystate is "night">>
		A bat flies overhead, barely visible in the dim light.
	<<else>>
		Birds chirp overhead.
	<</if>>
	You feel serene.<<ltrauma>><<llstress>><<trauma -6>><<stress -12>>

	<<link [[Next|Farm Work]]>><</link>>

<<elseif $farm.build_finished.includes("woodland 2")>>
	<<run $farm.build_finished.delete("woodland 2")>>
	<<location "forest">>
	You enter the new woodland. Fruit hangs overhead, and fat mushrooms grow all around. You glimpse the fence between the trees, separating you from outside threats, and feel at ease.<<ltrauma>><<llstress>><<trauma -6>><<stress -12>>

	<<link [[Next|Farm Work]]>><</link>>

<<elseif $farm.build_finished.includes("woodland 3")>>
	<<run $farm.build_finished.delete("woodland 3")>>
	<<location "forest">>
	You explore the farm's new woodland, now large enough to get lost in. You find Alex already lazing beneath a tree atop a hillock.

	<<npc Alex>><<person1>>
	"Relaxing here," <<he>> says, rising to <<his>> feet. "Something about the branches above makes me feel safe."

	<<link [[Say it makes you feel safe as well|Farm Woodland Safe]]>><<npcincr Alex love 1>><</link>><<glove>>

	<<link [[Say Alex makes you feel safer|Farm Woodland Safe Alex]]>><<npcincr Alex dom 1>><<npcincr Alex love 1>><><</link>><<ggdom>><<gglove>>

	<<link [[Say nothing|Farm Woodland Safe Nothing]]>><</link>>

	<<if $daystate is "night">>
		<<link [[Say Alex should come indoors (0:05)|Farm Woodland Safe Indoors]]>><<npcincr Alex dom 1>><<pass 5>><</link>><<gdom>>

	<</if>>
<<elseif $farm.build_finished.includes("kennel 1")>>
	<<run $farm.build_finished.delete("kennel 1")>>
	You hear the baying of hounds. You follow the sound to the kennel. A yard has been enclosed outside, a safe training area for the <<farm_text_many dog>>. You watch as one rips the head off a human-shaped dummy.

	"They're pretty scary," Alex says, watching with rapt attention. "They know who's in charge though." Another <<farm_text dog>> joins the first. Dummy remains fly into the air. "I think."

	<<link [[Next|Farm Work]]>><<endevent>><</link>>

<<elseif $farm.build_finished.includes("barn 1")>>
	<<run $farm.build_finished.delete("barn 1")>>
	"Hey," it's Alex. "Come check this out."

	<<npc Alex>><<person1>>
	You enter the barn. Alex stands beside a large apparatus in the centre. The new milking machine. A red light, like an eye, blinks into life.

	"We'll get more milk now." <<He>> scratches a <<farm_text cattle>> behind the ear. "I think our
	<<if $farm_work.cattle.gender is "m">>
		boys
	<<else>>
		girls
	<</if>>
	are up to it."

	<<He>> powers down the machine, and walks away.

	<<link [[Next|Farm Work]]>><<endevent>><</link>>

<<elseif $farm.build_finished.includes("barn 2")>>
	<<run $farm.build_finished.delete("barn 2")>>
	<<npc Alex>><<person1>>
	You enter the expanded barn. Alex is already there, calming one of the newcomers, an ill-tempered <<farm_text cattle>>. <<He>> waves at you. "We've got a lively herd," <<he>> says. "Almost as big as <<if $pronoun is "m">>dad's<<else>>mum's<</if>>. The one <<he>> manages directly, anyway."

	<<He>> closes the gate, and rests a hand on your shoulder as <<he>> walks by.

	<<link [[Next|Farm Work]]>><<endevent>><</link>>

<<elseif $farm.build_finished.includes("stable 1")>>
	<<run $farm.build_finished.delete("stable 1")>>
	You approach the expanded stable. Soft classical music plays within.

	<<if $farm_work.horse.monster_roll is true and (($hallucinations gte 1 or $monsterhallucinations is "f") or $bestialitydisable is "t")>>
		"This is more suitable," a <<farm_text horse>> says as you pass. "Thank you."

	<<else>>
		One <<farm_text horse>> nuzzles your neck in appreciation as you pass.

	<</if>>

	<<link [[Next|Farm Work]]>><<endevent>><</link>>

<<elseif $farm.build_finished.includes("coop 1")>>
	<<run $farm.build_finished.delete("coop 1")>>
	You approach the expanded coop.
	<<if $farm_work.chickens_out is 1>>
		The yard is busier than it's ever been.
	<<else>>
		It's much longer, with roosting perches extending along the entire length.
	<</if>>
	There'll be plenty of eggs to sell.

	<<link [[Next|Farm Work]]>><<endevent>><</link>>

<<elseif $farm.build_finished.includes("coop 2")>>
	<<run $farm.build_finished.delete("coop 2")>>
	You approach the expanded coop.
	<<if $farm_work.chickens_out is 1>>
		You're greeted by a sea of chickens. They swarm across the yard, looking for food.
	<<else>>
		It now has multiple rooms, each sheltering many chickens.
	<</if>>

	<<npc Alex>><<person1>>
	Alex can have all the eggs <<he>> wants for breakfast.

	<<link [[Next|Farm Work]]>><<endevent>><</link>>

<<elseif $farm.build_finished.includes("parasites 1")>>
	<<run $farm.build_finished.delete("parasites 1")>>
	You approach the newly built parasite barn.
	The inside is filled with plenty of space for your parasites, with some basic equipment to look after them.

	<<npc Alex>><<person1>>
	Alex is just behind you, "Not sure what animals you want to keep in here, you better look after them." <<He>> rests a hand on your shoulder as <<he>> walks by to leave the barn.

	<<link [[Next|Farm Work]]>><<endevent>><</link>>

<<elseif $farm.build_finished.includes("parasites 2")>>
	<<run $farm.build_finished.delete("parasites 2")>>
	You approach the expanded parasite barn.
	The expanded interior is filled with a litte more space for your parasites, with some more advanced equipment to better look after them.

	<<link [[Next|Farm Work]]>><<endevent>><</link>>

<<elseif $farm.build_finished.includes("irrigation")>>
	<<run $farm.build_finished.delete("irrigation")>>
	You approach the fields.
	<<switch $farm.irrigation>>
		<<case 1>>
			The irrigation system for the first field is completed, the first step in many.
		<<case 2 3 4>>
			A further expansion to the irrigation system for an addition field is completed, still many to go.
		<<case 5 6 7>>
			A further expansion to the irrigation system for an addition field is completed, almost completed now.
		<<case 8>>
			A further expansion to the irrigation system for an addition field is completed, just one more field to go.
		<<case 9>>
			The final expansion to the irrigation system for the final field is completed.
		<<default>>
			Something went wrong with the irrigation system, please report.
	<</switch>>

	<<link [[Next|Farm Work]]>><<endevent>><</link>>

<<elseif $farm.tower_guard and $farm.tower_guard_unpaid gte 2 and $farm.tower_guard_patience isnot 1>>
	<<loadNPC 0 "farm_tower_guard">><<person1>>
	<<if $NPCList[0].traits.includes("relaxed")>>
		"Hey, farmer <<girl>>," says <<print $NPCList[0].name>>, your guard. <<He>> approaches you. "Here to get my pay."
	<<elseif $NPCList[0].traits.includes("sociable")>>
		"How you doing?" says <<print $NPCList[0].name>>, your guard. <<He>> approaches you. "Here about my pay."
	<<elseif $NPCList[0].traits.includes("brooding")>>
		<<print $NPCList[0].name>>, your guard, approaches you. "Here for my pay," <<he>> says. "You good for it?"
	<<else>>
		"There <<pshe>> is," <<print $NPCList[0].name>>, your guard, says as <<he>> swaggers towards you. "You know you're my favourite <<girl>>? Especially when you pay me." <<He>> holds out <<his>> hand.
	<</if>>

	<<farm_guard_pay>>
	<<link [[Say you can't afford it right now|Farm Guard Pay Refuse]]>><</link>><<lltrust>>

	<<if $promiscuity gte 35>>
		<<link [[Seduce|Farm Guard Pay Seduce]]>><</link>><<promiscuous3>>

	<</if>>
<<else>>
	<<if $farm_yield_alex gte 1 and not ($hour lte 5 or $hour gte 22 or ($hour is 21 and $farm_end is 1)) and $farm_work.alex isnot "shower">>
		<<npc Alex>><<person1>>
		<<if $NPCName[$NPCNameList.indexOf("Alex")].dom gte 30>>
			"Hey," shouts Alex, striding towards you. "We've had a better yield than expected lately," <<he>> says, grasping your hand in <<his>> own and pressing something into your palm.

			<<if $farm_stage gte 7>>
				"You deserve a little for your help, partner."
			<<else>>
				"Keep at it. You'll make a fine farmer someday."
			<</if>>

			<<He>> marches away. You've earned £<<print ($farm_yield_alex * 9)>>.<<set $money += ($farm_yield_alex * 900)>>

		<<elseif $NPCName[$NPCNameList.indexOf("Alex")].dom lte -30>>
			"Hey," shouts Alex, striding towards you. "We've had a better yield than expected lately," <<he>> says, grasping your hand in <<his>> own and pressing something into your palm.

			<<if $farm_stage gte 7>>
				"Hope you don't mind handling the profits, partner."
			<<else>>
				"Dunno what I'd do without you, so this is fair."
			<</if>>

			<<He>> marches away. You've earned £<<print ($farm_yield_alex * 24)>>.<<set $money += ($farm_yield_alex * 2400)>>

		<<else>>
			"Hey," shouts Alex, striding towards you. "We've had a better yield than expected lately," <<he>> says, grasping your hand in <<his>> own and pressing something into your palm.

			<<if $farm_stage gte 7>>
				"Here's your share of the profits, partner."
			<<else>>
				"Your doing, so this is fair. You've a way with the animals."
			<</if>>

			<<He>> marches away. You've earned £<<print ($farm_yield_alex * 18)>>.<<set $money += ($farm_yield_alex * 1800)>>

		<</if>>

		<<link [[Next|Farm Work]]>><<endevent>><</link>>

		<<unset $farm_yield_alex>>
	<<elseif $farm_work.recent_shift gte $farm_work.event_time and $farm_event isnot 1 and $daystate isnot "night">>
		<<set $farm_event to 1>>
		<<eventsfarm>>
	<<else>>
		<<if $arousal gte $arousalmax>>
			<<orgasmLocation "alexFarmWork">>
		<</if>>
		<<if $farm_stage gte 7>>
			<<link [[Cottage (0:01)|Farm Cottage]]>><<pass 1>><</link>>

			<<link [[Fields (0:05)|Farm Fields]]>><<pass 5>><<set $eventskip to 1>><</link>>

			<<if $farm_work.alex isnot "shower">>
				<<link [[Take shower (0:10)|Farm Shower]]>><<pass 10>><</link>>

			<</if>>
			/* Go to farm barn passage if outside of farming hours, go to cattle milking passage otherwise. */
			<<if $hour lte 5 or $hour gte 22 or ($hour is 21 and $farm_end is 1)>>
				/* Determine whether you can access the barn normally with Alex's consent. */
				<<if $farm.milking isnot undefined and $farm.milking.dayMilking>>
					<<link [[Barn (0:02)|Farm Barn]]>><<pass 2>><</link>>
				<<else>>
					<<link [[Sneak into the barn (0:05)|Farm Barn]]>><<pass 5>><</link>>
				<</if>>
			<<else>>
				<<link [[Barn (0:02)|Farm Cattle Milk]]>><<pass 2>><</link>>
			<</if>>

		<</if>>
		<<if $farm_stage gte 9>>
			<<link [[Lab (0:01)|Farm Still]]>><<pass 1>><</link>>

		<</if>>
		<<if $farm.woodland gte 1>>
			<<link [[Woodland (0:05)|Farm Woodland]]>><<pass 5>><</link>>

		<</if>>
		<<if $farm_stage gte 7 and !$farm_kennel>>
			<<link [[Kennel (0:03)|Farm Kennel]]>><<pass 3>><</link>>

		<</if>>
		<<if $farm.parasitebarn gte 1>>
			<<set $container.lastLocation to "farm">>
			<<print '<<link [[Check ' + $container["farm"].name + ' (0:05)|Containers]]>><<pass 5>><</link>>'>>

		<</if>>

		<<farm_work>>

		<<if $farm_stage gte 7>>
			<<if $farm.steed>>
				<<link [[Saddle a steed|Farm Saddle]]>><</link>>

			<<else>>
				<<link [[Saddle a steed (0:10)|Farm Steed]]>><<pass 10>><</link>>

			<</if>>
		<</if>>
		<<link [[Leave|Farmland]]>><</link>>

		<<if ($parasite.left_ear.name is "slime" or $parasite.right_ear.name is "slime") and $slimeFarmNaked is undefined>>
			<<set $slimeFarmNaked to false>>
		<</if>>
	<</if>>
<</if>>

:: Farm Slime Strip Obey
<<effects>>
Following the slime's command, you find a spot where you think your clothes will be safe and strip before heading to work.

<<undressclothes "farmHidingSpot">><<set $slimeFarmNakedStored to true>><<set $slimeFarmNaked to true>>

<<link [[Next|Farm Work]]>><</link>>

:: Farm Slime Strip Defy
<<effects>>
<<if $corruption_slime gte ($willpower / 10)>>
	You try to ignore the slime but and feel a jolt of pain as it punishes you for defiance. However, you fail to resist its influence.<<ggwillpower>><<willpower 3>>

	Following the slime's command, you find a spot where you think your clothes will be safe and strip before heading to work.
	<<undressclothes "farmHidingSpot">><<set $slimeFarmNakedStored to true>><<set $slimeFarmNaked to true>>

	<<link [[Next|Farm Work]]>><</link>>
<<else>>
	You try to ignore the slime but and feel a jolt of pain as it punishes you for defiance. You feel it try, but fail, to force you to expose yourself.<<gwillpower>><<willpower 1>><<set $slimeFarmNaked to false>>

	<<link [[Next|Farm Work]]>><</link>>
<</if>>

:: Farm Work Naked
<<effects>>

<<if $farm_naked_alex is 1 and $exhibitionism gte 75>>
	<<unset $farm_naked_alex>>

	<<npc Alex>><<person1>>
	<<flaunting>> you step out from your hiding place, just as Alex enters the yard. "Thanks for he-" <<he>> begins, before looking your way and cutting off.

	<<if $worn.lower.exposed gte 1 or $worn.upper.exposed gte 1 and $player.gender_appearance isnot "m">>
		<<if $submissive gte 1150>>
			"I-Is something wrong?" you ask. "I was worried about my clothes tearing, so I decided to wear less."
		<<elseif $submissive lte 850>>
			"Eyes are up here," you say. "Didn't want my clothes ruined, but that doesn't mean you can look as you please."
		<<else>>
			"I don't mean to startle," you say. "But I was worried about my clothes tearing."
		<</if>>
	<<else>>
		<<if $submissive gte 1150>>
			"I-Is something wrong?" you ask. "I'm fed up with changing wet clothes all the time."
		<<elseif $submissive lte 850>>
			"Eyes are up here," you say. "My clothes will only get wet again. I'll soldier through."
		<<else>>
			"I don't mean to startle," you say. "But I'm fed up with having to change wet clothes all the time."
		<</if>>
	<</if>>
	<<exhibitionism5>>

	Alex looks away again, blushing. "A-Alright," <<he>> stammers. "J-Just be careful." <<He>> continues in a hurry, but you suspect <<he>> will be sneaking glances later.

	<<link [[Next|Farm Work]]>><<endevent>><</link>>

<<elseif $farm_naked_alex is 1>>
	<<unset $farm_naked_alex>>

	<<npc Alex>><<person1>>
	<<embarrassment>> Despite that you step out from your hiding place, just as Alex enters the yard. "Thanks for he-" <<he>> begins, before looking your way and cutting off. <<stress 10>><<gstress>><<trauma 10>><<gtrauma>>

	<<if $worn.lower.exposed gte 1 or $worn.upper.exposed gte 1 and $player.gender_appearance isnot "m">>
		<<if $submissive gte 1150>>
			"I-Is something wrong?" you ask. "I was worried about my clothes tearing, so I decided to wear less."
		<<elseif $submissive lte 850>>
			"Eyes are up here," you say. "Didn't want my clothes ruined, but that doesn't mean you can look as you please."
		<<else>>
			"I don't mean to startle," you say. "But I was worried about my clothes tearing."
		<</if>>
	<<else>>
		<<if $submissive gte 1150>>
			"I-Is something wrong?" you ask. "I'm fed up with changing wet clothes all the time."
		<<elseif $submissive lte 850>>
			"Eyes are up here," you say. "My clothes will only get wet again. I'll soldier through."
		<<else>>
			"I don't mean to startle," you say. "But I'm fed up with having to change wet clothes all the time."
		<</if>>
	<</if>>

	Alex looks away again, blushing. "A-Alright," <<he>> stammers. "J-Just be careful." <<He>> continues in a hurry, but you suspect <<he>> will be sneaking glances later.

	<<link [[Next|Farm Work]]>><<endevent>><</link>>

<<elseif $exhibitionism lt 75>>
	<<embarrassment>> Despite that you step out from your hiding place, ready for work. Alex walks by, and pretends not to look.

	<<link [[Next|Farm Work]]>><</link>>

<<else>>
	<<flaunting>> you step out from your hiding place, ready for work. Alex walks by, and pretends not to look.

	<<link [[Next|Farm Work]]>><</link>>

<</if>>

:: Farm Alex Dry
<<effects>>

<<npc Alex>><<person1>>
You sneak up to Alex, though you keep yourself hidden behind a bush.

<<if $submissive gte 1150>>
	"A-Alex," you say. "I had an accident. D-do you have something I can dry with?"
<<elseif $submissive lte 850>>
	"Hey," you say. "Alex. Got anything I can dry with?"
<<else>>
	"Alex," you say. "I've had an accident. Do you have anything I could dry with?"
<</if>>
<<exhibitionism1>>

Alex turns, looks perplexed for a moment, then laughs. "You got yourself wet? Don't worry. I'll get you something."

You follow <<him>> to the farmhouse. Alex need only turn to see your <<lewdness>>, but <<he>> doesn't take advantage. "Wait here," <<he>> says as <<he>> climbs the stairs. "I'll chuck something down."

<<link [[Next|Farm Alex Dry 2]]>><</link>>

:: Farm Alex Dry 2
<<effects>>

A towel drops down the stairwell, and you dry yourself in the kitchen. You hear Alex come down the stairs. <<He>> asks if you're decent before entering.

<<if $weather is "rain" and !$worn.head.type.includes("rainproof")>>
	"Get yourself a Sou'wester's if the rain's bothering you," <<he>> says. "They work a treat. I'd best get back to work."
<<else>>
	"Did you fall in the river?" <<he>> laughs. "You go careful. I'd best get back to work."
<</if>>

<<dry>>
<<link [[Next|Farm Work]]>><<endevent>><</link>>

:: Farm Alex Clothes
<<effects>>
<<npc Alex>><<person1>>
You sneak up to Alex, though you keep yourself hidden behind a bush.

<<if $submissive gte 1150>>
	"A-Alex," you say. "I had an accident. D-do you have any clothes I could wear?"
<<elseif $submissive lte 850>>
	"Hey," you say. "Alex. Got anything I can wear?"
<<else>>
	"Alex," you say. "I've had an accident. Do you have any clothes I could wear?"
<</if>>
<<exhibitionism1>>

Alex turns, looks perplexed for a moment, then laughs. "You got yourself in a bother? Don't worry. I'll get you something."

You follow <<him>> to the farmhouse. Alex need only turn to see your <<lewdness>>, but <<he>> doesn't take advantage. "Wait here," <<he>> says as <<he>> climbs the stairs. "I'll chuck something down."

<<link [[Next|Farm Alex Clothes 2]]>><</link>>

:: Farm Alex Clothes 2
<<effects>>

A bundle falls down the stairwell.

<<if $worn.upper.type.includes("naked") and $worn.lower.type.includes("naked")>>
	It's a checkered shirt.<<upperwear 33>>
	<<if $NPCName[$NPCNameList.indexOf("Alex")].dom gte $npcdomhigh and $NPCName[$NPCNameList.indexOf("Alex")].lust gte 10>>
		A smaller bundle follows. A pair of denim shorts.<<lowerwear 31>>
	<<else>>
		Another bundle thumps to the ground in front of you. A pair of jeans.<<lowerwear 22>>
	<</if>>
<<elseif $worn.upper.type.includes("naked")>>
	It's a checkered shirt.<<upperwear 33>>
<<else>>
	<<if $NPCName[$NPCNameList.indexOf("Alex")].dom gte $npcdomhigh and $NPCName[$NPCNameList.indexOf("Alex")].lust gte 10>>
		It's a pair of denim shorts.<<lowerwear 31>>
	<<else>>
		It's a pair of jeans.<<lowerwear 22>>
	<</if>>
<</if>>
<<if $upperwetstage gte 1 or $lowerwetstage gte 2>>
	A rolled up towel follows. "Something to dry with," Alex shouts.
	<<dry>>
<</if>>

You get dressed in the kitchen. You hear Alex come down the stairs. <<He>> asks if you're decent before entering the kitchen.

<<if $NPCName[$NPCNameList.indexOf("Alex")].dom gte $npcdomhigh and $NPCName[$NPCNameList.indexOf("Alex")].lust gte 10>>
	<<His>> eyes traverse your body. "A little tight, maybe," <<he>> says. "Come on. We need to get back to work."
<<else>>
	"Fits well," <<he>> says. "Come on. We need to get back to work."
<</if>>

<<link [[Next|Farm Work]]>><<endevent>><</link>>

:: Farm Border
<<effects>>

You walk around the edge of the farm.
<<if $farm.wall gte 4>>
	It is surrounded by a stone wall that serves as a foundation for a tall metal fence. The top menaces with barbed wire.
<<elseif $farm.wall is 3>>
	It is surrounded by a stone wall that serves as a foundation for a tall metal fence.
<<elseif $farm.wall is 2>>
	It is surrounded by a stone and cement wall, which looks much older in places.
<<elseif $farm.wall is 1>>
	It is surrounded by a stone wall, which looks much older in places.
<<else>>
	Most of it is bordered by a wooden fence, which gives way to an ancient stone wall in places. You find traces of the stone elsewhere, as if it once surrounded the whole farm.
<</if>>

A great hedge shields most of the fields from the forest beyond, though some are bordered instead by a river. The lands around the farm are wild. You're not sure if they've ever been cultivated.

<<if $farm_work.fence_damage gte 10>>
	The damage is extensive. It looks deliberate.
<<elseif $farm_work.fence_damage gte 5>>
	The damage is extensive, as if it were deliberate.
<<elseif $farm_work.fence_damage gte 1>>
	The wall and fence are in need of repair.
<<else>>
	Everything seems to be in order.
<</if>>

<<link [[Next|Farm Work]]>><</link>>

:: Farm Yard
<<effects>>

<<if $weather is "snow">>
	You grab a shovel and begin shovelling snow off the yard. It's hard work, but you manage to clear it in good time.
<<else>>
	You grab a broom and begin sweeping the yard of fallen leaves. It's hard work, but you manage to gather them into a neat pile before shovelling them into the compost.
<</if>>

<<set $danger to random(1, 10000)>>
<<if $danger gte (9900 - $allure)>>
	<<if $bestialitydisable is "f" and $lurkerdisable is "f">>
		You're just finishing up, when something leaps from the pile of <<if $weather is "snow">>snow<<else>>leaves<</if>>!<<gstress>><<stress 6>>

		<<if $deviancy gte 55>>
			<<link [[Stand still|Farm Yard Stand Still]]>><</link>><<deviant4>>

		<</if>>
		<<link [[Dodge|Farm Yard Dodge]]>><</link>><<dancedifficulty 1 1200>>

		<<link [[Whack it with the shovel|Farm Yard Whack]]>><</link>><<physiquedifficulty 1 24000>>

		<<link [[Scream|Farm Yard Scream]]>><</link>><<gdom "Alex">>

		<<if $farm_stage gte 10 and $lurkers_held lt 1>>
			<<link [[Hurl net|Farm Yard Hurl net]]>><</link>><<dancedifficulty 1 1200>><<athleticsdifficulty 0 1200>>

		<</if>>
	<<else>>
		Something darts from the pile of <<if $weather is "snow">>snow<<else>>leaves<</if>>, startling you.<<gstress>><<stress 6>>

		<<link [[Next|Farm Work]]>><</link>>

	<</if>>
<<else>>
	<<link [[Next|Farm Work]]>><</link>>

<</if>>

:: Farm Chickens Out
<<effects>>

You release the chickens from their coop, then enter to clean up. It's large enough to stand in, with a wire fence surrounding an outdoor area.

<<set $danger to random(1, 10000)>>
<<if $danger gte (9900 - $allure)>>

	<<farm_gen dog>>
	<<if $monster is 1 or $bestialitydisable is "f">>
		<<if $farm_work.dog.monster is true>>
			<<beastNEWinit 1 dog $farm_work.dog.gender $farm_work.dog.genitals monster>>
		<<else>>
			<<beastNEWinit 1 dog $farm_work.dog.gender $farm_work.dog.genitals beast>>
		<</if>>
		You hear movement behind you. Before you can turn to investigate, something leaps on you from behind. You drop to your knees, clutching the wire fence for support.

		<<if setup.clothes.upper[clothesIndex('upper', $worn.upper)].sleeve_img is 1>>
			You feel a tugging at your wrists. Several chickens have poked their beaks through the gaps in the wire and are grasping your sleeves. Your arms are held in place.

			<<bind>>
			<<set $phase to 1>>
		<<else>>
			<<set $phase to 0>>
		<</if>>
		<<link [[Next|Farm Coop Rape]]>><<set $molestationstart to 1>><</link>>

	<<else>>
		You hear a click behind you. The wind blew the door shut. It's stuck. You manage to pull it open, but not beforew worrying that you'll need to call for help.<<stress 6>><<gstress>>

		<<link [[Next|Farm Work]]>><<endevent>><</link>>

	<</if>>
<<else>>

	<<link [[Next|Farm Work]]>><</link>>

<</if>>

:: Farm Chickens Feed
<<effects>>

The chickens follow as you retrieve a sack of grain from the shed beside the yard.

<<set $danger to random(1, 10000)>>
<<if $danger gte (9900 - $allure) and $exposed lte 0>>
	<<if $worn.lower.outfitSecondary is undefined>>
		<<set _broken to true>>
	<<elseif $worn.lower.outfitSecondary[1] is "broken">>
		<<set _broken to true>>
	<</if>>
	<<if _broken>>
		One jumps and latches onto your $worn.lower.name with its beak, tugging it down your legs and revealing your <<undies>>. You lean down to grab it, but this puts the heavy sack in range of the birds. Yet other chickens start pulling at your $worn.lower.name. You hear the fabric tear.<<gstress>><<stress 6>>

		<<lowerstrip>>
		<<link [[Risk the sack and retrieve your bottoms|Farm Chickens Retrieve]]>><</link>><<difficulty 50>>

		<<link [[Lure the chickens away from your bottoms|Farm Chickens Leave]]>><</link>>

		<<if $submissive lte 500>>
			<<link [[Roar|Farm Chickens Roar]]>><<def 1>><</link>><<defianttext>>

		<</if>>
	<<else>>
		<<set $worn.lower.integrity -= 15>>
		<<if $worn.lower.integrity lte 0>>
			One jumps and latches onto your $worn.lower.name with its beak. It hangs there for a moment, until gravity tears it free, your $worn.lower.name still in its grasp.
			<<integritycheck>><<exposure>><<gstress>><<stress 6>>

			You almost drop the sack in your haste to cover your <<lewdness>>, but there's no one else around.

			<<if $exposed gte 2 and $exhibitionism gte 15>>
				<<link [[Finish the job|Farm Chickens Finish]]>><</link>><<exhibitionist2>>

			<<elseif $exposed is 1>>
				<<link [[Finish the job|Farm Chickens Finish]]>><</link>><<exhibitionist1>>

			<</if>>
			<<link [[Find something to cover with (0:10)|Farm Chickens Cover]]>><<pass 10>><<farm_count 10>><</link>>

		<<else>>
			One jumps and latches onto your $worn.lower.name with its beak. You hear the fabric tear as you shake it free.

			You finish feeding the chickens, and return the sack to the shed.

			<<link [[Next|Farm Work]]>><</link>>

		<</if>>

	<</if>>
<<else>>
	They break away as you scatter it.

	<<link [[Next|Farm Work]]>><</link>>

<</if>>

:: Farm Chickens In
<<effects>>

You herd the chickens into their coop, then perform a head count to make sure you got them all.

<<set $danger to random(1, 10000)>>
<<if $danger gte (9900 - $allure)>>
	You're missing one.

	<<link [[Look for it (0:10)|Farm Chickens Look]]>><<pass 10>><<farm_count 10>><</link>>

	<<if $cat gte 6>>
		<<link [[Hunt it|Farm Chickens Hunt]]>><</link>><<cat>>

	<</if>>
	<<link [[It'll be fine|Farm Chickens Fine]]>><<set $catbuild += 1>><<farm_yield -1>><</link>><<lfarm>>

<<else>>
	Satisfied, you shut and lock the door.

	<<link [[Next|Farm Work]]>><</link>>

<</if>>

:: Farm Pigs Out
<<effects>>

You enter the sty, and release the <<farm_text_many pig>>. They walk down the aisle without prompting. You open the gate at the far end, letting them into a small pen outside.

<<set $danger to random(1, 10000)>>
<<if $danger gte (9900 - $allure)>>

	<<if $bestialitydisable is "f" or $farm_work.pig.monster is true>>
		<<if $farm_work.pig.monster is true>>
			The last grasps your hair, and tries to force you to the ground.
		<<else>>
			The last rears on its hind legs, and tries to force you to the ground.
		<</if>>

		<<link [[Scold|Farm Pigs Scold]]>><</link>><<tendingdifficulty 1 600>>

		<<link [[Shove away|Farm Pigs Shove]]>><</link>><<physiquedifficulty 1 12000>>

		<<link [[Endure|Farm Pigs Endure]]>><<trauma 6>><<stress 6>><<farm_pigs -1>><</link>><<lrespect>>

		<<if $deviancy gte 35>>
			<<link [[Give it a hand|Farm Pigs Hand]]>><<set $sexstart to 1>><</link>><<deviant3>>

		<</if>>
	<<else>>
		The <<farm_text_many pig>> seem agitated. It's a little scary.<<gstress>>

		<<link [[Next|Farm Work]]>><</link>>

	<</if>>
<<else>>

	<<link [[Next|Farm Work]]>><</link>>

<</if>>

:: Farm Pigs Feed Alex
<<effects>>

<<npc Alex>><<person1>>
You find Alex crossing the yard, a heavy bucket in each hand.

<<if $submissive gte 1150>>
	"C-can I help?" you ask.
<<elseif $submissive lte 850>>
	You reach for one of the buckets. "Let me help," you say.
<<else>>
	"Do you need a hand?" you ask.
<</if>>

Alex smiles as you take the bucket. "Thanks. Will be faster with both of us."

You help Alex carry feed across the yard, spilling it over the fence and into the troughs.

<<if $farm_work.pigs_fed gte 6>>
	The <<farm_text_many pig>> eat the feed with gusto, but by the end lie on their sides, content.
<<else>>
	The <<farm_text_many pig>> devour the feed. Seems they're still hungry.
<</if>>

<<set $danger to random(1, 10000)>>
<<if $danger gte (9900 - $allure)>>
	"Down!" Alex says behind you. You turn. One of the <<farm_text pig>>s has grasped Alex's <<if $pronoun is "f">>skirt<<else>>shorts<</if>> in its mouth.

	<<link [[Scold the pig|Farm Pigs Alex Scold]]>><</link>><<tendingdifficulty 1 600>>

	<<link [[Watch|Farm Pigs Alex Watch]]>><<npcincr Alex lust 1>><<arousal 600>><</link>><<glust>><<garousal>>

<<else>>

	<<link [[Next|Farm Work]]>><<endevent>><</link>>

<</if>>

:: Farm Pigs Feed
<<effects>>

<<if $physique gte 16000>>
	You pour feed into a couple of buckets, and traipse across the field. The buckets are heavy, but no trouble for someone of your strength.<<set $farm_work.pigs_fed += 1>><<physique 2>>

<<else>>
	You pour feed into a couple of buckets, and traipse across the field. Your arms ache by the time you arrive at the sty.<<physique 2>>

<</if>>

You empty the buckets in the troughs.

<<if $farm_work.pigs_fed gte 6>>
	The <<farm_text_many pig>> eat the feed with gusto, but by the end lie on their sides, content.
<<else>>
	The <<farm_text_many pig>> devour the feed. Seems they're still hungry.
<</if>>

<<set $danger to random(1, 10000)>>
<<if $danger gte (9900 - $allure) and $worn.lower.name isnot "naked" and ($bestialitydisable is "f" or $farm_work.pig.monster is true)>>

	<<if $farm.beasts.pigs lte -20 and $rng gte 51>>
		<<if $farm_work.pig.monster is true>>
			Something catches your hair as you turn away from the trough. One of the <<farm_text pig>>s has reached over the fence. "You're not finished here," <<farm_he pig>> says. <<farm_He pig>> tries to pull you inside.
		<<else>>
			Something catches your hair as you turn away from the trough. One of the <<farm_text pig>>s has reached over the fence. It tries to pull you inside.
		<</if>>

		<<link [[Scold|Farm Pigs Feed Extreme Scold]]>><</link>><<tendingdifficulty 1 1100>>

		<<link [[Call for help|Farm Pigs Feed Extreme Help]]>><<npcincr Alex dom 1>><<farm_pigs -1>><</link>><<gdom "Alex">><<lrespect>>

	<<else>>
		<<if $farm_work.pig.monster is true>>
			Something catches your $worn.lower.name as you turn away from the trough. One of the <<farm_text pig>>s has stuck its head through the fence, and grasps your clothing in its mouth.
		<<else>>
			Something catches your $worn.lower.name as you turn away from the trough. One of the <<farm_text pig>>s has stuck its snout through the fence, and grasps your clothing in its mouth.
		<</if>>

		<<link [[Scold|Farm Pigs Feed Scold]]>><</link>><<tendingdifficulty 1 600>>

		<<link [[Call for help|Farm Pigs Feed Help]]>><<npcincr Alex dom 1>><<farm_pigs -1>><</link>><<gdom "Alex">><<lrespect>>

	<</if>>
<<else>>

	<<link [[Next|Farm Work]]>><</link>>

<</if>>

:: Farm Pigs In
<<effects>>

You herd the <<farm_text_many pig>> back into the sty. Some of them seem reluctant to move, and need cajoling.
<<set $danger to random(1, 10000)>>
<<if $danger gte (9900 - $allure) and ($bestialitydisable is "f" or $farm_work.pig.monster is true)>>

		<<if $farm_work.pig.monster is true>>
			You manage to get the last to stand. You're leading <<farm_him pig>> inside when <<farm_he pig>> grasps your arms and tries to force you to the ground.
		<<else>>
			You manage to get the last to stand. You're leading it inside when it rears on its hind legs and tries to force you to the ground.
		<</if>>

		<<link [[Scold|Farm Pigs Scold]]>><</link>><<tendingdifficulty 1 600>>

		<<link [[Shove it away|Farm Pigs Shove]]>><</link>><<physiquedifficulty 1 12000>>

		<<link [[Endure|Farm Pigs Endure]]>><<trauma 6>><<stress 6>><<farm_pigs -1>><</link>><<lrespect>>

		<<if $deviancy gte 35>>
			<<link [[Give it a hand|Farm Pigs Hand]]>><<set $sexstart to 1>><</link>><<deviant3>>

		<</if>>

<<else>>
	<<if $farm_work.pig.monster is true>>
		You manage to get the last to stand, and lead <<farm_him pig>> inside.
	<<else>>
		You manage to get the last to stand, and lead it inside.
	<</if>>

	<<link [[Next|Farm Work]]>><</link>>

<</if>>

:: Farm Horses Out
<<effects>>

You open each stall, releasing the <<farm_text_many horse>> within. They know where they're going, but you lead them down the lane and open the gate to the field.

<<set $danger to random(1, 10000)>>
<<if $danger gte (9900 - $allure) and $horsedisable is "f">>

	<<if $bestialitydisable is "f" or $farm_work.pig.monster is true>>
		Most run by, eager to stretch their legs, but a couple hang back.
		<<if $farm_work.horse.monster is true>>
			One of them steps in front of you, and pushes you away from the gate. "We don't appreciate being penned up," <<farm_he horse>> says as a pair of powerful hands grasp your shoulders from behind. "How's about you give us a little something by way of apology?"

			The hands travel down your arms, pinning them to your side as the centaur in front runs a finger down your chest.<<gstress>><<stress 6>>

			<<link [[Scold|Farm Horses Scold]]>><</link>><<tendingdifficulty 1 800>>

			<<link [[Call Alex|Farm Horses Alex]]>><<farm_horses -1>><<npcincr Alex dom 1>><</link>><<lrespect>><<gdom "Alex">>

			<<link [[Endure|Farm Horses Endure]]>><<trauma 6>><<stress 6>><</link>><<gtrauma>><<gstress>>

		<<else>>
			One of them shoves you away from the gate with its nose, while another blocks your escape.<<gstress>><<stress 6>>

			<<if $farm.beasts.horses lte -20>>
				<<link [[Scold|Farm Horses Scold]]>><</link>><<tendingdifficulty 1 1200>>

			<<else>>
				<<link [[Scold|Farm Horses Scold]]>><</link>><<tendingdifficulty 1 800>>

			<</if>>
			<<link [[Call Alex|Farm Horses Alex]]>><<farm_horses -1>><<npcincr Alex dom 1>><</link>><<lrespect>><<gdom "Alex">>

			<<link [[Endure|Farm Horses Endure]]>><<trauma 6>><<stress 6>><</link>><<gtrauma>><<gstress>>

		<</if>>
	<<else>>
		They run by, eager to stretch their legs. One jostles you as it passes, knocking you to the ground.<<gpain>><<pain 4>><<gstress>><<stress 6>>

		<<link [[Next|Farm Work]]>><</link>>

	<</if>>
<<else>>
	They run by, eager to stretch their legs.

	<<link [[Next|Farm Work]]>><</link>>

<</if>>

:: Farm Horses Brush
<<effects>>

<<if $rng gte 51>>

	You approach a <<farm_text horse>>, brush in hand.

	<<if $farm.beasts.horses gte 5>>
		<<farm_He horse>> runs towards you, eager.
	<<else>>
		<<farm_He horse>> watches you warily.
	<</if>>

	<<farm_brush>>

<<else>>
	The <<farm_text_many horse>> run around the field. You shout to one, telling <<farm_him horse>> to stop, but <<farm_he horse>>'s enjoying it too much.

	<<link [[Chase|Farm Horses Chase]]>><<tiredness 2>><</link>><<athleticsdifficulty 1 1000>><<gtiredness>>

	<<if $deviancy gte 15 and $horsedisable is "f" and ($bestialitydisable is "f" or $farm_work.horse.monster is true)>>
		<<link [[Seduce|Farm Horses Seduce]]>><</link>><<deviant2>>

	<</if>>
	<<link [[Wait (0:20)|Farm Horses Wait]]>><<pass 20>><<farm_count 20>><<farm_horses -1>><</link>><<lrespect>>

<</if>>

:: Farm Horses Lewd
<<effects>>

You approach a <<farm_text horse>>. You take <<farm_his horse>> bridle in hand and lead <<farm_him horse>> to the corner of the field, a spot shielded from view by the encroaching woodland. You're far enough that no one on the main farm should be able to hear you.

<<link [[Use your hands (0:05)|Farm Horses Lewd Hands]]>><<pass 5>><<farm_count 5>><<farm_yield 1>><<set $farm_work.horses_satisfied += 1>><<set $handskill += 5>><<set $handstat += 1>><<set $handejacstat += 1>><</link>><<deviant3>><<gfarm>><<ghandskill>>

<<if $deviancy gte 55>>
	<<link [[Use your mouth (0:05)|Farm Horses Lewd Mouth]]>><<pass 5>><<farm_count 5>><<farm_yield 1>><<set $farm_work.horses_satisfied += 1>><<set $oralskill += 5>><</link>><<deviant4>><<gfarm>><<goralskill>>

<</if>>
<<if $deviancy gte 75>>
	<<link [[Let it mount you|Farm Horses Lewd Mount]]>><</link>><<deviant5>>

<</if>>

<<link [[Walk away|Farm Work]]>><</link>>

:: Farm Horses Lewd Hands
<<effects>>

You drop to your knees beside the <<farm_text horse>>, and observe <<farm_his horse>> <<if $farm_work.horse.genitals is "vagina">>equine pussy<<else>>huge penis<</if>>. You reach out, and touch it.
<<deviancy3>>

<<if $farm_work.horse.monster is true>>
	"I like how you think," the <<farm_text horse>> says. "No need to be gentle."
<<else>>

<</if>>

<<if $farm_work.horse.genitals is "vagina">>
	You rub with both hands, pushing your fingers inside. You shift your body so you can get a better angle.
<<else>>
	You take <<farm_his horse>> length in both hands, and feel <<farm_him horse>> erect beneath your touch. You rub, shifting your body to a better angle.
<</if>>

<<if $handskill gte random(1, 1000)>>
	<<farm_He horse>> starts bucking against your hands, but you manage to keep up. <<farm_He horse>> moves faster, until <<farm_his horse>> whole body shudders in orgasm.

	<<if $farm_work.horse.genitals is "penis">>
		Semen shoots from <<farm_his horse>> penis, pooling on the grass below.
	<</if>>

	You give <<farm_him horse>> a moment to recover, then lead <<farm_him horse>> back to the field, a healthy spring in <<farm_his horse>> step.

	<<link [[Next|Farm Work]]>><</link>>

<<else>>
	<<farm_He horse>> starts bucking against you. It's difficult to keep up.

	<<link [[Keep going (0:10)|Farm Horses Lewd Hands 2]]>><<pass 10>><<farm_count 10>><</link>>

<</if>>

:: Farm Horses Lewd Hands 2
<<effects>>

You keep it up, until the <<farm_text horse>> shudders in orgasm.

<<if $farm_work.horse.genitals is "penis">>
	Semen shoots from <<farm_his horse>> penis, pooling on the grass below.
<</if>>

You give <<farm_him horse>> a moment to recover, then lead <<farm_him horse>> back to the field, a healthy spring in <<farm_his horse>> step.

<<link [[Next|Farm Work]]>><</link>>

:: Farm Horses Lewd Mouth
<<effects>>

You drop to your knees beside the <<farm_text horse>>, and observe <<farm_his horse>> <<if $farm_work.horse.genitals is "vagina">>equine pussy<<else>>huge penis<</if>>. You lean forward, tongue first, and lick.
<<deviancy4>>

<<if $farm_work.horse.monster is true>>
	"I was hoping you'd do that," the <<farm_text horse>> says.
<<else>>

<</if>>

<<if $farm_work.horse.genitals is "vagina">>
	You wiggle your tongue inside. It was meant for something much larger, so you compensate with dexterity, wriggling this way and that, trying to find a weak spot.
<<else>>
	You run your tongue along its length, feeling <<farm_his horse>> cock erect with each pulse. There's no way you could fit something so large in your mouth, but your tongue gives it as much attention as it can.
<</if>>

<<if $oralskill gte random(1, 1000)>>
	<<farm_He horse>> starts bucking against your face. You grasp <<farm_his horse>> hind legs, and manage to remain steady. It moves faster, until <<farm_his horse>> whole body shudders in orgasm.

	<<if $farm_work.horse.genitals is "penis">>
		Semen shoots from <<farm_his horse>> penis, splattering over your face and dripping on your <<breasts>>.
		<<set $player.bodyliquid.face.semen += 1>><<set $player.bodyliquid.chest.semen += 1>><<faceejacstat>><<ejacstat>>
	<</if>>

	You give the <<farm_text horse>> a moment to recover, then lead <<farm_him horse>> back to the field, a healthy spring in <<farm_his horse>> step.

	<<link [[Next|Farm Work]]>><</link>>

<<else>>
	<<farm_He horse>> starts bucking against your face, which makes things harder.

	<<link [[Keep going (0:10)|Farm Horses Lewd Hands 2]]>><<pass 10>><<farm_count 10>><</link>>

<</if>>

:: Farm Horses Lewd Mouth 2
<<effects>>

Despite the difficulty, you persevere until the <<farm_text horse>>'s body shudders in orgasm.

<<if $farm_work.horse.genitals is "penis">>
	Semen shoots from <<farm_his horse>> penis, splattering over your face and dripping on your <<breasts>>.
	<<set $player.bodyliquid.face.semen = 1>><<set $player.bodyliquid.chest.semen += 1>><<faceejacstat>><<ejacstat>>
<</if>>

You give <<farm_him horse>> a moment to recover, then lead <<farm_him horse>> back to the field, a healthy spring in <<farm_his horse>> step.

<<link [[Next|Farm Work]]>><</link>>

:: Farm Horses Lewd Mount
<<effects>>

You bend over a bale of hay, and pull the <<farm_text horse>> until it stands over you. Instinct takes over from there.<<deviancy5>>

<<link [[Next|Farm Horses Sex]]>><<set $sexstart to 1>><</link>>

:: Farm Horses Sex
<<if $sexstart is 1>>
	<<set $sexstart to 0>>
	<<consensual>>
	<<set $consensual to 1>>
	<<neutral 1>>

	<<if $farm_work.horse.monster is true>>
		<<beastNEWinit 1 horse $farm_work.horse.gender $farm_work.horse.genitals monster>>
	<<else>>
		<<beastNEWinit 1 horse $farm_work.horse.gender $farm_work.horse.genitals beast>>
	<</if>>
	<<beastCombatInit>>

	<<set $NPCList[_n].stance to "top">>
	<<if $farm_work.horse.genitals is "penis">>
		<<set $position to "doggy">>
	<<else>>
		<<set $position to "missionary">>
	<</if>>
	<<set $position_lock to 1>>
	<<prop haybale>>
	<<farm_trust horses>>
<</if>>

<<effects>>
<<effectsman>>

<<beast $enemyno>>

<<stateman>>

<<actionsman>>

<<if $finish is 1>>
	<<link [[Next|Farm Horses Sex Finish]]>><</link>><<nexttext>>
<<elseif $enemyarousal gte $enemyarousalmax>>
	<<link [[Next|Farm Horses Sex Finish]]>><</link>><<nexttext>>
<<elseif $enemyhealth lte 0>>
	<<link [[Next|Farm Horses Sex Finish]]>><</link>><<nexttext>>
<<else>>
	<<link [[Next|Farm Horses Sex]]>><</link>><<nexttext>>
<</if>>

:: Farm Horses Sex Finish
<<effects>>

<<if $enemyarousal gte $enemyarousalmax>>

	<<beastejaculation>>

	You hold the <<farm_text horse>>'s bridle as it shakes above you. You climb off the hay bale.<<gfarm>><<farm_yield 1>><<set $farm_work.horses_satisfied += 1>>

	<<clotheson>>

	<<tearful>> you lead <<farm_him horse>> back to the field. <<farm_He horse>> has a spring in <<farm_his horse>> step.

	<<endcombat>>

	<<link [[Next|Farm Work]]>><</link>>

<<elseif $enemyhealth lte 0>>

	The <<farm_text horse>> flees back to the field.

	<<tearful>> you climb off the hay bale.

	<<clotheson>>
	<<endcombat>>

	<<link [[Next|Farm Work]]>><</link>>

<<else>>

	<<if $farm_work.horse.monster is true>>
		"You're such a tease," the centaur says. <<farm_He horse>> turns and runs back to the field.
	<<else>>
		The <<farm_text horse>> neighs in frustration, and runs back to the field.
	<</if>>

	<<tearful>> you climb off the hay bale.

	<<clotheson>>
	<<endcombat>>

	<<link [[Next|Farm Work]]>><</link>>

<</if>>

:: Farm Horses In
<<effects>>

You call the <<farm_text_many horse>>, and lead them from the field. They seem happy enough to leave.

<<set $danger to random(1, 10000)>>
<<if $danger gte (9900 - $allure)>>
	You lock each one in their stall for the night. The last decides to be difficult, and insists on remaining outside. <<farm_He horse>>'s too big to move by force.

	<<link [[Encourage|Farm Horses In Encourage]]>><</link>><<tendingdifficulty 1 800>>

	<<link [[Call Alex|Farm Horses In Alex]]>><<npcincr Alex dom 1>><<farm_horses -1>><</link>><<lrespect>><<gdom "Alex">>

	<<if $deviancy gte 15 and $horsedisable is "f" and ($bestialitydisable is "f" or $farm_work.horse.monster is true)>>
		<<link [[Seduce|Farm Horses In Seduce]]>><</link>><<deviant2>>
	<</if>>

<<else>>
	You lock each one in their stall for the night.

	<<link [[Next|Farm Work]]>><</link>>

<</if>>

:: Farm Cattle Out
<<effects>>

You open the barn doors, and release the <<farm_text_many cattle>> from their pens. They trot to the field without prompting.

<<set $danger to random(1, 10000)>>
<<if $danger gte (9900 - $allure) and $worn.over_upper.name isnot "naked">>
	<<set $worn.over_upper.integrity -= 10>>
	<<if $worn.over_upper.integrity lte 0>>
		One snags your $worn.over_upper.name with <<farm_his cattle>> horn as <<farm_he cattle>> passes, tearing it from your body.
		<<integritycheck no_text>><<exposure>>
		<<covered>> The <<farm_text cattle>> continues with the tattered remains dangling over <<farm_his cattle>> face.

		<<link [[Next|Farm Work]]>><</link>>

	<<else>>
		One snags your $worn.over_upper.name with <<farm_his cattle>> horn as <<farm_he cattle>> passes, leaving it worse for wear.

		<<link [[Next|Farm Work]]>><</link>>

	<</if>>
<<elseif $danger gte (9900 - $allure) and $worn.upper.name isnot "naked">>
	<<set $worn.upper.integrity -= 10>>
	<<if $worn.upper.integrity lte 0>>
		One snags your $worn.upper.name with <<farm_his cattle>> horn as <<farm_he cattle>> passes, tearing it from your body.
		<<integritycheck no_text>><<exposure>>
		<<covered>> The <<farm_text cattle>> continues with the tattered remains dangling over <<farm_his cattle>> face.

		<<link [[Next|Farm Work]]>><</link>>

	<<else>>
		One snags your $worn.upper.name with <<farm_his cattle>> horn as <<farm_he cattle>> passes, leaving it worse for wear.

		<<link [[Next|Farm Work]]>><</link>>

	<</if>>
<<else>>
	<<link [[Next|Farm Work]]>><</link>>

<</if>>

:: Farm Cattle Milk
<<effects>>

You enter the cattle barn.
<<if $farm.barn gte 1>>
	A large, glowing milking machine sits in the middle.
<<else>>
	A large milking machine sits in the middle.
<</if>>
 The <<farm_text_many cattle>> prefer to be milked by hand, but the machine can milk six at once.

<<farm_milk_actions>>

:: Farm Cattle Milk Machine
<<effects>>

You lead the <<farm_text_many cattle>> into the barn, and strap them into the machine.

<<if $bestialitydisable is "f" or $farm_work.cattle.monster is true>>
	<<if $cattle_milked lte 6>>
		<<if $farm_work.cattle.monster_roll is true and ($hallucinations gte 1 or $monsterhallucinations is "f")>>
			<<if $farm_work.cattle.gender_plural is "m">>
				<<if $cbchance gte 100>>
					Alex gave you simple instructions, but you hesitate when it comes time to attach the suction tubes to their nipples. You remind yourself that there's nothing lewd about this. The bullboys moo in anticipation.
				<<else>>
					Alex gave you simple instructions, but you hesitate when it comes time to attach the suction tubes to their cocks. You remind yourself that there's nothing lewd about this. The bullboys moo in anticipation.
				<</if>>
			<<elseif $farm_work.cattle.gender_plural is "f">>
				<<if $dgchance gte 1>>
					Alex gave you simple instructions, but you hesitate when it comes time to attach the suction tubes to their breasts and cocks. You remind yourself that there's nothing lewd about this. The cowgirls moo in anticipation.
				<<else>>
					Alex gave you simple instructions, but you hesitate when it comes time to attach the suction tubes to their breasts. You remind yourself that there's nothing lewd about this. The cowgirls moo in anticipation.
				<</if>>
			<<else>>
				Alex gave you simple instructions, but you hesitate when it comes time to attach the suction tubes to their breasts and cocks. You remind yourself that there's nothing lewd about this. The cowgirls and bullboys moo in anticipation.
			<</if>>
		<<else>>
			<<if $farm_work.cattle.gender_plural is "m">>
				Alex gave you simple instructions, but you hesitate when it comes time to attach the suction tubes to their cocks. You remind yourself that there's nothing lewd about this. The bulls moo in anticipation.
			<<elseif $farm_work.cattle.gender_plural is "f">>
				Alex gave you simple instructions, but you find the process awkward. The cows moo in anticipation as you attach the tubes to their udders.
			<<else>>
				Alex gave you simple instructions. The udders are awkward enough, but you hesitate when it comes time to attach the suction tubes to their cocks. You remind yourself that there's nothing lewd about this. The cattle moo in anticipation.
			<</if>>
		<</if>>
	<<elseif $cattle_milked lte 1200>>
		<<if $farm_work.cattle.monster_roll is true and ($hallucinations gte 1 or $monsterhallucinations is "f")>>
			<<if $farm_work.cattle.gender_plural is "m">>
				<<if $cbchance gte 100>>
					You think you're getting the hang of things, but you still look away when it comes time to attach the suction tubes to their nipples. You remind yourself that there's nothing lewd about this. The bullboys moo in anticipation.
				<<else>>
					You think you're getting the hang of things, but you still look away when it comes time to attach the suction tubes to their cocks. You remind yourself that there's nothing lewd about this. The bullboys moo in anticipation.
				<</if>>
			<<elseif $farm_work.cattle.gender_plural is "f">>
				<<if $dgchance gte 1>>
					You think you're getting the hang of things, but you still look away when it comes time to attach the suction tubes to their breasts and cocks. You remind yourself that there's nothing lewd about this. The cowgirls moo in anticipation.
				<<else>>
					You think you're getting the hang of things, but you still look away when it comes time to attach the suction tubes to their breasts. You remind yourself that there's nothing lewd about this. The cowgirls moo in anticipation.
				<</if>>
			<<else>>
				You think you're getting the hang of things, but you still look away when it comes time to attach the suction tubes to their breasts and cocks. You remind yourself that there's nothing lewd about this. The cowgirls and bullboys moo in anticipation.
			<</if>>
		<<else>>
			<<if $farm_work.cattle.gender_plural is "m">>
				You think you're getting the hang of things, but you still look away when it comes time to attach the suction tubes to their cocks. You remind yourself that there's nothing lewd about this. The bulls moo in anticipation.
			<<elseif $farm_work.cattle.gender_plural is "f">>
				You think you're getting the hang of things. The cows moo in anticipation as you attach the tubes to their udders.
			<<else>>
				You think you're getting the hang of things. The udders are easy enough, but you hesitate when it comes time to attach the suction tubes to their cocks. You remind yourself that there's nothing lewd about this. The cattle moo in anticipation.
			<</if>>
		<</if>>
	<<else>>
		<<if $farm_work.cattle.monster_roll is true and ($hallucinations gte 1 or $monsterhallucinations is "f")>>
			<<if $farm_work.cattle.gender_plural is "m">>
				<<if $cbchance gte 100>>
					You daydream as you attach the suction tubes to their nipples, your practiced hands moving automatically. The bullboys moo in anticipation.
				<<else>>
					You daydream as you attach the suction tubes to their cocks, your practiced hands moving automatically. The bullboys moo in anticipation.
				<</if>>
			<<elseif $farm_work.cattle.gender_plural is "f">>
				<<if $dgchance gte 1>>
					You daydream as you attach the suction tubes to their breasts and cocks, your practiced hands moving automatically. The cowgirls moo in anticipation.
				<<else>>
					You daydream as you attach the suction tubes to their breasts, your practiced hands moving automatically. The cowgirls moo in anticipation.
				<</if>>
			<<else>>
				You daydream as you attach the suction tubes to their breasts and cocks, your practiced hands moving automatically. The cowgirls and bullboys moo in anticipation.
			<</if>>
		<<else>>
			<<if $farm_work.cattle.gender_plural is "m">>
				You daydream as you attach the suction tubes to their cocks, your practiced hands moving automatically. The bulls moo in anticipation.
			<<elseif $farm_work.cattle.gender_plural is "f">>
				You daydream as you attach the suction tubes to their udders, your practiced hands moving automatically. The cows moo in anticipation.
			<<else>>
				You daydream as you attach the suction tubes to their udders and cocks, your practiced hands moving automatically. The cattle moo in anticipation.
			<</if>>
		<</if>>
	<</if>>
<<else>>
	The cattle moo in anticipation.
<</if>>

The milking machine works fast, and soon finishes gathering fluid. You release the <<farm_text_many cattle>>, and they trot away.

<<farm_milk_actions>>

:: Farm Cattle Milk Hand
<<effects>>

<<if $farm_work.cattle.monster is true>>
	<<if $farm_work.cattle.gender is "m">>
		<<if $farm_work.cattle.genitals is "vagina">>
			You lead a bullboy into the barn, and sit on a stool beside him. He kneels over the bucket, and moos in anticipation. You pinch his nipples with both hands, and squeeze.
		<<else>>
			You lead a bullboy into the barn, and sit on a stool beside him. He kneels over the bucket, and moos in anticipation. You take his already-erect penis in both hands, and get to work.<<handstat>><<handejacstat>>
		<</if>>
	<<else>>
		<<if $farm_work.cattle.genitals is "penis">>
			You lead a cowgirl into the barn, and sit on a stool beside her. She kneels over the bucket, and moos in anticipation. You take her already-erect penis in one hand and a breast in the other, then get to work.<<handstat>><<handejacstat>>
		<<else>>
			You lead a cowgirl into the barn, and sit on a stool beside her. She kneels over the bucket, and moos in anticipation. You grasp her breasts in both hands, and squeeze.
		<</if>>
	<</if>>
<<else>>
	<<if $farm_work.cattle.gender is "m">>
		You lead the bull into the barn, and sit on a stool beside it. It moos in anticipation. You take its already-erect penis in both hands, and get to work.
	<<else>>
		You lead the cow into the barn, and sit on a stool beside it. It moos in anticipation. You take its udders in both hands, and get to work.
	<</if>>
<</if>>

<<if $cattle_milked lte 6 or $deviancy lt 15>>
	It feels strange to get so hands-on. You remind yourself that there's nothing odd about this, but it's a hard feeling to shake.
<<elseif $cattle_milked lte 1200 or $deviancy lt 35>>
	You're used to milking cattle, and the <<farm_text cattle>> appreciates the attention.
<<else>>
	You daydream as you work, your practiced hands moving on their own. The <<farm_text cattle>> appreciates the attention.
<</if>>
<<deviancy1>>

You <<tendingtext>> squeeze and rub.
<<if currentSkillValue('tending') gte 1500>>
	<<farm_count 3>><<pass 3>> Three minutes later
<<elseif currentSkillValue('tending') gte 1200>>
	<<farm_count 4>><<pass 4>> Four minutes later
<<elseif currentSkillValue('tending') gte 1000>>
	<<farm_count 5>><<pass 5>> Five minutes later
<<elseif currentSkillValue('tending') gte 800>>
	<<farm_count 10>><<pass 10>> Ten minutes later
<<elseif currentSkillValue('tending') gte 600>>
	<<farm_count 15>><<pass 15>> Fifteen minutes later
<<elseif currentSkillValue('tending') gte 400>>
	<<farm_count 20>><<pass 20>> Twenty minutes later
<<elseif currentSkillValue('tending') gte 200>>
	<<farm_count 25>><<pass 25>> Twenty-five minutes later
<<else>>
	<<farm_count 30>><<pass 30>> Thirty minutes later
<</if>>
you have a bucket full of <<farm_text cattle>> milk.

<<if $farm_work.cattle_text is undefined>>
	<<set $farm_work.cattle_text to 0>>
<</if>>
<<switch $farm_work.cattle_text>>
<<case 0>>
	<<set $farm_work.cattle_text += 1>>
	The <<farm_text cattle>> trots away.
<<case 1>>
	<<set $farm_work.cattle_text += 1>>
	The <<farm_text cattle>> licks your hand before trotting away.<<lstress>><<stress -1>>
<<case 2>>
	<<set $farm_work.cattle_text += 1>>
	The <<farm_text cattle>> needs cajoling before it will return to the field.
<<case 3>>
	<<set $farm_work.cattle_text += 1>>
	The <<farm_text cattle>> leaves in a hurry, eager to return to the field.
<<case 4>>
	<<set $farm_work.cattle_text to 0>>
	The <<farm_text cattle>> trots back to the field, though has some trouble finding the exit.
<</switch>>

<<farm_milk_actions>>

:: Farm Cattle Milk Mouth
<<effects>>
<<pass 3>>
<<if $farm_work.cattle.monster is true>>
	<<if $farm_work.cattle.gender is "m">>
		<<if $farm_work.cattle.genitals is "vagina">>
			You lead a bullboy into the barn. He starts to kneel, but you interrupt. Instead, he watches with a puzzled expression as you lean down to his chest.

			You take his nipple into your mouth, and suck. He moos in pleasure as sweet milk flows. You spit most into the bucket, but you can't help but swallow some.<<transform cat 1>>

		<<else>>
			You lead a bullboy into the barn. He starts to kneel, but you interrupt. Instead, he watches with a puzzled expression as you kneel in front of him instead.

			His cock is already erect in anticipation. You take it into your mouth. <<if $player.virginity.oral is true>>It tastes strange.<</if>>
			<<takeVirginity "bullboy" "oral">><<oralstat>><<oralejacstat>><<ejacstat>><<set $player.bodyliquid.mouth.semen += 1>>

			You grasp his thighs for purchase as you bob your head back and forth. Thick bullboy cream surges into your mouth. You pull away from his cock and spit into the bucket, directing the rest of the flow the same way. The bullboy moos in pleasure, and you soon have the bucket filled.

		<</if>>
	<<else>>
		<<if $farm_work.cattle.genitals is "penis">>
			You lead a cowgirl into the barn. She starts to kneel, but you interrupt. Instead, she watches with a puzzled expression as you lean down to her chest.

			You take her nipple into your mouth, and suck. She moos in pleasure as sweet milk flows. You spit most into the bucket, but you can't help but swallow some.<<transform cat 1>>

			You drop to your knees next. Her cock is already erect in anticipation. You take it into your mouth. <<if $player.virginity.oral is true>>It tastes strange.<</if>>
			<<takeVirginity "bullboy" "oral">><<oralstat>><<oralejacstat>><<ejacstat>><<set $player.bodyliquid.mouth.semen += 1>>

			You grasp her thighs for purchase as you bob your head back and forth. Thick cowgirl cream surges into your mouth. You pull away from her cock and spit into the bucket, directing the rest of the flow the same way. Her mooing continues, and you soon have the bucket filled.

		<<else>>
			You lead a cowgirl into the barn. She starts to kneel, but you interrupt. Instead, she watches with a puzzled expression as you lean down to her chest.

			You take her nipple into your mouth, and suck. She moos in pleasure as sweet milk flows. You spit most into the bucket, but you can't help but swallow some.<<transform cat 1>>

		<</if>>
	<</if>>
<<else>>
	<<if $farm_work.cattle.gender is "m">>
		You lead a bull into the barn, and kneel beneath it. Its cock is already erect in anticipation. You take it into your mouth. <<if $player.virginity.oral is true>>It tastes strange.<</if>>
		<<takeVirginity "bull" "oral">><<oralstat>><<oralejacstat>><<ejacstat>><<set $player.bodyliquid.mouth.semen += 1>>

		You grasp its hind legs for purchase as you bob your head back and forth. Thick bull cream surges into your mouth. You pull away from its cock and spit into the bucket, directing the rest of the flow the same way. The bull moos in pleasure, and you soon have the bucket filled.

	<<else>>
		You lead a cow into the barn, and kneel beneath it. You lean down, and take one of its udders into your mouth. Thick, creamy milk flows into your mouth. You spit most into the bucket, but can't help but swallow some.<<transform cat 1>>

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

<<deviancy4>>

The <<farm_text cattle>> trots away.

<<farm_milk_actions>>

:: Farm Cattle In
<<effects>>

The <<farm_text_many dog>> help you herd the <<farm_text_many cattle>> into the barn.

<<set $danger to random(1, 10000)>>
<<if $danger gte (9900 - $allure)>>
	<<if $farm.beasts.dogs gte 20>>
		The <<farm_text_many dog>> seem agitated, but a firm look is enough to keep them on target.

		<<link [[Next|Farm Work]]>><</link>>

	<<else>>
		<<if $farm.beasts.cattle gte 20>>
			The <<farm_text_many dog>> seem agitated. One growls and bares its teeth at you, until a <<farm_text cattle>> breaks from the herd and stands between you and the <<farm_text dog>> in a protective gesture.

			The dogs leave you alone.<<grespect>><<farm_dogs 1>>

		<<else>>
			The <<farm_text_many dog>> seem agitated, and growl at you along with the cattle.<<gstress>><<stress 6>>

		<</if>>

		<<link [[Next|Farm Work]]>><</link>>

	<</if>>
<<else>>
	<<link [[Next|Farm Work]]>><</link>>

<</if>>

:: Farm Spy
<<effects>>
<<npc Alex>><<person1>>
You sneak up to the shed, and push the door open.
<<promiscuity1>>

<<skulduggerycheck>>
<<if $skulduggerysuccess is 1>>
	<<earnFeat "I Spy">>
	You peek through the gap, and see Alex. <<His>> eyes are shut, and <<he>> hasn't noticed you.

	<<if $NPCList[0].gender is "f">>
		<<if $NPCList[0].penis isnot "none">>
			Rivulets of water run down <<his>> toned body, flowing over <<his>> <<print $NPCList[0].breastsdesc>> and <<print $NPCList[0].penisdesc>>
		<<else>>
			Rivulets of water run down <<his>> <<print $NPCList[0].breastsdesc>>, and flow over the rest of <<his>> toned body.
		<</if>>
	<<else>>
		<<if $NPCList[0].penis isnot "none">>
			Rivulets of water run down <<his>> toned body, flowing over <<his>> <<print $NPCList[0].penisdesc>>.
		<<else>>
			Rivulets of water run down <<his>> toned body.
		<</if>>
	<</if>>

	<<His>> face, arms and legs are much darker than parts protected from <<his>> days in the sun.<<garousal>><<arousal 600>>

	A draft blows through the gap in the door. Alex opens <<his>> eyes, but you're already gone. <<He>> shuts the door, none the wiser.

	<<if $skulduggery lte ($skulduggerydifficulty + 100)>>
		<<skulduggeryskilluse>>
	<<else>>
		That was too easy. You didn't learn anything.

	<</if>>

	<<link [[Next|Farm Work]]>><<endevent>><</link>>

<<else>>

	The door slams shut before you see more than a sliver of bare skin. "You perv," Alex shouts from behind the door. "Leave me to shower in peace."<<llove>><<ldom>><<npcincr Alex love -1>><<npcincr Alex dom -1>><<glust>><<npcincr Alex lust 1>><<gstress>><<stress 6>>

	<<if $skulduggery lte ($skulduggerydifficulty + 100)>>
		<<skulduggeryskilluse>>
	<<else>>
		That was too easy. You didn't learn anything.

	<</if>>

	<<link [[Next|Farm Work]]>><<endevent>><</link>>

<</if>>

:: Farm Tending
<<effects>>

<<if $weather is "rain">>
	You endure the rain as you search for invasive weeds, digging them up at the roots before they can strangle the crops.
<<elseif $weather is "clear">>
	<<if $rng gte 51>>
		The sun beats down as you search for invasive weeds, digging them up at the roots before they can strangle the crops.
	<<else>>
		The sun beats down as you water the crops.
	<</if>>
<<elseif $weather is "snow">>
	You endure the cold as you search for invasive weeds, digging them up at the roots before they can strangle the crops.
<<else>>
	<<if $rng gte 51>>
		You search for invasive weeds, digging them up at the roots before they can strangle the crops.
	<<else>>
		You water the crops.
	<</if>>
<</if>>
<<if currentSkillValue('tending') gte 200>>
	You also examine them for pests and signs of disease.
<<else>>
	You also examine the crops for pests.
<</if>>
<<tendingdifficulty 1 1000 true>>
<<if $tendingSuccess>>
	It's hard work, but you make good time.<<set $farm_work.tending += 1>>
<<else>>
	It's hard work, but you make progress.
<</if>>

<<if $arousal gte $arousalmax>>
	<<orgasmLocation "alexFarmTendingAlone">>
<</if>>

<<set $danger to random(1, 10000)>>
<<if $danger gte (9900 - $allure)>>
	<<farm_tending_events>>
<<else>>

	<<link [[Next|Farm Work]]>><</link>>

<</if>>

:: Farm Tending Alex
<<effects>>

<<if $weather is "rain">>
	You endure the rain as you help Alex search for invasive weeds, digging them up at the roots before they can strangle the crops.
<<elseif $weather is "clear">>
	<<if $rng gte 51>>
		The sun beats down as you help Alex search for invasive weeds, digging them up at the roots before they can strangle the crops.
	<<else>>
		The sun beats down as you help Alex water the crops.
	<</if>>
<<elseif $weather is "snow">>
	You endure the cold as you help Alex search for invasive weeds, digging them up at the roots before they can strangle the crops.
<<else>>
	<<if $rng gte 51>>
		You help Alex search for invasive weeds, digging them up at the roots before they can strangle the crops.
	<<else>>
		You help Alex water the crops.
	<</if>>
<</if>>
<<if currentSkillValue('tending') gte 200>>
	You also examine them for pests and signs of disease.
<<else>>
	You also examine them for pests.
<</if>>
<<tendingdifficulty 1 1000 true>>
<<if $tendingSuccess>>
	It's hard work, but you make good time.<<set $farm_work.tending += 1>>
<<else>>
	It's hard work, but you make progress.
<</if>>

<<if $arousal gte $arousalmax>>
	<<orgasmLocation "alexFarmTending">>
<</if>>

<<set $danger to random(1, 10000)>>
<<if $danger gte (9900 - $allure)>>
	<<farm_tending_alex_events>>
<<else>>
	<<link [[Next|Farm Work]]>><<endevent>><</link>>

<</if>>

:: Farm Clearing
<<effects>>

<<if $weather is "rain">>
	You endure the rain as you help Alex clear the invasive weeds, digging them up at the roots and freeing the land for cultivation.
<<elseif $weather is "clear">>
	The sun beats down as you help Alex clear the invasive weeds, digging them up at the roots and freeing the land for cultivation.
<<elseif $weather is "snow">>
	You endure the cold as you help Alex clear the invasive weeds, digging them up at the roots and freeing the land for cultivation.
<<else>>
	You help Alex clear the invasive weeds, digging them up at the roots and freeing the land for cultivation.
<</if>>
<<if $rng gte 51>>
	There are young trees growing in places. Alex insists on digging them a new home near the surrounding woodland.
<<else>>
	Some of the plants are rooted deep, and need to be dug out.
<</if>>

<<if $farm.clearing gte 50>>
	You make good progress, but there's still a long way to go.
<<elseif $farm.clearing gte 10>>
	You make good progress. Most of the field is clear.
<<elseif $farm.clearing gte 1>>
	You make good progress. The field is almost cleared.
<<else>>
	You make good progress, and remove the last of the weeds!
<</if>>

<<if $arousal gte $arousalmax>>
	<<orgasmLocation "alexFarmTending">>
<</if>>

<<set $danger to random(1, 10000)>>
<<if $danger gte (9900 - $allure)>>
	<<farm_tending_alex_events>>
<<else>>
	<<link [[Next|Farm Work]]>><<endevent>><</link>>

<</if>>

:: Farm Clearing Alone
<<effects>>

<<if $weather is "rain">>
	You endure the rain as you clear the invasive weeds, digging them up at the roots and freeing the land for cultivation.
<<elseif $weather is "clear">>
	The sun beats down as you clear the invasive weeds, digging them up at the roots and freeing the land for cultivation.
<<elseif $weather is "snow">>
	You endure the cold as you clear the invasive weeds, digging them up at the roots and freeing the land for cultivation.
<<else>>
	You clear the invasive weeds, digging them up at the roots and freeing the land for cultivation.
<</if>>
<<if $rng gte 51>>
	Some of the plants are rooted deep, and need to be dug out.
<</if>>

<<set $rng to random(1, 6)>>
<<if $rng is 1>>

	You faintly hear a wet sound coming from the moor, but you can't see much in the darkness. <<gstress>><<stress 3>>
<<elseif $rng is 2>>

	You think you see a pair of eyes staring at you in the dark, but they're gone before you can get a better look. <<gstress>><<stress 6>>
<<elseif $rng is 3 or $rng is 4 or $rng is 5>>

	You trip over something in the dark. <<pain 5>> <<gpain>>
<</if>>

<<if $farm.clearing gte 50>>
	You make some progress, but there's still a long way to go. It's slow work without Alex.
<<elseif $farm.clearing gte 10>>
	You make some progress. Most of the field is clear. It's slow work without Alex.
<<elseif $farm.clearing gte 1>>
	You make some progress. The field is almost cleared. It's slow work without Alex.
<<else>>
	You make good progress, and remove the last of the weeds!
<</if>>

<<if $arousal gte $arousalmax>>
	<<orgasmLocation "alexFarmTendingAlone">>
<</if>>

<<set $danger to random(1, 10000)>>
<<if $danger gte (9900 - $allure * 1.5)>>
	<<farm_tending_events>>
<<else>>
	<<link [[Next|Farm Work]]>><<endevent>><</link>>

<</if>>

:: Farm Rest
<<effects>>

<<if $phase is 1>>
	<<npc Alex>><<person1>>
	You approach Alex.
	<<if $weather is "clear">>
		<<He>> reclines in the shade beneath the boughs of a tree.
	<<elseif $weather is "rain">>
		<<He>> shelters from the rain beneath the boughs of a tree.
	<<elseif $weather is "snow">>
		<<He>> shelters from the snow beneath the boughs of a tree.
	<<else>>
		<<He>> reclines beneath the boughs of a tree.
	<</if>>
	<<He>> flicks up the brim of <<his>> hat when <<he>> hears you approach.
	<<if $exposed gte 1>>
		<<covered>> <<He>> looks away.
	<</if>>

	<<if $NPCName[$NPCNameList.indexOf("Alex")].love gte 10>>
		<<if $NPCName[$NPCNameList.indexOf("Alex")].dom gte 10>>
			"Feel free to take a break," <<he>> says. "You've earned it."
		<<elseif $NPCName[$NPCNameList.indexOf("Alex")].dom lte -10>>
			"I'm glad to see you," <<he>> says. "Would you like to sit with me?"
		<<else>>
			"I was hoping you'd swing by," <<he>> says, gesturing at the ground beside <<him>>.
		<</if>>
	<<elseif $NPCName[$NPCNameList.indexOf("Alex")].love lte -10>>
		<<if $NPCName[$NPCNameList.indexOf("Alex")].dom gte 10>>
			"What now?" <<he>> sighs.
		<<elseif $NPCName[$NPCNameList.indexOf("Alex")].dom lte -10>>
			"Now what?" <<he>> asks.
		<<else>>
			"Something the matter?" <<he>> asks.
		<</if>>
	<<else>>
		<<if $NPCName[$NPCNameList.indexOf("Alex")].dom gte 10>>
			"Let me know if you need a hand with anything." <<he>> says.
		<<elseif $NPCName[$NPCNameList.indexOf("Alex")].dom lte -10>>
			"A break's fine now and then," <<he>> says.
		<<else>>
			"Feel free to join me," <<he>> says. "A break now and then is fair."
		<</if>>
	<</if>>

<<else>>
	<<farm_work_update>>
<</if>>

You sit and lean against the tree.

<<if $rng gte 91>>
	Alex chats with you, and talks about <<his>> family. "I've twelve siblings," <<he>> says at one point. "<<if $pronoun is "m">>Mum<<else>>Dad<</if>> doesn't know what to do with us all."
<<elseif $rng gte 81>>
	Alex chats with you, and talks about the farm's pigs. "Hauling all their food over is rough," <<he>> says at one point. "The truffles are worth it though."
<<elseif $rng gte 71>>
	Alex chats with you, and talks about the farm's horses. "Most of their owners are rich townies," <<he>> says. "They need to be kept active and healthy."
<<elseif $rng gte 61>>
	Alex chats with you, and talks about the farm's cattle. "They're big buggers," <<he>> says at one point. "But docile. Wish the other animals were as easy to manage."
<<elseif $rng gte 51>>
	Alex chats with you, and talks about the farm's dogs. "They aren't pets," <<he>> says at one point. "Don't be afraid to keep them in line."
<<elseif $rng gte 41>>
	<<if $farm_stage gte 12>>
		Alex chats with you, and talks about the fields. "No one thought we'd clear all nine," <<he>> says at one point. "The forest grows fast, so we'll need to keep on top of it."
	<<else>>
		Alex chats with you, and talks about the fields. "There are nine in total," <<he>> says at one point. "Or were. The forest has reclaimed most of them. It's almost like trees have sprung up over night." <<He>> laughs.
	<</if>>
<<elseif $rng gte 31>>
	Alex chats with you, and asks about life in the town. "I don't think I'd like the noise," <<he>> says at one point. "I guess you get used to it."
<<elseif $rng gte 21>>
	Alex chats with you, and asks about school. "Parents taught me," <<he>> says at one point. "Sometimes my older siblings helped."
<<elseif $rng gte 11>>
	Alex chats with you, and talks about the moor. "Don't go there at night," <<he>> warns. "Or at all if you can help it. People have disappeared."
<<else>>
	Alex chats with you, and talks about the sea. "You don't need to walk far," <<he>> says. "If you know the paths."
<</if>>

<<set $danger to random(1, 10000)>>
<<if $danger gte (9900 - $allure) and $farm_stage gte 4>>
	<<if $farm_relax_drink is "accept">>
		"Another drink?" <<he>> asks, producing another bottle from the hiding place.
	<<elseif $farm_relax_drink is "refuse">>
		"You sure I can't interest you in a drink?" <<he>> asks, pulling the bottle from its hiding place again.
	<<else>>
		"Fancy a drink?" <<he>> asks out of nowhere. <<He>> pulls a bottle from an alcove beneath a thick root, and offers it to you. "They say you shouldn't drink alone."
	<</if>>

	<<link [[Drink|Farm Rest Drink]]>><<alcohol 120>><<stress -6>><<npcincr Alex love 1>><</link>><<glove>><<lstress>>

	<<link [[Refuse|Farm Rest Refuse]]>><</link>>

<<else>>
	<<farm_relax_end>>
<</if>>

:: Farm Stables Rest
<<effects>><<set $outside to 0>>

You relax on the hammock next to the stables.
<<if $weather is "rain" or $weather is "snow">>You're glad to have some cover from the <<print ($weather is "rain"?'rain':'snow')>>.<</if>>

<<if $daystate is "night">>
	With the horses sleeping, you're able to enjoy the peace and quiet.
<<elseif $farm_work.horses_out is 1>>
	With the horses out running in the fields, you're able to enjoy the peace and quiet.
<<else>>
	The horses are inside. You hear them move around.
<</if>>

<<link [[Next|Farm Work]]>><</link>>

:: Farm Perimeter
<<effects>>

<<if $rng gte 51 or $farm.wall is 1>>
	You follow the farm perimeter, picking up stones from the ground and returning them to the old wall.

<<else>>
	You take a hammer and nails, and repair the wooden fence surrounding the fields. Some of the wooden planks have broken free whole, but others need to be replaced.

	You step back and admire your handiwork.

<</if>>

<<link [[Next|Farm Work]]>><</link>>

:: Farm Perimeter Alex
<<effects>>

<<npc Alex>><<person1>>

<<if $rng gte 51 or $farm.wall is 1>>
	You help Alex follow the farm perimeter, picking up stones from the ground and returning them to the old wall. <<He>> suggests you split up to cover more ground.

<<else>>
	You take a hammer and nails, and help Alex repair the wooden fence surrounding the fields. Some of the wooden planks have broken free whole, but others need to be replaced. Alex acknowledges your assistance with a wave, but seems focused on patching up the damage in front of <<him>>.

	You step back and admire your handiwork.

<</if>>

<<link [[Next|Farm Work]]>><<endevent>><</link>>

:: Farm Dogs Feed
<<effects>>

You carry the feed to the field. Some of the younger <<farm_text_many dog>> beg and follow you, but most wait near the kennels.

<<set $danger to random(1, 10000)>>

<<if $danger gte (9900 - $allure) and $farm.beasts.dogs lte -20 and ($bestialitydisable is "f" or $farm_work.dog.monster is true)>>
	You leave the <<farm_text_many dog>> to feed, but hear footsteps approach as you walk from the field.
	<<if $farm_work.dog.monster is true>>
		Before you can turn, a pair of hands land on your shoulders. A weight forces you to the ground.
	<<else>>
		Before you can turn, a pair of paws land on your shoulders, and a jaw clamps around your neck. The weight forces you to the ground.
	<</if>>

	<<link [[Next|Farm Dogs Rape]]>><<set $molestationstart to 1>><</link>>

<<elseif ($danger gte (9900 - $allure) or $farm.beasts.dogs lte -5) and ($bestialitydisable is "f" or $farm_work.dog.monster is true)>>
	You leave the <<farm_text_many dog>> to feed, but hear footsteps approach as you walk from the field.
	<<if $farm_work.dog.monster is true>>
		A <<farm_text dog>> wraps <<farm_his dog>> arms around your neck, and humps <<farm_his dog>> pelvis against you.
	<<else>>
		A <<farm_text dog>> rests <<farm_his dog>> paws on your shoulders, and humps against your <<bottom>>.
	<</if>>

	<<link [[Scold|Farm Dogs Scold]]>><</link>><<tendingdifficulty 1 800>>

	<<link [[Endure|Farm Dogs Endure]]>><><<farm_dogs -1>><<trauma -6>><<stress -6>><</link>><<lrespect>><<ltrauma>><<lstress>>

	<<if $deviancy gte 15>>
		<<link [[Drop to your knees|Farm Dogs Drop]]>><</link>><<deviant2>>

	<</if>>
<<elseif $danger gte (9900 - $allure)>>
	One of the younger <<farm_text dog>>s growls at you, but its elder keeps it in check.<<gstress>><<stress 6>>

	You leave the <<farm_text_many dog>> to feed, and walk from the field.

	<<link [[Next|Farm Work]]>><</link>>

<<else>>
	You leave the <<farm_text_many dog>> to feed, and walk from the field.

	<<link [[Next|Farm Work]]>><</link>>

<</if>>

:: Farm Barn
<<set $outside to 0>><<effects>>
<<farm_work_update>>
You are in the barn. The <<farm_text_many cattle>> sleep sound.
<<if $farm.barn gte 1>>
	A large, glowing milking machine stands in the centre.
<<else>>
	A large milking machine stands in the centre.
<</if>>

<<if $stress gte $stressmax>>
	<<passoutfarmroad>>
<<else>>
	<<if $hour gte 6 and $hour lte 20>>
		The sun breaks through the high windows, and the <<farm_text_many cattle>> stir. You sneak from the building.

		<<link [[Next|Farm Work]]>><</link>>

	<<else>>
		<<if $deviancy gte 15>>
			<<if $breastfeedingdisable is "f" and $milk_amount gte 1>>
				<<link [[Milk yourself (0:30)|Farm Barn Breasts]]>>
					<<if $cow gte 6>>
						<<transform cow 1>>
					<</if>>
				<</link>><<deviant2>>

			<</if>>
			<<if $player.penisExist and $semen_amount gte 1 and !$worn.genitals.type.includes("chastity")>>
				<<link [[Milk your penis (0:30)|Farm Barn Penis]]>>
					<<if $cow gte 6>>
						<<transform cow 1>>
					<</if>>
				<</link>><<deviant2>>

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

		<<link [[Leave|Farm Work]]>><</link>>

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

:: Farm Barn Breasts
<<effects>>
<<farm_work_update>>
<<if $cow gte 6>>
	<<transform cow 1>>
<</if>>
<<milkvolume 5>>

<<if $worn.upper.name isnot "naked">>
	<<if $worn.under_upper.name isnot "naked">>
		You remove your $worn.upper.name and $worn.under_upper.name, and drop to all fours in front of the machine.<<upperstrip>><<underupperstrip>>
	<<else>>
		You remove your $worn.upper.name, and drop to all fours in front of the machine.<<upperstrip>>
	<</if>>
<<else>>
	<<if $worn.under_upper.name isnot "naked">>
		You remove your $worn.under_upper.name, and drop to all fours in front of the machine.<<underupperstrip>>
	<<else>>
		You drop to all fours in front of the machine.
	<</if>>
<</if>>
You take two of the suction tubes, and attach them to your <<breasts>>.

<<if $daystate is "night">>
	The machine comes alive, and sucks your chest. You gasp at the sensation, almost waking one of the <<farm_text cattle>>s.<<gggarousal>><<arousal 2000>>

<<else>>
	The machine comes alive, and sucks your chest. You gasp at the sensation, causing one of the <<farm_text cattle>> to turn their head in your direction.<<gggarousal>><<arousal 2000>>

<</if>>

<<link [[Next|Farm Barn Breasts 2]]>><</link>>

:: Farm Barn Breasts 2
<<effects>>

The machine continues its devilish work, sucking with more intensity. You feel a warmth build.<<arousal 10000>>
<<orgasm>>

<<if $lactating is 1>>

	Milk leaks from your buds as your body shakes. Your fluid is sucked into the machine, where it drips into a glass tank.

	You remain on your hands and knees, two suction tubes attached to your <<breasts>>, until the machine finishes drinking.

	<<if $farm.barn gte 1>>
		<<set $farm_breast_milk to ($milk_amount / 1.5)>>
	<<else>>
		<<set $farm_breast_milk to ($milk_amount / 2)>>
	<</if>>
	<<set $milk_amount -= $farm_breast_milk>>
	<<set $milk_produced_stat += Math.trunc($farm_breast_milk)>>

	<<if $farm_breast_milk gte 3000>>
		The tank almost overflows with milk.<<farmCatchChance 0.4>>
	<<elseif $farm_breast_milk gte 2000>>
		The tanks are over half full with your milk.<<farmCatchChance 0.2>>
	<<elseif $farm_breast_milk gte 1000>>
		There's a large volume of milk in the tank.<<farmCatchChance 0.1>>
	<<elseif $farm_breast_milk gte 300>>
		There's a decent volume of milk in the tank.<<farmCatchChance 0.05>>
	<<else>>
		There's only a dribble of milk in the tank.<<farmCatchChance 0.01>>
	<</if>>

	<<if $farm_breast_milk gte 2000>>
		<<set $farm_breast_milk to Math.trunc($farm_breast_milk / 1000)>>
		You've filled $farm_breast_milk bottles of milk.
		<<tending_give bottle_of_breast_milk $farm_breast_milk>>
	<<elseif $farm_breast_milk gte 1000>>
		<<set $farm_breast_milk to Math.trunc($farm_breast_milk / 1000)>>
		You've filled a bottle with milk.
		<<tending_give bottle_of_breast_milk $farm_breast_milk>>
	<<else>>
		<<set $farm_breast_milk to Math.trunc($farm_breast_milk / 300)>>
		<<if $farm_breast_milk lte 0>>
			<<set $farm_breast_milk to 1>>
		<</if>>
		You don't have enough to fill a bottle. You mix it with the cattle milk.<<gfarm>>
		<<farm_yield $farm_breast_milk>>
	<</if>>

	<<unset $farm_breast_milk>>
	<<barn_img breasts>>
<<else>>

	Your <<breasts>> feel more sensitive, but no milk leaks from your buds before the machine comes to a halt.

<</if>>

<<if $farm.milking.dayMilking is true and $hour gte 7 and $hour lte 21 and $farm_end is undefined>>
	You remove the suction tube with a shaking hand, and rise to your feet.
	<<deviancy2>>

	<<link [[Next|Farm Cattle Milk]]>><<pass 30>><<clotheson>><<machine_end>><</link>>

<<elseif $farm.milking.caught is true and $farm.milking.alexNightEvent is false>>
	<<set $farm.milking.alexNightEvent to true>>
	<<set $farm.milking.dayMilking to true>>
	As you remove the suction tubes with shaking hands.
	<<deviancy2>>
	<<link [[Next|Farm Barn Caught]]>><<pass 30>><<machine_end>><<endevent>><</link>>

<<else>>
	You remove the suction tubes with shaking hands, and rise to your feet.
	<<deviancy2>>

	<<link [[Next|Farm Barn]]>><<pass 30>><<clotheson>><<machine_end>><</link>>

<</if>>

:: Farm Barn Penis
<<effects>>
<<farm_work_update>>
<<if $cow gte 6>>
	<<transform cow 1>>
<</if>>

<<if $worn.lower.name isnot "naked">>
	<<if $worn.under_lower.name isnot "naked">>
		You remove your <<bottoms>> and <<underbottoms>>, and drop to all fours in front of the machine.<<lowerstrip>><<underlowerstrip>>
	<<else>>
		You remove your <<bottoms>>, and drop to all fours in front of the machine.<<lowerstrip>>
	<</if>>
<<else>>
	<<if $worn.under_lower.name isnot "naked">>
		You remove your <<underbottoms>>, and drop to all fours in front of the machine.<<underlowerstrip>>
	<<else>>
		You drop to all fours in front of the machine.
	<</if>>
<</if>>
You take one of the suction tubes, and attach it to your <<penis>>.

<<if $daystate is "night">>
	The machine comes alive, and sucks at your penis. You gasp at the sensation, almost waking one of the <<farm_text cattle>>s.<<gggarousal>><<arousal 2000>>

<<else>>
	The machine comes alive, and sucks at your penis. You gasp at the sensation, causing one of the <<farm_text cattle>> to turn their head in your direction.<<gggarousal>><<arousal 2000>>

<</if>>

<<link [[Next|Farm Barn Penis 2]]>><</link>>

:: Farm Barn Penis 2
<<effects>>

<<if $farm.barn gte 1>>
	<<set $farm_penis_milk to ($semen_amount / 1.5)>>
<<else>>
	<<set $farm_penis_milk to ($semen_amount / 2)>>
<</if>>
<<set _original_amount to $semen_amount>>
The machine continues its devilish work, sucking with more intensity. You feel a warmth build.<<gggarousal>><<arousal 10000>>
<<orgasm>>

Your semen is sucked up the tube, where it drips into a glass tank. The machine doesn't give you a chance to recover.<<gggarousal>><<arousal 10000>>
<<orgasm>>
<<arousal 10000>>
<<orgasm>>

You remain on your hands and knees as the machine milks you again and again, sucking everything it can take. Just when you fear you're about to pass out, the machine comes to a halt.

/* Either use the amount of semen produced by those three orgasms, or the original amount calculated for $farm_penis_milk, whichever is larger */
<<set _orgasm_semen to _original_amount - $semen_amount>>
<<if _orgasm_semen gt $farm_penis_milk>>
	<<set $farm_penis_milk to _orgasm_semen>>
<<else>>
	<<set $semen_amount -= ($farm_penis_milk - _orgasm_semen)>>
	<<set $semen_produced_stat += ($farm_penis_milk - _orgasm_semen)>>
<</if>>

<<if $farm_penis_milk gte 3000>>
	The tank almost overflows with semen.<<farmCatchChance 0.4>>
<<elseif $farm_penis_milk gte 2000>>
	The tanks are over half full with your semen.<<farmCatchChance 0.2>>
<<elseif $farm_penis_milk gte 1000>>
	There's a large volume of semen in the tank.<<farmCatchChance 0.1>>
<<elseif $farm_penis_milk gte 300>>
	There's a decent volume of semen in the tank.<<farmCatchChance 0.05>>
<<else>>
	There's only a dribble of semen in the tank.<<farmCatchChance 0.01>>
<</if>>

<<if $farm_penis_milk gte 2000>>
	<<set $farm_penis_milk to Math.trunc($farm_penis_milk / 1000)>>
	You've filled $farm_penis_milk bottles of semen.
	<<tending_give bottle_of_semen $farm_penis_milk>>
<<elseif $farm_penis_milk gte 1000>>
	<<set $farm_penis_milk to Math.trunc($farm_penis_milk / 1000)>>
	You've filled a bottle with semen.
	<<tending_give bottle_of_semen $farm_penis_milk>>
<<else>>
	<<set $farm_penis_milk to Math.trunc($farm_penis_milk / 300)>>
	<<if $farm_penis_milk lte 0>>
		<<set $farm_penis_milk to 1>>
	<</if>>
	You don't have enough to fill a bottle. You mix it with the cattle milk.<<gfarm>>
	<<farm_yield $farm_penis_milk>>
<</if>>

<<unset $farm_penis_milk>>
<<barn_img penis>>

<<if $farm.milking.dayMilking is true and $hour gte 7 and $hour lte 21 and $farm_end is undefined>>
	You remove the suction tube with a shaking hand, and rise to your feet.
	<<deviancy2>>

	<<link [[Next|Farm Cattle Milk]]>><<pass 30>><<clotheson>><<machine_end>><</link>>

<<elseif $farm.milking.caught is true and $farm.milking.alexNightEvent is false>>
	<<set $farm.milking.alexNightEvent to true>>
	<<set $farm.milking.dayMilking to true>>
	As you remove the suction tube with a shaking hand.
	<<deviancy2>>
	<<link [[Next|Farm Barn Caught]]>><<pass 30>><<machine_end>><<endevent>><</link>>

<<else>>
	You remove the suction tube with a shaking hand, and rise to your feet.
	<<deviancy2>>

	<<link [[Next|Farm Barn]]>><<pass 30>><<clotheson>><<machine_end>><</link>>

<</if>>

:: Farm Barn Caught
<<effects>>
<<npc Alex>><<person1>>
Alex emerges from the shadows.

"So that's where all the extra milk is coming from," <<he>> says, blushing, "I know I asked for your help, I just didn't expect you to go this far." <<npcincr Alex love 1>><<glove>><<npcincr Alex lust 1>><<glust>>

<<He>> turns to leave, but pauses, "As long as the cattle aren't neglected, I don't mind."

<<link [[Next|Farm Barn]]>><<clotheson>><<endevent>><</link>>

repo_name: Area/degrees

license: mit