code:
:: Barracks [nobr]

<<set $nextButton = "Back", $nextLink = "Main">>

The mercenaries you retain to protect $arcologies[0].name are housed in this sector of the arcology, which is fitted out as a modern military facility. It's much less expensive to house them here than to let them live at free quarters in the living areas of the arcology. They live somewhat apart from the society they protect, down here, but
<<if $personalArms > 0 && $invasionVictory > 0>>
	you're always welcome here. You're their employer, but what's more important to them is that you also fought alongside them in victorious battle.
<<else>>
	they don't resent an unannounced visit from their employer.
<</if>>
As you enter the main bay of the armory, lined with modern arms and armor and a few muscular, scarred men and women looking after their gear or suiting up to stand post, you're greeted respectfully, with<<if $personalArms > 0 && $invasionVictory > 0>> jaunty salutes and<</if>> formal "<<= properTitle()>>"s<<if $personalArms > 0 && $invasionVictory > 0>>, but also with smiles and nods<</if>>.
<<if $mercenaries >= 3>>
	Though few of the mercenaries are visible,
	<<if $mercenaries >= 5>>
		the bay is huge. There's enough equipment for a full company here.
	<<else>>
		there's enough equipment for a full platoon here.
	<</if>>
<</if>>

<<if $mercenariesTitle != "mercenaries">>
	They've taken to their role as $mercenariesTitle.
	<<switch $mercenariesTitle>>
	<<case "Knights">>
		Every set of gear has some kind of chivalric device on it, and the heavier sets of powered armor are accented with a lot of burnished steel.
	<<case "Evocati">>
		The heavier sets of powered armor have Roman standards mounted on their backs, and officers' helmets are distinguished by horsehair crests.
	<<case "Shorn Ones">>
		The bigger sets of power armor are adorned with multiple ornaments and painted with symbols of the gods and victory.
	<<case "Imperial Guards">>
		Their prototype armor is equipped with the latest weapons and their Imperial Chinese war banner strikes fear into the foes.
	<<case "Medjay">>
		The gear is accented with bronze and animal skins. Some of the heavier armored helmets even have faceplates styled after Pharaonic death masks.
	<<case "Samurai">>
		The gear is functional, but it has a distinctive Sengoku style to it. A ceramic wakizashi is an almost universal tertiary weapon.
	<<case "Janissaries">>
		They consider themselves a caste apart, and keep to themselves, priding themselves on relentless training and perpetual readiness.
	<<case "Knights Templar">>
		All the armor includes a modernized version of a white surcoat emblazoned with the symbol of the new faith.
	<<case "Immortals">>
		The lighting in the bay has been lowered, and the gear is styled to be menacing. There's a sense of leashed danger here.
	<<case "Vast Legions">>
		Their bulky, heavily armored prototype armor strikes terror into foes and causes the earth to shake when they walk.
	<<case "Surgical Corps">>
		Their prototype armor is equipped with the latest medical equipment.
	<<case "Inglorious Bitches">>
		Their garish neon pink prototype armor shines brightly.
	<<case "Thousand Sons">>
		Their prototype armor is designed to preserve a sample of the wearer's genetic material in the event of death.
	<<case "Guardians of the Unborn">>
		Their gear is designed to be accommodating to pregnant women and even includes a special kit in case a baby needs delivering and they're the only ones around.
	<<case "Shadowed Hand">>
		Their armor prominently displays the symbol of the Societal Elite and is designed to make it perfectly clear that they mean business.
	<<case "Asgardians">>
		Their armor has been modified to allow the wearers' muscular arms to remain visible, and the heavier armor seems to be equipped with capes.
	<<case "Tasters">>
		Their armor has been modified to handle all sorts of waistlines. They contain numerous pockets and containers; it's not unusual to see a merc offering someone a needed pick-me-up.
	<<case "Knights of the Blood">>
		Their gear is adorned with the badges and ensigns of racialist societies, and posters from the same sources are visible on the walls.
	<<case "Knights of the Purge">>
		Their prototype armor is equipped with the latest weapons.
	<<case "Wardens">>
		Their gear is designed to take their foes alive and relatively unharmed, though lethal force can be applied if need be.
	<<case "Purifiers">>
		Their prototype armor is equipped with a cleansing flamethrower. In addition to striking fear into their foes it also cooks a mean steak.
	<<case "Abstemious">>
		Their sleek prototype armor is equipped with advanced restraining weapons.
	<<case "Rangers">>
		Their gear has a heavy Western influence; everyone carries heavy revolvers everywhere, and the armor sports rope lariats for lassoing 'cattle.'
	<<case "Shepherds">>
		Their gear has a rather gaudy appearance; it makes it easier to attract wayward bimbos that way when they wander off and get lost.
	<<case "Geniuses">>
		Their prototype armor is extremely complex to control, but those who can reap the benefits.
	<<case "Caretakers">>
		Their towering prototype armor lets them stand out in a crowd and guide the way for those lost underfoot.
	<<case "Titans">>
		Their prototype armor towers over the average civilian and compacts for easy storage despite its size.
	<</switch>>
<</if>>
There are doors to magazines, armories, and training areas to all sides, and muffled gunfire can be heard from the latter.

You head up a deck, to the staff area, and up one more, to look into the living area. It's comfortable and very well-kept, since they have a large number of slaves here to look after them. Relaxing mercenaries are scattered around the common areas, and most are enjoying a slave or two.
<<if $FSAnnounced>>
	<<setNonlocalPronouns $seeDicks>>
	They're obviously adopting the customs of $arcologies[0].name.
	<<set _vignette = 0>>
	<<if $arcologies[0].FSSubjugationist != "unset">>
		A mercenary is fingering a $arcologies[0].FSSubjugationistRace _girlU's <<if $seeDicks != 100>>pussy<<else>>anus<</if>>. _HeU's wincing a little; _heU must be new here.
		<<set _vignette++>>
	<</if>>
	<<if $arcologies[0].FSSupremacist != "unset">>
		<<if _vignette>>Another<<else>>A<</if>> mercenary, a woman, is being seen to by a multicultural bunch of subhumans of different races. She has one eating her out while two more are rubbing her feet.
		<<set _vignette++>>
	<</if>>
	<<if $arcologies[0].FSGenderRadicalist != "unset">>
		<<if _vignette >= 2>>A third<<elseif _vignette>>Another<<else>>A<</if>> mercenary, who's rather obviously earned enough money to pay for the surgeries and drugs to turn herself into an imposing futanari, is pounding a dickgirl slave.
		<<set _vignette++>>
	<<elseif $arcologies[0].FSGenderFundamentalist != "unset">>
		<<if _vignette >= 2>>A third<<elseif _vignette>>Another<<else>>A<</if>> mercenary is fucking a slave
			<<if $arcologies[0].FSRestart != "unset">>
				lotus style. His hands are greedily following _hisU womanly curves as they bang.
			<<else>>
				doggy style. He's massaging _hisU rounded belly as _heU enjoys _hisU first foray into motherhood.
			<</if>>
		<<set _vignette++>>
	<</if>>
	<<if $arcologies[0].FSPaternalist != "unset">>
		<<if _vignette >= 3>>Yet another<<elseif _vignette >= 2>>A third<<elseif _vignette>>Another<<else>>A<</if>> mercenary is making out with a pretty slave. An old romantic movie is playing on a wallscreen in front of them, forgotten.
		<<set _vignette++>>
	<<elseif $arcologies[0].FSDegradationist != "unset">>
		<<if _vignette >= 3>>Yet another<<elseif _vignette >= 2>>A third<<elseif _vignette>>Another<<else>>A<</if>> mercenary is using a slave as a footrest as he relaxes. _HeU has a huge dildo up _hisU ass, and whenever _heU moves, he uses a foot to shove it farther inside _himU.
		<<set _vignette++>>
	<</if>>
	<<if $arcologies[0].FSIntellectualDependency != "unset">>
		<<if _vignette >= 3>>Yet another<<elseif _vignette >= 2>>A third<<elseif _vignette>>Another<<else>>A<</if>> mercenary is player strip poker with a pouting bimbo. _HeU's completely nude and unaware that the game is over, not that the merc minds.
		<<set _vignette++>>
	<<elseif $arcologies[0].FSSlaveProfessionalism != "unset">>
		<<if _vignette >= 3>>Yet another<<elseif _vignette >= 2>>A third<<elseif _vignette>>Another<<else>>A<</if>> mercenary is practicing assembling and disassembling his sidearm under the learned eyes of his assisting slave. _HeU is making sure _hisU master is well prepared for the future and stroking his dick each time he does it right.
		<<set _vignette++>>
	<</if>>
	<<if $arcologies[0].FSBodyPurist != "unset">>
		<<if _vignette >= $FSCreditCount>>Finally, a<<elseif _vignette >= 3>>Yet another<<elseif _vignette >= 2>>A third<<elseif _vignette>>Another<<else>>A<</if>> mercenary is idly playing with a slave's natural breasts as he watches a wallscreen. He's being gentle and _heU doesn't seem to mind.
		<<set _vignette++>>
	<<elseif $arcologies[0].FSTransformationFetishist != "unset">>
		<<if _vignette >= $FSCreditCount>>Finally, a<<elseif _vignette >= 3>>Yet another<<elseif _vignette >= 2>>A third<<elseif _vignette>>Another<<else>>A<</if>> mercenary is fucking a bimbo slave doggy style. _HisU fake tits are so huge that the motion is making them slap together under _himU.
		<<set _vignette++>>
	<</if>>
	<<if $arcologies[0].FSYouthPreferentialist != "unset">>
		<<if _vignette >= $FSCreditCount>>Finally, a<<elseif _vignette >= 3>>Yet another<<elseif _vignette >= 2>>A third<<elseif _vignette>>Another<<else>>A<</if>> mercenary is getting a blowjob from a young slave. He's playing with _hisU <<if $seeDicks != 100>>fresh pussy<<else>>tight little anus<</if>> as _heU sucks his dick.
		<<set _vignette++>>
	<<elseif $arcologies[0].FSMaturityPreferentialist != "unset">>
		<<if _vignette >= $FSCreditCount>>Finally, a<<elseif _vignette >= 3>>Yet another<<elseif _vignette >= 2>>A third<<elseif _vignette>>Another<<else>>A<</if>> mercenary is getting a massage from a mature slave. _HeU's wearing a towel, but he sneaks a hand back and steals it, freeing _hisU heavy breasts.
		<<set _vignette++>>
	<</if>>
	<<if $arcologies[0].FSSlimnessEnthusiast != "unset">>
		<<if _vignette >= $FSCreditCount>>Finally, a<<elseif _vignette >= 3>>Yet another<<elseif _vignette >= 2>>A third<<elseif _vignette>>Another<<else>>A<</if>> mercenary is getting a lap dance from a lithe slave. _HeU's moving _hisU cute butt lower and lower, getting ready to impale _himselfU on his raging erection.
		<<set _vignette++>>
	<<elseif $arcologies[0].FSAssetExpansionist != "unset">>
		<<if _vignette >= $FSCreditCount>>Finally, a<<elseif _vignette >= 3>>Yet another<<elseif _vignette >= 2>>A third<<elseif _vignette>>Another<<else>>A<</if>> mercenary is almost hidden by a slave he's got in his lap. He has his head buried between _hisU monstrous breasts, and it's not clear how he's breathing.
		<<set _vignette++>>
	<</if>>
	<<if $arcologies[0].FSPetiteAdmiration != "unset">>
		<<if _vignette >= $FSCreditCount>>Finally, a<<elseif _vignette >= 3>>Yet another<<elseif _vignette >= 2>>A third<<elseif _vignette>>Another<<else>>A<</if>> mercenary has a petite slave sitting on a weight bar. Each rep buries _hisU butt in his face.
		<<set _vignette++>>
	<<elseif $arcologies[0].FSStatuesqueGlorification != "unset">>
		<<if _vignette >= $FSCreditCount>>Finally, a<<elseif _vignette >= 3>>Yet another<<elseif _vignette >= 2>>A third<<elseif _vignette>>Another<<else>>A<</if>> mercenary is having sex with a rather tall slave against the lockers. He has to stand on a nearby bench in order to properly penetrate _himU.
		<<set _vignette++>>
	<</if>>
	<<if $arcologies[0].FSPastoralist != "unset">>
		<<if _vignette >= $FSCreditCount>>Finally, a<<elseif _vignette >= 3>>Yet another<<elseif _vignette >= 2>>A third<<elseif _vignette>>Another<<else>>A<</if>> mercenary is drinking a slave's milk, straight from the nipple, while idly massaging _hisU other breast, bringing out a thin stream of milk.
		<<set _vignette++>>
	<</if>>
	<<if $arcologies[0].FSPhysicalIdealist != "unset">>
		<<if _vignette >= $FSCreditCount>>Finally, a<<elseif _vignette >= 3>>Yet another<<elseif _vignette >= 2>>A third<<elseif _vignette>>Another<<else>>A<</if>> mercenary is doing push-ups with a well-endowed slave sitting on his back to add weight. _HeU's counting his reps for him.
		<<set _vignette++>>
	<<elseif $arcologies[0].FSHedonisticDecadence != "unset">>
		<<if _vignette >= $FSCreditCount>>Finally, a<<elseif _vignette >= 3>>Yet another<<elseif _vignette >= 2>>A third<<elseif _vignette>>Another<<else>>A<</if>> mercenary is doing squats with a rather portly slave sitting on his shoulders to add weight. _HeU pops a cookie into his mouth with each completed set.
		<<set _vignette++>>
	<</if>>
	<<if $arcologies[0].FSChattelReligionist != "unset">>
		<<if _vignette >= $FSCreditCount>>Finally, a<<elseif _vignette >= 3>>Yet another<<elseif _vignette >= 2>>A third<<elseif _vignette>>Another<<else>>A<</if>> mercenary is mounting a praying slave from behind. It doesn't distract _himU; _hisU quiet devotions become more fervent as he fucks _himU.
		<<set _vignette++>>
	<</if>>
	<<if $arcologies[0].FSRepopulationFocus != "unset">>
		<<if _vignette >= $FSCreditCount>>Finally, a<<elseif _vignette >= 3>>Yet another<<elseif _vignette >= 2>>A third<<elseif _vignette>>Another<<else>>A<</if>> mercenary is being ridden by an enormously pregnant slave. He's massaging _hisU taut belly as she uses _hisU hands to support _hisU sore boobs.
		<<set _vignette++>>
	<<elseif $arcologies[0].FSRestart != "unset">>
		<<if _vignette >= $FSCreditCount>>Finally, a<<elseif _vignette >= 3>>Yet another<<elseif _vignette >= 2>>A third<<elseif _vignette>>Another<<else>>A<</if>> mercenary is being serviced by a slave with a visibly smooth crotch. He has a dildo rammed in _hisU ass and moves it along with _hisU sucking.
		<<set _vignette++>>
	<</if>>
	<<if $arcologies[0].FSRomanRevivalist != "unset">>
	<<elseif $arcologies[0].FSAztecRevivalist != "unset">>
	<<elseif $arcologies[0].FSEgyptianRevivalist != "unset">>
	<<elseif $arcologies[0].FSEdoRevivalist != "unset">>
	<<elseif $arcologies[0].FSArabianRevivalist != "unset">>
	<<elseif $arcologies[0].FSChineseRevivalist != "unset">>
	<</if>>
