code:
:: Domus House Knock
<<set $outside to 1>><<set $location to "town">><<effects>><<set $bus to "domus">>

You walk up to one of the homes and knock on the door.

	<<if $rng gte 96>>
		<<beastNEWinit 1 dog>>

		You hear a bark. A <<beasttype>> emerges from a kennel and runs towards you. <<bHis>> chain pulls taut, preventing <<bhim>> from getting any closer.
		<<if $monster is 1>>
			"Trespasser! Trespasser! Friend?"
		<</if>>

		<<if $monster is 1 or $bestialitydisable is "f">>
			<<link [[Tease|Domus House Tease]]>><<transform cat 2>><</link>><<deviant1>>

		<</if>>
		<<link [[Ignore|Domus House Ignore]]>><</link>>

	<<elseif $rng gte 91>>
		<<beastNEWinit 1 dog>>

	You hear a growl. A <<beasttype>> emerges from a kennel and paces towards you.
	<<if $monster is 1>>
		"No one's home. Leave."
	<</if>>

	<<link [[Pet it|Domus Entrance Pet]]>><</link>>

	<<link [[Run|Domus Entrance Run]]>><<transform cat 1>><</link>>

	<<elseif $rng gte 76>> /*~15%*/

	There's no response.

	<<link [[Break in|Domus House Lock]]>><</link>>

	<<link [[Go to the next house (0:02)|Domus House Knock]]>><<pass 2>><</link>>

	<<link [[Stop|Domus Street]]>><</link>>

	<<elseif $rng gte 66>> /*10%*/

	<<generate1>><<person1>>A <<person>> answers the door. "You're not-" <<he>> pauses. "Are you here for the life-modelling work?" <<he>> asks.

	<<link [['That's me!'|Domus House Work]]>><<set $phase to 6>><</link>>

	<<link [[Say you've got the wrong address and leave|Domus Street]]>><<endevent>><</link>>

	<<elseif $rng gte 56>> /*10%*/

	<<generate1>><<person1>>A <<person>> answers the door. <<He>> blinks at you. "Yeah?"

	Some people cheer in a room behind.

	<<link [[Ask for work|Domus House Work]]>><<set $phase to 7>><</link>>

	<<link [[Say you've got the wrong address and leave|Domus Street]]>><<endevent>><</link>>

	<<elseif $rng gte 51>> /*5%*/

	<<generate1>><<person1>>A <<person>> answers the door. "Yeah? How can I help you?" <<he>> asks.

	<<link [[Ask for work|Domus House Work]]>><<set $phase to 8>><</link>>

	<<link [[Say you've got the wrong address and leave|Domus Street]]>><<endevent>><</link>>

	<<elseif $rng gte 41>>

	<<generate1>><<person1>>A <<person>> answers the door. "How can I help you?" <<he>> asks.

	<<link [[Ask for work|Domus House Work]]>><<set $phase to 1>><</link>>

	<<link [[Say you've got the wrong address and leave|Domus Street]]>><<endevent>><</link>>

	<<elseif $rng gte 31>>

	<<generate1>><<person1>>A <<person>> answers the door. "Whaddya want?" <<he>> says.

	<<link [[Ask for work|Domus House Work]]>><<set $phase to 2>><</link>>

	<<link [[Say you've got the wrong address and leave|Domus Street]]>><<endevent>><</link>>

	<<elseif $rng gte 21>>

	<<generate1>><<person1>>A <<person>> answers the door. "Oh, you're a cutie," <<he>> says. "Is there anything I can do for you?"

	<<link [[Ask for work|Domus House Work]]>><<set $phase to 3>><</link>>

	<<link [[Say you've got the wrong address and leave|Domus Street]]>><<endevent>><</link>>

	<<elseif $rng gte 11>>

	<<generate1>><<generatep2>><<person1>>A <<person>> answers the door. "Yes?" <<he>> says.

	Before you can respond, a <<person2>><<person>> calls out, <<his>> head buried in a newspaper. "Who is it?"

	<<if $fameprostitution gte 600 and $rng%2>>
		"It's that whore from Bailey's place," the <<person1>><<person>> says.

		<<if $rng % 4>>
			"Okay... And you recognise <<phim>> straight away because..?"
		<<else>>
			"Wow! That was instant. You sure know your whores."
		<</if>>

		"Shut up," <<he>> rolls <<his>> eyes. "Yeah?"

	<<elseif $fameexhibitionism gte 600 and $rng%2>>"It's that flasher <<girl>> from the orphanage," the <<person1>><<person>> says.

	<<else>>"Just some <<girl>>," the <<person1>><<person>> says.

	<</if>>

	<<link [[Ask for work|Domus House Work]]>><<set $phase to 4>><</link>>

	<<link [[Say you've got the wrong address and leave|Domus Street]]>><<endevent>><</link>>

	<<else>>

	<<generatey1>><<person1>>A <<person>> answers the door. "Hello!" <<he>> says.

	<<link [[Ask for work|Domus House Work]]>><<set $phase to 5>><</link>>

	<<link [[Say you've got the wrong address and leave|Domus Street]]>><<endevent>><</link>>

	<</if>>

:: Domus House Work
<<set $outside to 0>><<set $location to "town">><<effects>><<set $bus to "domus">>
<<if $phase is 1>>
	<<if $rng gte 1>>

"I do need some help actually," <<he>> says. "My gutters need cleaning out. Should take a few hours. I'll give you £25 for it."

<<link [[Accept|Domus Gutters]]>><</link>>

<<link [[Refuse|Domus Street]]>><<endevent>><</link>>

	<<else>>

	"I'm sorry," <<he>> says. "There's nothing I need done. Goodbye."

	<<link [[Try another house|Domus House Knock]]>><<endevent>><</link>>

	<<link [[Stop|Domus Street]]>><<endevent>><</link>>

	<</if>>
<<elseif $phase is 2>>
	<<if $rng gte 1>>

"Yeah, I got something I need doing," <<he>> says. "I'll give you £10 if you clean my lounge. Might take an hour."

<<link [[Accept|Domus Lounge]]>><</link>>

<<link [[Refuse|Domus Street]]>><<endevent>><</link>>

	<<else>>

	"There's nothing you can help with," <<he>> says, scratching <<his>> arm. "Get lost."

	<<link [[Try another house|Domus House Knock]]>><<endevent>><</link>>

	<<link [[Stop|Domus Street]]>><<endevent>><</link>>

	<</if>>
<<elseif $phase is 3>>
	<<if $rng gte 1>>

	The <<person>> thinks for a moment. "I need something delivered," <<he>> says. "Should only take ten minutes to get there and back, and you'll get £5."

	<<link [[Accept|Domus Delivery]]>><</link>>

	<<link [[Refuse|Domus Street]]>><<endevent>><</link>>

	<<else>>

	"There's nothing I need," <<he>> says, leaning against the door frame. "You'd best be careful, a cute thing like you is gonna attract attention."

	<<link [[Try another house|Domus House Knock]]>><<endevent>><</link>>

	<<link [[Stop|Domus Street]]>><<endevent>><</link>>

	<</if>>
<<elseif $phase is 4>>
	<<if $rng gte 1>>

	The <<person>> turns to the <<person2>><<person>>. "Do we have any jobs that need doing?" <<he>> says.

	"You still haven't painted that room, have you?" the <<person>> responds. "Should have <<phim>> do that."

	The <<person1>><<person>> looks back to you. "That's an idea. We'll give you £50 to paint the spare room. Should take six hours."

	<<link [[Accept|Domus Painting]]>><</link>>

	<<link [[Refuse|Domus Street]]>><<endevent>><</link>>

	<<else>>

	The <<person>> turns to the <<person2>><<person>>. "Do we have any jobs that need doing?" <<he>> says.

	<<person2>>"Nothing I'd trust to a random street urchin," responds the <<person>>.

	<<person1>>"Don't be rude," says the <<person>>, as <<he>> shuts the door on your face.

	<<link [[Try another house|Domus House Knock]]>><<endevent>><</link>>

	<<link [[Stop|Domus Street]]>><<endevent>><</link>>

	<</if>>
<<elseif $phase is 5>>
	<<if $rng gte 1>>

	"I'm having trouble with homework," <<he>> says. "I'll give you £5 if you help."

	<<link [[Accept (1:00)|Domus Homework]]>><</link>>

	<<link [[Refuse|Domus Street]]>><<endevent>><</link>>

	<<else>>

	"I don't know," <<he>> says. "You'll have to come back when my parents are home."

	<<link [[Try another house|Domus House Knock]]>><<endevent>><</link>>

	<<link [[Stop|Domus Street]]>><<endevent>><</link>>

	<</if>>

<<elseif $phase is 6>>
	<<if $rng gte 1>>
		"You sounded older on the phone," <<he>> says. "But whatever. It's all as we agreed. £30 for two hours life-modelling. Nude of course.
		You can leave your clothes in the bathroom there. The artists are waiting in the studio through that door.
		<<if $exhibitionism lte 35>>
			"

			"It's all very professional," <<he>> smiles patting your shoulder. "Don't look so nervous. It's an art club.
			I know all of these people well. We've drawn lots of
			<<if $player.gender_appearance is "f">>girls like you. And boys.<<else>>boys like you. And girls.<</if>>
			Really, all sizes and shapes, separate or all together,
			we've painted it all. Honestly. It's okay. It's just art. But, please you're
		<<else>>
		You're
		<</if>>
		already late so don't hang about."

		<<He>> walks through the door. Beyond you see people sat with easels in a circle around a small stage.

		<<if $exhibitionism lt 15>>
		You are not lewd enough to pose nude.

		<<elseif $worn.genitals.type.includes("chastity")>>
		You cannot go nude while wearing $worn.genitals.name.

		<<else>>
		<<link [[Accept and go nude (2:00)|Domus Model]]>><</link>>
		<</if>>

		<<link [[Sneak away|Domus Street]]>><<endevent>><</link>>

	<<else>>
	"I'm afraid you're not suitable," <<he>> says. "I don't think my artists would be comfortable painting you."

	<<link [[Try another house|Domus House Knock]]>><<endevent>><</link>>

	<<link [[Stop|Domus Street]]>><<endevent>><</link>>

	<</if>>
<<elseif $phase is 7>>
	<<if $rng gte 1>>

	"Great timing," <<he>> says. "I ordered some beers at the corner shop. It's all paid for, but they haven't got anyone to run it over and the game's on now. No one wants to miss it. Be an angel and grab them for us. Shouldn't take 10 minutes. I'll pay you £5."

	<<link [[Accept (0:10)|Domus Errand]]>><</link>>

	<<link [[Refuse|Domus Street]]>><<endevent>><</link>>

	<<else>>

	"What? Work? No," <<he>> shuts the door.

	<<link [[Try another house|Domus House Knock]]>><<endevent>><</link>>

	<<link [[Stop|Domus Street]]>><<endevent>><</link>>

	<</if>>
<<else>>
	<<if $rng gte 1>>

	"My kid's shy," <<he>> says. "I'll give you £10 if you can help out for an hour or so. More if you actually do some good."

	<<link [[Accept (1:00)|Domus Shy]]>><</link>>

	<<link [[Refuse|Domus Street]]>><<endevent>><</link>>

	<<else>>

	"With all due respect, kid," <<he>> says. "Go bug someone else."

	<<link [[Try another house|Domus House Knock]]>><<endevent>><</link>>

	<<link [[Stop|Domus Street]]>><<endevent>><</link>>

	<</if>>

<</if>>

:: Domus Gutters
<<set $outside to 1>><<set $location to "town">><<effects>><<set $bus to "domus">>

You climb a ladder to reach the rooftop, and get to work clearing moss.
<<pass 1 hour>>

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

	<<if setup.clothes.lower[clothesIndex('lower', $worn.lower)].skirt is 1>>
	About an hour into your task you notice the <<person>> stood beneath you, pointing <<his>> camera phone up at you. You're perplexed for a moment, then realise <<he>> can see straight up your skirt. You put a hand between your thighs to cover yourself. "Don't be shy," <<he>> says, smiling.
		<<if $worn.under_lower.type.includes("naked")>>
		"You're a lewd thing to be clambering around with no underwear."
		<<elseif $worn.genitals.type.includes("chastity")>>
		"Nice $worn.under_lower.name, who has the key?"
		<<else>>
		"You have nice pair of $worn.under_lower.name there."
		<</if>>
	<<He>> laughs and walks back inside.

	<<pass 1 hour>><<pass 1 hour>>
	Once the gutters are clean, you climb down and report to the <<person>> for payment. You find <<him>> waiting for you in the kitchen, holding your money in one hand and the phone in the other, which shows a rather compromising image of you.

		"Here's the deal," <<he>> says. "I'll let you delete these pictures, and in return I get to know you more intimately.

		<<if $player.gender is "h" and $worn.under_lower.vagina_exposed is 1>>
			You don't want people knowing you have both sets of gear, do you?"
		<<elseif $player.gender_appearance is "m" and $player.gender is "f" and $worn.under_lower.vagina_exposed is 1>>
			You don't want people knowing you like dressing as a boy, do you?"
		<<elseif $player.gender_appearance is "f" and $player.gender is "m" and $worn.under_lower.vagina_exposed is 1>>
			You don't want people knowing you like dressing as a girl, do you?"
		<<elseif $worn.under_lower.vagina_exposed is 1>>
			I'm sure there's lots of perverts who'd love to see your <<genitals>>."
		<<else>>
			I'm sure there's lots of perverts who'd love some upskirt shots of you."
		<</if>>

	<<link [[Accept|Domus Gutters Molestation]]>><<set $molestationstart to 1>><</link>>

	<<link [[Refuse to be blackmailed|Domus Gutters Refuse]]>><</link>>

	<<else>>
	About an hour into your task a bird bursts from the nearby chimney. Startled, you slip and nearly fall from the roof.
	<<gstress>><<stress 6>>

	Once the gutters are clean, you climb down and report to the <<person>> for your payment. "Nice Job," <<he>> says, staring up at your handiwork. "Here you go, well earned."

	<<pass 1 hour>><<pass 1 hour>>

	You've made <<moneyGain 25>>.

	<<link [[Next|Domus Street]]>><<endevent>><</link>>

	<</if>>
<<else>>

Once the gutters are clean, you climb down and report to the <<person>> for your payment. "Nice Job," <<He>> says, staring up at your handiwork. "Here you go, well earned."

<<pass 1 hour>><<pass 1 hour>>

You've made <<moneyGain 25>>.

<<link [[Next|Domus Street]]>><<endevent>><</link>>

<</if>>

:: Domus Lounge
<<set $outside to 0>><<set $location to "town">><<effects>><<set $bus to "domus">>

You enter the lounge. Empty bottles and pizza boxes lay strewn about the room. The <<person>> lazes on the sofa and starts watching TV, as if you're not there.
<<pass 30>>

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

You're bending over to pick up a pizza box stuck beneath a chair when the <<person>> grabs you from behind.

<<link [[Next|Domus Lounge Molestation]]>><<set $molestationstart to 1>><</link>>

<<else>>

<<pass 30>>
An hour passes, and you've cleared the worst of the debris. It seems enough to satisfy <<him>>. "Good job. Here you go."

You've earned <<moneyGain 10>>.

<<link [[Leave|Domus Street]]>><<endevent>><</link>>

<</if>>

:: Domus Lounge Molestation
<<if $molestationstart is 1>>
<<set $molestationstart to 0>>
<<controlloss>>
<<violence 1>>
<<neutral 1>>
<<molested>>

<<maninit>>
<</if>>

<<effects>>

<<effectsman>><<man>>

<<stateman>>

<<actionsman>>

<<if $enemyhealth lte 0>>
	<<link [[Next|Domus Lounge Molestation Finish]]>><</link>><<nexttext>>
<<elseif $enemyarousal gte $enemyarousalmax>>
	<<link [[Next|Domus Lounge Molestation Finish]]>><</link>><<nexttext>>
<<else>>
	<<link [[Next|Domus Lounge Molestation]]>><</link>><<nexttext>>
<</if>>

:: Domus Lounge Molestation Finish
<<if $enemyhealth lte 0>>

The <<person1>><<person>> slumps back into <<his>> chair. <<tearful>> you escape outside.

<<clotheson>>
<<endcombat>>

<<link [[Next|Domus Street]]>><</link>>

<<elseif $enemyarousal gte $enemyarousalmax>>
<<ejaculation>>

"Good job," <<he>> says. "Here you go." <<tearful>> you stagger from the building.

You've gained <<moneyGain 10>>.

<<clotheson>>
<<endcombat>>

<<link [[Next|Domus Street]]>><</link>>

<</if>>

:: Domus Delivery
<<set $outside to 0>><<set $location to "town">><<effects>><<set $bus to "domus">>

The <<person>> hands you a brown envelope and gives you the address. "They'll pay you there. Thanks for the help."

<<endevent>>
Once you round a corner you look more closely at the envelope. It's unmarked, and you can't feel anything inside except maybe paper.

<<set $skulduggerydifficulty to 1>>
<<link [[Open it|Domus Delivery2]]>><<set $phase to 2>><<crimeup 1>><</link>><<skulduggerydifficulty>><<crime>>

<<link [[Don't open it|Domus Delivery3]]>><<set $phase to 1>><</link>>

:: Domus Painting
<<set $outside to 0>><<set $location to "town">><<effects>><<set $bus to "domus">>

The <<person1>><<person>> leads you to the second floor and into a small, empty room. A tin of paint sits on a step ladder, beside a collection of brushes and a roller.

"That's everything you need," <<he>> says. "We'll be downstairs."

<<pass 2 hours>>You get to work painting the room.

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

You finish painting one of the walls and try to stand back to admire your handiwork, but feel a force pull on your thigh. Looking down you see your $worn.lower.name stuck to the wall. You try to prise yourself free, but it's really stuck there.

<<link [[Be more forceful|Domus Painting Force]]>><</link>>

<<else>>

<<pass 2 hours>><<pass 2 hours>>After some arduous hours, you stand back to admire your finished handiwork.

You've earned <<moneyGain 50>>.

<<link [[Next|Domus Street]]>><<endevent>><</link>>

<</if>>

:: Domus Painting Force
<<set $outside to 0>><<set $location to "town">><<effects>><<set $bus to "domus">>

You pull against the wall, and with a tearing sound go tumbling to the ground.
<<if !$worn.over_lower.type.includes("naked")>>
	<<set $worn.over_lower.integrity -= 30>>
	<<if $worn.over_lower.integrity lte 0 and $worn.lower.type.includes("naked")>>
		You look up and see your $worn.over_lower.name still stuck to the paint, the whole thing torn apart and ruined.
		<<overlowerruined>><<clothesruinstat>><<set $loweroff to 0>>

		"Is everything okay in there?" you hear the <<person1>><<person>> ask. "I thought I heard-" <<he>> cuts off as <<he>> enters the room and sees you lying there, your <<undies>> on display. You blush as you cover your <<lewdness>> and stand up. "I'll get something for you to wrap up with," <<he>> says, clearly stifling laughter.

		<<He>> leaves for a few moments, then returns with a towel. "Don't worry about that," <<he>> says, gesturing at the remains of your clothing. "I'll get it off later."

		<<He>> leaves you to get back to work, no doubt aching to tell the <<person2>><<person>> all about what <<person1>><<he>> just witnessed.
		<<gtrauma>><<gstress>><<trauma 6>><<stress 6>>

		<<towelup>>
	<<else>>
		Your clothes didn't fare well, but at least they're still intact.

	<</if>>
<<else>>
	<<set $worn.lower.integrity -= 30>>
	<<if $worn.lower.integrity lte 0>>
		You look up and see your $worn.lower.name still stuck to the paint, the whole thing torn apart and ruined.
		<<lowerruined>><<clothesruinstat>><<set $loweroff to 0>>

		"Is everything okay in there?" you hear the <<person1>><<person>> ask. "I thought I heard-" <<he>> cuts off as <<he>> enters the room and sees you lying there, your <<undies>> on display. You blush as you cover your <<lewdness>> and stand up. "I'll get something for you to wrap up with," <<he>> says, clearly stifling laughter.

		<<He>> leaves for a few moments, then returns with a towel. "Don't worry about that," <<he>> says, gesturing at the remains of your clothing. "I'll get it off later."

		<<He>> leaves you to get back to work, no doubt aching to tell the <<person2>><<person>> all about what <<person1>><<he>> just witnessed.
		<<gtrauma>><<gstress>><<trauma 6>><<stress 6>>

		<<towelup>>
	<<else>>
		Your clothes didn't fare well, but at least they're still intact.

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

<<pass 2 hours>><<pass 2 hours>>After some arduous hours, you stand back to admire your finished handiwork.

You've earned <<moneyGain 50>>.

<<link [[Next|Domus Street]]>><<endevent>><</link>>

:: Domus Homework
<<set $outside to 0>><<set $location to "town">><<effects>><<set $bus to "domus">>

You try to help the <<person>> with <<his>> homework, but <<he>> isn't interested, preferring instead that you simply do it for <<him>>.
<<pass 30>>

<<if $school gte 1600>>
It's at least faster this way.
<<elseif $school gte 1200>>
<<else>>
You do your best, but struggle a bit.
<</if>>

<<set $danger to random(1, 10000)>><<set $dangerevent to 0>>
<<if $danger gte (9900 - $allure) and !$worn.upper.type.includes("naked")>>

"I'm bored," <<he>> says after about thirty minutes. Then without warning, <<his>> eyes light up. "I have an idea. If you take your top off, I'll be able to pay attention easy." <<He>> looks at you, eyes full of hope.

	<<if $player.gender_appearance is "m" and $breastsize lte 2>>

		<<link [[Take your top off|Domus Homework Strip]]>><<set $phase to 1>><</link>><<exhibitionist1>>

	<<else>>
		<<if $exhibitionism gte 35>>
		<<link [[Take your top off|Domus Homework Strip]]>><<set $phase to 2>><</link>><<exhibitionist3>>

		<</if>>
	<</if>>
	<<link [[Refuse|Domus Homework 2]]>><</link>>

<<else>>

	<<if $worn.upper.type.includes("naked")>>
	<<He>> keeps leering at your bare chest when <<he>> thinks you won't notice.

	<<else>>
	<<He>> rests <<his>> head on the table, looking bored.

	<</if>>

<<link [[Flirt|Domus Homework Flirt]]>><</link>><<promiscuous1>>

	<<link [[Finish the work|Domus Homework 2]]>><</link>>

<</if>>

:: Domus Homework Flirt
<<set $outside to 0>><<set $location to "town">><<effects>><<set $bus to "domus">>

You put your hand on top of <<hers>> and lean closer. "Don't worry," you whisper. "I'll take care of it." You lean even closer, and gently nip <<his>> ear before returning to your sitting position. <<He>> sits silently for the rest of the hour, blushing visibly.
<<promiscuity1>>

You've earned <<moneyGain 5>>.

<<pass 30>>

<<link [[Next|Domus Street]]>><<endevent>><</link>>

:: Domus Homework 2
<<set $outside to 0>><<set $location to "town">><<effects>><<set $bus to "domus">>

Lacking anything to keep <<his>> attention, the <<person>> remains uninterested in <<his>> homework. The rest of the hour passes without event.

You earn <<moneyGain 5>>.
<<pass 30>>

<<link [[Next|Domus Street]]>><<endevent>><</link>>

:: Domus Homework Strip
<<set $outside to 0>><<set $location to "town">><<effects>><<set $bus to "domus">>

<<if $phase is 1>>
	<<if $worn.upper.set is $worn.lower.set>>
	You <<nervously>> pull down your $worn.upper.name, baring your chest.
	<<else>>
	You <<nervously>> take off your $worn.upper.name, baring your chest.
	<</if>>
The <<person>> openly gawks at you, but seems satisfied.
<<exhibitionism1>>

<<He>> is far from bored for the rest of the hour, although you don't know if that's a good thing. <<He>> is disappointed when you finish the work and fix your clothing.

<<else>>
	<<if $worn.upper.set is $worn.lower.set>>
	You <<nervously>> pull down your $worn.upper.name, baring your <<breasts>>. You feel your nipples harden at the exposure.
	<<else>>
	You <<nervously>> take off your $worn.upper.name, baring your <<breasts>>. You feel your nipples harden at the exposure.
	<</if>>

The <<persons>> eyes widen as <<he>> gawks at you. <<if $leftarm is "bound" and $rightarm is "bound">><<else>>You cover yourself with one arm as you return to the homework, but you still feel keenly exposed.<</if>>
<<exhibitionism3>>

<<He>> is far from bored for the rest of the hour, although you don't know if that's a good thing. <<He>> is disappointed when you finish the work and fix your clothing.

<</if>>

You've earned <<moneyGain 5>>.
<<pass 30>>

<<link [[Next|Domus Street]]>><<endevent>><</link>>

:: Domus Delivery2
<<set $outside to 0>><<set $location to "town">><<effects>><<set $bus to "domus">>

<<if $rng gte 81>>
You open the envelope and investigate its contents. There's a note in a foreign language, and a wad of cash. You might get away with taking some, but the more you take the less likely you'll succeed.

<<set $skulduggerydifficulty to 300>>
<<link [[Take £10|Domus Delivery3]]>><<set $phase to 3>><<set $money += 1000>><</link>><<skulduggerydifficulty>>

<<set $skulduggerydifficulty to 500>>
<<link [[Take £30|Domus Delivery3]]>><<set $phase to 4>><<set $money += 3000>><</link>><<skulduggerydifficulty>>

<<set $skulduggerydifficulty to 700>>
<<link [[Take £100|Domus Delivery3]]>><<set $phase to 5>><<set $money += 10000>><</link>><<skulduggerydifficulty>>

<<link [[Take nothing|Domus Delivery3]]>><</link>>

<<else>>
You open the envelope and investigate its contents. There's just a note in a foreign language.

<<link [[Continue|Domus Delivery3]]>><</link>>

<</if>>

:: Domus Delivery3
<<set $outside to 0>><<set $location to "town">><<effects>><<set $bus to "domus">>
<<pass 5>>
You arrive at your destination, a stately manor on Danube Street. You knock on the door and a <<generate1>><<generate2>><<person2>><<person>> answers. "Ah, my <<person1>><<if $pronoun is "m">>lord<<else>>lady<</if>> has been expecting you," <<person2>><<he>> says. "Please come in."

You enter a lavish antechamber as a <<person1>><<person>> descends a staircase. <<He>> looks at the envelope. "Good, we've been expecting you," <<he>> says as you hand it to <<him>>. <<He>> gestures at the <<person2>><<person>> as <<he>> produces a small knife from a pocket. "Pay the <<girl>>."

<<if $phase is 1>>

<<He>> hands you the <<moneyGain 5>> you were promised, and wordlessly guides you outside.

<<link [[Next|Danube Street]]>><<endevent>><</link>>

<<elseif $phase is 2>>
<<set $skulduggerydifficulty to 100>><<skulduggerycheck>>
	<<if $skulduggerysuccess is 1>>

	<<He>> hands you the <<moneyGain 5>> you were promised, and wordlessly guides you outside.

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

	<</if>>

<<link [[Next|Danube Street]]>><<endevent>><</link>>

	<<else>>

	<<He>> starts to hand you the money, but the <<person1>><<person>> <<person2>>interrupts <<him>>. "This envelope has been opened," <<person1>><<he>> says, staring at you. "It's good I don't think you could read the contents, or you'd be in real trouble." <<He>> nods at the <<person2>><<person>>, who shoves you outside without paying you.

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

		<</if>>

<<link [[Next|Danube Street]]>><<endevent>><</link>>

	<</if>>
<<elseif $phase gte 3>>
	<<if $phase is 3>>
	<<set $skulduggerydifficulty to 300>>
	<<elseif $phase is 4>>
	<<set $skulduggerydifficulty to 500>>
	<<elseif $phase is 5>>
	<<set $skulduggerydifficulty to 700>>
	<</if>>
<<skulduggerycheck>>
	<<if $skulduggerysuccess is 1>>

	<<He>> hands you the <<moneyGain 5>> you were promised, and wordlessly guides you outside.

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

	<</if>>

<<link [[Next|Danube Street]]>><<endevent>><</link>>

	<<else>>

	<<He>> starts to hand you the money, but the <<person1>><<person>> <<person2>>interrupts <<him>>. "This envelope has been opened," <<person1>><<he>> says, staring at you. "And something taken. I think you need a lesson in manners." <<He>> nods at the <<person2>><<person>>, who moves between you and the door.

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

	<</if>>

	The two of them start grabbing your clothing. "Now, where have you hidden it?"

<<link [[Next|Danube Delivery Molestation]]>><<set $molestationstart to 1>><</link>>

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

:: Danube Delivery Molestation
<<if $molestationstart is 1>>
<<set $molestationstart to 0>>
<<controlloss>>
<<violence 1>>
<<neutral 1>>
<<molested>>

<<maninit>><<npcstrip>><<npcidlegenitals>><<set $enemytrust -= 100>><<set $enemyanger += 40>>
<</if>>

<<effects>>

<<effectsman>><<man>>

<<stateman>>

<<actionsman>>

<<if $worn.upper.type.includes("naked") and $worn.lower.type.includes("naked") and $worn.under_lower.type.includes("naked")>>
	<<link [[Next|Danube Delivery Molestation Finish]]>><</link>><<nexttext>>
<<elseif $worn.upper.type.includes("naked") and $worn.lower.type.includes("naked") and $worn.genitals.type.includes("chastity")>>
	<<link [[Next|Danube Delivery Molestation Finish]]>><</link>><<nexttext>>
<<elseif $enemyarousal gte $enemyarousalmax>>
	<<link [[Next|Danube Delivery Molestation Finish]]>><</link>><<nexttext>>
<<elseif $enemyhealth lte 0>>
	<<link [[Next|Danube Delivery Molestation Finish]]>><</link>><<nexttext>>
<<else>>
	<<link [[Next|Danube Delivery Molestation]]>><</link>><<nexttext>>
<</if>>

:: Danube Delivery Molestation Finish
<<if $enemyhealth lte 0>>

You manage to push the <<person2>><<person>> out of the way. <<tearful>> you flee from the building.

<<clotheson>>
<<endcombat>>

<<link [[Next|Danube Street]]>><</link>>
<<elseif $enemyarousal gte $enemyarousalmax>>
<<ejaculation>>

<<person2>>"I got the money," pants the <<person>>.

"You got off lightly," the <<person1>><<person>> says, as the <<person2>><<person>> shoves you out the door. <<tearful>> you rise to your feet.

	<<if $phase is 3>>
	<<set $money -= 1000>>
	<<elseif $phase is 4>>
	<<set $money -= 3000>>
	<<elseif $phase is 5>>
	<<set $money -= 10000>>
	<</if>>

<<clotheson>>
<<endcombat>>

<<link [[Next|Danube Street]]>><</link>>

<<else>>

<<person2>>"I got the money," says the <<person>>.

<<person1>>"Good," says the <<person>>. "Throw <<phim>> out."

The <<person2>><<person>> shoves you out the door. <<tearful>> you rise to your feet, doing your best to keep your <<lewdness>> covered.

	<<if $phase is 3>>
	<<set $money -= 1000>>
	<<elseif $phase is 4>>
	<<set $money -= 3000>>
	<<elseif $phase is 5>>
	<<set $money -= 10000>>
	<</if>>

<<stealclothes>>

<<clotheson>>
<<endcombat>>

<<link [[Next|Danube Street]]>><</link>>

<</if>>

:: Domus Entrance Pet
<<set $outside to 0>><<set $location to "town">><<effects>>

<<set $danger to random(1, 10000)>><<set $dangerevent to 0>>
<<if $danger gte (9900 - $allure) and ($monster is 1 or $bestialitydisable is "f")>>

You kneel down and reach out a hand. <<bHe>> stops growling, but now seems a bit too friendly. <<bHe>> tries to mount you.
	<<if $monster is 1>>
		"If you want to be friends, hold still."
	<</if>>

<<link [[Next|Domus Entrance Dog]]>><<set $molestationstart to 1>><</link>>

<<else>>

The <<beasttypes>> demeanour changes at your show of affection. <<bHe>> licks your hand and trots back to <<bhis>> kennel. No one answered the door.
	<<if $monster is 1>>
		"I told you, no one's home. Try again tomorrow."
	<</if>>

<<link [[Break in|Domus House Lock]]>><</link>>

<<link [[Go to the next house (0:02)|Domus House Knock]]>><<pass 2>><</link>>

<<link [[Stop|Domus Street]]>><</link>>

<<endevent>>

<</if>>

:: Domus Entrance Run
<<set $outside to 0>><<set $location to "town">><<effects>>

<<if $rng gte 91 and ($monster is 1 or $bestialitydisable is "f")>>
You turn to run, but trip over a hose and fall flat on your face. The <<beasttype>> jumps on top of you.
	<<if $monster is 1>>
		"I changed my mind. Stick around for a little while!"
	<</if>>

<<link [[Next|Domus Entrance Dog]]>><<set $molestationstart to 1>><<set $phase to 1>><</link>>

<<else>>
You run from the premises, closing the gate behind you.
<<if $monster is 1>>
	<<bHe>> lazily walks back to <<bhis>> kennel. "Whatever. Act scared, run away, like everyone else."
<</if>>

<<endevent>>
<<domusquick>>
<</if>>

:: Domus Entrance Dog
<<if $molestationstart is 1>>
<<set $molestationstart to 0>>
<<controlloss>>
<<violence 1>>
<<neutral 1>>
<<molested>>
	<<beastCombatInit>>

	<<if $phase is 1>>
	<<set $NPCList[0].stance to "top">>
	<<set $enemyanger += 40>>
	<<set $enemytrust -= 40>>
	<</if>>
<<enable_rescue>>
<</if>>

<<effects>>
<<effectsman>>

<<beast $enemyno>>

<<stateman>>

<<actionsman>>

<<if $alarm is 1 and $rescue is 1>>
	<<link [[Next|Domus Entrance Dog Finish]]>><</link>><<nexttext>>
<<elseif $enemyarousal gte $enemyarousalmax>>
	<<link [[Next|Domus Entrance Dog Finish]]>><</link>><<nexttext>>
<<elseif $enemyhealth lte 0>>
	<<link [[Next|Domus Entrance Dog Finish]]>><</link>><<nexttext>>
<<else>>
	<<link [[Next|Domus Entrance Dog]]>><</link>><<nexttext>>
<</if>>

:: Domus Entrance Dog Finish
<<set $outside to 0>><<set $location to "town">><<effects>>

<<if $enemyarousal gte $enemyarousalmax>>

<<beastejaculation>>

Satisfied, the <<beasttype>> returns to its kennel.
<<if $monster is 1>>
	"Thanks for the fun. Come back tomorrow, maybe someone will answer the door. Or not. Then we can have more fun."
<</if>>

<<tearful>> you rise to your feet.

<<clotheson>>
<<endcombat>>

No one answered the door.

<<link [[Break in|Domus House Lock]]>><</link>>

<<link [[Go to the next house (0:02)|Domus House Knock]]>><<pass 2>><</link>>

<<link [[Stop|Domus Street]]>><</link>>

<<elseif $enemyhealth lte 0>>

The <<beasttype>> flees back to its kennel.
<<if $monster is 1>>
	"So rude! I just wanted to play!"
<</if>>

<<tearful>> you rise to your feet.

<<clotheson>>
<<endcombat>>

No one answered the door.

<<link [[Break in|Domus House Lock]]>><</link>>

<<link [[Go to the next house (0:02)|Domus House Knock]]>><<pass 2>><</link>>

<<link [[Stop|Domus Street]]>><</link>>

<<elseif $alarm is 1>><<set $rescued += 1>>
	<<if $rapeavoid is 0 and $NPCList[0].stance is "top">><<famebestiality 1>>

	<<generate2>><<person2>> "I'm coming!" you hear a <<person>> shout as <<he>> runs down the road. <<He>> leans against the gate and stares wide-eyed at you.

		<<if $submissive lte 850>>
			"Stop staring idiot, get this <<beasttype>> off me," you say.
		<<elseif $submissive gte 1150>>
			"H-help me. I don't wanna be a doggy bitch," you say.
		<<else>>
			"Please help," you say.
		<</if>>

	<<He>> breaks free from <<his>> stupor and grabs the <<beasttype 0>> by the collar. <<He>> hauls it away from you and shoos it back to <<bhis 0>> kennel. "Bad <<beasttype 0>>!" <<He>> yells.
	<<if $monster is 1>>
		"You're the one that wasn't home, idiot," <<bhe 0>> barks back, sitting.
	<</if>>
	<<tearful>> you struggle to your feet.

		<<if $submissive lte 850>>
		"Don't you dare tell anyone about this," you say.
		<<elseif $submissive gte 1150>>
		"Don't let anyone know," you mumble, staring at your feet.
		<<else>>
		"Please don't tell anyone," you say.
		<</if>>
	<<He>> nods, but something tells you <<he>> won't keep <<his>> promise.

	<<elseif $exposed gte 1>><<fameexhibitionism 1>>

	<<generate2>><<person2>> "I'm coming!" you hear a <<person>> shout as <<he>> runs down the road. <<He>> leans against the gate and stares wide-eyed at you. You feel <<his>> eyes bore into your <<lewdness>> as <<he>> opens the gate.

		<<if $submissive lte 850>>
		"Stop staring idiot, get this <<beasttype 0>> off me," you say.
		<<elseif $submissive gte 1150>>
		"H-help me," you say.
		<<else>>
		"Please help," you say.
		<</if>>

	<<He>> breaks free from <<his>> stupor and grabs the <<beasttype>> by the collar. <<He>> hauls it away from you and shoos it back to its kennel. "Bad <<beasttype 0>>!" <<He>> yells.
	<<if $monster is 1>>
		"Stupid nosy little pest, I was having so much fun," <<bhe 0>> barks back, sitting.
	<</if>>
	<<tearful>> you struggle to your feet.

		<<if $submissive lte 850>>
		"I said stop staring!" you say, face reddening.
		<<elseif $submissive gte 1150>>
		"Please don't look," you say.
		<<else>>
		You cover yourself to escape <<his>> gaze.
		<</if>>
	<<He>> looks away from you, but keeps stealing glances as <<he>> leaves the premises.

	<<else>>

	<<generate2>><<person2>> "I'm coming!" you hear a <<person>> shout as <<he>> runs down the road. <<He>> leans against the gate and stares wide-eyed at you.

		<<if $submissive lte 850>>
		"Stop staring idiot, get this <<beasttype 0>> off me," you say.
		<<elseif $submissive gte 1150>>
		"H-help me," you say.
		<<else>>
		"Please help," you say.
		<</if>>

	<<He>> breaks free from <<his>> stupor and grabs the <<beasttype 0>> by the collar. <<He>> hauls it away from you and shoos it back to its kennel. <<tearful>> you struggle to your feet. "Are you OK?" <<he>> enquires.

		<<if $submissive lte 850>>
		"Took you long enough," you say. Satisfied that <<his>> job is done, <<he>> leaves the premises.
		<<elseif $submissive gte 1150>>
		"Yes, thank you," you say. Satisfied that <<his>> job is done, <<he>> leaves the premises.
		<<else>>
		"Yes thanks," you say. Satisfied that <<his>> job is done, <<he>> leaves the premises.
		<</if>>

	<</if>>
<<clotheson>>
<<endcombat>>

<<domusquick>>
<</if>>

:: Domus Gutters Molestation
<<if $molestationstart is 1>>
<<set $molestationstart to 0>>
<<controlloss>>
<<violence 1>>
<<neutral 1>>
<<molested>>

<<maninit>>
<<set $enemytrust -= 40>>
<</if>>

<<effects>>

<<effectsman>><<man>>

<<stateman>>

<<actionsman>>

<<if $enemyhealth lte 0>>
	<<link [[Next|Domus Gutters Molestation Finish]]>><</link>><<nexttext>>
<<elseif $enemyarousal gte $enemyarousalmax>>
	<<link [[Next|Domus Gutters Molestation Finish]]>><</link>><<nexttext>>
<<else>>
	<<link [[Next|Domus Gutters Molestation]]>><</link>><<nexttext>>
<</if>>

:: Domus Gutters Refuse
<<set $outside to 0>><<set $location to "town">><<effects>><<set $bus to "domus">>

<<if $worn.under_lower.type.includes("naked")>>
<<fameexhibitionism 10 pic>>
<<else>>
<<fameexhibitionism 5 pic>>
<</if>>
<<set $submissive -= 1>>
<<if $submissive lte 850>>
"Go fuck yourself," you say, holding out your hand. "My money." <<He>> looks taken aback, but hands you what you're owed.

<<elseif $submissive gte 1150>>
"N-no. I won't," you say. <<He>> shrugs.
<<else>>
"I won't do what you want," you say, defiant. <<He>> sighs in disappointment.

<</if>>
"You're making a mistake," <<he>> begins, but you're already leaving.

You've made <<moneyGain 25>>.

<<endevent>>
<<domusquick>>

:: Domus Gutters Molestation Finish
<<if $enemyhealth lte 0>>

You knock the <<person>> into a cupboard, which disgorges its contents all over <<him>>. <<tearful>> you grab the fallen phone and delete the photos before <<he>> can recover. You take some money on the way out too.

You've made <<moneyGain 25>>.

<<clotheson>>
<<endcombat>>

<<link [[Next|Domus Street]]>><</link>>

<<elseif $enemyarousal gte $enemyarousalmax>>
<<ejaculation>>

"Here," <<He>> throws the phone at you. <<tearful>> you delete the photos before <<he>> changes <<his>> mind. "Here's your money too. I'm a <<personsimple>> of my word."

You've made <<moneyGain 25>>.

<<clotheson>>
<<endcombat>>

<<link [[Next|Domus Street]]>><</link>>

<</if>>

:: Domus House Tease
<<set $outside to 0>><<set $location to "town">><<effects>>

You turn your back to the <<beasttype>>, bend over, and wiggle your <<bottom>>. <<bHe>> strains against the chain with renewed and frenzied vigour.
<<deviancy1>>

<<if $monster is 1>>
	"Fight! Play!" <<bHe>> yells.
<</if>>

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

The chain breaks free from its mooring, and the <<beasttype>> leaps towards you.

<<link [[Next|Domus Entrance Dog]]>><<set $molestationstart to 1>><</link>>

<<else>>
<<endevent>>
You turn back to the door.

<<link [[Break in|Domus House Lock]]>><</link>>

<<link [[Go to the next house (0:02)|Domus House Knock]]>><<pass 2>><</link>>

<<link [[Stop|Domus Street]]>><</link>>

<</if>>

:: Domus House Ignore
<<set $outside to 0>><<set $location to "town">><<effects>>

You ignore the <<beasttype>> and turn back to the door. <<bHe>> slowly clams down.

<<link [[Break in|Domus House Lock]]>><</link>>

<<link [[Go to the next house (0:02)|Domus House Knock]]>><<pass 2>><</link>>

<<link [[Stop|Domus Street]]>><</link>>

<<endevent>>

:: Domus Model
<<set $outside to 0>><<set $location to "town">><<effects>><<set $bus to "domus">>
<<set $rng to random(1,100)>>

The bathroom is <<print either("small","tiny","very clean")>>.
<<if $exhibitionism lte 34>>

	You take off everything. Nearly. But you can't do it. You can't bring yourself to walk into a roomful of strangers completely naked.

	The <<person>> intercepts as you enter. "I'm sorry, but it has to be everything. This is life art."

	Feeling self conscious, you strip in a corner. No one even seems to notice.

<<else>>You take off all your clothes until you are completely nude. You feel a thrill as you walk naked through the hallway and into the busy studio.
<</if>>

<<strip>>
<<if $player.virginity.anal is true or $player.virginity.oral is true or ($player.virginity.penile is true and $player.penisExist) or ($player.virginity.vaginal is true and $player.vaginaExist) or ($rng % 12 gte 6)>> /* Mild events - will ALWAYS run for ANY type of virgin, will run 50% for others (6 times in 12)*/
	<<pass 2 hour>>
	<<if $player.penisExist and $player.vaginaExist>>
		<<if $fameexhibitionism gte 600>>
			One <<personsimple>> laughs as you take the stage. "You paid <<phim>> to strip?! I don't think I've ever seen <<phim>> in clothes."

			"Good thing too," another adds. "Keeping that cute cock and pussy to <<pherself>> would be a tragedy."

		<<elseif $fameexhibitionism gte 40>>
			One <<personsimple>> double-takes as you take the stage. "I'm impressed. <<pShes>> kind of famous for this."

			"Not surprised," another adds, staring at your genitals. "I'd flaunt it too if I were so blessed."

		<<else>>
			There's a murmur of excitement as they take in your genitals. One <<personsimple>> applauds. "You really know how to find interesting ones."

		<</if>>
	<<else>>
		<<if $fameexhibitionism gte 600>>
			One <<personsimple>> laughs as you take the stage. "You paid <<phim>> to strip?! I don't think I've ever seen <<phim>> in clothes."

		<<elseif $fameexhibitionism gte 400>>
			One <<personsimple>> double-takes as you take the stage. "I'm impressed. <<pShes>> kind of famous for this."

		<</if>>
	<</if>>
	<<if $rng gte 66>>
		Over the next two hours you strike various poses while a room full of people paint you.
		<<if $exhibitionism lte 34>>
			Having so many people focusing so intently on your naked body makes you uncomfortable. However, in spite of your initial nerves
		<<else>>
			Having so many people focusing so intently on your naked body is thrilling. However, despite your initial excitement
		<</if>>
		it's a bit boring. Their looks are detached, dispassionate and non-sexual.
		Like they're drawing a bowl of fruit.
		<<larousal>><<arousal -2>>

		The paintings produced are quite beautiful and artistic.<<lstress>><<stress -1>><<fameexhibitionism 5 pic>>

	<<elseif $rng gte 33>>
		The poses they ask for start off normal but slowly move toward the lewd: more poses with spread legs and bending over.
		<<if $exhibitionism lte 34>>In spite of your initial nerves,<<else>>As you expected,<</if>> it turns out to be quite good fun:
		you enjoy showing off your body and they really love looking. There's a fun mood in the room, and you enjoy flirting with the audience.
		<<promiscuity2>>

		The paintings produced are varied but mostly focus on your <<if pregnancyBellyVisible()>>belly, <</if>><<breasts>> and <<genitals>>.
		<<fameexhibitionism 10 pic>>
	<<else>>
		While they maintain the pretence that this is life-art, it's quite clear they just enjoy getting a
		<<if $player.gender is "f">>girl to expose herself<<elseif $player.gender is "h">>hermaphrodite to expose themself<<else>>boy to expose himself<</if>> in the lewd poses they want to see.
		Many are not even pretending to paint, however, the <<person>> keeps everyone in line and under control.
		<<if $exhibitionism lte 34>>
		If you weren't so nervous you might even enjoy it.
		<<else>>
		It's kind of fun.
		<<lstress>><<stress -2>>
		<</if>>

		The few pictures produced are mostly just crude sketches of your <<if $player.gender is "f">>tits and cunt,<<elseif $player.gender is "h">>dick, cunt and ass<<else>>dick and ass,<</if>> though one imaginative 'artist' depicts you being gang-banged by a variety of people, animals and mythical beasts.
		<<garousal>><<arousal 200>><<fameexhibitionism 10 pic>>
	<</if>>

<<elseif $rng % 12 gte 1>> /*lewd - if we get here, lewd will trigger 5 times in 6. It will fall to bad ~1 in 6*/
	<<pass 2 hour>>
	<<if $rng gte 50>>
		<<generates2>><<generate3>>
		<<person2>>As you climb onto the stage another door opens and <<if $pronoun is $player.gender>>another <<girl>><<else>>a <<person>><</if>>
		about your age walks into the room, just as naked as you. <<He>> nods your way and climbs onto the stage.

		"Nice to meet you," <<he>> whispers.
		<<if $beauty gte ($beautymax / 7) * 2>>
			<<if $beauty gte ($beautymax / 7) * 4>>
				"You're <<print either("gorgeous!","stunning!","beautiful!","fucking hot!","definitely an improvement!")>>
			<<else>>
				"You're <<print either("pretty.","alright.","cute.","good-looking.","attractive.","an improvement.")>>
			<</if>>
			<<if pregnancyBellyVisible()>>No wonder you're pregnant.<</if>>
			Finally, someone I'll enjoy working with."

		<<else>><<He>> looks disappointed.
		<</if>>
		<<He>> stands next to you looking toward the door <<he>> came through. "So who's number three?"

		"Number three?" you ask.

		<<He>> opens <<his>> mouth to answer just as the door opens again, and a much older <<person3>><<person>> enters, also naked.
		<<He>> looks at you both and gives a theatrical thumbs up to the audience.

		"<<Him>> again," the <<person2>><<person>> whispers.
		<<if $pronoun is "f">>
			<<print either("She sighs.", "She smiles.","She frowns.","She licks her lips.","She rolls her eyes.","She pushes back her hair.","She swears under her breath.")>>
		<<else>>
			<<print either("He sighs.", "He smiles.","He frowns.","He sucks in his stomach.","He rolls his eyes.","His penis noticeably hardens.","He swears under his breath.")>>
		<</if>>

		The <<person3>><<person>> joins you both on stage.

		Over the next couple of hours, the three of you get into numerous poses under the direction of the <<person1>><<person>>.
		Most poses are lewd and simulate being in the throes of ecstasy in a sexual threesome centred on the <<person3>><<person>>.
		Holding the more exotic poses while the artists paint is a strain on everyone's muscles. On a few occasions you end up with a face full of <<if $NPCList[1].pronoun is "f">>boob<<else>>chest-hair<</if>>, pubes or <<if $NPCList[2].pronoun is "f">>old-lady quim<<else>>old-man balls<</if>>
		when someone's muscles give out.

		<<if $promiscuity gte 55>>

			<<set $rng to random(0,100)>>
			You can't resist a good idea. Noticing that the <<person2>><<persons>> face is just under your <<genitals>>
			wide open in a fake lick, you 'accidentally' slip, dropping your <<if $player.gender is "f" or ($rng gte 50 and $player.gender is "h")>>pussy neatly onto <<his>> protruding tongue.<<else>>cock neatly into <<his>> open mouth.<</if>>

			"Freeze!" the <<person1>><<person>> shouts. "That's perfect. Stay exactly like that. Artists - draw, paint. Capture this moment."

			The <<person2>><<person>> looks aggrieved. Then a mischievous glint enters <<his>> eyes.
			<<if $player.gender is "f" or ($rng gte 50 and $player.gender is "h")>>
				You feel <<his>> tongue start moving in your pussy<<if $player.gender is "f">>, massaging your clit<</if>>.
			<<else>>
				You feel <<his>> mouth start sucking on your dick, licking at the head.
			<</if>>
			This goes on slowly, subtly but relentlessly. Over minutes.

			<<Hes>> trying to make you come in front of all these people!
			<<arousal 5000>>
			<<if $arousal gte $arousalmax>>
				You try to hold back, but finally you can't. So humiliating.

				<<orgasm>>

				Some stop and watch. Others paint furiously.<<gstress>><<stress 2>>
			<<else>>

Eventually <<he>> gives up. That felt good.<<lstress>><<stress -2>>

			<</if>>
		<</if>>
	<<else>>
		<<generate2>>
		<<if $awareness lt 200>>
			As you climb onto the stage you find a lot of scary-looking weapons and torture tools from history.
		<<else>>
			As you climb onto the stage you discover a variety of BDSM toys.
		<</if>>
		<<person1>>The <<person>> addresses the room.

		"Whatever the reason," <<he>> says. "This town has a unique attraction to the darkest, most primal aspects of sexuality.
		Power, rape and abuse - sadly - pervade. Today, we will explore this in art.

		"Despite <<pher>> youthful appearance our model is an experienced professional and can use all this equipment perfectly safely.
		Whatever it looks like - <<pshe>> has safe-words and signals and is perfectly in control. This is just a performance. So paint. Capture the moment.
		And, to borrow an old adage, please don't try this at home!

		"My friend here," <<he>> indicates a <<person2>><<person>> who has appeared beside you on stage. "Will assist. So brushes to the ready. And let's paint."

		Over the next couple of hours, the <<person>> theatrically whips and beats you, making a lot of noise but inflicting almost no pain.
		<<if pregnancyBellyVisible()>>
			While being extra careful around your belly, <<he>>
		<<else>>
			<<He>>
		<</if>>
		puts you into various stress-poses using the available equipment. This includes kneeling you down with hands cuffed to feet,
		strapping you over a table and spanking your ass with a paddle, tying you spread-eagle to the floor and grinding <<his>> crotch in your face,
		and finally ball-gagging you, putting you into a pillory and pretending to force <<if $pronoun is "f">>her strap-on<<else>>his dick<</if>> up
		your helpless ass. The group meticulously paint the scene.

		<<if $english gte 500>>
			"That face!" the <<person1>><<person>> shouts. "Artists, capture that moment. That expression. That's real."
		<<elseif $english gte 250>>
			"Paint, artists. Paint." The <<person1>><<person>> says. "<<print either("Take in the whole scene.","Paint what you see.","Immortalise this moment.")>>"
		<<else>>
			"Paint, artists. Paint." The <<person1>><<person>> crouches next to you and whispers sharply in your ear.
			"Start acting like this is real, or I might ask <<person2>><<him>> to actually do it!"
		<</if>>
	<</if>>
<<else>><<set _rape_triggered to 1>>/*bad - occurs 1/12 time for non-virgins (i.e. when rng divisible by 12)*/
	<<if $rng gte 50>><<pass 5>>
		<<generate2>><<generate3>><<generate4>><<generate5>><<generate6>>
		You are barely through the door when they pounce on you.

		<<link [[Next|Domus Model Gang Rape]]>><<set $molestationstart to 1>><</link>>
	<<else>>
		<<pass 1 hour>>
		<<generate2>>
		<<if $awareness lt 200>>
			As you climb onto the stage you find a lot of scary-looking weapons and torture tools from history.
		<<else>>
			As you climb onto the stage you discover a variety of BDSM toys.
		<</if>>
		<<person1>>The <<person>> addresses the room.

		"Whatever the reason," <<he>> says. "This town has a unique attraction to the darkest, most primal aspects of sexuality.
		Power, rape and abuse - sadly - pervade. Today, we will explore this in art.

		"Despite <<pher>> youthful appearance our model is an experienced professional here to demonstrate the use of all these tools. To help <<phim>>, my assistant," <<he>> indicates a <<person2>><<person>> who has appeared beside you on stage. "Will assist. So brushes to the ready, and let's paint."

		The <<person>> looks at you quizzically. You're not sure why.

		Over the next hour, the <<person>> theatrically whips and beats you, making a lot of noise but inflicting almost no pain.
		<<if pregnancyBellyVisible()>>
			While being extra careful around your belly, <<he>>
		<<else>>
			<<He>>
		<</if>>
		puts you into various stress-poses using the available equipment. This includes kneeling you down with hands cuffed to feet,
		strapping you over a table and spanking your ass with a paddle, tying you spread-eagle to the floor and grinding <<his>> crotch in your face,
		and finally ball-gagging you, putting you into a pillory and pretending to force <<if $pronoun is "f">>her strap-on<<else>>his dick<</if>> up
		your helpless ass. The group meticulously paint the scene.

		<<if $english gte 500>>
			"Nice acting," the <<person1>><<person>> says. "But I think it's time for something more authentic."

			<<He>> nods to the <<person2>><<person>>. "Do it."
		<<else>>
			"No. That face. I'm not buying it." the <<person1>><<person>> nods to the <<person2>><<person>> behind you. "Can you do something to make this more authentic?"
		<</if>>

		<<set $model_host to clone($NPCList[0])>>
		<<set $model_dom to clone($NPCList[1])>>
		<<if $rng gte 50 and ($bestialitydisable is "f" or $monsterchance gte 100 and ($hallucinations gte 1 or $monsterhallucinations is "f"))>>
			"Finally," the <<person2>><<person>> mutters. You feel something hard brush against your butt.

			<<endevent>> /* clears out the initial person1 from combat */
			<<generate1>><<set $NPCList[0] to clone($model_dom)>> /* sets the dom character to person1*/
			<<if $NPCList[0].gender is "f">><<npcstrapon 0>><</if>>
			<<link [[Next|Domus Model BDSM Rape]]>><<set $molestationstart to 1>><<bind>><<facewear 4>><</link>>
		<<else>><<endevent>>/*clears out the people*/
			<<beastNEWinit 1 dog>>
			"Authentic? I've got just the thing." Hands release your waist and you hear footsteps behind. A door opens. A whistle.
			A moment later a <<beasttype>> bounds in and rushes over to you.

			<<link [[Next|Domus Model Dog]]>><<set $molestationstart to 1>><<bind>><<facewear 4>><</link>>
		<</if>>
	<</if>>
<</if>>
<<if not _rape_triggered>>
	<<set _vagin to setup.bodyliquid.combined("vagina")>><<set _vagout to setup.bodyliquid.combined("vaginaoutside")>>
	<<set _assin to setup.bodyliquid.combined("anus")>><<set _assout to setup.bodyliquid.combined("bottom")>>
	<<set _face to setup.bodyliquid.combined("face")>><<set _chest to setup.bodyliquid.combined("chest")>>

	<<if (_vagin + _assin + _vagout + _assout + _face + _chest) gte 1>>

		Some artists noticed the lewd fluid
		<<if (_vagin + _assin + _vagout) gte (_assout + _face + _chest)>>
			<<if _vagin gte (_assin + _vagout)>>
				still seeping out of your pussy
			<<elseif _assin gte _vagout>>
				still seeping out of your ass
			<<else>>
				around your pussy
			<</if>>
		<<else>>
			<<if _assout gte (_face + _chest)>>
				over your ass
			<<elseif _face gte _chest>>
				on your face
			<<else>>
				over your <<breasts>>
			<</if>>
		<</if>>
		and included this in their paintings.

		You are
		<<if $exhibitionism lte 34>>
			mortified
		<<elseif $exhibitionism lte 75>>
			amused
		<<else>>
			thrilled
		<</if>>
		<<print either("by how lewd this looks.","by how much lewder this makes the picture.","by their attention to detail.")>>

	<</if>>
	The effort of posing has given you quite a workout.
	<<gtiredness>><<tiredness 2>><<physique 2>>

	<<link [[Next|Domus Model End]]>><</link>>

<</if>>

:: Domus Model End
<<set $outside to 0>><<set $location to "town">><<effects>><<set $bus to "domus">>
You head back to the bathroom to dress.
<<clotheson>>
On the way out, the <<person1>><<person>> hands you the money.
You've made <<moneyGain 30>>.

<<link [[Next|Domus Street]]>><<endevent>><</link>>

:: Domus Model Gang Rape
<<if $molestationstart is 1>>
	<<set $molestationstart to 0>>
	<<controlloss>>
	<<violence 1>>
	<<neutral 1>>
	<<maninit>>
<</if>>
<<if $enemyarousal gte ($enemyarousalmax / 4) * 3>>
	Only a few dedicated artists are still painting, most are just watching the action. More than a few are surreptitiously masturbating.
<<elseif $enemyarousal gte ($enemyarousalmax /4 ) * 2>>
	Several artists are still painting your assault, but many are now <<print either("just watching.","just gawking.","just leering.","touching themselves.")>>
<<elseif $enemyarousal gte ($enemyarousalmax / 4)>>
	A number of artists are excitedly painting your assualt.
<<else>>
	A number of artists sit at their easels watching. They're waiting for things to get started.
<</if>>
<<if $pain gte 40 and (random(0,9)%3 is 0)>>
"Remember: we studied techniques for painting tears. Use them."
<<elseif $mouthstate is "penetrated" and random(0,1)>>
"Light and shadow, people. Make sure you get the bulging in the throat."
<</if>>

<<effects>>
<<effectsman>><<man>>
<<stateman>>

<<actionsman>>

<<if $alarm is 1>>
	You are deep inside a private home. No one who might care can hear your cries.
	<<set $alarm to 0>>

<</if>>
<<if $enemyarousal gte $enemyarousalmax>>
	<<link [[Next->Domus Model Rape Climax]]>><</link>><<nexttext>>
<<elseif $enemyhealth lte 0>>
	<<link [[Next->Domus Model Rape Climax]]>><</link>><<nexttext>>
<<else>>
	<<link [[Next->Domus Model Gang Rape]]>><</link>><<nexttext>>
<</if>>

:: Domus Model Rape Climax
<<effects>>
<<if $enemyhealth lte 0>>
	They recoil in pain, reluctant to come near giving you the chance you need. <<tearful>> you escape the studio, grab your clothes and escape the house.

	<<clotheson>>
	<<endcombat>>
	[[Next|Domus Street]]
<<elseif $enemyarousal gte $enemyarousalmax>>
	<<ejaculation>>
	<<pass 10>>
	As you lie broken on the floor they head back to their easels and start to sketch and paint you.
	After a time you clamber to your feet and stagger out of the room.

	The <<person1>><<person>> rushes over to help.

	"Thanks for your excellent work today," <<he>> says. "I'm sorry it was a shock but
	<<print either("it was for the art.","you've inspired the group.","art has to be real.","there was no other way. It needed to be authentic.")>>
	You should have seen your face. Exquisite."

	"Go dress. Obviously there'll be a bonus. And also a thank you gift from the group. Have a shower if you like. Take as long as you need, you did well today."
	<<lstress>><<stress -2>>

	[[Next|Domus Model Rape End]]
<</if>>

:: Domus Model BDSM Rape
<<if $molestationstart is 1>>
	<<set $molestationstart to 0>>
	<<controlloss>>
	<<violence 1>>
	<<neutral 1>>
	<<molested>>
	<<maninit>>
	<<set $position to "wall">>
	<<set $walltype to "pillory">>
	<<set $head to "grappled">>
	<<set $NPCList[0].penis to "anusentrance">><<set $anusstate to "entrance">><<set $anustarget to 0>>
<</if>>
<<if $enemyarousal gte ($enemyarousalmax / 3) * 3>>
	Only a few dedicated artists are still painting, most are just watching. More than a few are surreptitiously masturbating.
<<elseif $enemyarousal gte ($enemyarousalmax /3) * 2>>
	Several artists are still painting your assault, but many are now just gawking.
<<elseif $enemyarousal gte ($enemyarousalmax /3)>>
	A number of artists paint and sketch your sexual assault.
<<else>>
	The class watch with renewed interest.
<</if>>

<<effects>>
<<effectsman>><<man>>

<<stateman>>

<<actionsman>>

<<if $enemyarousal gte $enemyarousalmax>>
	<<link [[Next|Domus Model BDSM Finish]]>><</link>><<nexttext>>
<<elseif $enemyhealth lte 0>>
	<<link [[Next|Domus Model BDSM Finish]]>><</link>><<nexttext>>
<<else>>
	<<link [[Next|Domus Model BDSM Rape]]>><</link>><<nexttext>>
<</if>>

:: Domus Model BDSM Finish
<<effects>>

<<if $enemyarousal gte $enemyarousalmax>>

	<<ejaculation>>
	The art group continue to paint excitedly.

	<<endcombat>>
	<<set $phase to 0>>

	<<link [[Next|Domus Model Pillory Wait]]>><</link>>

<<elseif $enemyhealth lte 0>>
	The assistant grunts in pain and moves away, soon returning with a large paintbrush. A moment later you feel it shoved deep into your asshole.<<gpain>><<pain 5>>

	Your instinctive attempt to gasp while ball-gagged provokes some laughter around the room.<<gstress>><<stress 1>>

	"A bitch needs a tail, right?"

	The art group continue to paint excitedly.

	<<endcombat>>
	<<set $phase to 1>>

	<<link [[Next|Domus Model Pillory Wait]]>><</link>>

<</if>>

:: Domus Model Dog
<<if $molestationstart is 1>>
	<<set $molestationstart to 0>>
	<<controlloss>>
	<<violence 1>>
	<<neutral 1>>
	<<molested>>
	<<beastCombatInit>>
	<<set $position to "wall">>
	<<set $walltype to "pillory">>
	<<set $head to "grappled">>
<</if>>
<<if $enemyarousal gte ($enemyarousalmax / 4) * 3>>
	Only a few dedicated artists are still painting, most are just watching. More than a few are surreptitiously masturbating.
<<elseif $enemyarousal gte ($enemyarousalmax / 4) * 2>>
	Several artists are still painting your assault, but many are now just gawking.
<<elseif $enemyarousal gte ($enemyarousalmax / 4)>>
	A number of artists paint and sketch your sexual assault.
<<else>>
	The assistant helps steady the <<beasttype>>, while the class watch with renewed interest.
<</if>>
<<if (random(0,9)%3 ==0)>>
The assistant <<print either("slaps your face.","grabs your nipple and slowly twists.","whips your inner thighs with a strap.")>><<gpain>><<pain 2>><</if>>

<<effects>>
<<effectsman>>

<<beast $enemyno>>

<<stateman>>

<<actionsman>>

<<if $enemyarousal gte $enemyarousalmax>>
	<<link [[Next|Domus Model Dog Finish]]>><</link>><<nexttext>>
<<elseif $enemyhealth lte 0>>
	<<link [[Next|Domus Model Dog Finish]]>><</link>><<nexttext>>
<<else>>
	<<link [[Next|Domus Model Dog]]>><</link>><<nexttext>>
<</if>>

:: Domus Model Dog Finish
<<set $location to "town">><<effects>>

<<if $enemyarousal gte $enemyarousalmax>>
	<<beastejaculation>>
	The <<beasttype>> lovingly licks your back and neck as the art group continue to paint excitedly.

	<<endcombat>>
	<<set $phase to 0>>

	<<link [[Next|Domus Model Pillory Wait]]>><</link>>

<<elseif $enemyhealth lte 0>>
	The <<beasttype>> yelps and runs away. A few laugh or cheer, others sound disappointed.

	<<endcombat>>
	The art group continue to paint excitedly.

	<<set $phase to 1>>
	<<link [[Next|Domus Model Pillory Wait]]>><</link>>

<</if>>

:: Domus Model Pillory Wait
<<set $outside to 0>><<set $location to "town">><<effects>><<set $bus to "domus">>
<<generate1>><<generate2>><<pass 30>>
Locked in the pillory,
<<set $NPCList[0] to clone($model_host)>><<set $NPCList[1] to clone($model_dom)>><<unset $model_host>><<unset $model_dom>>
<<if $phase is 0>>
	<<if $stress gte (($stressmax / 5) * 3)>>used, abused and at your wits' end,<<else>>used and abused,<</if>> you are unable to even cover up as the class eagerly paint you.

<<else>>
	you glare between them expecting further attack. None come. They all seem quite happy painting you.

<</if>>
Gagged, you can't even complain. You have no choice but to wait. Every now and then, the <<person1>><<person>>
holds another painting of your abuse out in front of you.<<gstress>><<stress 1>>

The <<person1>><<person>> eventually wraps up the session. The <<person2>><<person>> <<print either("gives your butt a gentle slap","gives your nipples a quick squeeze","pulls your hair back and kisses you gently on the forehead")>>
and then releases you from the pillory and busies <<himself>> tidying up the stage. The art class pack up.

The <<person1>><<person>> helps untie your gag while leading you from the room.

"What a show!" <<he>> gushes once you reach the privacy of hallway. "You were brilliant. I think most of them believed it was real. I mean, it's a such cliche -
the 'modelling-gig gone bad' - but you and your partner were really convincing. I almost believed it - even after we spent all that
time on the phone arranging it. Such chemistry! Such acting! Remarkable... You'll find a little extra in your pay."

<<He>> waves to the bathroom. "Take your time. You were great today. Wow."<<lstress>><<stress -2>>

<<link [[Enter bathroom|Domus Model Rape End]]>><<set $worn.face.type.push("broken")>><<faceruined>><<endevent>><<unbind>><</link>>

:: Domus Model Rape End
<<set $outside to 0>><<set $location to "town">><<effects>><<set $bus to "domus">>
<<pass 20>>
You head to the bathroom to dress and recover.
<<clotheson>>
<<link [[Next|Domus Model Rape Leave]]>><</link>>

:: Domus Model Rape Leave
<<set _payout to random(110,180)>>
When you open the bathroom door to leave, you find a large bowl on a stool outside. They left you £_payout cash,
<<print either("a 'get well soon' card,","a single broken rose,","a thank-you card,","an origami flower","a sketch from your rape,","a deeply offensive haiku,","a cheeky limerick")>>
and some expensive-looking jewellery. <<tearful>> you leave.
<<lstress>><<stress -1>>
<<set $money += (_payout * 100)>><<set $blackmoney to random(30,70)>>

<<link [[Next|Domus Street]]>><<endcombat>><<endevent>><</link>>

:: Domus Errand
<<set $outside to 1>><<set $location to "town">><<effects>><<set $bus to "domus">><<pass 5>>
<<person1>><<He>> hands you the order slip. "Just show them that. Thanks."

<<generate2>><<person2>>
You walk quickly to the corner shop.
<<if $weather is "clear">>
Aside from kids buying ice-creams and slushies, it's quiet. People are probably indoors or out at pubs watching the game. The kids leave with their sugar fix.
<<elseif $weather is "rain">>
It's empty. Between the awful weather and the game, everyone's stayed home.

"Is it raining out?" the shop attendant asks.

Stood dripping in the doorway, you're not sure if <<hes>> serious.

<<elseif $weather is "overcast">>
It's empty. People are probably indoors watching the game.
<<elseif $weather is "snow">>
It's empty. People are probably hiding from the cold.
<</if>>

You present the order slip to the <<person>> behind the counter.

"Okay," <<he>> says. "That's alcohol. I'll need to see some ID."

<<if $id is 0>>
	"It's not for me. I'm just picking it up."

	"Sorry," <<he>> shrugs.

	"But... They asked me to pick it up for them."

	"Sorry, but..." <<he>> glances around the shop. It's empty now. "Unless you can prove your age some other way."

	"Prove it?"

	<<if $player.gender_appearance is "f">>
		"Let me check your tits?"

		<<if $exhibitionism gte 35>><<link [[Allow|Domus Errand Proof]]>><<set $phase to 1>><</link>><</if>>

		<<link [[Refuse|Domus Errand Proof]]>><<set $phase to 0>><</link>>

	<<else>>
		"Let me check your dick?"

		<<if $exhibitionism gte 35>>
			<<if $worn.genitals.type.includes("chastity")>>
			You cannot comply due to your chastity device.
			<<else>>
			<<link [[Allow|Domus Errand Proof]]>><<set $phase to 2>><</link>>
			<</if>>

		<</if>>
		<<link [[Refuse|Domus Errand Proof]]>><<set $phase to 0>><</link>>

	<</if>>
<<else>>
	You pass over your ID card. <<He>> looks at it for a moment, hands it back and then passes over a large crate of beers.

	"Have a nice day."

	<<link [[Next|Domus Errand End]]>><<set $phase to 1>><</link>>

<</if>>

:: Domus Errand Proof
<<set $outside to 0>><<set $location to "town">><<effects>><<set $bus to "domus">>
<<if $phase is 0>>
	<<He>> holds up <<his>> hands. "I can't serve you alcohol. Is there anything else?"

	You shake your head.

	"Have a nice day."

	You leave.

	<<link [[Next|Domus Errand End]]>><<set $phase to 0>><</link>>

<<elseif $phase is 1>>
	No one else is around, so you agree to expose your <<if $player.gender is "m">>chest<<else>>breasts<</if>>.
	<<if $breastsize lte 2>>
		<<He>> reaches out a hand and gently squeezes your <<breasts>>.

		"Sorry, these are..." <<he>> says. "I can't serve you alcohol without ID."
		<<insecurity "breasts_small" 1>><<ginsecurity "breasts_small">>

		You cover up.

		"Consider it a good thing. Is there anything else?"

		You shake your head.

		"Have a nice day."

		You leave.

		<<link [[Next|Domus Errand End]]>><<set $phase to 0>><</link>>

	<<else>>
		<<He>> reaches out both hands and gently gropes your chest.
		<<garousal>><<arousal 100>>

		"Hmm," <<he>> says. "I can accept this as proof of age."

		<<He>> gropes you for a moment longer, then turns to collect the drinks.

		You cover up.

		<<He>> passes over a large crate of beers. "Have a nice day."

		<<link [[Next|Domus Errand End]]>><<set $phase to 1>><</link>>

	<</if>>
<<elseif $phase is 2>>
	No one is around, so you approach the counter and let <<him>> slip a hand inside your <<if $worn.genitals.type.includes("chastity")>>$worn.genitals.name.<<else>><<crotch>>.<</if>>

	<<if $player.penisExist>>
		You feel a hand wrap around your penis.

		<<if $penissize lte 1>>
			Suddenly <<he>> laughs.

			"Is that..? Uh, sorry, no," <<he>> smiles. "I can't accept that as proof."
			<<insecurity "penis_small" 1>><<ginsecurity "penis_small">>

			<<He>> removes <<his>> hand.

			"Is there anything else?" <<he>> smirks.

			You shake your head.

			"Have a nice day."

			You leave.

			<<link [[Next|Domus Errand End]]>><<set $phase to 0>><</link>>

		<<else>>
			<<if $penissize gte 3>>
				"Wow!" <<he>> glances at you. "You are packing."

				<<He>> gives it a rub.
				<<garousal>><<arousal 100>>

			<</if>>
			"Okay," <<he>> says. "I can accept this as proof of age."

			<<He>> gropes you for a moment, then withdraws <<his>> hand.

			<<He>> passes over a large crate of beers. "Have a nice day."

			<<link [[Next|Domus Errand End]]>><<set $phase to 1>><</link>>

		<</if>>
	<<else>>
		You feel a hand brush against your pussy.

		<<if $rng % 2>>
			"A vagina," <<He>> smiles. "I thought I might find one of these."

			<<He>> rubs <<his>> fingers around your clit.
			<<garousal>><<arousal 100>>

			"Don't worry, I won't tell anyone," <<he>> says, still rubbing. "Lots of perverts here."

			<<He>> slips a finger inside your pussy. "So many perverts."
			<<garousal>><<arousal 100>>

			<<He>> withdraws <<his>> hand. "You can't be too careful."

			<<He>> grabs a large crate of beers and hands them over. "Have a nice day."

			<<link [[Next|Domus Errand End]]>><<set $phase to 1>><</link>>

		<<else>>
			<<He>> snatches out <<his>> hand as if bitten.

			"Pervert," <<his>> face flushes red. "Do you think that was funny?!"

			You step back.

			"Play jokes on the silly shopkeeper, huh? Get out of my stop," <<he>> shouts. "Out."

			You leave.

			<<link [[Next|Domus Errand End]]>><<set $phase to 0>><</link>>

		<</if>>
	<</if>>
<<else>>
The shopkeeper spontaneously breaks into song. Unsure what to do, you awkwardly back away. (This is an error, please report).
<<link [[Next|Domus Errand End]]>><<set $phase to 0>><</link>>

<</if>>

:: Domus Errand End
<<set $outside to 1>><<set $location to "town">><<effects>><<set $bus to "domus">><<pass 5>>
<<person1>>
<<if $phase is 0>>
	You head back to the house empty-handed and knock on the door.

	The <<person>> looks at you blankly. "Where is it then?"

	"They wouldn't serve me."

	"Shit," <<he>> says.
	<<if $weather is "rain">> <<He>> takes in your wet clothes and bedraggled hair. "Well, you clearly tried."

	With a look of pity, <<he>> hands you <<moneyGain 5>>.
	<<elseif $rng % 2>>"I guess you tried."

	<<He>> grudgingly hands you <<moneyGain 5>>.
	<<else>>"So why are you here? You think I'm paying you to go on a walk?! Get lost!"
	<</if>>
<<elseif $phase is 1>>
	You carry the crate back to the house. It's heavier than it looks
	<<if $weather is "clear">>and with the sun beating down you work up quite a sweat.
	<<elseif $weather is "rain">>and the rain beating down on you really isn't helping.
	<<elseif $weather is "overcast">>but you manage.
	<<elseif $weather is "snow">>and the icy ground isn't helping.
	<</if>>

	<<person1>>Arriving back the <<person>> hands you <<moneyGain 5>> and takes the crate.
	<<if $rng % 3 is 0>>
		At that moment, a loud roar comes from inside the house, followed by <<if $rng % 2>>loud cheers and clapping.<<else>>jeering, boos and some very crude cursing.<</if>>

		"Fuck fuck fuck," <<he>> says, slamming the door and rushing back inside.
	<<else>>

	"Thanks. Lifesaver," <<he>> says, closing the door.
	<</if>>
<<else>>You carry Schroedinger's beer back to the house. (This is an error, please report)
<</if>>

<<link [[Next|Domus Street]]>><<endevent>><</link>>

:: Domus Shy

<<set $outside to 0>><<set $location to "town">><<effects>><<set $bus to "domus">>
<<set $rng to random(0,100)>><<generates2>>

<<if $rng gte 65 and ($famesex + $famerape + $fameprostitution) gte 400>>
	<<person1>>Just inside the door the <<person>> pulls you aside.

	"Listen," <<he>> says in almost a whisper. "I'm going to be honest with you here. I've seen you around. You're pretty well known for being... forward. Sexually I mean."

	<<He>> glances nervously at an internal door.

	<<person2>>"See my <<daughter>> is a good-looking kid, and horny as hell, but... <<hes>>
	<<if $pronoun is $player.gender_appearance>>gay, I think. And confused? Conflicted? I don't know, but <<he>> will never
	<<else>>painfully shy. If left to <<himself>>, <<he>> will never
	<</if>>make the first move. <<He>> needs someone to show <<him>> the ropes."

	<<person1>>The <<person>> points at a door.

	<<person2>>"Through there. Seduce <<him>>. Help <<him>>. I'll give you £20 now and another £100 if you show <<him>> a good time. Deal?"

	<<link [[Agree|Domus Shy Seduce]]>><<set $money += 2000>><</link>>

	<<link [[Refuse and leave|Domus Street]]>><<endevent>><</link>>

<<else>>
	<<generateBEAST 3 dog>>
	<<person1>>The <<person>> takes you through to a living room where a shy-looking <<person2>><<person>> sits uncomfortably stroking a
	<<beasttype 2>>.

	"I brought you someone to talk to. Looks about your age."

	The <<person>> looks up.
	<<if $seductionskill gte 600 and $rng gte 67>>
		<<pass 60>>
		Blushes. Looks down.

		"Talk. What's that thing you young people are all into nowadays. That... y'know? It was on that internet thing. It was on the news that time."

		The <<person>> continues to stare at a patch of carpet.

		"You know, right?" <<person1>>the <<person>> looks at you.

		You shrug.

		Time starts to drag. Out of boredom you try flirting with the <<person2>><<person>>. It doesn't work, but it does get <<his>> attention.
		After a particularly blunt pass the <<person1>><<person>> is starting to look <<print either("uncomfortable, ","aroused, ","quite awkward, ")>>
		but the <<person2>><<person>> opens up. <<He>> starts telling you about school, and how it used to be okay, but now <<hes>> scared to talk
		to anyone because <<hes>> terrified they'll figure out <<hes>> into <<personsimple>>s. That just isn't okay in
		<<his>> extended family. And maybe not at home either. <<He>> looks at <<his>> <<person1>><<if $pronoun is "m">>father.<<else>>mother.<</if>><<person2>>

		The <<person1>><<person>> doesn't say anything, but also doesn't leave.

		The <<person2>><<person>> tells you <<if $player.gender_appearance is $pronoun>><<he>> thinks you're cute and that it's a relief to finally be
		able to say that. <<else>>that <<he>> thinks you're cute and <<he>> appreciates the attention, but now <<he>> can finally be honest, you're just not
		what <<he>> is looking for.<</if>>

		<<He>> starts telling you about <<his>> hobbies and interests. <<He>> talks about books, games and internet groups.
		<<He>> says it's a relief to finally talk to someone. <<He>> hasn't even felt able to talk to <<his>> parents.

		The <<person1>><<person>> doesn't say anything, but looks somehow sad.

		Shortly after this, the <<person1>><<person>> leads you out of the room.

		"Thank you," <<he>> says.<<person2>>
		<<if $rng %2>>
			"Wow. I didn't see that coming. My own <<daughter>>. Still, that was a breakthrough. <<He>> hasn't spoken like this in years. Thank you."

		<<else>>
			"We've suspected for years. But now <<hes>> finally found the courage to say it. Such a relief. Thank you so much."
		<</if>>

		<<person1>><<He>> passes you <<moneyGain 40>> as <<he>> leads you out.

		<<link [[Next|Domus Street]]>><<endevent>><</link>>

	<<elseif $deviancy gte 35 and $rng lte 33 and ($monster is 1 or $bestialitydisable is "f")>>
		<<pass 60>>
		Blushes. Looks down.

		"Talk. What's that thing you young people are all into nowadays. That... y'know? It was on that internet thing. It was on the news that time."

		The <<person>> continues to stroke the <<beasttype 2>> while staring at a patch of carpet.

		You notice something unusually intimate in the way <<he>> strokes the <<beasttype 2>>.

		"That's a gorgeous <<beasttype 2>>," you say. The <<beasttype 2>>'s ears perk up at your words. You notice <<bhim 2>> get closer to the <<person>> and almost hug <<him>>.
		"Is it okay if I stroke <<bhim 2>>?"

		As you chat, you start to fondle and grope the <<beasttype 2>>.
		The <<person1>><<person>> doesn't notice, but the <<person2>><<persons>> eyes widen.
		<<if $NPCList[2].monster is "monster">>The <<beasttype 2>>'s face flushes.<</if>>
		<<He>> grows more excited.

		"Everyone says they love animals, but so few actually do," you say.

		The <<person>> nods excitedly, while the <<person1>><<person>> yawns.

		You and the <<person2>><<person>> spend the rest of the hour discussing your shared love of animals.

		As you leave the <<person1>><<person>> stops you.

		"I don't know how," <<he>> says. "But you got through to <<person2>><<him>>."

		<<He>> hands you <<moneyGain 30>>.

		<<link [[Next|Domus Street]]>><<endevent>><</link>>

	<<elseif $hairlength gte 500 and ($rng % 4)>><<pass 5>>/*75% chance if here with long hair*/
		Stops. Stares at you for a long moment.

		"Your hair," <<he>> whispers.

		"What?"

		"Your hair is so long and beautiful," <<he>> whispers. "Just like... Can I braid it. Please. Will you let me braid it?"

		The <<person1>><<person>> looks at you expectantly.

		<<link [[Accept|Domus Braid]]>><<set $phase to 1>><</link>>

		<<link [[Refuse|Domus Braid]]>><<set $phase to 0>><</link>>

	<<else>>
		<<pass 60>>
		Blushes. Looks down.

		"Talk. What's that thing you young people are all into nowadays. That... y'know? It was on that internet thing. It was on the news that time."

		The <<person>> continues to stare at a patch of carpet.

		"You know, right?" <<person1>>the <<person>> looks at you.

		You shrug.

		The hour seems to take several years. Probably decades. Slow, awkward, excruciating decades,
		as the <<person>> struggles to drag the occasional, unwilling word from the <<person2>><<person>>.
		You try to keep up the conversation, but it's painfully awkward.

		<<person1>>Finally, at the end of the hour, <<he>> takes you back to the door. Shrugs.

		"Well," <<he>> sighs, handing you <<moneyGain 10>>. "Thanks for trying."

		<<link [[Next|Domus Street]]>><<endevent>><</link>>

	<</if>>
<</if>>
<<unset $shy_dog>>

:: Domus Shy Seduce

<<set $outside to 0>><<set $location to "town">><<effects>><<set $bus to "domus">>
<<set $parentNPC to clone($NPCList[0])>>
<<set $shyNPC to clone($NPCList[1])>>
<<endevent>><<generates1>><<set $NPCList[0] to clone($shyNPC)>>/*endevent is required to stop BOTH npcs turning up for sexy time. pers1 is now shynpc*/
You enter the room to find a <<person1>><<person>> sat at a large table. <<He>> looks up at you. Confusion crosses <<his>> face.

"You? What are you doing..?"

You put a finger to your lips as you approach <<him>> with open lust in your eyes.

<<set $seductiondifficulty to 4000>>
<<seductioncheck>>

<<if $seductionskill lt 1000>>You feel more confident in your powers of seduction.<</if>><<seductionskilluse>>

Using your seductive powers, you stroke <<his>> neck and kiss <<him>>, while rubbing your hand suggestively across your body. Climbing seductively onto the <<print either("table in front of","couch near","chair behind")>> <<him>>, you beckon <<him>> to join you.

<<if $seductionrating gte $seductionrequired>>
	You effortlessly seduce the <<person>>. <<He>> eagerly joins you.

	<<link [[Next|Domus Shy Sex]]>><<set $sexstart to 1>><</link>>
<<else>>
	<<generate2>><<set $NPCList[1] to clone($parentNPC)>>
	"Help!" <<he>> screams. <<person2>><<if $pronoun is "m">>"Dad!<<else>>"Mum!<</if>> There's some freak in here climbing on the furniture!"

	The <<person>> appears, and leads you out of the house.

	"Thanks for trying," <<he>> sighs through the closing door.

	<<link [[Next|Domus Street]]>><<unset $parentNPC>><<unset $shyNPC>><<endevent>><</link>>
<</if>>

:: Domus Shy Sex

<<set $outside to 0>><<set $location to "town">><<effects>><<set $bus to "domus">>

<<if $sexstart is 1>>
	<<set $sexstart to 0>>
	<<person1>>
	<<if $cool gte 160>>
		"You... you're, like, the coolest <<girl>> in school,"
	<<elseif $famesex gte 400>>
		"I heard about you. I... I always hoped one day it'd be my turn,"
	<<elseif $beauty gte ($beautymax / 7) * 4>>
		"But you're so hot,"
	<<else>>
		"You're not just playing around?"
	<</if>>
	<<he>> says. "Y... You really want me?"

	<<consensual>>
	<<set $consensual to 1>>
	<<neutral 1>>
	<<maninit>>
	<<set $enemytrust += 100>>
<</if>>

<<effects>>
<<effectsman>><<man>>

<<stateman>>

<<actionsman>>

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

:: Domus Shy Sex Finish
<<set $outside to 0>><<set $location to "town">><<effects>><<set $bus to "domus">>

<<if $enemyarousal gte $enemyarousalmax>>
	<<ejaculation>>

	The <<person>> smiles at you lovingly. "That was amazing."

	<<tearful>> you recover.

	<<clotheson>>

	<<link [[Next|Domus Shy Sex 2]]>><<set $phase to 0>><</link>>

<<elseif $enemyhealth lte 0>>

	Leaving the <<person>> hurt and confused, you flee through a window.

	<<tearful>> you recover.

	<<clotheson>>
	<<endcombat>>

	<<link [[Next|Domus Street]]>><<unset $parentNPC>><<unset $shyNPC>><<endevent>><</link>>

<<else>>

	"I... I thought you liked me," the <<person>> cries. "I thought you wanted me. I'm such an ugly, stupid idiot."

	<<tearful>> you recover.

	<<clotheson>>
	<<endcombat>>

	<<link [[Next|Domus Shy Sex 2]]>><<set $phase to 1>><</link>>

<</if>>

:: Domus Shy Sex 2
<<set $outside to 0>><<set $location to "town">><<effects>><<set $bus to "domus">>
<<if $phase is 0>>
	With a parting kiss, you leave the <<person>> looking very happy.

	In the hallway, you find <<moneyGain 100>> on a table by the door. You take it on your way out.

	The parent is nowhere to be seen.

	<<endcombat>>
	<<link [[Next|Domus Street]]>><<unset $parentNPC>><<unset $shyNPC>><</link>>

<<elseif $phase is 1>>
	<<generate1>><<set $NPCList[0] to clone($shyNPC)>>
	<<generate2>><<set $NPCList[1] to clone($parentNPC)>><<person2>>
	A hand clamps around your neck.

	"No, kid," the <<person>> says firmly. "Don't get upset. You have to learn to read between the lines. When they seduce you, and get you all hot and bothered,
	and then suddenly say 'stop' it just means they want someone who'll take control. Be a bit forceful. Come on now. Let's do this together."

	<<link [[Next|Domus Shy Rape]]>><<set $molestationstart to 1>><</link>>
<</if>>

:: Domus Shy Rape
<<set $outside to 0>><<set $location to "town">><<effects>><<set $bus to "domus">>

<<if $molestationstart is 1>>
	<<set $molestationstart to 0>>
	<<controlloss>>
	<<violence 1>>
	<<neutral 1>>
	<<molested>>
	<<maninit>>
	<<set $rescue to 0>>
<</if>>

<<effects>>

<<effectsman>><<man>>
<<stateman>>

<<actionsman>>

<<if $alarm is 1>>
<<set $alarm to 0>>
No one comes to your aid.

<</if>>
<<if $enemyhealth lte 0>>
	<<link [[Next|Domus Shy Rape Finish]]>><</link>><<nexttext>>
<<elseif $enemyarousal gte $enemyarousalmax>>
	<<link [[Next|Domus Shy Rape Finish]]>><</link>><<nexttext>>
<<elseif $alarm is 1 and $rescue is 1>>
	<<link [[Next|Domus Shy Rape Finish]]>><</link>><<nexttext>>
<<else>>
	<<link [[Next|Domus Shy Rape]]>><</link>><<nexttext>>
<</if>>

:: Domus Shy Rape Finish
<<set $outside to 0>><<set $location to "town">><<effects>><<set $bus to "domus">>

<<if $enemyarousal gte $enemyarousalmax>>
	<<ejaculation>>

	<<person2>> The <<person>> smiles at you, and leans over to whisper in your ear.
	"Thanks. That was nice acting. Perfect job. Exactly what <<person1>><<he>> needed. Money's in the hall."

	<<tearful>> you recover.

	You collect the money on your way out.
	<<set $money += 10000>>

	<<clotheson>>
	<<endcombat>><<unset $parentNPC>><<unset $shyNPC>>

	<<link [[Next|Domus Street]]>><</link>>

<<elseif $enemyhealth lte 0>>

	Leaving them both hurt and confused, you flee through a window.

	<<tearful>> you recover.

	Somehow, you managed to keep your clothes.

	<<clotheson>>
	<<endcombat>><<unset $parentNPC>><<unset $shyNPC>>

	<<link [[Next|Domus Street]]>><</link>>

<</if>>

:: Domus Braid

<<set $outside to 0>><<set $location to "town">><<effects>><<set $bus to "domus">>
<<if $phase is 0>>
<<pass 55>>
	You politely refuse. You don't want some random <<if $NPCList[1].pronoun is "f">>girl<<else>>boy<</if>> messing with your hair.

	The <<person>> looks disappointed.

	"Talk. What's that thing you kids are all into nowadays. That... y'know? It was on that internet thing. It was on the news that time."

	The <<person2>><<person>> continues to stare at a patch of carpet.

	"You know, right?" <<person1>>the <<person>> looks at you.

	You shrug.

	The hour seems to take several years. Probably decades. Slow, awkward, excruciating decades,
	as the <<person>> struggles to drag the occasional, unwilling word from the <<person2>><<person>>.
	You try to keep up the conversation, but it's painfully awkward.

	<<person1>>Finally, at the end of the hour, the <<person>> takes you back to the door, stuffs <<moneyGain 10>> in your hand and throws open the door.
	"Thanks for nothing."

	You leave.
<<elseif $phase is 1>><<pass 55>>
	<<set $hairtype to "braid left">>
	Over the next hour the <<person2>><<person>> braids your hair. <<He>> smiles as <<he>> does so.
	<<if $rng gte 67 and $o_long_and_beautiful is 0>>
		<<set $o_long_and_beautiful to 1>><<set $hy_sibling to clone($NPCList[1])>><<set $hy_parent to clone($NPCList[0])>>
		<<set $long_hair_meet_day to $day>><<set $misbehaviour_day to $day>>
		After a few minutes <<he>> starts singing an upbeat pop song from last year.
		When <<he>> finishes <<he>> laughs and falls silent.

		Then, so quiet it's almost a whisper, <<he>> tells you how <<his>> big sister used to love that song. How <<he>> used to sing it while
		<<he>> braided <<his>> sister's hair. <<His>> big sister always looked after <<him>>. She always helped <<him>> with homework,
		protected <<him>> from bullies, was always just there for <<him>>. Always.

		Now that <<his>> sister's gone, they all bully <<him>>. They know how <<his>> sister got attacked at that beach party. Some of the attackers
		took videos on their phones. Now they all have those videos. They share them. Leer at them. Leer at her and laugh. They talk about teaching the 'slut'
		a lesson. Joke about her face when she cried and begged. Sometimes they try to show the <<person>> the videos of <<his>> sister being hurt.
		Or they play it on their phone in the canteen over lunch where <<he>> can hear it. Where everyone can hear it.

		It makes <<him>> feel crazy sometimes. They think they can do what they like. They think <<he>> can't stop them.

		Once they used computers to make posters from the videos. Put them up all over the school. On notice boards. Everyone saw <<his>> beautiful big sister
		like that. And did the teachers do anything? The headteacher took the posters as 'evidence' but nothing changed.
		No justice. It carried on. So of course the <<persons>> been getting in fights now. Someone has to take a stand. The bullies gang up. They think
		no one can stop them.

		The <<person>> tells you <<his>> sister lives in a peaceful place now. A place with a garden deep in the forest. And Doctors too. She talks again now.
		Sometimes. But she still cries a lot. The doctors say she needs more time.

		"The bullies think I can't stop them," the <<person>> whispers. "But I can. I have knives now. 13 pretty knives."
		<<He>> looks earnestly at you. "Don't worry. I'll stop the bad people. They won't hurt you again."

		"All done," <<he>> smiles. "Your hair is so long and beautiful. Just like hers."

		<<person1>>The <<person>> looks shell-shocked as <<he>> walks you to the door. <<He>> stares at the wall.

		"Well," <<he>> says. "That was intense. I knew <<person2>><<he>> took it badly, but-" <<person1>><<he>> pauses. "Okay. I-I'll sort this out. Here's <<moneyGain 80>>. It's all I have.
		Just please don't mention this to anyone. I'll fix it. Somehow."

		The door closes.
	<<else>>
		<<He>> seems happy.

		At the end of the hour, the <<person1>><<person>> takes you back to the door. Shrugs.

		"Well," <<he>> says, handing you <<moneyGain 20>>. "That seemed to cheer <<person2>><<him>> up at least. Thanks."
	<</if>>
<<else>>
	"I see dead people," <<he>> says.
	<<He>> tries to braid your hair, but the hair falls through <<his>> fingers. It turns out you were dead all along. (This is an error, please report)
<</if>>

<<link [[Next|Domus Street]]>><<endevent>><</link>>

repo_name: Area/degrees

license: mit


code:
:: Farmers Centre
<<set $outside to 0>><<set $location to "town">><<effects>>
<<if $farmersProduce is undefined>>
	<<set $farmersProduce to {
		selling:{},
		toSell:{},
		money:0,
		sold:0,
		totalSold:0,
	}>>
<</if>>

<<if !$NPCList[0].pronoun>>
	<<generate1>>
<</if>>
<<person1>>

<<if $factory_intro is undefined>>
	<<set $factory_intro to 1>>
	You approach the factory, a colossal brick structure at the entrance of town. A <<person>> stands by the gate, waving through a fleet of lorries.

	<<He>> turns to you as the gate clanks shut. "Nothing for you to see here," <<he>> says. "Not unless you have a lot of produce to sell. We could handle that for you. For a cut."

	<<link [[Next|Farmers Centre]]>><</link>>

<<else>>
	You are outside a factory on Harvest Street. They'll process and sell produce on your behalf, but only so fast, and won't pay as much as customers at market.

	<<if $rng gte 91>>
		A <<person>> sits in a kiosk outside, thumbing through a magazine.
	<<elseif $rng gte 81>>
		A <<person>> leans against the wall, smoking a cigarette.
	<<elseif $rng gte 71>>
		A <<person>> sits in a kiosk outside, staring at a small television in the corner.
	<<elseif $rng gte 61>>
		A <<person>> sits in a kiosk outside, staring at <<his>> phone.
	<<elseif $rng gte 51>>
		A <<person>> waves a fleet of lorries through the gate.
	<<elseif $rng gte 41>>
		A <<person>> sits in a kiosk outside, talking on <<his>> phone.
	<<elseif $rng gte 31>>
		A <<person>> sits in a kiosk outside, thumbing through paper.
	<<elseif $rng gte 21>>
		A <<person>> leans against the wall, watching the traffic pass.
	<<elseif $rng gte 11>>
		A <<person>> watches you from a kiosk.
	<<else>>
		A <<person>> sits in a kiosk outside, reclining in a chair.
	<</if>>

	<<if $farmersProduce.money gt 10000>>
		<<link [[Collect money|Farmers Centre Money Collection]]>><</link>>

	<</if>>
	<<link [[Inquire about selling produce|Farmers Centre Produce Sale]]>><</link>>

	<<link [[Leave|Harvest Street]]>><<endevent>><</link>>

<</if>>

:: Farmers Centre Money Collection

The <<person>> enters the factory proper, and emerges with a wad of notes. You've made <<moneyGain `(parseFloat($farmersProduce.money / 100).toFixed(2))`>>.
<<set $farmersProduce.money to 0>>

<<link [[Leave|Farmers Centre]]>><</link>>

:: Farmers Centre Produce Sale
The <<person>> opens a laptop. "So what do you have for me?"

Money from sales will become available every day at noon. Higher business fame will help the factory sell your produce faster.

<<set $farmersProduce.toSell to {}>>
<<set _plant_keys to Object.keys($plants)>>
<<set _plantItems to {}>>
<<if _plant_keys.length gte 1>>
	<<for _i to 0; _i lt _plant_keys.length; _i++>>
		<<if ["produce","vegetable","fruit","shroom"].includes(setup.plants[_plant_keys[_i]].type)>>
			<<set _plantItems[_plant_keys[_i]] to clone($plants[_plant_keys[_i]])>>
		<</if>>
	<</for>>

		<<produceDisplay>>

<<else>>
	You don't have any produce.

<</if>>

<<link [[Leave|Farmers Centre]]>><<set $farmersProduce.toSell to {}>><</link>>

:: Farmers Centre Produce Sale Confirm

The gate shudders open, and a lorry rumbles out, on its way to collect your produce.

<<link [[Leave|Farmers Centre]]>><</link>>

:: Farmers Centre Widgets [widget]
<<widget "produceDisplay">>

<<set _listMaxItems to 10>>
<<set _keys to (Object.keys(_plantItems) gt Object.keys($farmersProduce.toSell) ? Object.keys(_plantItems) : Object.keys($farmersProduce.toSell))>>
<<if _listPage is undefined>>
	<<set _listPage to 1>>
<</if>>
<<set _listPageMax to Math.ceil(_keys.length / _listMaxItems)>>
<<set _indexStart to ((_listPage - 1) * _listMaxItems)>>
<<set _indexEnd to (_indexStart + _listMaxItems gt _keys.length ? _keys.length : _indexStart + _listMaxItems)>>

<<for _i to _indexStart; _i lt _indexEnd; _i++>>
	<<set _item to _keys[_i]>>

		<<produceDisplayItem _item>>

<</for>>
<<run $(() => {
	$('.produceItem input').on('input change', e => {
		let valSpan = $(e.currentTarget).siblings().first();
		let item = e.currentTarget.id.split("producetosell")[1].replace(/-/g,"_");
		let value = valSpan.text();
		if(!value.includes("£")){
			valSpan.text((i, value) => value + " - £" + (bulkProduceValue(SugarCube.setup.plants[item],value) / 100).toFixed(2));
			$('#produceConfirm').replaceWith(new Wikifier(null, '<<produceDisplayConfirm>>').output);
		}
	})
})>>

	<<set _disabled = _listPage > 1 ? "" : "disabled">>

		<<link "Previous">>
			<<if _listPage > 1>>
				<<set _listPage -= 1>>
				<<replace #produceDisplay>><<produceDisplay>><</replace>>
			<</if>>
		<</link>>

<

		<<print (_listPage) + " out of " + _listPageMax>>

	<<set _disabled = _listPage < _listPageMax ? "" : "disabled">>

		<<link "Next">>
			<<if _listPage < _listPageMax>>
				<<set _listPage += 1>>
				<<replace #produceDisplay>><<produceDisplay>><</replace>>
			<</if>>
		<</link>>

>

<<run linkifyDivs('#produceDisplayControls')>>

<<produceDisplayConfirm>>
<</widget>>

<<widget "produceDisplayConfirm">>

	<<set $_total to 0>>
	<<for _label, _value range $farmersProduce.toSell>>
		<<if _value gt 0>>
			<<set $_total += bulkProduceValue(SugarCube.setup.plants[_label],_value)>>
		<</if>>
	<</for>>
	Total: <<printmoney $_total>>

	<<if $_total gt 0>>
		<<link [[Sell produce|Farmers Centre Produce Sale Confirm]]>>
			<<for _label, _value range $farmersProduce.toSell>>
				<<if _value gt 0>>
					<<if $farmersProduce.selling[_label] is undefined>>
						<<set $farmersProduce.selling[_label] to _value>>
					<<else>>
						<<set $farmersProduce.selling[_label] += _value>>
					<</if>>
					<<set $plants[_label].amount -= _value>>
				<</if>>
			<</for>>
			<<set $farmersProduce.toSell to {}>>
		<</link>>
	<<else>>

	<</if>>

<</widget>>

<<widget "produceDisplayItem">>
<<if $args[0]>>
	<<set _item to $args[0]>>
	<<capture _item>>

			<<if $farmersProduce.toSell[_item] is undefined>>
				<<set $farmersProduce.toSell[_item] to 0>>
			<</if>>
			<<if $plants[_item] is undefined>>
				You don't have any <<print $plants[_item].plural>> right now.
			<<elseif $plants[_item].amount lt 250>>
				<<print $plants[_item].plural.charAt(0).toUpperCase() + $plants[_item].plural.slice(1)>>: Not enough to sell.
			<<else>>
				<<set _max to $plants[_item].amount - ($plants[_item].amount % 250)>>
				<<set _base to bulkProduceValue(setup.plants[_item])>>
				<<print $plants[_item].plural.toUpperFirst()>> - Sold for <<printmoney _base>> per 250.
				<<numberslider `"$farmersProduce.toSell['"+_item+"']"` $farmersProduce.toSell[_item] 0 `_max` 250>>
			<</if>>

		<<if $farmersProduce.selling[_item]>>

				They are still processing <<print $farmersProduce.selling[_item]>> <<print $plants[_item].plural>>.

		<</if>>
	<</capture>>
<</if>>
<</widget>>

<<widget "dailySellProduce">>
<<if $farmersProduce is undefined>>
<<elseif Object.keys($farmersProduce.selling).length gt 0>>
	<<set _baseSaleQuantity to 250>>
	<<if between($famebusiness, 1900, 2000)>>
		<<set _baseSaleQuantity to _baseSaleQuantity * 6>>
	<<elseif between($famebusiness, 1500, 1900)>>
		<<set _baseSaleQuantity to _baseSaleQuantity * 5>>
	<<elseif between($famebusiness, 1000, 1500)>>
		<<set _baseSaleQuantity to _baseSaleQuantity * 4>>
	<<elseif between($famebusiness, 500, 1000)>>
		<<set _baseSaleQuantity to _baseSaleQuantity * 3>>
	<<elseif between($famebusiness, 200, 500)>>
		<<set _baseSaleQuantity to _baseSaleQuantity * 2>>
	<</if>>
	<<set _itemsSold to 0>>
	<<for _label, _value range $farmersProduce.selling>>
		<<set _quantity to clone(_baseSaleQuantity)>>
		<<if !setup.plants[_label].season.includes($season)>>
			<<set _quantity to Math.floor(_quantity * 0.9)>>
		<</if>>
		<<set _rng to 800 + Math.floor(currentSkillValue('tending') / 5)>>
		<<set _quantity to Math.floor(_quantity * (random(_rng,_rng + 400)/1000))>>
		<<if _value lt _quantity>>
			<<set _quantity to _value>>
		<</if>>
		<<set $farmersProduce.sold += _quantity>>
		<<set $farmersProduce.totalSold += _quantity>>

		<<set $farmersProduce.money += bulkProduceValue(setup.plants[_label],_quantity)>>
		<<set $farmersProduce.selling[_label] -= _quantity>>

		<<if $farmersProduce.selling[_label] lte 0>>
			<<run delete $farmersProduce.selling[_label]>>
		<</if>>
	<</for>>
	<<if $farmersProduce.sold gt 5000>>
		<<set _famebusinessSold to $farmersProduce.sold - ($farmersProduce.sold % 5000)>>
		<<set $farmersProduce.sold -= _famebusinessSold>>
		<<famebusiness `Math.floor(_famebusinessSold / 5000)`>>
	<</if>>
<</if>>
<</widget>>