<</if>>

<<if $mercenariesHelpCorp > 0>>
	<<setNonlocalPronouns $seeDicks>>

	As you leave, a squad moves thunderously into the bay, fresh from a slave raid on behalf of your corporation. Most of their captures have been dropped off with the corporate receivers, but they've been given a pretty _girlU who isn't a good training prospect for the corporate brand, a common reward. The squad looks after their weapons and armor first, an inviolable rule, and as they do, they leave their naked slave standing in the middle of the bay, ignored. _HeU isn't even bound, but _heU's standing nude and alone amongst modern mercenaries, so _heU knows that resistance is futile. So _heU does the only thing left available to _himU: try to cover _himselfU with _hisU hands and cry.
<</if>>

	<<link "Decommission the armory and return this sector to manufacturing">>
		<<run App.Arcology.cellUpgrade($building, App.Arcology.Cell.Manufacturing, "Barracks", "Manufacturing")>> <<set $barracks = 0>>
		<<goto "Main">>
	<</link>>


code:
:: BG Select [nobr jump-to-safe jump-from-safe]

<<set $nextButton = "Back to Main", $nextLink = "Main", $encyclopedia = "Bodyguard">>

	<<if ($Bodyguard != 0)>>
		<<set $Bodyguard = getSlave($Bodyguard.ID)>>
		<<setLocalPronouns $Bodyguard>>
		<<= SlaveFullName($Bodyguard)>>
		is serving as your bodyguard. $He will remain close to you at all times and guard your person.
	<<else>>
		You have not selected a bodyguard.
	<</if>>

	<<if $bodyguardTrains == 0>>
		Your Bodyguard ''is not allowed'' to train potential successors.

			[[Allow training|BG Select][$bodyguardTrains = 1]]

	<<else>>
		Your Bodyguard ''is allowed'' to train potential successors.

			[[Stop training|BG Select][$bodyguardTrains = 0]]

	<</if>>

	Appoint a bodyguard from your devoted slaves:

	[[None|Main][removeJob($Bodyguard, "guard you")]]

	<<print App.UI.SlaveList.facilityManagerSelection(App.Entity.facilities.armory, "Main")>>

repo_name: KnightBoulegard/fc

license: mit


code:
:: Body Modification [nobr jump-from-safe]

<<set $nextButton = "Confirm changes", $nextLink = "Slave Interact">>
<<set $AS = $activeSlave.ID>>
<<run App.Utils.setLocalPronouns(getSlave($AS))>>
<<run Enunciate(getSlave($AS))>>

<<set $encyclopedia = "The Studio">>

Body Modification Studio

	<<= SlaveFullName(getSlave($AS))>> is lying strapped down on the table in your body modification studio. $He is entirely at your mercy.

	<<if $brandApplied || $degradation || $scarApplied || $modReaction>>
		<<if getSlave($AS).fuckdoll == 0>>
			<<if canSee(getSlave($AS))>>There's a mirror on the ceiling, so $he can see<<else>>$He can't see, so <<if canHear(getSlave($AS))>>you're careful to describe<<else>>$he must, by $himself, get a feel for<</if>><</if>> $his new appearance.
		<</if>>
		<<if $brandApplied>>
			The smell of burnt flesh hangs in the air. Being branded @@.red;has hurt $his health a little.@@
			<<run healthDamage(getSlave($AS), 10)>>
			<<unset $brandApplied>>
		<</if>>
		<<if $scarApplied>>
			<<if $scarTarget.local == "entire body">>
				<<switch $scarDesign.local>>
					<<case "burn">>
						Your goal wasn't to make the distinct shape of a brand, but rather to permanently mar the skin with an open flame.
					<<case "surgical">>
						<<if $PC.skill.medicine >= 100>>
							Your medical mastery is perfect, so creating Frankenstein's monster was a deliberate work of art.
						<<elseif $PC.skill.medicine > 0>>
							Your medical skills are progressing, and the Frankenstein effect reminds you of your earliest attempts.
						<<else>>
							You really slashed away with your knife, but were careful not to allow $him to bleed out.
						<</if>>
					<<default>>
						The best way to apply scarring to the entire body is with a good old fashioned whip. $His body is a mess of crisscrossed lines<<if hasAnyNaturalLimbs(getSlave($AS))>>, and $his <<if getLimbCount(getSlave($AS), 1) > 1>>limbs twisted so violently in their restraints that they too have<<else>>only limb twists so violently in its restraints that it too has<</if>> become scarred<</if>>.
				<</switch>>
				No matter how you chose to apply it, scarring so much of $his body has @@.red; hurt $his health.@@
				<<run healthDamage(getSlave($AS), 20)>>
			<<else>>
				<<if getSlave($AS).scar[$scarTarget.local][$scarDesign.local] > 0>>
					This is not the first time $he was scarred like this.
				<</if>>
				<<switch $scarDesign.local>>
					<<case "whip">>
						Targeting a single area with a whip is not easy. You set the mood by carefully arranging candles dripping on to a whimpering <<= getSlave($AS).slaveName>>, then got $his attention with a quick
						<<if canSee(getSlave($AS))>>
							wave
						<<elseif canHear(getSlave($AS))>>
							crack
						<<else>>
							tap
						<</if>>
						of the whip. One by one, you carefully snuffed out the candles, flicking hot wax as you went. After pausing a moment, you prepared to leave your mark.
						<<if ["penis", "vagina"].includes($scarTarget.local)>>
							<<if getSlave($AS).dick > 4 && $seeDicks>>
								$His dick was large enough that it was not too difficult to hit,
							<<elseif getSlave($AS).dick > 0 && $seeDicks>>
								$His dick was a challengingly small target,
							<<else>>
								<<if getSlave($AS).clit > 0>>
									$His clit was a difficult target,
								<<else>>
									$His clit was an impossibly tiny target,
								<</if>>
							<</if>>
							but the end was never in doubt. The tip connected with $his most intimate place on the first try, and plunged $him into absolute agony.
						<<else>>
							The	end was never in doubt. A few strokes of the whip plunged $him into agony $his body will not allow $him to forget.
						<</if>>
					<<case "burn">>
						Your goal wasn't to make the distinct shape of a brand, but rather to permanently mar the <<= getSlave($AS).skin>> skin of $his $scarTarget.local with an open flame.
					<<case "surgical">>
						<<if $PC.skill.medicine >= 100>>
							Your medical mastery is perfect, so creating such a scar was a deliberate act of degradation.
						<<elseif $PC.skill.medicine > 0>>
							Your medical skills are progressing, and the sloppy scar reminds you of your earliest attempts.
						<<else>>
							You really slashed away at $scarTarget.local with your knife, but were careful not to allow $him to bleed out.
						<</if>>
					<<default>>
						You had no shortage of kinky and medical tools for applying scars. $His <<= getSlave($AS).skin>> $scarTarget.local is bleeding profusely.
				<</switch>>

				No matter how you chose to apply it, being scarred @@.red; hurt $his health a little.@@
				<<run healthDamage(getSlave($AS), 10)>>
			<</if>>
			Afterwards you seal the wounds with a white medical spray. Infection is no risk to <<= getSlave($AS).slaveName>> thanks to your curatives, but in order to form obvious scar tissue you had to keep air out and delay normal healing as long as possible.
			<<unset $scarApplied>>
		<</if>>
		<<if getSlave($AS).fetish != "mindbroken" && getSlave($AS).fuckdoll == 0>>
			<<if $degradation > 1>>
				<<if $degradation > 5>>
					<<if getSlave($AS).devotion <= 50 && getSlave($AS).trust < -50>>
						$He is appalled by the whorish spectacle you have made of $him. $He @@.gold;fears@@ you all the more for this but is so terrified of you it does not affect $his submission.
						<<set getSlave($AS).trust -= 10>>
					<<elseif getSlave($AS).devotion <= 50>>
						$He is appalled by the whorish spectacle you have made of $him. $He @@.mediumorchid;hates@@ and @@.gold;fears@@ you for this.
						<<set getSlave($AS).devotion -= 10, getSlave($AS).trust -= 10>>
					<<else>>
						$He is shocked by the whorish spectacle you have made of $him. However, $he is so submissive to your will that $he @@.hotpink;accepts@@ that the slave <<if canSee(getSlave($AS))>>in the mirror<<else>>$he pictures<</if>> is who $he is now.
						<<set getSlave($AS).devotion += 4>>
					<</if>>

				<<else>>
					<<if getSlave($AS).devotion < -20 && getSlave($AS).trust < 20>>
						$He is @@.gold;afraid@@ that $he has been permanently altered against $his will, but is also scared of your reaction to any objection and suppresses $his disgust.
						<<set getSlave($AS).trust -= 5>>
					<<elseif getSlave($AS).devotion < -20>>
						$He is @@.mediumorchid;angry@@ and @@.gold;afraid@@ that $he has been permanently altered against $his will.
						<<set getSlave($AS).devotion -= 5, getSlave($AS).trust -= 5>>
					<<else>>
						$He is saddened to have been altered against $his will. However, $he realizes that $he is a slave, so $he @@.hotpink;accepts@@ your work.
						<<set getSlave($AS).devotion += 2>>
					<</if>>
				<</if>>
				<<set $degradation = 0>>
			<</if>>
			<<if $modReaction>>
				<<print $modReaction>>
				<<unset $modReaction>>
			<</if>>
		<</if>>
	<</if>>

	/* 000-250-006 */
	<<if $seeImages == 1>>
		<<if $imageChoice == 1>>

<<= SlaveArt(getSlave($AS), 3, 0)>>

		<<else>>

<<= SlaveArt(getSlave($AS), 3, 0)>>

		<</if>>
	<</if>>
	/* 000-250-006 */

/* PIERCINGS */

<<set _piercingCount =(getSlave($AS).earPiercing + getSlave($AS).nosePiercing + getSlave($AS).eyebrowPiercing + getSlave($AS).lipsPiercing + getSlave($AS).tonguePiercing + getSlave($AS).nipplesPiercing + getSlave($AS).areolaePiercing + getSlave($AS).corsetPiercing + getSlave($AS).navelPiercing + getSlave($AS).clitPiercing + getSlave($AS).vaginaPiercing + getSlave($AS).dickPiercing + getSlave($AS).anusPiercing)>>

/*DESCRIPTIONS */

Piercings

		<<if _piercingCount == 0>>
			$His smooth <<= getSlave($AS).skin>> skin is completely unpierced.
		<</if>>

<<= App.Desc.piercing(getSlave($AS), "ear")>>

<<= App.Desc.piercing(getSlave($AS), "nose")>>

<<= App.Desc.piercing(getSlave($AS), "eyebrow")>>

<<= App.Desc.piercing(getSlave($AS), "lips")>>

<<= App.Desc.piercing(getSlave($AS), "tongue")>>

<<= App.Desc.piercing(getSlave($AS), "nipple")>>

<<= App.Desc.piercing(getSlave($AS), "areolae")>>

<<= App.Desc.piercing(getSlave($AS), "navel")>>

<<= App.Desc.piercing(getSlave($AS), "corset")>>

<<= App.Desc.piercing(getSlave($AS), "clit")>>

<<= App.Desc.piercing(getSlave($AS), "vagina")>>

<<= App.Desc.piercing(getSlave($AS), "dick")>>

<<= App.Desc.piercing(getSlave($AS), "anus")>>

<<= App.Desc.piercing(getSlave($AS), "chastity")>>

	/* Apply piercings */

		Choose piercing style:
		<<if $piercingLevel != 1>>[[Light|Body Modification][$piercingLevel = 1]]<<else>>Light<</if>>
		<<if $piercingLevel != 2>>| [[Heavy|Body Modification][$piercingLevel = 2]]<<else>>| Heavy<</if>>
		<<if $piercingLevel != 3>>| [[Smart|Body Modification][$piercingLevel = 3]]<<else>>| Smart<</if>>
		<<if $piercingLevel != 0>>| [[Remove|Body Modification][$piercingLevel = 0]]<<else>>| Remove<</if>>

		<<if $piercingLevel == 1>>
			//Lightly// pierce $his:

			<<link "Entire body">>
				<<set $modReaction = "">>
				<<if getSlave($AS).earPiercing != 1>><<set $modReaction += App.Medicine.Modification.setPiercing(getSlave($AS), "ear", 1)>><</if>>
				<<if getSlave($AS).nosePiercing != 1>><<set $modReaction += App.Medicine.Modification.setPiercing(getSlave($AS), "nose", 1)>><</if>>
				<<if getSlave($AS).eyebrowPiercing != 1>><<set $modReaction += App.Medicine.Modification.setPiercing(getSlave($AS), "eyebrow", 1)>><</if>>
				<<if getSlave($AS).lipsPiercing != 1>><<set $modReaction += App.Medicine.Modification.setPiercing(getSlave($AS), "lips", 1)>><</if>>
				<<if getSlave($AS).tonguePiercing != 1>><<set $modReaction += App.Medicine.Modification.setPiercing(getSlave($AS), "tongue", 1)>><</if>>
				<<if getSlave($AS).nipples != "fuckable">>
					<<if getSlave($AS).nipplesPiercing != 1>><<set $modReaction += App.Medicine.Modification.setPiercing(getSlave($AS), "nipples", 1)>><</if>>
				<</if>>
				<<if getSlave($AS).areolaePiercing != 1>><<set $modReaction += App.Medicine.Modification.setPiercing(getSlave($AS), "areolae", 1)>><</if>>
				<<if getSlave($AS).corsetPiercing != 1>><<set $modReaction += App.Medicine.Modification.setPiercing(getSlave($AS), "corset", 1)>><</if>>
				<<if getSlave($AS).navelPiercing != 1>><<set $modReaction += App.Medicine.Modification.setPiercing(getSlave($AS), "navel", 1)>><</if>>
				<<if (getSlave($AS).vagina != -1) || (getSlave($AS).dick != 0)>>
					<<if getSlave($AS).clitPiercing != 1>><<set $modReaction += App.Medicine.Modification.setPiercing(getSlave($AS), "clit", 1)>><</if>>
				<</if>>
				<<if (getSlave($AS).vagina != -1)>>
					<<if getSlave($AS).vaginaPiercing != 1>><<set $modReaction += App.Medicine.Modification.setPiercing(getSlave($AS), "vagina", 1)>><</if>>
				<</if>>
				<<if (getSlave($AS).dick > 0)>>
					<<if getSlave($AS).dickPiercing != 1>><<set $modReaction += App.Medicine.Modification.setPiercing(getSlave($AS), "dick", 1)>><</if>>
				<</if>>
				<<if getSlave($AS).anusPiercing != 1>><<set $modReaction += App.Medicine.Modification.setPiercing(getSlave($AS), "anus", 1)>><</if>>
				<<goto "Body Modification">>
			<</link>>

			<<if getSlave($AS).earPiercing != 1>>		| [[Ear|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "ear", 1)]]<</if>>
			<<if getSlave($AS).nosePiercing != 1>>		| [[Nose|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "nose", 1)]]<</if>>
			<<if getSlave($AS).eyebrowPiercing != 1>>	| [[Eyebrow|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "eyebrow", 1)]]<</if>>
			<<if getSlave($AS).lipsPiercing != 1>>		| [[Lips|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "lips", 1)]]<</if>>
			<<if getSlave($AS).tonguePiercing != 1>>	| [[Tongue|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "tongue", 1)]]<</if>>
			<<if getSlave($AS).nipples != "fuckable">>
				<<if getSlave($AS).nipplesPiercing != 1>>	| [[Nipples|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "nipples", 1)]]<</if>>
			<</if>>
			<<if getSlave($AS).areolaePiercing != 1>>	| [[Areolae|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "areolae", 1)]]<</if>>
			<<if getSlave($AS).corsetPiercing != 1>>	| [[Corset|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "corset", 1)]]<</if>>
			<<if getSlave($AS).navelPiercing != 1>>		| [[Navel|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "navel", 1)]]<</if>>
			<<if (getSlave($AS).vagina != -1) || (getSlave($AS).dick != 0)>>
				<<if getSlave($AS).vagina != -1>>
					<<if getSlave($AS).clitPiercing != 1>>	| [[Clit|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "clit", 1)]]<</if>>
				<<else>>
					<<if getSlave($AS).clitPiercing != 1>>	| [[Dickhead|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "clit", 1)]]<</if>>
				<</if>>
			<</if>>
			<<if (getSlave($AS).vagina != -1)>>
				<<if getSlave($AS).vaginaPiercing != 1>> | [[Vagina|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "vagina", 1)]]<</if>>
			<</if>>
			<<if (getSlave($AS).dick > 0)>>
				<<if getSlave($AS).dickPiercing != 1>>	| [[Dick|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "dick", 1)]]<</if>>
			<</if>>
			<<if getSlave($AS).anusPiercing != 1>>		| [[Anus|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "anus", 1)]]<</if>>
		<<elseif $piercingLevel == 2>>
			''Heavily'' pierce $his:

			<<link "Entire body">>
				<<set $modReaction = "">>
				<<if getSlave($AS).earPiercing != 2>><<set $modReaction += App.Medicine.Modification.setPiercing(getSlave($AS), "ear", 2), $degradation += 1>><</if>>
				<<if getSlave($AS).nosePiercing != 2>><<set $modReaction += App.Medicine.Modification.setPiercing(getSlave($AS), "nose", 2), $degradation += 1>><</if>>
				<<if getSlave($AS).eyebrowPiercing != 2>><<set $modReaction += App.Medicine.Modification.setPiercing(getSlave($AS), "eyebrow", 2), $degradation += 1>><</if>>
				<<if getSlave($AS).lipsPiercing != 2>><<set $modReaction += App.Medicine.Modification.setPiercing(getSlave($AS), "lips", 2), $degradation += 1>><</if>>
				<<if getSlave($AS).tonguePiercing != 2>><<set $modReaction += App.Medicine.Modification.setPiercing(getSlave($AS), "tongue", 2), $degradation += 1>><</if>>
				<<if getSlave($AS).nipples != "fuckable">>
					<<if getSlave($AS).nipplesPiercing != 2>><<set $modReaction += App.Medicine.Modification.setPiercing(getSlave($AS), "nipples", 2), $degradation += 1>><</if>>
				<</if>>
				<<if getSlave($AS).areolaePiercing != 2>><<set $modReaction += App.Medicine.Modification.setPiercing(getSlave($AS), "areolae", 2), $degradation += 1>><</if>>
				<<if getSlave($AS).corsetPiercing != 2>><<set $modReaction += App.Medicine.Modification.setPiercing(getSlave($AS), "corset", 2), $degradation += 1>><</if>>
				<<if getSlave($AS).navelPiercing != 2>><<set $modReaction += App.Medicine.Modification.setPiercing(getSlave($AS), "navel", 2), $degradation += 1>><</if>>
				<<if (getSlave($AS).vagina != -1) || (getSlave($AS).dick != 0)>>
					<<if getSlave($AS).clitPiercing != 2>><<set $modReaction += App.Medicine.Modification.setPiercing(getSlave($AS), "clit", 2), $degradation += 1>><</if>>
				<</if>>
				<<if (getSlave($AS).vagina != -1)>>
					<<if getSlave($AS).vaginaPiercing != 2>><<set $modReaction += App.Medicine.Modification.setPiercing(getSlave($AS), "vagina", 2), $degradation += 1>><</if>>
				<</if>>
				<<if (getSlave($AS).dick > 0)>>
					<<if getSlave($AS).dickPiercing != 2>><<set $modReaction += App.Medicine.Modification.setPiercing(getSlave($AS), "dick", 2), $degradation += 1>><</if>>
				<</if>>
				<<if getSlave($AS).anusPiercing != 2>><<set $modReaction += App.Medicine.Modification.setPiercing(getSlave($AS), "anus", 2), $degradation += 1>><</if>>
				<<goto "Body Modification">>
			<</link>>

			<<if getSlave($AS).earPiercing != 2>>		| [[Ear|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "ear", 2),$degradation += 1]]<</if>>
			<<if getSlave($AS).nosePiercing != 2>>		| [[Nose|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "nose", 2),$degradation += 1]]<</if>>
			<<if getSlave($AS).eyebrowPiercing != 2>>	| [[Eyebrow|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "eyebrow", 2),$degradation += 1]]<</if>>
			<<if getSlave($AS).lipsPiercing != 2>>		| [[Lips|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "lips", 2),$degradation += 1]]<</if>>
			<<if getSlave($AS).tonguePiercing != 2>>	| [[Tongue|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "tongue", 2),$degradation += 1]]<</if>>
			<<if getSlave($AS).nipples != "fuckable">>
				<<if getSlave($AS).nipplesPiercing != 2>>	| [[Nipples|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "nipples", 2),$degradation += 1]]<</if>>
			<</if>>
			<<if getSlave($AS).areolaePiercing != 2>>	| [[Areolae|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "areolae", 2),$degradation += 1]]<</if>>
			<<if getSlave($AS).corsetPiercing != 2>>	| [[Corset|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "corset", 2),$degradation += 1]]<</if>>
			<<if getSlave($AS).navelPiercing != 2>>		| [[Navel|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "navel", 2),$degradation += 1]]<</if>>
			<<if (getSlave($AS).vagina != -1) || (getSlave($AS).dick != 0)>>
				<<if getSlave($AS).vagina != -1>>
					<<if getSlave($AS).clitPiercing != 2>> | [[Clit|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "clit", 2),$degradation += 1]]<</if>>
				<<else>>
					<<if getSlave($AS).clitPiercing != 2>> | [[Dickhead|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "clit", 2),$degradation += 1]]<</if>>
				<</if>>
			<</if>>
			<<if (getSlave($AS).vagina != -1)>>
				<<if getSlave($AS).vaginaPiercing != 2>> | [[Vagina|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "vagina", 2),$degradation += 1]]<</if>>
			<</if>>
			<<if (getSlave($AS).dick > 0)>>
				<<if getSlave($AS).dickPiercing != 2>>	| [[Dick|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "dick", 2),$degradation += 1]]<</if>>
			<</if>>
			<<if getSlave($AS).anusPiercing != 2>>		| [[Anus|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "anus", 2),$degradation += 1]]<</if>>
		<<elseif $piercingLevel == 3>>
			<<if (getSlave($AS).vagina != -1) || (getSlave($AS).dick != 0)>>
				<<if getSlave($AS).clitPiercing != 3>>
					Give $him a [[smart piercing?|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "clit", 3),getSlave($AS).clitSetting = "all",$degradation += 1]] //Costs <<print cashFormat($SPcost)>>, unlocks options to mold sexuality//
				<<else>>
					$He already has a smart piercing!
				<</if>>
			<</if>>
		<<elseif $piercingLevel == 0>>
			Remove piercings from:

			/* no dick/vagina checks in 'remove' so stealth piercings can be cleaned. Check only for piercings. */
			<<link "Everywhere">>
				<<set $modReaction = "">>
				<<if getSlave($AS).earPiercing > 0>><<set $modReaction += App.Medicine.Modification.setPiercing(getSlave($AS), "ear", 0)>><</if>>
				<<if getSlave($AS).nosePiercing > 0>><<set $modReaction += App.Medicine.Modification.setPiercing(getSlave($AS), "nose", 0)>><</if>>
				<<if getSlave($AS).eyebrowPiercing > 0>><<set $modReaction += App.Medicine.Modification.setPiercing(getSlave($AS), "eyebrow", 0)>><</if>>
				<<if getSlave($AS).lipsPiercing > 0>><<set $modReaction += App.Medicine.Modification.setPiercing(getSlave($AS), "lips", 0)>><</if>>
				<<if getSlave($AS).tonguePiercing > 0>><<set $modReaction += App.Medicine.Modification.setPiercing(getSlave($AS), "tongue", 0)>><</if>>
				<<if getSlave($AS).nipplesPiercing > 0>><<set $modReaction += App.Medicine.Modification.setPiercing(getSlave($AS), "nipples", 0)>><</if>>
				<<if getSlave($AS).areolaePiercing > 0>><<set $modReaction += App.Medicine.Modification.setPiercing(getSlave($AS), "areolae", 0)>><</if>>
				<<if getSlave($AS).corsetPiercing > 0>><<set $modReaction += App.Medicine.Modification.setPiercing(getSlave($AS), "corset", 0)>><</if>>
				<<if getSlave($AS).navelPiercing > 0>><<set $modReaction += App.Medicine.Modification.setPiercing(getSlave($AS), "navel", 0)>><</if>>
				<<if getSlave($AS).clitPiercing > 0>><<set $modReaction += App.Medicine.Modification.setPiercing(getSlave($AS), "clit", 0)>><</if>>
				<<if getSlave($AS).vaginaPiercing > 0>><<set $modReaction += App.Medicine.Modification.setPiercing(getSlave($AS), "vagina", 0)>><</if>>
				<<if getSlave($AS).dickPiercing > 0>><<set $modReaction += App.Medicine.Modification.setPiercing(getSlave($AS), "dick", 0)>><</if>>
				<<if getSlave($AS).anusPiercing > 0>><<set $modReaction += App.Medicine.Modification.setPiercing(getSlave($AS), "anus", 0)>><</if>>
				<<goto "Body Modification">>
			<</link>>

			<<if getSlave($AS).earPiercing > 0>>		| [[Ear|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "ear", 0)]]<</if>>
			<<if getSlave($AS).nosePiercing > 0>>		| [[Nose|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "nose", 0)]]<</if>>
			<<if getSlave($AS).eyebrowPiercing > 0>>	| [[Eyebrow|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "eyebrow", 0)]]<</if>>
			<<if getSlave($AS).lipsPiercing > 0>>		| [[Lips|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "lips", 0)]]<</if>>
			<<if getSlave($AS).tonguePiercing > 0>>		| [[Tongue|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "tongue", 0)]]<</if>>
			<<if getSlave($AS).nipplesPiercing > 0>>	| [[Nipples|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "nipples", 0)]]<</if>>
			<<if getSlave($AS).areolaePiercing > 0>>	| [[Areolae|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "areolae", 0)]]<</if>>
			<<if getSlave($AS).corsetPiercing > 0>>		| [[Corset|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "corset", 0)]]<</if>>
			<<if getSlave($AS).navelPiercing > 0>>		| [[Navel|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "navel", 0)]]<</if>>
			<<if getSlave($AS).vagina != -1>>
				<<if getSlave($AS).clitPiercing > 0>>	| [[Clit|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "clit", 0)]]<</if>>
			<<else>>
				<<if getSlave($AS).clitPiercing > 0>>	| [[Dickhead|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "clit", 0)]]<</if>>
			<</if>>
			<<if getSlave($AS).vaginaPiercing > 0>>		| [[Vagina|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "vagina", 0)]]<</if>>
			<<if getSlave($AS).dickPiercing > 0>>		| [[Dick|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "dick", 0)]]<</if>>
			<<if getSlave($AS).anusPiercing > 0>>		| [[Anus|Body Modification][$modReaction = App.Medicine.Modification.setPiercing(getSlave($AS), "anus", 0)]]<</if>>
		<</if>>

 /* indent */

/* TATTOOS */

Tattoos

		<<if getSlave($AS).shouldersTat != 0>>
<<= App.Desc.tattoo(getSlave($AS), "shoulder")>>
<<set _hasTat = 1>><</if>>
		<<if getSlave($AS).lipsTat != 0>>
<<= App.Desc.tattoo(getSlave($AS), "lips")>>
<<set _hasTat = 1>><</if>>
		<<if getSlave($AS).boobsTat != 0>>
<<= App.Desc.tattoo(getSlave($AS), "breast")>>
<<set _hasTat = 1>><</if>>
		<<if getSlave($AS).armsTat != 0 && hasAnyNaturalArms(getSlave($AS))>>
<<= App.Desc.tattoo(getSlave($AS), "upper arm")>>
<<set _hasTat = 1>><</if>>
		<<if getSlave($AS).backTat != 0>>
<<= App.Desc.tattoo(getSlave($AS), "back")>>
<<set _hasTat = 1>><</if>>
		<<if getSlave($AS).stampTat != 0>>
<<= App.Desc.tattoo(getSlave($AS), "lower back")>>
<<set _hasTat = 1>><</if>>
		<<if getSlave($AS).buttTat != 0>>
<<= App.Desc.tattoo(getSlave($AS), "buttock")>>
<<set _hasTat = 1>><</if>>
		<<if getSlave($AS).vaginaTat != 0>>
<<= App.Desc.tattoo(getSlave($AS), "vagina")>>
<<set _hasTat = 1>><</if>>
		<<if getSlave($AS).dickTat != 0 && getSlave($AS).dick > 0>>
<<= App.Desc.tattoo(getSlave($AS), "dick")>>
<<set _hasTat = 1>><</if>>
		<<if getSlave($AS).anusTat != 0>>
<<= App.Desc.tattoo(getSlave($AS), "anus")>>
<<set _hasTat = 1>><</if>>
		<<if getSlave($AS).legsTat != 0 && hasAnyNaturalLegs(getSlave($AS))>>
<<= App.Desc.tattoo(getSlave($AS), "thigh")>>
<<set _hasTat = 1>><</if>>

		Choose a tattoo style:
		/* if/else is here so a "highlighted" option is never a link. */
		<<if $tattooChoice != "tribal patterns">>[[Tribal patterns|Body Modification][$tattooChoice = "tribal patterns"]]<<else>>Tribal patterns<</if>>
		<<if $tattooChoice != "flowers">> | [[Flowers|Body Modification][$tattooChoice = "flowers"]]<<else>>| Flowers<</if>>
		<<if $tattooChoice != "counting">> | [[Counting|Body Modification][$tattooChoice = "counting"]]<<else>>| Counting<</if>>
		<<if $tattooChoice != "advertisements">> | [[Advertisements|Body Modification][$tattooChoice = "advertisements"]]<<else>>| Advertisements<</if>>
		<<if $tattooChoice != "rude words">> | [[Rude words|Body Modification][$tattooChoice = "rude words"]]<<else>>| Rude words<</if>>
		<<if $tattooChoice != "degradation">> | [[Degradation|Body Modification][$tattooChoice = "degradation"]]<<else>>| Degradation<</if>>
		<<if $tattooChoice != "Asian art">> | [[Asian art|Body Modification][$tattooChoice = "Asian art"]] <<else>>| Asian art<</if>>
		<<if $tattooChoice != "scenes">> | [[Scenes|Body Modification][$tattooChoice = "scenes"]]<<else>>| Scenes<</if>>
		<<if $tattooChoice != "bovine patterns">> | [[Bovine|Body Modification][$tattooChoice = "bovine patterns"]]<<else>>| Bovine<</if>>
		<<if $tattooChoice != "permanent makeup">> | [[Permanent makeup|Body Modification][$tattooChoice = "permanent makeup"]]<<else>>| Permanent makeup<</if>>
		<<if $tattooChoice != "sacrilege">> | [[Sacrilege|Body Modification][$tattooChoice = "sacrilege"]]<<else>>| Sacrilege<</if>>
		<<if $tattooChoice != "sacrament">> | [[Sacrament|Body Modification][$tattooChoice = "sacrament"]]<<else>>| Sacrament<</if>>
		<<if $tattooChoice != "possessive">> | [[Possessive|Body Modification][$tattooChoice = "possessive"]]<<else>>| Possessive<</if>>
		<<if $tattooChoice != "paternalist">> | [[Paternalist|Body Modification][$tattooChoice = "paternalist"]]<<else>>| Paternalist<</if>>

		<<if getSlave($AS).anusTat == 0>>
			<<if $tattooChoice != "bleached">>| [[Bleach|Body Modification][$tattooChoice = "bleached"]]<<else>>| Bleach<</if>>
		<</if>>

		<<if _hasTat == 1>>
			<<if $tattooChoice !== 0>> | //[[Remove a tattoo|Body Modification][$tattooChoice = 0]]//<<else>>| Remove a tattoo<</if>>
		<</if>>

		<<if def $tattooChoice>>
			<<if $tattooChoice == 0>>
				Clean the ink off of $him:
			<<elseif $tattooChoice == "counting">>
				Add tallies of $his sexual exploits to $him:
			<<elseif $tattooChoice == "bleached">>
				Bleach $his:
			<<else>>
				Add $tattooChoice to $his:
			<</if>>

			<<if ($tattooChoice != "bleached") && ($tattooChoice != "permanent makeup")>>
				<<link "Entire body">>
					<<set _degradationTemp = 0, $modReaction = "">>
					<<if getSlave($AS).boobsTat != $tattooChoice>>
						<<set $modReaction += App.Medicine.Modification.setTattoo(getSlave($AS), "boobs", $tattooChoice)>>
						<<set _degradationTemp += 1>>
					<</if>>

					<<if getSlave($AS).buttTat != $tattooChoice>>
						<<set $modReaction += App.Medicine.Modification.setTattoo(getSlave($AS), "butt", $tattooChoice)>>
						<<set _degradationTemp += 1>>
					<</if>>

					<<if getSlave($AS).vaginaTat != $tattooChoice>>
						<<set $modReaction += App.Medicine.Modification.setTattoo(getSlave($AS), "vagina", $tattooChoice)>>
						<<set _degradationTemp += 1>>
					<</if>>

					<<if getSlave($AS).dick > 0>>
						<<if getSlave($AS).dickTat != $tattooChoice && $tattooChoice != "scenes">>
							<<set $modReaction += App.Medicine.Modification.setTattoo(getSlave($AS), "dick", $tattooChoice)>>
							<<set _degradationTemp += 1>>
						<</if>>
					<</if>>

					<<if getSlave($AS).lipsTat != $tattooChoice>>
						<<if $tattooChoice == "scenes">>
							<<set $modReaction += App.Medicine.Modification.setTattoo(getSlave($AS), "lips", "permanent makeup")>>
						<<else>>
							<<set $modReaction += App.Medicine.Modification.setTattoo(getSlave($AS), "lips", $tattooChoice)>>
						<</if>>
						<<set _degradationTemp += 1>>
					<</if>>

					<<if ($tattooChoice == "Asian art" || $tattooChoice == "scenes") && getSlave($AS).anusTat == "bleached">>
						/* leave existing bleached anus alone */
					<<elseif getSlave($AS).anusTat != $tattooChoice>>
						<<set $modReaction += App.Medicine.Modification.setTattoo(getSlave($AS), "anus", $tattooChoice)>>
						<<set _degradationTemp += 1>>
					<</if>>

					<<if getSlave($AS).shouldersTat != $tattooChoice>>
						<<set $modReaction += App.Medicine.Modification.setTattoo(getSlave($AS), "shoulders", $tattooChoice)>>
						<<set _degradationTemp += 1>>
					<</if>>

					<<if getSlave($AS).backTat != $tattooChoice>>
						<<set $modReaction += App.Medicine.Modification.setTattoo(getSlave($AS), "back", $tattooChoice)>>
						<<set _degradationTemp += 1>>
					<</if>>

					<<if hasAnyNaturalArms(getSlave($AS))>>
						<<if getSlave($AS).armsTat != $tattooChoice>>
							<<set $modReaction += App.Medicine.Modification.setTattoo(getSlave($AS), "arms", $tattooChoice)>>
							<<set _degradationTemp += 1>>
						<</if>>
					<</if>>
					<<if hasAnyNaturalLegs(getSlave($AS))>>
						<<if getSlave($AS).legsTat != $tattooChoice>>
							<<set $modReaction += App.Medicine.Modification.setTattoo(getSlave($AS), "legs", $tattooChoice)>>
							<<set _degradationTemp += 1>>
						<</if>>
					<</if>>

					<<if getSlave($AS).stampTat != $tattooChoice>>
						<<set $modReaction += App.Medicine.Modification.setTattoo(getSlave($AS), "stamp", $tattooChoice)>>
						<<set _degradationTemp += 1>>
					<</if>>

					<<if !["flowers", "paternalist", "tribal patterns", 0].includes($tattooChoice)>>
						<<set $degradation += _degradationTemp>>
					<</if>>

					<<goto "Body Modification">>
				<</link>>
			<</if>>

			<<if $tattooChoice == "permanent makeup">>
				[[Face|Body Modification][$modReaction = App.Medicine.Modification.setTattoo(getSlave($AS), "lips", $tattooChoice)]]
			<<elseif $tattooChoice == "bleached">>
				[[Asshole|Body Modification][$modReaction = App.Medicine.Modification.setTattoo(getSlave($AS), "anus", $tattooChoice)]]
			<<else>>
				<<if getSlave($AS).shouldersTat != $tattooChoice>> | [[Shoulders|Body Modification][$modReaction = App.Medicine.Modification.setTattoo(getSlave($AS), "shoulders", $tattooChoice)]]<</if>>
				<<if $tattooChoice != "scenes">>
					<<if getSlave($AS).lipsTat != $tattooChoice>> | [[Face|Body Modification][$modReaction = App.Medicine.Modification.setTattoo(getSlave($AS), "lips", $tattooChoice)]]<</if>>
				<</if>>
				<<if getSlave($AS).boobsTat != $tattooChoice>> | [[Boobs|Body Modification][$modReaction = App.Medicine.Modification.setTattoo(getSlave($AS), "boobs", $tattooChoice)]]<</if>>
				<<if hasAnyNaturalArms(getSlave($AS))>>
					<<if getSlave($AS).armsTat != $tattooChoice>> | [[Arms|Body Modification][$modReaction = App.Medicine.Modification.setTattoo(getSlave($AS), "arms", $tattooChoice)]]<</if>>
				<</if>>
				<<if getSlave($AS).backTat != $tattooChoice>> | [[Upper back|Body Modification][$modReaction = App.Medicine.Modification.setTattoo(getSlave($AS), "back", $tattooChoice)]]<</if>>
				<<if getSlave($AS).stampTat != $tattooChoice>> | [[Lower back|Body Modification][$modReaction = App.Medicine.Modification.setTattoo(getSlave($AS), "stamp", $tattooChoice)]]<</if>>
				<<if getSlave($AS).buttTat != $tattooChoice>> | [[Buttock|Body Modification][$modReaction = App.Medicine.Modification.setTattoo(getSlave($AS), "butt", $tattooChoice)]]<</if>>
				<<if getSlave($AS).vaginaTat != $tattooChoice>> | [[Vagina|Body Modification][$modReaction = App.Medicine.Modification.setTattoo(getSlave($AS), "vagina", $tattooChoice)]]<</if>>
				<<if getSlave($AS).dick > 0 && $tattooChoice != "scenes">>
					<<if getSlave($AS).dickTat != $tattooChoice>> | [[Dick|Body Modification][$modReaction = App.Medicine.Modification.setTattoo(getSlave($AS), "dick", $tattooChoice)]]<</if>>
				<</if>>
				<<if ($tattooChoice != "Asian art") && ($tattooChoice != "scenes")>>
					<<if getSlave($AS).anusTat != $tattooChoice>> | [[Anus|Body Modification][$modReaction = App.Medicine.Modification.setTattoo(getSlave($AS), "anus", $tattooChoice)]]<</if>>
				<</if>>
				<<if hasAnyNaturalLegs(getSlave($AS))>>
					<<if getSlave($AS).legsTat != $tattooChoice>> | [[Legs|Body Modification][$modReaction = App.Medicine.Modification.setTattoo(getSlave($AS), "legs", $tattooChoice)]]<</if>>
				<</if>>
			<</if>>
		<</if>>

		<<if getSlave($AS).belly >= 10000 && getSlave($AS).bellyPreg < 450000 && getSlave($AS).bellyFluid < 5000>>
			<<if getSlave($AS).bellyTat == 0>>
				$He has no navel tattoos.
			<<else>>
				$His navel is tattooed with <<= getSlave($AS).bellyTat>>.
			<</if>>
			<<if getSlave($AS).bellyTat == 0>>

				[[Heart|Body Modification][$modReaction = App.Medicine.Modification.setTattoo(getSlave($AS), "belly", "a heart")]]
				| [[Star|Body Modification][$modReaction = App.Medicine.Modification.setTattoo(getSlave($AS), "belly", "a star")]]
				| [[Butterfly|Body Modification][$modReaction = App.Medicine.Modification.setTattoo(getSlave($AS), "belly", "a butterfly")]]

			<</if>>
			<<if getSlave($AS).bellyTat != 0>>
				//[[Remove tattoos|Body Modification][$modReaction = App.Medicine.Modification.setTattoo(getSlave($AS), "belly", 0)]]//
			<</if>>
		<<elseif getSlave($AS).bellyPreg >= 450000>>
			$His middle is large and taut enough to be a suitable canvas for a navel focused tattoo, but $his brood is too active to permit the needle to do its work.
		<<elseif getSlave($AS).bellyFluid >= 10000>>
			$His middle is large and taut enough to be a suitable canvas for a navel focused tattoo, but the pressure applied to $his stomach will likely force $him to release its contents.
		<<else>>
			$His middle isn't large enough to be a suitable canvas for a navel focused tattoo.
		<</if>>

		<<if getSlave($AS).birthsTat > 0>>
			<<if getSlave($AS).birthsTat > 1>>
				$He has a series of <<= num(getSlave($AS).birthsTat)>> baby-shaped tattoos adorning $his stomach; one for each successful pregnancy<<if getSlave($AS).pregKnown == 1>> and a temporary one for $his current pregnancy<</if>>.
			<<else>>
				$He has a single baby-shaped tattoo<<if getSlave($AS).pregKnown == 1>>, and one temporary one,<</if>> adorning $his stomach.
			<</if>>
			//[[Remove tattoos|Body Modification][getSlave($AS).birthsTat = -1, cashX(forceNeg($surgeryCost), "slaveSurgery", getSlave($AS))]]//
		<<elseif getSlave($AS).birthsTat == 0>>
			<<if getSlave($AS).pregKnown == 1>>
				$He has a single baby-shaped temporary tattoo adorning $his stomach.
				//[[Remove it|Body Modification][getSlave($AS).birthsTat = -1]]//
				<<if getSlave($AS).abortionTat > -1>> //This will only remove birth tracking//<</if>>
			<<else>>
				$He is scheduled to receive a tattoo each time $he gives birth.
				//[[Cancel|Body Modification][getSlave($AS).birthsTat = -1]]//
			<</if>>
		<<else>>
			Have $him receive a tattoo each time $he gives birth.
			//[[Begin keeping track|Body Modification][getSlave($AS).birthsTat = 0]]//
		<</if>>

		<<if getSlave($AS).abortionTat > 0>>
			<<if getSlave($AS).abortionTat > 1>>
				$He has a series of <<= num(getSlave($AS).abortionTat)>> crossed out baby-shaped tattoos<<if getSlave($AS).pregKnown == 1>>, and one uncrossed one,<</if>> adorning $his stomach.
			<<else>>
				$He has a single crossed out baby-shaped tattoo<<if getSlave($AS).pregKnown == 1>>, and one uncrossed one,<</if>> adorning $his stomach.
			<</if>>
			//[[Remove tattoos|Body Modification][getSlave($AS).abortionTat = -1, cashX(forceNeg($surgeryCost), "slaveSurgery", getSlave($AS))]]//
		<<elseif getSlave($AS).abortionTat == 0>>
			<<if getSlave($AS).pregKnown == 1>>
				$He has a single baby-shaped temporary tattoo adorning $his stomach.
				//[[Remove it|Body Modification][getSlave($AS).abortionTat = -1]]//
				<<if getSlave($AS).birthsTat > -1>> //This will only remove abortion tracking//<</if>>
			<<else>>
				$He is scheduled to receive a tattoo each time $he gets an abortion or miscarries.
				//[[Cancel|Body Modification][getSlave($AS).abortionTat = -1]]//
			<</if>>
		<<else>>
			Have $him receive a tattoo for each abortion or miscarriage $he has.
			//[[Begin keeping track|Body Modification][getSlave($AS).abortionTat = 0]]//
		<</if>>

/* indent */

Custom Tattoos

	//Use complete sentences, make a description of it//

		<<if getSlave($AS).lipsTat == 0>>

Give $him a custom face tattoo:

<<textbox "$slaves[$slaveIndices[$AS]].lipsTat" $slaves[$slaveIndices[$AS]].lipsTat "Slave Interact">>

		<</if>>

		<<if getSlave($AS).shouldersTat == 0>>

Give $him a custom shoulder tattoo:

<<textbox "$slaves[$slaveIndices[$AS]].shouldersTat" $slaves[$slaveIndices[$AS]].shouldersTat "Slave Interact">>

		<</if>>

		<<if getSlave($AS).armsTat == 0 && hasAnyNaturalArms(getSlave($AS))>>

Give $him a custom arm tattoo:

<<textbox "$slaves[$slaveIndices[$AS]].armsTat" $slaves[$slaveIndices[$AS]].armsTat "Slave Interact">>

		<</if>>

		<<if getSlave($AS).boobsTat == 0>>

Give $him a custom tit tattoo:

<<textbox "$slaves[$slaveIndices[$AS]].boobsTat" $slaves[$slaveIndices[$AS]].boobsTat "Slave Interact">>

		<</if>>

		<<if getSlave($AS).backTat == 0>>

Give $him a custom back tattoo:

<<textbox "$slaves[$slaveIndices[$AS]].backTat" $slaves[$slaveIndices[$AS]].backTat "Slave Interact">>

		<</if>>

		<<if getSlave($AS).stampTat == 0>>

Give $him a custom tramp stamp (lower back tattoo):

<<textbox "$slaves[$slaveIndices[$AS]].stampTat" $slaves[$slaveIndices[$AS]].stampTat "Slave Interact">>

		<</if>>

		<<if getSlave($AS).buttTat == 0>>

Give $him a custom butt tattoo:

<<textbox "$slaves[$slaveIndices[$AS]].buttTat" $slaves[$slaveIndices[$AS]].buttTat "Slave Interact">>

		<</if>>

		<<if getSlave($AS).dickTat == 0 && getSlave($AS).dick != 0>>

Give $him a custom dick tattoo:

<<textbox "$slaves[$slaveIndices[$AS]].dickTat" $slaves[$slaveIndices[$AS]].dickTat "Slave Interact">>

		<</if>>

		<<if getSlave($AS).vaginaTat == 0>>

Give $him a custom pubic tattoo:

<<textbox "$slaves[$slaveIndices[$AS]].vaginaTat" $slaves[$slaveIndices[$AS]].vaginaTat "Slave Interact">>

		<</if>>

		<<if getSlave($AS).anusTat == 0>>

Give $him a custom anus tattoo:

<<textbox "$slaves[$slaveIndices[$AS]].anusTat" $slaves[$slaveIndices[$AS]].anusTat "Slave Interact">>

		<</if>>

		<<if getSlave($AS).legsTat == 0 && hasAnyNaturalLegs(getSlave($AS))>>

Give $him a custom leg tattoo:

<<textbox "$slaves[$slaveIndices[$AS]].legsTat" $slaves[$slaveIndices[$AS]].legsTat "Slave Interact">>

		<</if>>

 /* grid */

		<<if (getSlave($AS).custom.tattoo == "")>>
			Give $him a custom tattoo: <<textbox "$slaves[$slaveIndices[$AS]].custom.tattoo" $slaves[$slaveIndices[$AS]].custom.tattoo "Slave Interact">>
		<<else>>
			$He <<if _hasTat == 1>>also<</if>> has a custom tattoo: <<= getSlave($AS).custom.tattoo>>
			Change it here: <<textbox "$slaves[$slaveIndices[$AS]].custom.tattoo" $slaves[$slaveIndices[$AS]].custom.tattoo "Slave Interact">>
		<</if>>
		<<if getSlave($AS).custom.tattoo != "">>
			//[[Remove custom tattoo|Body Modification][getSlave($AS).custom.tattoo = "",cashX(forceNeg($surgeryCost), "slaveSurgery", getSlave($AS))]]//
		<</if>>

 /* indent */

/* Branding */

Branding

<<for _brandName, _brand range getSlave($AS).brand>>

	$His _brandName is marked with _brand<<if _brand == $brandDesign.official>>, your [[official brand|Universal Rules]]<</if>>:
	<<capture _brandName>>
		<<link "Remove Brand">>
			<<set $brandApplied = 0>>
			<<run delete getSlave($AS).brand[_brandName]>>
			<<run cashX(forceNeg($surgeryCost), "slaveSurgery", getSlave($AS))>>
			<<set $degradation -= 10>>
			<<goto "Body Modification">>
		<</link>>
	<</capture>>

<</for>>
<<if (jQuery.isEmptyObject(getSlave($AS).brand))>>

	$His skin is unmarked.

<</if>>

<<if !(Object.values(getSlave($AS).brand).includes($brandDesign.official))>>

	$He lacks your [[official brand|Universal Rules]], "$brandDesign.official."

<</if>>

Use ''$brandDesign.local'' or choose another brand:
[[Your slaving emblem|Body Modification][$brandDesign.local = "your personal symbol"]]
| [[Your initials|Body Modification][$brandDesign.local = "your initials"]]

[[SLUT|Body Modification][$brandDesign.local = "SLUT"]]
| [[WHORE|Body Modification][$brandDesign.local = "WHORE"]]
| [[SLAVE|Body Modification][$brandDesign.local = "SLAVE"]]
| [[COW|Body Modification][$brandDesign.local = "COW"]]
| [[MEAT|Body Modification][$brandDesign.local = "MEAT"]]
| [[CUMDUMP|Body Modification][$brandDesign.local = "CUMDUMP"]]
| [[LOVER|Body Modification][$brandDesign.local = "LOVER"]]

[[Pussy symbol|Body Modification][$brandDesign.local = "a pussy symbol"]]
| [[Anus symbol|Body Modification][$brandDesign.local = "an anus symbol"]]
| [[Penis symbol|Body Modification][$brandDesign.local = "a penis symbol"]]

[[Lady|Body Modification][$brandDesign.local = "a lady silhouette"]]
| [[Princess|Body Modification][$brandDesign.local = "a princess silhouette"]]
| [[Queen|Body Modification][$brandDesign.local = "a queen silhouette"]]
| [[Angel|Body Modification][$brandDesign.local = "an angel silhouette"]]
| [[Devil|Body Modification][$brandDesign.local = "a devil silhouette"]]
<<if ($arcologies[0].FSSupremacist != "unset") && (getSlave($AS).race != $arcologies[0].FSSupremacistRace)>>
	| //FS// [[Racial Slur|Body Modification][$brandDesign.local = "a racial slur"]]
<</if>>
<<if ($arcologies[0].FSSubjugationist != "unset") && (getSlave($AS).race == $arcologies[0].FSSubjugationistRace)>>
	| //FS// [[Racial Slur|Body Modification][$brandDesign.local = "a racial slur"]]
<</if>>
<<if ($arcologies[0].FSIntellectualDependency != "unset")>>
	| //FS// [[Scores|Body Modification][$brandDesign.local = "how much sex $he needs per day"]]
<</if>>
<<if ($arcologies[0].FSSlaveProfessionalism != "unset")>>
	| //FS// [[Scores|Body Modification][$brandDesign.local = "$his average slave aptitude test scores"]]
<</if>>
<<if ($arcologies[0].FSRepopulationFocus != "unset")>>
	| //FS// [[Birth Count|Body Modification][$brandDesign.local = "the number of children $he has birthed"]]
<</if>>
<<if ($arcologies[0].FSGenderRadicalist != "unset") || ($arcologies[0].FSGenderFundamentalist != "unset")>>
	| //FS// [[Gender Symbol|Body Modification][$brandDesign.local = "a gender symbol"]]
<</if>>
<<if ($arcologies[0].FSPaternalist != "unset")>>
	| //FS// [[Personal Symbol|Body Modification][$brandDesign.local = "$his own personal symbol"]]
<</if>>
<<if ($arcologies[0].FSDegradationist != "unset")>>
	| //FS// [[Chain Symbol|Body Modification][$brandDesign.local = "a chain symbol"]]
<</if>>
<<if ($arcologies[0].FSBodyPurist != "unset")>>
	| //FS// [[Vitruvian Man|Body Modification][$brandDesign.local = "a Vitruvian man"]]
<</if>>
<<if ($arcologies[0].FSTransformationFetishist != "unset")>>
	| //FS// [[Scalpel|Body Modification][$brandDesign.local = "a scalpel"]]
<</if>>
<<if ($arcologies[0].FSYouthPreferentialist != "unset")>>
	| //FS// [[Virginity Status|Body Modification][$brandDesign.local = "$his virginity status"]]
<</if>>
<<if ($arcologies[0].FSMaturityPreferentialist != "unset")>>
	| //FS// [[Sexual Skill Info|Body Modification][$brandDesign.local = "$his sexual skills"]]
<</if>>
<<if ($arcologies[0].FSPetiteAdmiration != "unset") || ($arcologies[0].FSStatuesqueGlorification != "unset")>>
	| //FS// [[Current height|Body Modification][$brandDesign.local = "$his current height"]]
<</if>>
<<if ($arcologies[0].FSSlimnessEnthusiast != "unset")>>
	| //FS// [[Breast Floor|Body Modification][$brandDesign.local = "$his absolute minimum breast size"]]
<</if>>
<<if ($arcologies[0].FSAssetExpansionist != "unset")>>
	| //FS// [[Breast Ceiling|Body Modification][$brandDesign.local = "$his absolute maximum breast size"]]
<</if>>
<<if ($arcologies[0].FSHedonisticDecadence != "unset")>>
	| //FS// [[Weight Record|Body Modification][$brandDesign.local = "$his highest weigh-in"]]
<</if>>
<<if ($arcologies[0].FSHedonisticDecadence != "unset") && $PC.refreshmentType == 2>>
	| //FS// [[Favorite Food|Body Modification][$brandDesign.local = "a big helping of "+$PC.refreshment]]
<</if>>
<<if ($arcologies[0].FSPastoralist != "unset")>>
	| //FS// [[Product Quality|Body Modification][$brandDesign.local = "$his body product quality"]]
<</if>>
<<if ($arcologies[0].FSPhysicalIdealist != "unset")>>
	| //FS// [[Deadlift Info|Body Modification][$brandDesign.local = "$his deadlift record"]]
<</if>>
<<if ($arcologies[0].FSChattelReligionist != "unset")>>
	| //FS// [[Religious Symbol|Body Modification][$brandDesign.local = "a religious symbol"]]
<</if>>
<<if ($arcologies[0].FSRomanRevivalist != "unset")>>
	| //FS// [[Republican Crest|Body Modification][$brandDesign.local = "the crest of your Republic"]]
<</if>>
<<if ($arcologies[0].FSAztecRevivalist != "unset")>>
	| //FS// [[Seven Serpents|Body Modification][$brandDesign.local = "the symbol of the Aztec gods"]]
<</if>>
<<if ($arcologies[0].FSEgyptianRevivalist != "unset")>>
	| //FS// [[Dynastic Sigil|Body Modification][$brandDesign.local = "the sigil of your Dynasty"]]
<</if>>
<<if ($arcologies[0].FSEdoRevivalist != "unset")>>
	| //FS// [[Mon|Body Modification][$brandDesign.local = "the Shogunate's mon"]]
<</if>>
<<if ($arcologies[0].FSArabianRevivalist != "unset")>>
	| //FS// [[Caliphate Symbol|Body Modification][$brandDesign.local = "a symbol of the Caliphate"]]
<</if>>
<<if ($arcologies[0].FSChineseRevivalist != "unset")>>
	| //FS// [[Imperial Seal|Body Modification][$brandDesign.local = "your Imperial Seal"]]
<</if>>

 /* double indent */

Or design your own: <<textbox "$brandDesign.local" $brandDesign.local "Body Modification">>

Choose a site for branding:
/* Sorted head to toe */
/* Head */
<<if getSlave($AS).earShape != "none">>[[Ears|Body Modification][$brandTarget.local = "ear"]]<</if>>
| [[Cheeks|Body Modification][$brandTarget.local = "cheek"]]
| [[Neck|Body Modification][$brandTarget.local = "neck"]]

/* Torso */
| [[Chest|Body Modification][$brandTarget.local = "chest"]]
| [[Breasts|Body Modification][$brandTarget.local = "breast"]]
| [[Back|Body Modification][$brandTarget.local = "back"]]
| [[Lower Back|Body Modification][$brandTarget.local = "lower back"]]
| [[Belly|Body Modification][$brandTarget.local = "belly"]]
| [[Pubic Mound|Body Modification][$brandTarget.local = "pubic mound"]]
<<if getSlave($AS).dick > 0>>
	| [[Penis|Body Modification][$brandTarget.local = "penis"]]
<</if>>
<<if getSlave($AS).balls > 0 && getSlave($AS).scrotum > 0>>
	| [[Testicles|Body Modification][$brandTarget.local = "testicle"]]
<</if>>

/* Arms*/
| [[Shoulders|Body Modification][$brandTarget.local = "shoulder"]]
<<if hasAnyNaturalArms(getSlave($AS))>>
	| [[Arm, upper|Body Modification][$brandTarget.local = "upper arm"]]
	| [[Arm, lower|Body Modification][$brandTarget.local = "lower arm"]]
	| [[Wrists|Body Modification][$brandTarget.local = "wrist"]]
	| [[Hands|Body Modification][$brandTarget.local = "hand"]]
<</if>>

/* Legs */
| [[Buttocks|Body Modification][$brandTarget.local = "buttock"]]
<<if hasAnyNaturalLegs(getSlave($AS))>>
	| [[Thighs|Body Modification][$brandTarget.local = "thigh"]]
	| [[Calves|Body Modification][$brandTarget.local = "calf"]]
	| [[Ankles|Body Modification][$brandTarget.local = "ankle"]]
	| [[Feet|Body Modification][$brandTarget.local = "foot"]]
<</if>>

/* Branding expansion contributed by Anon1888 */

Or a custom site: <<textbox "$brandTarget.local" $brandTarget.local "Body Modification">>

<<if ["ankle", "breast", "buttock", "calf", "cheek", "ear", "foot", "hand", "lower arm", "shoulder", "testicle", "thigh", "upper arm", "wrist"].includes($brandTarget.local)>>
	<<set _leftTarget = ("left " + $brandTarget.local)>>
	<<set _rightTarget = ("right " + $brandTarget.local)>>
	<<if getSlave($AS).brand[_leftTarget]>>
		$His _leftTarget is already marked with <<print getSlave($AS).brand[_leftTarget]>>.
	<</if>>
	<<if getSlave($AS).brand[_rightTarget]>>
		$His _rightTarget is already marked with <<print getSlave($AS).brand[_rightTarget]>>.
	<</if>>
	Brand $him now with ''$brandDesign.local'' on the

	<<if !(["upper arm", "lower arm", "wrist", "hand"].includes($brandTarget.local) && getLeftArmID(getSlave($AS)) !== 1) && !(["thigh", "calf", "ankle", "foot"].includes($brandTarget.local) && getLeftLegID(getSlave($AS)) !== 1)>>
		<<set _left = 1>> /* make next checks easier */
		<<link "left">>
			<<set $brandApplied = 1>>
			<<set getSlave($AS).brand[_leftTarget] = $brandDesign.local>>
			<<run cashX(forceNeg($modCost), "slaveMod", getSlave($AS))>>
			<<set $degradation += 10>>
			<<goto "Body Modification">>
		<</link>>
	<</if>>
	<<if !(["upper arm", "lower arm", "wrist", "hand"].includes($brandTarget.local) && getRightArmID(getSlave($AS)) !== 1) && !(["thigh", "calf", "ankle", "foot"].includes($brandTarget.local) && getRightLegID(getSlave($AS)) !== 1)>>
		<<set _right = 1>> /* make next checks easier */
	<</if>>
	<<if _left && _right>>
		$brandTarget.local, or the
	<</if>>
	<<if _right>>
		<<link "right">>
			<<set $brandApplied = 1>>
			<<set getSlave($AS).brand[_rightTarget] = $brandDesign.local>>
			<<run cashX(forceNeg($modCost), "slaveMod", getSlave($AS))>>
			<<set $degradation += 10>>
			<<goto "Body Modification">>
		<</link>>
	<</if>><<if !_left || !_right>> $brandTarget.local<</if>>?

	//Branding will slightly reduce $his beauty but may slowly increase your reputation.//
<<else>>
	<<if getSlave($AS).brand[$brandTarget.local] === $brandDesign.local>>
		$He already has $brandDesign.local on $his $brandTarget.local.
	<<else>>
		<<link "Brand">>
			<<set $brandApplied = 1>>
			<<set getSlave($AS).brand[$brandTarget.local] = $brandDesign.local>>
			<<run cashX(forceNeg($modCost), "slaveMod", getSlave($AS))>>
			<<set $degradation += 10>>
			<<goto "Body Modification">>
		<</link>>
		with $brandDesign.local on the $brandTarget.local<<if getSlave($AS).brand[$brandTarget.local]>>, covering the "<<print getSlave($AS).brand[$brandTarget.local]>>" that is already there?<<else>>.<</if>> //Branding will slightly reduce $his beauty but may slowly increase your reputation.//
	<</if>>
<</if>>

<<if getSlave($AS).breedingMark == 1 && ($propOutcome == 0 || $eugenicsFullControl == 1 || $arcologies[0].FSRestart == "unset")>>

	$He has an intricate tattoo on $his lower belly that suggests $he was made to be bred. [[Remove it|Body Modification][getSlave($AS).breedingMark = 0]]

<</if>>

 /* indent */

/* Scars */

Scars

<<for _scarName, _scar range getSlave($AS).scar>>

	$His _scarName is marked with <<= App.Desc.expandScarString(getSlave($AS), _scarName)>>:
	<<capture _scarName>>
		<<link "Remove Scar">>
			<<set $scarApplied = 0>>
			<<run delete getSlave($AS).scar[_scarName]>>
			<<run cashX(forceNeg($surgeryCost), "slaveSurgery", getSlave($AS))>>
			<<set $degradation -= 10>>
			<<goto "Body Modification">>
		<</link>>
	<</capture>>

<</for>>
<<if (jQuery.isEmptyObject(getSlave($AS).scar))>>

	$His skin is not scarred.

<</if>>

Use ''$scarDesign.local'' or choose another scar:

[[Whip|Body Modification][$scarDesign.local = "whip"]]
| [[Burns|Body Modification][$scarDesign.local = "burn"]]
| [[Surgical|Body Modification][$scarDesign.local = "surgical"]]
| [[Menacing|Body Modification][$scarDesign.local = "menacing"]]
| [[Exotic|Body Modification][$scarDesign.local = "exotic"]]
/* Other common scars might be battle scars or c-Section but it makes little sense to include them here */

Or design your own: <<textbox "$scarDesign.local" $scarDesign.local "Body Modification">>

Choose a site for scaring:

<<if ["exotic", "menacing"].includes($scarDesign.local)>>
	[[Cheeks|Body Modification][$scarTarget.local = "cheek"]]
<<else>>
	/* Sorted head to toe */

	[[Entire body|Body Modification][$scarTarget.local = "entire body"]]

	/* Head */
	<<if getSlave($AS).earShape != "none">>
		| [[Ears|Body Modification][$scarTarget.local = "ear"]]
	<</if>>
	| [[Cheeks|Body Modification][$scarTarget.local = "cheek"]]
	| [[Neck|Body Modification][$scarTarget.local = "neck"]]

	/* Torso */
	| [[Chest|Body Modification][$scarTarget.local = "chest"]]
	| [[Breasts|Body Modification][$scarTarget.local = "breast"]]
	| [[Back|Body Modification][$scarTarget.local = "back"]]
	| [[Lower Back|Body Modification][$scarTarget.local = "lower back"]]
	| [[Belly|Body Modification][$scarTarget.local = "belly"]]
	| [[Pubic Mound|Body Modification][$scarTarget.local = "pubic mound"]]
	<<if getSlave($AS).dick > 0>>
		| [[Penis|Body Modification][$scarTarget.local = "penis"]]
	<</if>>
	<<if getSlave($AS).balls > 0 && getSlave($AS).scrotum > 0>>
		| [[Testicles|Body Modification][$scarTarget.local = "testicle"]]
	<</if>>

	/* Arms*/
	| [[Shoulders|Body Modification][$scarTarget.local = "shoulder"]]
	<<if hasAnyNaturalArms(getSlave($AS))>>
		| [[Arm, upper|Body Modification][$scarTarget.local = "upper arm"]]
		| [[Arm, lower|Body Modification][$scarTarget.local = "lower arm"]]
		| [[Wrists|Body Modification][$scarTarget.local = "wrist"]]
		| [[Hands|Body Modification][$scarTarget.local = "hand"]]
	<</if>>

	/* Legs */
	| [[Buttocks|Body Modification][$scarTarget.local = "buttock"]]
	<<if hasAnyNaturalLegs(getSlave($AS))>>
		| [[Thighs|Body Modification][$scarTarget.local = "thigh"]]
		| [[Calves|Body Modification][$scarTarget.local = "calf"]]
		| [[Ankles|Body Modification][$scarTarget.local = "ankle"]]
		| [[Feet|Body Modification][$scarTarget.local = "foot"]]
	<</if>>
<</if>>

Or a custom site: <<textbox "$scarTarget.local" $scarTarget.local "Body Modification">>

/* Correct some "bad" choices" */
<<if ["exotic", "menacing"].includes($scarDesign.local)>>
	<<if $scarTarget.local != "cheek">>
		<<set $scarTarget.local = "cheek">>
	<</if>>
<</if>>

<<if ["ankle", "breast", "buttock", "calf", "cheek", "ear", "foot", "hand", "lower arm", "shoulder", "testicle", "thigh", "upper arm", "wrist"].includes($scarTarget.local)>>
	<<set _leftTarget = ("left " + $scarTarget.local)>>
	<<set _rightTarget = ("right " + $scarTarget.local)>>
	<<if getSlave($AS).scar[_leftTarget]>>
		$His _leftTarget is already marked with <<= App.Desc.expandScarString(getSlave($AS), _leftTarget)>>.
	<</if>>
	<<if getSlave($AS).scar[_rightTarget]>>
		$His _rightTarget is already marked with <<= App.Desc.expandScarString(getSlave($AS), _rightTarget)>>.
	<</if>>
	Scar $him now with ''$scarDesign.local'' on the
	<<set _left = 0, _right = 0>> /* overwrite brand */

	<<if !(["upper arm", "lower arm", "wrist", "hand"].includes($scarTarget.local) && getLeftArmID(getSlave($AS)) !== 1) && !(["thigh", "calf", "ankle", "foot"].includes($scarTarget.local) && getLeftLegID(getSlave($AS)) !== 1)>>
		<<set _left = 1>> /* make next checks easier */
		<<link "left">>
			<<set $scarTarget.local = _leftTarget>>
			<<set $scarApplied = 1>>
			<<run App.Medicine.Modification.addScar(getSlave($AS), _leftTarget, $scarDesign.local)>>
			<<run cashX(forceNeg($modCost), "slaveMod", getSlave($AS))>>
			<<set $degradation += 10>>
			<<goto "Body Modification">>
		<</link>>
	<</if>>
	<<if !(["upper arm", "lower arm", "wrist", "hand"].includes($scarTarget.local) && getRightArmID(getSlave($AS)) !== 1) && !(["thigh", "calf", "ankle", "foot"].includes($scarTarget.local) && getRightLegID(getSlave($AS)) !== 1)>>
		<<set _right = 1>> /* make next checks easier */
	<</if>>
	<<if _left && _right>>
		$scarTarget.local, or the
	<</if>>
	<<if _right>>
		<<link "right">>
			<<set $scarTarget.local = _rightTarget>>
			<<set $scarApplied = 1>>
			<<run App.Medicine.Modification.addScar(getSlave($AS), _rightTarget, $scarDesign.local)>>
			<<run cashX(forceNeg($modCost), "slaveMod", getSlave($AS))>>
			<<set $degradation += 10>>
			<<goto "Body Modification">>
		<</link>>
	<</if>><<if !_left || !_right>> $scarTarget.local<</if>>?
<<else>>
	<<if getSlave($AS).scar.hasOwnProperty($scarTarget.local)>>
		<<if getSlave($AS).scar[$scarTarget.local][$scarDesign.local]>>
			$He already has $scarDesign.local scars on $his $scarTarget.local. You can make it worse.
		<<else>> /* check how much scarring is on this part */
			<<set _scarTotalValue = (Object.values(getSlave($AS).scar[$scarTarget.local])).reduce((a, b) => a + b, 0)>>
			<<if _scarTotalValue>>
				That would be a new kind of scar to add to the growing collection on $his $scarTarget.local. Life can always be worse for a slave.
			<</if>>
		<</if>>
	<</if>>
	<<link "Scar">>
		<<if $scarTarget.local === "entire body" && $scarDesign.local.includes("whip")>>
			/* Special case for whipping scene, produces two kinds of scars */
			<<run App.Medicine.Modification.addScourged(getSlave($AS))>>
		<<else>>
			/* Normal entire body scarring */
			<<if $scarTarget.local === "entire body">>
				<<set _scarArray = ["left breast", "right breast", "back", "lower back", "left buttock", "right buttock"]>>
				<<if getLeftArmID(getSlave($AS)) === 0>>
					<<set _scarArray.push("left upper arm")>>
				<</if>>
				<<if getRightArmID(getSlave($AS)) === 0>>
					<<set _scarArray.push("right upper arm")>>
				<</if>>
				<<if getLeftLegID(getSlave($AS)) === 0>>
					<<set _scarArray.push("left thigh")>>
				<</if>>
				<<if getRightLegID(getSlave($AS)) === 0>>
					<<set _scarArray.push("right thigh")>>
				<</if>>
			/* Single scar */
			<<else>>
				<<set _scarArray = [$scarTarget.local]>>
			<</if>>
			<<for _i to 0; _i < _scarArray.length; _i++>>
				<<run App.Medicine.Modification.addScar(getSlave($AS), _scarArray[_i], $scarDesign.local)>>
				<<set $degradation += 10>>
			<</for>>
		<</if>>
		<<run cashX(forceNeg($modCost), "slaveMod", getSlave($AS))>>
		<<set $scarApplied = 1>>
		<<set $degradation += 10>>
		<<goto "Body Modification">>
	<</link>>
	with $scarDesign.local on the $scarTarget.local<<if getSlave($AS).scar[$scarTarget.local]>>, adding to the scars that are already there?<<else>>.<</if>>
<</if>>

 /* indent */


code:
:: Brothel Advertisement [nobr]

	<<switch $brothelDecoration>>
		<<case "Roman Revivalist">>
			$brothelNameCaps is decorated as a Roman whorehouse. Refreshments are served at a bar, and someone is playing pipes in the back.
		<<case "Aztec Revivalist">>
			$brothelNameCaps is decorated as an Aztec ode to fertility and nature. Clients may sacrifice a bit of blood to honor the goddess of Filth or to partake in a fertility ritual before joining the girl of their choosing.
		<<case "Egyptian Revivalist">>
			$brothelNameCaps is decorated as an ancient Egyptian fertility temple. Customers are bade relax on couches next to running water so that slaves may dance to entice them.
		<<case "Edo Revivalist">>
			$brothelNameCaps is furnished as an Edo period pleasure house, seedy by the standards of the time. Still, girls usually keep their clothes on until they lead patrons back behind the sliding paper screens, though this does not stop silhouettes of the activities within from being visible on them.
		<<case "Arabian Revivalist">>
			$brothelNameCaps is furnished as an Arabian slave market, with the merchandise standing on little platforms, prices visible. Customers are permitted to fondle before making a decision and dragging a girl back behind a curtain.
		<<case "Chinese Revivalist">>
			$brothelNameCaps is furnished as an old Chinese pleasure house, with each girl set up in her own low room. They stand outside the doors, luring customers back one by one.
		<<case "Chattel Religionist">>
			$brothelNameCaps is decorated as a place of worship. The air is scented by censers, and the slaves here maintain an air of holiness even when being sodomized in public.
		<<case "Degradationist">>
			$brothelNameCaps is decorated to look like a dungeon. The décor involves a lot of black leather and burnished steel, and the slaves on offer are mostly chained to beds and walls.
		<<case "Repopulation Focus">>
			$brothelNameCaps is clean and full of soft couches and chairs for its' pregnant whores to lounge upon while showing off their assets. Several of the rooms are prepped to allow a whore to give birth in front of an audience. A supply of freshly squeezed breast milk is available on tap.
		<<case "Eugenics">>
			$brothelNameCaps is decorated to look like a club. Loud music is playing, and the whores that aren't with customers are stripping and pole dancing on a stage. Safe sex is greatly encouraged. The real action happens in several reserved rooms dedicated to society's best, since the loud music drowns out private conversations.
		<<case "Asset Expansionist">>
			$brothelNameCaps is decorated to look like a club. Loud music is playing, and the whores that aren't with customers are stripping and pole dancing on a stage.
		<<case "Transformation Fetishist">>
			$brothelNameCaps is sterile and clean. Interactive screens on the walls list the whores and their modifications in clinical detail.
		<<case "Gender Radicalist">>
			$brothelNameCaps is decorated to look like an old world bordello. The rich décor includes erotic photography and pornographic statuary, depicting every possible combination of human sexual congress.
		<<case "Gender Fundamentalist">>
			$brothelNameCaps is decorated to look like an old world whorehouse. Screens on the walls are showing pornography starring the whores, with prices flashing after each sex act.
		<<case "Physical Idealist">>
			$brothelNameCaps is decorated to look like a club. Loud music is playing, and the whores that aren't with customers are stripping on a stage. There is a distinct smell of sweat, and there is as much emphasis on the strippers' muscles as their breasts.
		<<case "Subjugationist">>
			$brothelNameCaps is decorated to celebrate the degradation of $arcologies[0].FSSubjugationistRace whores. The whores greet customers in stereotypical $arcologies[0].FSSubjugationistRace accents.
		<<case "Supremacist">>
			$brothelNameCaps is decorated like an old world gentleman's club. The pictures on the wall depict degradation of every race on earth, except $arcologies[0].FSSupremacistRace people.
		<<case "Paternalist">>
			$brothelNameCaps is decorated to look like a normal bar. Whores are encouraged to meet customers for a drink and get to know them a little before heading back into a private room.
		<<case "Maturity Preferentialist">>
			$brothelNameCaps is decorated to look like a refined bar. It has a row of sturdy backless barstools, perfect for a delectable selection of succulent MILFs to perch on.
		<<case "Youth Preferentialist">>
			$brothelNameCaps is decorated to look like a the sort of bar old world students visit on spring break. Vapid music is playing, and when whores aren't with customers, they dance and make out with each other to attract some.
		<<case "Body Purist">>
			$brothelNameCaps is decorated to look like an old world bordello. The rich décor includes erotic photography and pornographic statuary, depicting idealized human forms in the act of love.
		<<case "Slimness Enthusiast">>
			$brothelNameCaps is decorated to look like an old world bordello. The rich décor includes erotic photography and pornographic statuary, depicting slim, girlish figures playing, dancing, and loving.
		<<case "Pastoralist">>
			$brothelNameCaps is decorated to look like a dairy. Though it isn't one, there is an intense sexual focus on boobs and lactation, and all the whores have their sizes proudly posted.
		<<case "Hedonistic">>
			$brothelNameCaps is comfortable and full of soft couches and chairs for its overweight whores to lounge upon between clients <<if $arcologies[0].FSHedonisticDecadenceResearch == 1>>and enjoy a plate of snacks<<else>>and enjoy a big cup of slave food<</if>>. The smells of fresh baked goods are pumped into the facility to mask the smell of sweat. It's not unusual for a client to fuck a whore right on her chosen couch, since the effort of moving is often too much.
		<<case "Intellectual Dependency">>
			$brothelNameCaps is decorated to look like a club. The sexually charged atmosphere has the whores horny and making out with each other. Customers are expected to come in, grab a bimbo to their tastes, and pull them off to have a good time.
		<<case "Slave Professionalism">>
			$brothelNameCaps is decorated to look like a high-class bordello. Courtesans are expected to greet and entice customers to join them for a night they'll never forget.
		<<case "Petite Admiration">>
			$brothelNameCaps is decorated to look like an old world whorehouse. The whores have personal platforms to stand on for inspection from their taller customers.
		<<case "Statuesque Glorification">>
			$brothelNameCaps is decorated to look like an old world bordello. The rich décor specializes in pornographic statuary, depicting towering human forms in the act of love.
	<</switch>>

	<<if $brothelAdsSpending > 0>>
		Screens outside the entrance are showing porn to advertise the brothel.
		<<if $brothelAdsOld == 1>>
			The featured slave actresses are all MILFs.
		<<elseif $brothelAdsOld == -1>>
			The featured slave actresses are all nice and young.
		<<elseif $brothelAdsOld == -2>>
			The featured slave actresses are all teenagers.
		<<elseif $brothelAdsOld == -3>>
			The featured slave actresses are all lolis.
		<<else>>
			The featured slave actresses vary in age.
		<</if>>
		<<if $brothelAdsStacked == 1>>
			Lots of bouncing breasts and butts
		<<elseif $brothelAdsStacked == -1>>
			Lots of trim breasts and shapely butts
		<<else>>
			A variety of breast and butt sizes and shapes
		<</if>>
		are on display, and
		<<if $brothelAdsImplanted == 1>>
			most of these are augmented by implants.
		<<elseif $brothelAdsImplanted == -1>>
			they're all natural.
		<<else>>
			some are augmented by implants.
		<</if>>
		<<if $seePreg == 1>>
			<<if $brothelAdsPreg == 1>>
				Most of slaves have firm, rounded bellies.
			<<elseif $brothelAdsPreg == -1>>
				Most of the slaves have firm, flat bellies.
			<<else>>
				Some of the slaves are pregnant.
			<</if>>
		<</if>>
		<<if $brothelAdsModded == 1>>
			Everything is heavily pierced and tattooed.
		<<elseif $brothelAdsModded == -1>>
			Everything is free of tattoos and piercings.
		<<else>>
			Some of these assets are tattooed and pierced, and some aren't.
		<</if>>
		The slaves in the ads are
		<<if $brothelAdsXX == 1>>
			sucking dick and taking cock in their pussies and asses.
		<<elseif $brothelAdsXX == -1>>
			sucking cock and being assfucked while their dicks flop around.
		<<else>>
			sucking dick and taking anal, and the ones that have pussies are being fucked there, too.
		<</if>>
	<</if>>

	<<if $brothelAdsSpending >= 5000>>
		Advertisements based on these scenes run constantly in media across the arcology, and there's an active merchandising campaign underway to promote your whores.
	<<elseif $brothelAdsSpending >= 4000>>
		Advertisements based on these scenes run constantly in media across the arcology.
	<<elseif $brothelAdsSpending >= 3000>>
		Advertisements based on these scenes are run in media across the arcology.
	<<elseif $brothelAdsSpending >= 2000>>
		Advertisements based on these scenes run regularly in arcology media.
	<<elseif $brothelAdsSpending >= 1000>>
		Advertisements based on these scenes run occasionally in arcology media.
	<<else>>
		$arcologies[0].name has a robust internal media that could be used to bring customers into the brothel.
	<</if>>

		You are spending <<print cashFormatColor(forceNeg($brothelAdsSpending))>> each week to advertise $brothelName.
		<<if $lastWeeksCashIncome.brothelAds > 0>>
			Last week's ads increased profits by <<print cashFormatColor($lastWeeksCashIncome.brothelAds)>><<if App.Entity.facilities.brothel.employeesIDs().size > 1>> and also increased business for your whores<</if>>, and cost <<print cashFormatColor(forceNeg($lastWeeksCashExpenses.brothelAds))>>.
		<</if>>

		<<if $brothelAdsSpending > 900>>
			<<link "Decrease">><<set $brothelAdsSpending -= 1000>><<goto "Brothel Advertisement">><</link>> |
		<<else>>
			Decrease |
		<</if>>
		<<if $brothelAdsSpending < 5000>>
			<<link "Increase">><<set $brothelAdsSpending += 1000>><<goto "Brothel Advertisement">><</link>>
		<<else>>
			Increase
		<</if>>

Design $brothelNameCaps Ad Campaign

	Will replace relevant variety bonuses

	<<= App.Ads.report("brothel", true)>>


code:
:: Brothel Report [nobr]

<<set _slaves = App.Utils.sortedEmployees(App.Entity.facilities.brothel)>>
<<set _DL = _slaves.length, _SL = $slaves.length, $legendaryWhoreID = 0, _FLsFetish = 0, _profits = 0>>
<<set $legendaryWombID = 0>>
<<set _minBonus = 50, _maxBonus = 150>>

<<set $facility = $facility || {}, $facility.brothel = initFacilityStatistics($facility.brothel)>>

<<if ($Madam != 0)>>
	<<set _FLs = $slaveIndices[$Madam.ID]>>

	<<if ($slaves[_FLs].health.condition < -80)>>
		<<run improveCondition($slaves[_FLs], 20)>>
	<<elseif $slaves[_FLs].health.condition < -40>>
		<<run improveCondition($slaves[_FLs], 15)>>
	<<elseif $slaves[_FLs].health.condition < 0>>
		<<run improveCondition($slaves[_FLs], 10)>>
	<<elseif $slaves[_FLs].health.condition < 90>>
		<<run improveCondition($slaves[_FLs], 7)>>
	<</if>>
	<<if $slaves[_FLs].devotion <= 45>>
		<<set $slaves[_FLs].devotion += 5>>
	<</if>>
	<<if $slaves[_FLs].trust < 45>>
		<<set $slaves[_FLs].trust += 5>>
	<</if>>
	<<if $slaves[_FLs].rules.living != "luxurious">>
		<<set $slaves[_FLs].rules.living = "luxurious">>
	<</if>>
	<<if $slaves[_FLs].fetishStrength <= 95>>
		<<if $slaves[_FLs].fetish != "dom">>
			<<if fetishChangeChance($slaves[_FLs]) > random(0,100)>>
				<<set _FLsFetish = 1, $slaves[_FLs].fetishKnown = 1, $slaves[_FLs].fetish = "dom">>
			<</if>>
		<<elseif $slaves[_FLs].fetishKnown == 0>>
			<<set _FLsFetish = 1, $slaves[_FLs].fetishKnown = 1>>
		<<else>>
			<<set _FLsFetish = 2, $slaves[_FLs].fetishStrength += 4>>
		<</if>>
	<</if>>
	/% Make sure we have registered living expenses as for any other slave %/
	<<run getSlaveStatisticData($Madam, $facility.brothel)>>
	<<set $Madam = $slaves[_FLs]>>
	<<setLocalPronouns $Madam>>
	    <<= SlaveFullName($Madam)>> is serving as the Madam.
	<<if $Madam.relationship == -3 && $Madam.devotion > 50>>
		As your loving $wife, $he does $his best to attract attention to your brothel.
	<</if>>
	<<if (_FLsFetish == 1)>>
		$He isn't above sampling the merchandise $himself; before long it's obvious to $his girls that $he really likes fucking them.
	<<elseif (_FLsFetish == 2)>>
		$He's careful that all of the whores under $his supervision are all warmed up and ready to get fucked every morning, and $he becomes more dominant.
	<</if>>
	<<if ($Madam.skill.whoring <= 10)>>
		Though $Madam.slaveName does $his best to manage the brothel, with $his lack of skill $he can do little.
	<<elseif ($Madam.skill.whoring <= 30)>>
		$Madam.slaveName's basic skills marginally improve business at $brothelName.
	<<elseif ($Madam.skill.whoring <= 60)>>
		$Madam.slaveName's skills improve business at $brothelName.
	<<elseif ($Madam.skill.whoring < 100)>>
		$Madam.slaveName's skills greatly improve business at $brothelName.
	<<else>>
		$Madam.slaveName's mastery immensely improves business at $brothelName.
	<</if>>
	<<if ($Madam.actualAge > 35)>>
		$His age and experience also contribute.
	<</if>>
	<<if setup.madamCareers.includes($Madam.career)>>
		$He has experience from $his life before $he was a slave that helps $him in the seedy business of selling other people's bodies for sex.
	<<elseif $Madam.skill.madam >= $masteredXP>>
		$He has experience from working for you that helps $him in the seedy business of selling other people's bodies for sex.
	<</if>>
	<<if ($Madam.intelligence+$Madam.intelligenceImplant > 15)>>
		$He is a clever manager.
	<</if>>
	<<if ($Madam.dick > 2) && (canPenetrate($Madam))>>
		$His turgid dick helps $him manage the bitches.
	<</if>>
	<<for _slave range _slaves>>
		<<set $i = $slaveIndices[_slave.ID]>> /% for the included passages %/

		<<if $Madam.rivalryTarget == _slave.ID>>
			$He forces $his <<print rivalryTerm($Madam)>>, to service all the men in the brothel.
			<<set _slave.devotion -= 2, _slave.trust -= 2>>
			<<if canDoVaginal(_slave)>>
				<<run seX($activeSlave, "vaginal", "public", "penetrative", 10)>>
			<</if>>
			<<if canDoAnal(_slave)>>
				<<run seX($activeSlave, "anal", "public", "penetrative", 12)>>
			<</if>>
			<<run seX($activeSlave, "anal", "public", "penetrative", 10)>>
			<<if random(1,100) > 65>>
				<<set $slaves[_FLs].rivalry++, $Madam.rivalry++, _slave.rivalry++>>
			<</if>>
		<<elseif $Madam.relationshipTarget == _slave.ID>>
			<<setLocalPronouns _slave 2>>
			$He dotes over $his <<print relationshipTerm($Madam)>>, _slave.slaveName, making sure _he2 is safe, but unfortunately driving potential customers away from _him2.
			<<set _slave.devotion++>>
		<<elseif areRelated($Madam, _slave)>>
			<<setLocalPronouns _slave 2>>
			$He pays special attention to $his <<print relativeTerm($Madam,_slave)>>, _slave.slaveName, making sure _he2 is treated well and showing off _his2 skills.
			<<set _slave.trust++>>
		<</if>>
		<<if _slave.prestigeDesc == "$He is a famed Free Cities whore, and commands top prices.">>
			<<setLocalPronouns _slave 2>>
			$He makes sure to promote _slave.slaveName, the famed whore, in order to capitalize on _his2 popularity.
		<<elseif _slave.prestigeDesc == "$He is a famed Free Cities slut, and can please anyone.">>
			<<setLocalPronouns _slave 2>>
			$He makes sure to promote _slave.slaveName, the famed entertainer, in order to capitalize on _his2 popularity.
		<<elseif _slave.prestigeDesc == "$He is remembered for winning best in show as a dairy cow.">>
			<<setLocalPronouns _slave 2>>
			<<if ($arcologies[0].FSPhysicalIdealist != "unset")>>
				<<if (_slave.muscles > 60) && (_slave.weight < 30) && (_slave.lactation > 0) && ((_slave.boobs-_slave.boobsImplant) > 6000)>>
					$He shows off how even a cow like _slave.slaveName can achieve physical perfection.
				<<else>>
					A<<if (_slave.muscles < 30)>>n unmuscled,<</if>><<if (_slave.weight > 30)>> fat,<</if>> 'prestigious' <<if (_slave.lactation > 0)>>cow<<elseif ((_slave.boobs-_slave.boobsImplant) > 6000)>>mass of titflesh<<else>>slave<</if>> like _slave.slaveName is woefully out of fashion, so $Madam.slaveName tries to draw attention away from _him2.
				<</if>>
			<<else>>
				<<if (_slave.lactation > 0) && ((_slave.boobs-_slave.boobsImplant) > 6000)>>
					$He makes sure to massage _slave.slaveName's huge breasts to get the milk flowing before enticing clients to suckle and play with _him2.
				<<else>>
					$He would like to show off _slave.slaveName's huge udders, but _slave.slaveName <<if (_slave.lactation == 0)>>isn't producing milk anymore<<else>>doesn't exactly have huge udders anymore<</if>>.
				<</if>>
			<</if>>
		<<elseif _slave.prestigeDesc == "$He is remembered for winning best in show as a cockmilker.">>
			<<setLocalPronouns _slave 2>>
			<<if $arcologies[0].FSGenderFundamentalist != "unset">> /* this needs review - doesn't fit right. An XY slave would be expected to be masculine. */
				<<if (_slave.balls == 0) && (_slave.dick == 0) && (_slave.vagina > -1)>>
					$He uses _slave.slaveName as an example of how even a huge-balled freak like _him2 can be restored to proper femininity.
				<<else>>
					$He tries to hide _slave.slaveName, 'her' body being notorious for its defiance of conventional femininity.
				<</if>>
			<<else>>
				<<if ((_slave.balls > 5) && (_slave.dick != 0)) || ((_slave.balls > 4) && (_slave.dick != 0) && (_slave.prostate > 1))>>
					$He shows off _slave.slaveName's copious loads by putting a condom over _his2 dick and teasing _him2 till _he2 bursts it. The show draws multiple clients that want to play with _his2 oversized junk and messy orgasms.
				<<else>>
					$He would love to show off _slave.slaveName's copious loads, but _slave.slaveName<<if _slave.dick == 0>> doesn't have a dick<<elseif _slave.balls == 0>>'s not producing cum<<else>>'s orgasms just aren't messy enough<</if>>.
				<</if>>
			<</if>>
		<<elseif _slave.prestigeDesc == "$He is remembered for winning best in show as a breeder.">>
			<<setLocalPronouns _slave 2>>
			<<if _slave.bellyPreg >= 5000>>
				$He makes sure _slave.slaveName's growing pregnancy is well taken care of, even if it means driving away potential customers away when the mother-to-be needs a rest.
			<<elseif canGetPregnant(_slave)>>
				$He makes sure to play off _slave.slaveName's fame and fertility by enticing potential customers to be the one to claim _his2 womb by filling it with their child.
			<<else>>
				$He would love to play off of _slave.slaveName's fame and fertility, but unfortunately _he2 <<if _slave.pregKnown == 1 && _slave.bellyPreg < 1500>>is already pregnant and not far enough along to show it<<elseif _slave.pregKnown == 1 && _slave.bellyPreg < 5000>>already pregnant, but not enough to be exciting<<else>>is unable to get knocked up<</if>>.
			<</if>>
		<</if>>
	<</for>>

	<<if (_DL+$brothelSlavesGettingHelp < 10)>>
		<<set $i = _FLs>> /* apply following SA passages to facility leader */
		<<setLocalPronouns $slaves[$i]>>
		<<set _oldCash = $cash>>
		<<if $showEWD != 0>>

    $He <<= App.SlaveAssignment.whore($slaves[$i])>>
		<<else>>
			<<run App.SlaveAssignment.whore($slaves[$i])>>
		<</if>>

		$He whores $himself because $he doesn't have enough whores to manage to keep $him busy, and makes <<print cashFormat($Madam.lastWeeksCashIncome)>>. $He can charge more for $his time, since many citizens find it erotic to fuck the Madam.
		<<set _profits += $cash - _oldCash, _oldCash = $cash>>
	<</if>>
	<<if (_DL > 0)>>

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

<<if (_DL > 0)>>

		<<if _DL != 1>>
			There are _DL slave whores working out of $brothelName.
		<<else>>
			There is one slave whore working out of $brothelName.
		<</if>>

<</if>>

<<if $Madam != 0>>
	<<set $i = _FLs>> /* apply following SA passages to facility leader */
	<<if $showEWD != 0>>

		/* 000-250-006 */
		<<if $seeImages && $seeReportImages>>

			<<= SlaveArt($slaves[_FLs], 0, 0)>>

		<</if>>
		/* 000-250-006 */
		<<= SlaveFullName($slaves[_FLs])>> is serving as the Madam.

		<<= App.SlaveAssignment.choosesOwnClothes($slaves[$i])>>
		<<run tired($slaves[$i])>>
		<<include "SA rules">>
		<<include "SA diet">>
		<<include "SA long term effects">>
		<<= App.SlaveAssignment.drugs($slaves[$i])>>
		<<include "SA relationships">>
		<<include "SA rivalries">>

<<include "SA devotion">>
	<<else>>
		<<silently>>
		<<run App.SlaveAssignment.choosesOwnClothes($slaves[$i])>>
		<<run tired($slaves[$i])>>
		<<include "SA rules">>
		<<include "SA diet">>
		<<include "SA long term effects">>
		<<run App.SlaveAssignment.drugs($slaves[$i])>>
		<<include "SA relationships">>
		<<include "SA rivalries">>
		<<include "SA devotion">>
		<</silently>>
	<</if>>
	<<set $Madam = $slaves[_FLs]>>
<</if>>

<<if (_DL > 0)>>
	<<set _healthBonus = 0, _aphrod = 0>>
	<<if ($brothelUpgradeDrugs == 1)>>
		<<set _healthBonus += 1, _aphrod = 1>>
	<<elseif ($brothelUpgradeDrugs == 2)>>
		<<set _healthBonus += 3, _aphrod = 2>>
	<</if>>
	<<set _oldCash = $cash>>
	<<for _slave range _slaves>>
		<<set $i = $slaveIndices[_slave.ID]>>
		<<setLocalPronouns _slave>>
		<<if ($legendaryWombID == 0) && (!isAmputee(_slave)) && (_slave.preg > _slave.pregData.normalBirth/1.33) && (_slave.broodmother == 0) && (_slave.eggType == "human") && (_slave.counter.births > 10) && (_slave.devotion > 50) && (_slave.prestige == 0)>>
			<<set $legendaryWombID = _slave.ID>>
		<</if>>
		<<if ($legendaryWhoreID == 0) && (_slave.skill.whoring >= 100) && (_slave.devotion > 50) && (_slave.prestige == 0)>>
			<<set $legendaryWhoreID = _slave.ID>>
		<</if>>

		/* Perform facility based rule changes */
		<<run improveCondition(_slave, _healthBonus)>>
		<<set _slave.aphrodisiacs = _aphrod>>
		<<switch $brothelDecoration>>
		<<case "Degradationist" "standard">>
			<<set _slave.rules.living = "spare">>
		<<default>>
			<<set _slave.rules.living = "normal">>
		<</switch>>
		<<if (_slave.health.condition < -80)>>
			<<run improveCondition(_slave, 20)>>
		<<elseif _slave.health.condition < -40>>
			<<run improveCondition(_slave, 15)>>
		<<elseif _slave.health.condition < 0>>
			<<run improveCondition(_slave, 10)>>
		<<elseif _slave.health.condition < 90>>
			<<run improveCondition(_slave, 7)>>
		<</if>>
		<<if (_slave.devotion <= 20) && (_slave.trust >= -20)>>
			<<set _slave.devotion -= 5, _slave.trust -= 5>>
		<<elseif (_slave.devotion < 45)>>
			<<set _slave.devotion += 4>>
		<<elseif (_slave.devotion > 50)>>
			<<set _slave.devotion -= 4>>
		<</if>>
		<<if (_slave.trust < 30)>>
			<<set _slave.trust += 5>>
		<</if>>
		<<if _slave.energy > 40 && _slave.energy < 95>>
			<<set _slave.energy++>>
		<</if>>

		<<if $showEWD != 0>>

			/* 000-250-006 */
			<<if $seeImages && $seeReportImages>>

				<<= SlaveArt(_slave, 0, 0)>>

			<</if>>
			/* 000-250-006 */
			<<= SlaveFullName(_slave)>>
			<<if _slave.choosesOwnAssignment == 2>>
				<<include "SA chooses own job">>
			<<else>>
				is working out of $brothelName.
			<</if>>

    $He <<= App.SlaveAssignment.whore(_slave)>>

			<<= App.SlaveAssignment.choosesOwnClothes(_slave)>>
			<<include "SA rules">>
			<<include "SA diet">>
			<<include "SA long term effects">>
			<<= App.SlaveAssignment.drugs(_slave)>>
			<<include "SA relationships">>
			<<include "SA rivalries">>

<<include "SA devotion">>
		<<else>>
			<<silently>>
			<<include "SA chooses own job">>
			<<run App.SlaveAssignment.whore(_slave)>>
			<<run App.SlaveAssignment.choosesOwnClothes(_slave)>>
			<<include "SA rules">>
			<<include "SA diet">>
			<<include "SA long term effects">>
			<<run App.SlaveAssignment.drugs(_slave)>>
			<<include "SA relationships">>
			<<include "SA rivalries">>
			<<include "SA devotion">>
			<</silently>>
		<</if>>

		<<set _seed = Math.max(App.Ads.getMatchedCategoryCount(_slave, "brothel"), 1)>>
		<<set _adsIncome = _seed * random(50,60) * Math.trunc($brothelAdsSpending/1000)>>
		<<set _cashX = _adsIncome, getSlaveStatisticData(_slave, $facility.brothel).adsIncome += _adsIncome>>
		<<run cashX(_cashX, "brothelAds")>>
	<</for>>

		<<= App.Ads.report("brothel")>>

	<<set _profits += $cash-_oldCash>>

	<>

	$brothelNameCaps makes you <<print cashFormat(_profits)>> this week.

	<<if $brothelDecoration != "standard">>

			$brothelNameCaps's customers enjoyed fucking whores in $brothelDecoration surroundings.

	<</if>>

	<<BrothelStatistics 0>>
	<<timed 50ms>>
		<<replace #brothelstats>>
			<<BrothelStatistics 1>>
		<</replace>>
	<</timed>>
<</if>>

<<if _DL > 0 || $Madam != 0>>

<</if>>