code:
:: Club Report [nobr]

<<SlaveSort $ClubiIDs>>
<<set _DL = $ClubiIDs.length, $clubSlaves = _DL, _SL = $slaves.length, $clubBonuses = 0, $DJRepBonus = 0, $legendaryEntertainerID = 0, _FLsFetish = 0>>
<<set $legendaryWombID = 0>>
<<set _implanted =0, _modded = 0, _old = 0, _pure = 0, _slim = 0, _stacked = 0, _unmodded = 0, _XX = 0, _XY = 0, _young = 0, _pregYes = 0, _pregNo = 0, _minBonus = 50, _maxBonus = 150>>

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

<<if $DJ != 0>>
	<<set _FLs = $slaveIndices[$DJ.ID]>>

	<<if ($slaves[_FLs].health < -80)>>
		<<set $slaves[_FLs].health += 20>>
	<<elseif $slaves[_FLs].health < -40>>
		<<set $slaves[_FLs].health += 15>>
	<<elseif $slaves[_FLs].health < 0>>
		<<set $slaves[_FLs].health += 10>>
	<<elseif $slaves[_FLs].health < 90>>
		<<set $slaves[_FLs].health += 7>>
	<</if>>
	<<if $slaves[_FLs].devotion <= 60>>
		<<set $slaves[_FLs].devotion += 5>>
	<</if>>
	<<if $slaves[_FLs].trust < 60>>
		<<set $slaves[_FLs].trust += 3>>
	<</if>>
	<<if $slaves[_FLs].fetishStrength <= 95>>
		<<if $slaves[_FLs].fetish != "humiliation">>
			<<if fetishChangeChance($slaves[_FLs]) > random(0,100)>>
				<<set _FLsFetish = 1, $slaves[_FLs].fetishKnown = 1, $slaves[_FLs].fetish = "humiliation">>
			<</if>>
		<<elseif $slaves[_FLs].fetishKnown == 0>>
			<<set _FLsFetish = 1, $slaves[_FLs].fetishKnown = 1>>
		<<else>>
			<<set _FLsFetish = 2, $slaves[_FLs].fetishStrength += 4>>
		<</if>>
	<</if>>
	<<if $slaves[_FLs].livingRules != "luxurious">>
		<<set $slaves[_FLs].livingRules = "luxurious">>
	<</if>>
	/% Make sure we have registered living expenses as for any other slave %/
	<<run getSlaveStatisticData($DJ, $facility.club)>>
	<<set $DJ = $slaves[_FLs]>>
	<<setLocalPronouns $DJ>>
	    <<= SlaveFullName($DJ)>> is performing as the DJ.
	<<if $DJ.relationship == -3 && $DJ.devotion > 50>>
		$He tries $his best to be your energetic, cheerful wife.
		<<set $DJRepBonus += 0.1>>
	<</if>>
	<<if (_FLsFetish == 1)>>
		$He's expected to be the innovative, beautiful DJ spinning beats one minute, and come out of $his booth to grind on the floor the next; $he enjoys the interplay, and finds greater @@.lightcoral;pleasure in exhibitionism.@@
	<<elseif (_FLsFetish == 2)>>
		Every day $he gets to enjoy hundreds of stares on $his skin, and @@.lightsalmon;becomes more of an exhibitionist.@@
	<</if>>
	<<if $DJ.eyes == -2>>
		$His lack of eyesight doesn't slow $him down; rather, it strengthens $his other senses. $His tracks have a distinct sound, since $he experiences noise as $his sight.
		<<set $DJRepBonus += 0.15>>
	<</if>>
	<<if ($DJ.entertainSkill <= 10)>>
		Though $DJ.slaveName does $his best to lead on the club, with $his lack of skill $he can do little.
	<<elseif ($DJ.entertainSkill <= 30)>>
		$DJ.slaveName's basic skills marginally @@.green;improve@@ the atmosphere on $clubName.
		<<set $DJRepBonus += 0.05>>
	<<elseif ($DJ.entertainSkill <= 60)>>
		$DJ.slaveName's skills @@.green;improve@@ the atmosphere on $clubName.
		<<set $DJRepBonus += 0.1>>
	<<elseif ($DJ.entertainSkill < 100)>>
		$DJ.slaveName's skills greatly @@.green;improve@@ the atmosphere on $clubName.
		<<set $DJRepBonus += 0.15>>
	<<elseif ($DJ.entertainSkill >= 100)>>
		$DJ.slaveName's mastery immensely @@.green;improves@@ the atmosphere on $clubName.
		<<set $DJRepBonus += 0.20>>
	<</if>>
	<<if ($DJ.muscles > 5) && ($DJ.muscles <= 95)>>
		$His toned body helps $him lead $his fellow club girls by letting $him dance all night.
		<<set $DJRepBonus += 0.05>>
	<</if>>
	<<if ($DJ.intelligence+$DJ.intelligenceImplant > 15)>>
		$He's smart enough to make an actual contribution to the music, greatly enhancing the entire experience.
		<<set $DJRepBonus += 0.05*Math.floor(($DJ.intelligence+$DJ.intelligenceImplant)/32)>>
	<</if>>
	<<if ($DJ.face > 95)>>
		$His great beauty is a further draw, even when $he's in $his DJ booth, but especially when $he comes out to dance.
		<<set $DJRepBonus += 0.05>>
	<</if>>
	<<if setup.DJCareers.includes($DJ.career)>>
		$He has musical experience from $his life before $he was a slave, a grounding that gives $his tracks actual depth.
		<<set $DJRepBonus += 0.05>>
	<<elseif $DJ.skillDJ >= $masteredXP>>
		$He has musical experience from working for you, giving $his tracks actual depth.
		<<set $DJRepBonus += 0.05>>
	<<else>>
		<<set $slaves[_FLs].skillDJ += random(1,Math.ceil(($DJ.intelligence+$DJ.intelligenceImplant)/15) + 8)>>
	<</if>>
	<<if (_DL < 10)>>
		<<set $slavesGettingHelp = 0>>
		<<if $universalRulesFacilityWork == 1>>
			<<for $i = 0; $i < _SL; $i++>>
				<<if ($slaves[$i].assignment == "serve the public")>>
					<<set $slavesGettingHelp++>>
				<</if>>
			<</for>>
		<</if>>
		<<if (_DL+$slavesGettingHelp < 10)>>
			<<set $i = _FLs>> /* apply following SA passages to facility leader */
			<<if ($legendaryEntertainerID == 0) && ($slaves[_FLs].prestige == 0) && ($slaves[_FLs].entertainSkill >= 100) && ($slaves[_FLs].devotion > 50)>>
				<<set $legendaryEntertainerID = $slaves[_FLs].ID>>
			<</if>>

    Since $he doesn't have enough sluts in $clubName to make it worthwhile for $him to be on stage 24/7, $he spends $his extra time slutting it up $himself. $He has sex with $beauty citizens, @@.green;pleasing them immensely,@@ since it's more appealing to fuck the DJ than some club slut.
			<<if $showEWD != 0>>

    She <<include "SA serve the public">>
			<<else>>
				<<silently>><<include "SA serve the public">><</silently>>
			<</if>>
			<<set $repGain += Math.trunc(($beauty*$FResult)*(1+(0.003*$slaves[_FLs].entertainSkill))*0.1*0.5)>>
		<</if>>
	<</if>>
	<<if (_DL > 0)>>

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

<<if (_DL > 0)>>
	<<set _possibleBonuses = 0>>
	    <<if (_DL != 1)>>''The _DL slaves pleasing citizens in $clubName''<<else>>''The one slave pleasing citizens in $clubName''<</if>> worked hard to @@.green;increase your reputation@@ this week.
<</if>>

<<if ($DJ != 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 */
		''__@@.pink;<<= SlaveFullName($slaves[_FLs])>>@@__'' is performing as the DJ in $clubName.

		<<= saChoosesOwnClothes($slaves[$i])>>
		<<include "SA rules">>
		<<include "SA diet">>
		<<include "SA long term effects">>
		<<include "SA drugs">>
		<<include "SA relationships">>
		<<include "SA rivalries">>

<<include "SA devotion">>
	<<else>>
		<<silently>>
		<<set _chosenClothes = saChoosesOwnClothes($slaves[$i])>>
		<<include "SA rules">>
		<<include "SA diet">>
		<<include "SA long term effects">>
		<<include "SA drugs">>
		<<include "SA relationships">>
		<<include "SA rivalries">>
		<<include "SA devotion">>
		<</silently>>
	<</if>>
	<<set $DJ = $slaves[_FLs]>>
	<<if isSlim($slaves[_FLs])>>
		<<set _slim += 1>>
	<</if>>
	<<if isStacked($slaves[_FLs])>>
		<<set _stacked += 1>>
	<</if>>
	<<if isYoung($slaves[_FLs])>>
		<<set _young += 1>>
	<<else>>
		<<set _old += 1>>
	<</if>>
	<<if isModded($slaves[_FLs])>>
		<<set _modded += 1>>
	<<elseif isUnmodded($slaves[_FLs])>>
		<<set _unmodded += 1>>
	<</if>>
	<<if isXY($slaves[_FLs])>>
		<<set _XY += 1>>
	<<else>>
		<<set _XX += 1>>
	<</if>>
	<<if isPure($slaves[_FLs])>>
		<<set _pure += 1>>
	<<else>>
		<<set _implanted += 1>>
	<</if>>
	<<if isPreg($slaves[_FLs])>>
		<<set _pregYes += 1>>
	<<elseif isNotPreg($slaves[_FLs])>>
		<<set _pregNo += 1>>
	<</if>>
<</if>>

<<if (_DL > 0)>>
	<<for _dI = 0; _dI < _DL; _dI++>>
		<<set $i = $slaveIndices[$ClubiIDs[_dI]]>>
		<<setLocalPronouns $slaves[$i]>>
		<<if ($legendaryEntertainerID == 0) && ($slaves[$i].prestige == 0) && ($slaves[$i].entertainSkill >= 100) && ($slaves[$i].devotion > 50)>>
			<<set $legendaryEntertainerID = $slaves[$i].ID>>
		<</if>>
		<<if ($legendaryWombID == 0) && ($slaves[$i].amp != 1) && ($slaves[$i].preg > $slaves[$i].pregData.normalBirth/1.33) && ($slaves[$i].broodmother == 0) && ($slaves[$i].eggType == "human") && ($slaves[$i].births > 10) && ($slaves[$i].devotion > 50) && ($slaves[$i].prestige == 0)>>
			<<set $legendaryWombID = $slaves[$i].ID>>
		<</if>>
		<<if ($slaves[$i].devotion <= 20) && ($slaves[$i].trust >= -20)>>
			<<set $slaves[$i].devotion -= 5, $slaves[$i].trust -= 5>>
		<<elseif ($slaves[$i].devotion < 45)>>
			<<set $slaves[$i].devotion += 4>>
		<<elseif ($slaves[$i].devotion > 50)>>
			<<set $slaves[$i].devotion -= 4>>
		<</if>>

		<<if ($slaves[$i].trust < 30)>>
			<<set $slaves[$i].trust += 5>>
		<</if>>

		<<if ($slaves[$i].health < -80)>>
			<<set $slaves[$i].health += 20>>
		<<elseif ($slaves[$i].health < -40)>>
			<<set $slaves[$i].health += 15>>
		<<elseif ($slaves[$i].health < 0)>>
			<<set $slaves[$i].health += 10>>
		<<elseif ($slaves[$i].health < 90)>>
			<<set $slaves[$i].health += 7>>
		<</if>>

		<<if $slaves[$i].livingRules != "normal">>
			<<set $slaves[$i].livingRules = "normal">>
		<</if>>

		<<if $showEWD != 0>>

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

				<<SlaveArt $slaves[$i] 0 0>>

			<</if>>
			/* 000-250-006 */
			''__@@.pink;<<= SlaveFullName($slaves[$i])>>@@__''
			<<if $slaves[$i].choosesOwnAssignment == 2>>
				<<include "SA chooses own job">>
			<<else>>
				is serving in $clubName.
			<</if>>

    She <<include "SA serve the public">>

			<<= saChoosesOwnClothes($slaves[$i])>>
			<<include "SA rules">>
			<<include "SA diet">>
			<<include "SA long term effects">>
			<<include "SA drugs">>
			<<include "SA relationships">>
			<<include "SA rivalries">>

<<include "SA devotion">>
		<<else>>
			<<silently>>
			<<include "SA chooses own job">>
			<<include "SA serve the public">>
			<<set _chosenClothes = saChoosesOwnClothes($slaves[$i])>>
			<<include "SA rules">>
			<<include "SA diet">>
			<<include "SA long term effects">>
			<<include "SA drugs">>
			<<include "SA relationships">>
			<<include "SA rivalries">>
			<<include "SA devotion">>
			<</silently>>
		<</if>>
		<<if isSlim($slaves[$i])>>
			<<set _slim += 1>>
		<</if>>
		<<if isStacked($slaves[$i])>>
			<<set _stacked += 1>>
		<</if>>
		<<if isYoung($slaves[$i])>>
			<<set _young += 1>>
		<<else>>
			<<set _old += 1>>
		<</if>>
		<<if isModded($slaves[$i])>>
			<<set _modded += 1>>
		<<elseif isUnmodded($slaves[$i])>>
			<<set _unmodded += 1>>
		<</if>>
		<<if isXY($slaves[$i])>>
			<<set _XY += 1>>
		<<else>>
			<<set _XX += 1>>
		<</if>>
		<<if isPure($slaves[$i])>>
			<<set _pure += 1>>
		<<else>>
			<<set _implanted += 1>>
		<</if>>
		<<if isPreg($slaves[$i])>>
			<<set _pregYes += 1>>
		<<elseif isNotPreg($slaves[$i])>>
			<<set _pregNo += 1>>
		<</if>>
	<</for>>

	<<if $clubAdsSpending != 0>>
		An ad campaign is getting citizens into the club every night, and sluts that match it gratify patrons.
	<</if>>

	<<if $clubAdsSpending != 0>>
		<<if $clubAdsStacked == 1>>
			Its advertisements feature stacked girls.
			<<set _ads = 1>>
		<<elseif $clubAdsStacked == -1>>
			Its advertisements feature slim girls.
			<<set _ads = -1>>
		<<else>>
			Its advertisements feature a variety of girls, some that are slim and some others that are stacked.
			<<set _ads = 0>>
		<</if>>
	<</if>>
	<<if ($arcologies[0].FSAssetExpansionist != "unset") && ($arcologies[0].FSAssetExpansionist >= 80)>>
		Most customers prefer stacked girls.
		<<set _pref = 1>>
	<<elseif ($arcologies[0].FSSlimnessEnthusiast != "unset") && ($arcologies[0].FSSlimnessEnthusiast >= 80) >>
		Most customers prefer slim girls.
		<<set _pref = -1>>
	<<else>>
		<<if ($arcologies[0].FSAssetExpansionist == "unset") && ($arcologies[0].FSSlimnessEnthusiast == "unset")>>
			<<if ($clubAdsSpending == 0) || ($clubAdsStacked == 0)>>
				<<set _possibleBonuses++>>
				<<if (_slim > 0) && (_stacked > 0) && (Math.abs(_slim-_stacked) <= (_DL/3))>>
				<<set $repGain += _DL*random(5,10), $clubBonuses++>>
				There is a @@.green;wide@@ variety of slim and stacked slaves working the club.
				<</if>>
			<</if>>
		<</if>>
		Most customers don't have preferences for either slim or stacked slaves.
		<<set _pref = 0>>
	<</if>>
	<<if (_slim > (_DL/2))>>
		<<set _girls = -1>>
		Most of the slaves in the club are slim.
	<<elseif (_stacked > (_DL/2))>>
		<<set _girls = 1>>
		Most of the slaves in the club are stacked.
	<<else>>
		<<set _girls = 0>>
		The slaves in the club vary in slimness.
	<</if>>
	<<if _pref == 0>> /*customers don't care*/
	<<elseif ($clubAdsSpending > 0)>>
		<<if (_ads == _pref) && (_girls == _ads)>>
			<<set _adsIncome = _DL*random(20,30), $cash += _adsIncome, $facility.club.adsIncome += _adsIncome, _clubBonuses++>>
			Its advertising for <<if _ads == 1>>stacked <<elseif _ads == -1>>slim <</if>>girls matched most customers' preferences and the girls in the club matched its advertisements. Your @@.green;reputation@@ increased slightly as a result.
			<<set $rep += random(_minBonus,_maxBonus)>>
		<<elseif (_ads == _pref) && (_girls != _ads)>>
			Its advertising for <<if _ads == 1>>stacked <<elseif _ads == -1>>slim <</if>>girls matched most customers preferences, but the girls in the club did not. Your @@.red;reputation@@ dropped slightly as a result.
			<<set $rep -= random(_minBonus,_maxBonus)>>
		<<elseif (_girls == _pref) && (_girls != _ads)>>
			The <<if _girls == 1>>stacked <<elseif _girls == -1>>slim <</if>>girls in the club did not match its advertisements, but since the girls in the club matched most customers preferences for <<if _pref == 1>>stacked <<elseif _pref == -1>>slim <</if>>girls, your reputation was not affected.
		<<elseif (_girls != _pref)>>
			Some customers were put off since the <<if _girls == 1>>stacked <<elseif _girls == -1>>slim <</if>>girls there did not match their preferences for <<if _pref == 1>>stacked <<elseif _pref == -1>>slim <</if>>girls. Your @@.red;reputation@@ dropped slightly as a result.
			<<set $rep -= random(_minBonus,_maxBonus)>>
		<</if>>
	<<else>>
		<<if (_girls == _pref)>>
			The <<if _girls == 1>>stacked <<elseif _girls == -1>>slim <</if>>girls in the club match most customers' preferences for <<if _pref == 1>>stacked <<elseif _pref == -1>>slim <</if>>girls. Your @@.green;reputation@@ increased slightly as a result.
			<<set $rep += random(_minBonus,_maxBonus)>>
		<<else>>
			Some customers were put off since the <<if _girls == 1>>stacked <<elseif _girls == -1>>slim <</if>>girls there did not match their preferences for <<if _pref == 1>>stacked <<elseif _pref == -1>>slim <</if>>girls. Your @@.red;reputation@@ dropped slightly as a result.
			<<set $rep -= random(_minBonus,_maxBonus)>>
		<</if>>
	<</if>>

	<<if ($clubAdsSpending > 0)>>
		<<if $clubAdsModded == 1>>
			Its advertisements feature girls that are heavily pierced and tattooed.
			<<set _ads = 1>>
		<<elseif $clubAdsModded == -1>>
			Its advertisements feature girls that free from piercings and tattoos.
			<<set _ads = -1>>
		<<else>>
			Its advertisements feature some girls that are tattooed and pierced, and some that aren't.
			<<set _ads = 0>>
		<</if>>
	<</if>>
	<<if ($arcologies[0].FSDegradationist != "unset") && ($arcologies[0].FSDegradationist >= 80)>>
		Most customers prefer heavily pierced and tattooed girls.
		<<set _pref = 1>>
	<<elseif ($arcologies[0].FSBodyPurist != "unset") && ($arcologies[0].FSBodyPurist >= 80) >>
		Most customers prefer natural girls.
		<<set _pref = -1>>
	<<else>>
		<<if ($arcologies[0].FSDegradationist == "unset") && ($arcologies[0].FSBodyPurist == "unset")>>
			<<if ($clubAdsSpending == 0) || ($clubAdsModded == 0)>>
				<<set _possibleBonuses++>>
				<<if (_modded > 0) && (_unmodded > 0) && (Math.abs(_modded-_unmodded) <= (_DL/3))>>
				<<set $repGain += _DL*random(5,10), $clubBonuses++>>
				There are @@.green;both@@ heavily pierced and tattooed slaves and slaves with more natural bodies filling the club.
				<</if>>
			<</if>>
		<</if>>
		Most customers don't have preferences for either natural or heavily body modded girls.
		<<set _pref = 0>>
	<</if>>
	<<if (_modded > (_DL/2))>>
		<<set _girls = 1>>
		Most of the slaves in the club are heavily pierced and tattooed.
	<<elseif (_unmodded > (_DL/2))>>
		<<set _girls = -1>>
		Most of the slaves in the club have natural unmodded bodies.
	<<else>>
		<<set _girls = 0>>
		Some girls in the club have piercings or tattoos, some do not and others have both.
	<</if>>
	<<if _pref == 0>> /*customers don't care*/
	<<elseif ($clubAdsSpending > 0)>>
		<<if (_ads == _pref) && (_girls == _ads)>>
			<<set _adsIncome = _DL*random(20,30), $cash += _adsIncome, $facility.club.adsIncome += _adsIncome, _clubBonuses++>>
			Its advertising for <<if _ads == 1>>heavily modded <<elseif _ads == -1>>natural bodied <</if>>girls matched most customers' preferences and the girls in the club matched its advertisements. Your @@.green;reputation@@ increased slightly as a result.
			<<set $rep += random(_minBonus,_maxBonus)>>
		<<elseif (_ads == _pref) && (_girls != _ads)>>
			Its advertising for <<if _ads == 1>>heavily modded <<elseif _ads == -1>>natural bodied <</if>>girls matched most customers preferences, but the girls in the club did not. Your @@.red;reputation@@ dropped slightly as a result.
			<<set $rep -= random(_minBonus,_maxBonus)>>
		<<elseif (_girls == _pref) && (_girls != _ads)>>
			The <<if _girls == 1>>heavily modded <<elseif _girls == -1>>natural bodied <</if>>girls in the club did not match its advertisements, but since the girls in the club matched most customers preferences for <<if _pref == 1>>heavily modded <<elseif _pref == -1>>natural bodied <</if>>girls, your reputation was not affected.
		<<elseif (_girls != _pref)>>
			Some customers were put off since the <<if _girls == 1>>heavily modded <<elseif _girls == -1>>natural bodied <</if>>girls there did not match most customers preferences for <<if _pref == 1>>heavily modded <<elseif _pref == -1>>natural bodied <</if>>girls. Your @@.red;reputation@@ dropped slightly as a result.
			<<set $rep -= random(_minBonus,_maxBonus)>>
		<</if>>
	<<else>>
		<<if (_girls == _pref)>>
			The <<if _girls == 1>>heavily modded <<elseif _girls == -1>>natural bodied <</if>>girls in the club match most customers' preferences for <<if _pref == 1>>heavily modded <<elseif _pref == -1>>natural unmodded <</if>>girls. Your @@.green;reputation@@ increased slightly as a result.
			<<set $rep += random(_minBonus,_maxBonus)>>
		<<else>>
			Some customers were put off since the <<if _girls == 1>>heavily modded <<elseif _girls == -1>>natural bodied <</if>>girls there did not match most customers preferences for <<if _pref == 1>>heavily modded <<elseif _pref == -1>>natural bodied <</if>>girls. Your @@.red;reputation@@ dropped slightly as a result.
			<<set $rep -= random(_minBonus,_maxBonus)>>
		<</if>>
	<</if>>

	<<if ($clubAdsSpending > 0)>>
		<<if $clubAdsImplanted == 1>>
			Its advertisements feature girls that are augmented by implants or improved surgically.
			<<set _ads = 1>>
		<<elseif $clubAdsImplanted == -1>>
			Its advertisements feature girls that have all natural bodies.
			<<set _ads = -1>>
		<<else>>
			Its advertisements feature some girls that are surgically improved and implanted and some that are all-natural.
			<<set _ads = 0>>
		<</if>>
	<</if>>
	<<if ($arcologies[0].FSTransformationFetishist != "unset") && ($arcologies[0].FSTransformationFetishist >= 80)>>
		Most customers prefer heavily implanted and surgically enhanced girls.
		<<set _pref = 1>>
	<<elseif ($arcologies[0].FSBodyPurist != "unset") && ($arcologies[0].FSBodyPurist >= 80) >>
		Most customers prefer all-natural girls.
		<<set _pref = -1>>
	<<else>>
		<<if ($arcologies[0].FSTransformationFetishist == "unset") && ($arcologies[0].FSBodyPurist == "unset")>>
			<<if ($clubAdsSpending == 0) || ($clubAdsImplanted == 0)>>
				<<set _possibleBonuses++>>
				<<if (_implanted > 0) && (_pure > 0) && (Math.abs(_implanted-_pure) <= (_DL/3))>>
				<<set $repGain += _DL*random(5,10), $clubBonuses++>>
				Citizens in $clubName can easily find @@.yellowgreen;both@@ all-natural girls, and slaves whose beauty has been improved by surgical means.
				<</if>>
			<</if>>
		<</if>>
		Most customers don't have preferences for either all-natural or surgically enhanced and implanted girls.
		<<set _pref = 0>>
	<</if>>
	<<if (_implanted > (_DL/2))>>
		<<set _girls = 1>>
		Most of the slaves in the club are heavily implanted or surgically enhanced.
	<<elseif (_pure > (_DL/2))>>
		<<set _girls = -1>>
		Most of the slaves in the club have naturally pure bodies.
	<<else>>
		<<set _girls = 0>>
		The slaves in the club vary in body modification.
	<</if>>
	<<if _pref == 0>> /*customers don't care*/
	<<elseif ($clubAdsSpending > 0)>>
		<<if (_ads == _pref) && (_girls == _ads)>>
			<<set _adsIncome = _DL*random(20,30), $cash += _adsIncome, $facility.club.adsIncome += _adsIncome, _clubBonuses++>>
			Its advertising for <<if _ads == 1>>implanted or surgically improved <<elseif _ads == -1>>naturally pure <</if>>girls matched most customers' preferences and the girls in the club matched its advertisements. Your @@.green;reputation@@ increased slightly as a result.
			<<set $rep += random(_minBonus,_maxBonus)>>
		<<elseif (_ads == _pref) && (_girls != _ads)>>
			Its advertising for <<if _ads == 1>>implanted or surgically improved <<elseif _ads == -1>>naturally pure <</if>>girls matched most customers preferences, but the girls in the club did not. Your @@.red;reputation@@ dropped slightly as a result.
			<<set $rep -= random(_minBonus,_maxBonus)>>
		<<elseif (_girls == _pref) && (_girls != _ads)>>
			The <<if _girls == 1>>implanted or surgically improved <<elseif _girls == -1>>naturally pure <</if>>girls in the club did not match its advertisements, but since the girls in the club matched most customers preferences for <<if _pref == 1>>implanted or surgically improved <<elseif _pref == -1>>naturally pure <</if>>girls, your reputation was not affected.
		<<elseif (_girls != _pref)>>
			Some customers were put off since the <<if _girls == 1>>implanted and surgically improved <<elseif _girls == -1>>naturally pure <</if>>girls there did not match their preferences for <<if _pref == 1>>implanted or surgically improved <<elseif _pref == -1>>naturally pure <</if>>girls. Your @@.red;reputation@@ dropped slightly as a result.
			<<set $rep -= random(_minBonus,_maxBonus)>>
		<</if>>
	<<else>>
		<<if (_girls == _pref)>>
			The <<if _girls == 1>>implanted or surgically improved <<elseif _girls == -1>>naturally pure <</if>>girls in the club match most customers' preferences for <<if _pref == 1>>implanted or surgically improved <<elseif _pref == -1>>natural unmodded <</if>>girls. Your @@.green;reputation@@ increased slightly as a result.
			<<set $rep += random(_minBonus,_maxBonus)>>
		<<else>>
			Some customers were put off since the <<if _girls == 1>>implanted and surgically improved <<elseif _girls == -1>>naturally pure <</if>>girls there did not match their preferences for <<if _pref == 1>>implanted or surgically improved <<elseif _pref == -1>>naturally pure <</if>>girls. Your @@.red;reputation@@ dropped slightly as a result.
			<<set $rep -= random(_minBonus,_maxBonus)>>
		<</if>>
	<</if>>

	<<if ($seeDicks != 0)>>

		<<if ($clubAdsSpending > 0)>>
			<<if ($clubAdsXX == 1)>>
				Its advertisements feature girls with female genitalia.
				<<set _ads = 1>>
			<<elseif ($clubAdsXX == -1)>>
				Its advertisements feature girls with male genitalia.
				<<set _ads = -1>>
			<<else>>
				Its advertisements feature a variety of girls with both male and female genitalia.
				<<set _ads = 0>>
			<</if>>
		<</if>>
		<<if ($arcologies[0].FSGenderFundamentalist != "unset") && ($arcologies[0].FSGenderFundamentalist >= 80)>>
			Most customers prefer girls with pussies.
			<<set _pref = 1>>
		<<elseif ($arcologies[0].FSGenderRadicalist != "unset") && ($arcologies[0].FSGenderRadicalist >= 80)>>
			Most customers prefer girls with dicks.
			<<set _pref = -1>>
		<<else>>
			<<if ($clubAdsSpending == 0) || ($clubAdsXX == 0)>>
				<<set _possibleBonuses++>>
				<<if (_XX > 0) && (_XY > 0) && (Math.abs(_XX-_XY) <= (_DL/3))>>
				<<set $repGain += _DL*random(5,10), $clubBonuses++>>
				The club offers a @@.green;mix@@ of sluts that can appeal to varied tastes in genitalia.
				<</if>>
			<</if>>
			Most customers don't have preferences for either girls with dicks or girls with pussies.
			<<set _pref = 0>>
		<</if>>
		<<if (_XX > (_DL/2))>>
			<<set _girls = 1>>
			Most of the slaves in the club have female genitalia.
		<<elseif (_XY > (_DL/2))>>
			Most of the slaves in the club have male genitalia.
			<<set _girls = -1>>
		<<else>>
			<<set _girls = 0>>
			The slaves in the club vary in genitalia.
		<</if>>
		<<if _pref == 0>> /*customers don't care*/
		<<elseif ($clubAdsSpending > 0) >>
			<<if (_ads == _pref) && (_girls == _ads)>>
				<<set _adsIncome = _DL*random(20,30), $cash += _adsIncome, $facility.club.adsIncome += _adsIncome, _clubBonuses++>>
				Its advertising for girls <<if _ads == 1>>with pussies <<elseif _ads == -1>>with dicks <</if>> matches most customers' preferences as advertised. Your @@.green;reputation@@ increased slightly as a result.
				<<set $rep += random(_minBonus,_maxBonus)>>
			<<elseif (_ads == _pref) && (_girls != _ads)>>
				Its advertising for girls <<if _ads == 1>>with pussies <<elseif _ads == -1>>with dicks <</if>> matched most customers preferences, but the girls in the club are not as advertised. Your @@.red;reputation@@ dropped slightly as a result.
				<<set $rep -= random(_minBonus,_maxBonus)>>
			<<elseif (_girls == _pref) && (_girls != _ads)>>
				The girls <<if _girls == 1>> with pussies<<elseif _girls == -1>> with dicks<</if>>in the club did not match the advertisements, but since the girls in the club matched most customers preferences for girls<<if _pref == 1>> with pussies<<elseif _pref == -1>> with dicks<</if>>, your reputation was not affected.
			<<elseif (_girls != _pref)>>
				Some customers were put off since the girls <<if _girls == 1>>with female genitalia <<elseif _girls == -1>>with male genitalia <</if>> did not match their preferences for girls<<if _pref == 1>> with pussies<<elseif _pref == -1>> with dicks<</if>>. Your @@.red;reputation@@ dropped slightly as a result.
				<<set $rep -= random(_minBonus,_maxBonus)>>
			<</if>>
		<<else>>
			<<if (_girls == _pref)>>
				The girls in the club match most customers preferences for girls <<if _girls == 1>>with female genitalia <<elseif _girls == -1>>with male genitalia <</if>>. Your @@.green;reputation@@ increased slightly as a result.
				<<set $rep += random(_minBonus,_maxBonus)>>
			<<else>>
				Some customers were put off since the girls <<if _girls == 1>>with female genitalia <<elseif _girls == -1>>with male genitalia <</if>> did not match their preferences for girls<<if _pref == 1>> with pussies<<elseif _pref == -1>> with dicks<</if>>. Your @@.red;reputation@@ dropped slightly as a result.
				<<set $rep -= random(_minBonus,_maxBonus)>>
			<</if>>
		<</if>>
	<</if>>

	<<if ($clubAdsSpending > 0)>>
		<<switch ($clubAdsOld)>>
			<<case 1>>
				Its advertisements feature mature slaves.
				<<set _ads = 1>>
			<<case -1>>
				Its advertisements feature young slaves.
				<<set _ads = -1>>
			<<case -2>>
				Its advertisements feature teenagers.
				<<set _ads = -1>>
			<<case -3>>
				Its advertisements feature lolis.
				<<set _ads = -1>>
			<<default>>
				Its advertisements feature slaves of a variety of ages.
				<<set _ads = 0>>
		<</switch>>
	<</if>>
	<<if ($arcologies[0].FSMaturityPreferentialist != "unset") && ($arcologies[0].FSMaturityPreferentialist >= 80)>>
		Most customers prefer mature girls.
		<<set _pref = 1>>
	<<elseif ($arcologies[0].FSYouthPreferentialist != "unset") && ($arcologies[0].FSYouthPreferentialist >= 80)>>
		Most customers prefer young girls.
		<<set _pref = -1>>
	<<else>>
		<<if ($arcologies[0].FSMaturityPreferentialist == "unset") && ($arcologies[0].FSYouthPreferentialist == "unset")>>
			<<if ($clubAdsSpending == 0) || ($clubAdsOld == 0)>>
				<<set _possibleBonuses++>>
				<<if (_young > 0) && (_old > 0) && (Math.abs(_young-_old) <= (_DL/3))>>
				<<set $repGain += _DL*random(5,10), $clubBonuses++>>
				There are girls @@.green;both@@ young and mature in $clubName.
				<</if>>
			<</if>>
		<</if>>
		Most customers don't have preferences for either mature or young girls.
		<<set _pref = 0>>
	<</if>>
	<<if (_old > (_DL/2))>>
		<<set _girls = 1>>
		Most of the slaves in the club are mature.
	<<elseif (_young > (_DL/2))>>
		<<set _girls = -1>>
		Most of the slaves in the club are young.
	<<else>>
		<<set _girls = 0>>
		The slaves in the club vary in age.
	<</if>>
	<<if _pref == 0>> /*customers don't care*/
	<<elseif ($clubAdsSpending > 0)>>
		<<if (_ads == _pref) && (_girls == _ads)>>
			<<set _adsIncome = _DL*random(20,30), $cash += _adsIncome, $facility.club.adsIncome += _adsIncome, _clubBonuses++>>
			Its advertising matches most customers' age preferences and the girls in the club match the ages as advertised. Your @@.green;reputation@@ increased slightly as a result.
			<<set $rep += random(_minBonus,_maxBonus)>>
		<<elseif (_ads == _pref) && (_girls != _ads)>>
			Its advertising matched most customers age preferences, but the girls in the club do not. Your @@.red;reputation@@ dropped slightly as a result.
			<<set $rep -= random(_minBonus,_maxBonus)>>
		<<elseif (_girls == _pref) && (_girls != _ads)>>
			The ages of girls in the club did not match the ages as advertised, but since the girls in the club matched most customers age preferences, your reputation was not affected.
		<<elseif (_girls != _pref) && (_girls == _ads)>>
			Some customers were put off since the ages of girls there did not match their preferences. Your @@.red;reputation@@ dropped slightly as a result.
			<<set $rep -= random(_minBonus,_maxBonus)>>
		<</if>>
	<<else>>
		<<if (_girls == _pref)>>
			The girls in the club match most customers' age preferences. Your @@.green;reputation@@ increased slightly as a result.
			<<set $rep += random(_minBonus,_maxBonus)>>
		<<else>>
			Some customers were put off since the ages of girls there did not match their preferences. Your @@.red;reputation@@ dropped slightly as a result.
			<<set $rep -= random(_minBonus,_maxBonus)>>
		<</if>>
	<</if>>

	<<if $seePreg == 1>>

		<<if ($clubAdsSpending > 0)>>
			<<if $clubAdsPreg == 1>>
				Its advertisements feature girls that are clearly pregnant.
				<<set _ads = 1>>
			<<elseif $clubAdsPreg == -1>>
				Its advertisements feature girls that have flat, usually firm, bellies.
				<<set _ads = -1>>
			<<else>>
				Its advertisements feature some girls that are pregnant.
				<<set _ads = 0>>
			<</if>>
		<</if>>
		<<if ($arcologies[0].FSRepopulationFocus != "unset") && ($arcologies[0].FSRepopulationFocus >= 80)>>
			Most customers prefer their girls rounded with child.
			<<set _pref = 1>>
		<<elseif ($arcologies[0].FSRestart != "unset") && ($arcologies[0].FSRestart >= 80) >>
			Most customers prefer girls that aren't gravid.
			<<set _pref = -1>>
		<<else>>
			<<if ($arcologies[0].FSRepopulationFocus == "unset") && ($arcologies[0].FSRestart == "unset")>>
				<<if ($clubAdsSpending == 0) || ($clubAdsPreg == 0)>>
					<<set _possibleBonuses++>>
					<<if (_pregYes > 0) && (_pregNo > 0) && (Math.abs(_pregYes-_pregNo) <= (_DL/3))>>
					<<set $repGain += _DL*random(5,10), $clubBonuses++>>
					There is a @@.green;wide@@ selection of slaves with a variety of middles working the club.
					<</if>>
				<</if>>
			<</if>>
			Most customers don't have preferences for either big-bellied or flat-bellied girls.
			<<set _pref = 0>>
		<</if>>
		<<if (_pregNo > (_DL/2))>>
			<<set _girls = -1>>
			Most of the slaves in the club sport flat bellies.
		<<elseif (_pregYes > (_DL/2))>>
			<<set _girls = 1>>
			Most of the slaves in the club sport gravid middles.
		<<else>>
			<<set _girls = 0>>
			The slaves in the club vary in belly type.
		<</if>>
		<<if (_pref == 0)>> /*customers don't care*/
		<<elseif ($clubAdsSpending > 0)>>
			<<if (_ads == _pref) && (_girls == _ads)>>
				<<set _adsIncome = _DL*random(20,30), $cash += _adsIncome, $facility.club.adsIncome += _adsIncome, _clubBonuses++>>
				Its advertising for <<if _ads == 1>>pregnant <<elseif _ads == -1>>flat-bellied <</if>>girls matched most customers' preferences and the girls in the club matched its advertisements. Your @@.green;reputation@@ increased slightly as a result.
				<<set $rep += random(_minBonus,_maxBonus)>>
			<<elseif (_ads == _pref) && (_girls != _ads)>>
				Its advertising for <<if _ads == 1>>pregnant <<elseif _ads == -1>>flat-bellied <</if>>girls matched most customers preferences, but the girls in the club did not. Your @@.red;reputation@@ dropped slightly as a result.
				<<set $rep -= random(_minBonus,_maxBonus)>>
			<<elseif (_girls == _pref) && (_girls != _ads)>>
				The <<if _girls == 1>>pregnant <<elseif _girls == -1>>flat-bellied <</if>>girls in the club did not match its advertisements, but since the girls in the club matched most customers preferences for <<if _pref == 1>>fecund <<elseif _pref == -1>>flat-bellied <</if>>girls, your reputation was not affected.
			<<elseif (_girls != _pref)>>
				Some customers were put off since the <<if _girls == 1>>pregnant <<elseif _girls == -1>>flat-bellied <</if>>girls in the club did not match their preferences for <<if _pref == 1>>fecund <<elseif _pref == -1>>flat-bellied <</if>>girls. Your @@.red;reputation@@ dropped slightly as a result.
				<<set $rep -= random(_minBonus,_maxBonus)>>
			<</if>>
		<<else>>
			<<if (_girls == _pref)>>
				The <<if _girls == 1>>pregnant <<elseif _girls == -1>>flat-bellied <</if>>girls in the club match most customers' preferences for <<if _pref == 1>>fecund <<elseif _pref == -1>>flat-bellied <</if>>girls. Your @@.green;reputation@@ increased slightly as a result.
				<<set $rep += random(_minBonus,_maxBonus)>>
			<<else>>
				Some customers were put off since the <<if _girls == 1>>pregnant <<elseif _girls == -1>>flat-bellied <</if>>girls in the club did not match their preferences for <<if _pref == 1>>fecund <<elseif _pref == -1>>flat-bellied <</if>>girls. Your @@.red;reputation@@ dropped slightly as a result.
				<<set $rep -= random(_minBonus,_maxBonus)>>
			<</if>>
		<</if>>
	<</if>>

	<<if (_possibleBonuses > 0) && ($clubBonuses >= _possibleBonuses)>>
		<<set $repGain += _DL*random(10,15)>>

		There is a ''@@.green;perfect variety@@'' of slaves serving the public from $clubName.
	<<else>>

		$clubNameCaps does not offer enough variety to satisfy all visitors.
	<</if>>

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

    $clubNameCaps's customers enjoy @@.green;having sex in $clubDecoration surroundings.@@
	<</if>>

	<<ClubStatistics 0>>
	<<timed 50ms>>
		<<replace #clubstats>>
			<<ClubStatistics 1>>
		<</replace>>
	<</timed>>
<</if>>

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

<</if>>


code:
:: Complete Catalog [nobr]

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

//This is the complete catalog of slaves that you can acquire from other slaveowners. Most of these slaves are not for sale, so persuading their owners to part with them will be extremely expensive.//

<<for $i = 0; $i < $heroSlaves.length; $i++>>
	<<if $i > 0>> | <</if>>
	<<if $heroSlaves[$i].ID == $activeSlave.ID>>
		//$heroSlaves[$i].slaveName//
	<<else>>
		<<print "[[$heroSlaves[$i].slaveName|Complete Catalog][$activeSlave = getHeroSlave($heroSlaves[" + $i + "], $baseHeroSlave)]]">>
	<</if>>
<</for>>

<<if ndef $activeSlave.pubicHColor>>
	<<set $activeSlave.pubicHColor = $activeSlave.hColor>>
<</if>>
<<if ndef $activeSlave.underArmHColor>>
	<<set $activeSlave.underArmHColor = $activeSlave.hColor>>
<</if>>
<<if ($activeSlave.override_Eye_Color != 1)>>
	<<switch ($activeSlave.eyeColor)>>
		<<case "blind blue">>
			<<set $activeSlave.origEye = "deep blue">>
		<<case "milky white" "implant">>
			<<set $activeSlave.origEye = random("blue", "brown", "dark blue", "dark green", "green", "hazel", "light blue", "light green")>>
		<<default>>
			<<set $activeSlave.origEye = $activeSlave.eyeColor>>
	<</switch>>
<</if>>
<<if ($activeSlave.override_Race != 1)>>
	<<set $activeSlave.origRace = $activeSlave.race>>
<</if>>
<<if ($activeSlave.override_H_Color != 1)>>
	<<set $activeSlave.origHColor = $activeSlave.hColor>>
<</if>>
<<if ($activeSlave.override_Arm_H_Color != 1)>>
	<<set $activeSlave.underArmHColor = $activeSlave.hColor>>
<</if>>
<<if ($activeSlave.override_Pubic_H_Color != 1)>>
	<<set $activeSlave.pubicHColor = $activeSlave.hColor>>
<</if>>
<<if ($activeSlave.override_Brow_H_Color != 1)>>
	<<set $activeSlave.eyebrowHColor = $activeSlave.hColor>>
<</if>>
<<if ($activeSlave.override_Skin != 1)>>
	<<set $activeSlave.origSkin = $activeSlave.skin>>
<</if>>
<<run SetBellySize($activeSlave)>>
<<set $specialSlavesPriceOverride = 1>>
<<run nationalityToAccent($activeSlave)>>
<<if $familyTesting == 1>>
	/* special slaves exceptions to keep siblings sensible */
	<<if $activeSlave.mother == -9999 && $activeSlave.father == -9998>> /* The twins - Camille & Kennerly */
		<<for _k = 0; _k < $slaves.length; _k++>>
			<<if areSisters($slaves[_k], $activeSlave) > 0>>
				<<set $activeSlave.actualAge = $slaves[_k].actualAge, $activeSlave.physicalAge = $activeSlave.actualAge, $activeSlave.visualAge = $activeSlave.actualAge, $activeSlave.ovaryAge = $activeSlave.actualAge, $activeSlave.birthWeek = $slaves[_k].birthWeek>>
			<</if>>
		<</for>>
	<</if>>
	<<if $activeSlave.mother == -9997 && $activeSlave.father == -9996>> /* The siblings - Elisa & Martin */
		<<for _k = 0; _k < $slaves.length; _k++>>
			<<if areSisters($slaves[_k], $activeSlave) > 0>>
				<<if $activeSlave.birthName == "Elisa">>
					<<set $activeSlave.actualAge = $slaves[_k].actualAge-1, $activeSlave.physicalAge = $activeSlave.actualAge, $activeSlave.visualAge = $activeSlave.actualAge, $activeSlave.ovaryAge = $activeSlave.actualAge>>
				<<elseif $activeSlave.birthName == "Martin">>
					<<set $activeSlave.actualAge = $slaves[_k].actualAge+1, $activeSlave.physicalAge = $activeSlave.actualAge, $activeSlave.visualAge = $activeSlave.actualAge, $activeSlave.ovaryAge = $activeSlave.actualAge>>
				<</if>>
			<</if>>
		<</for>>
	<</if>>
	<<if $activeSlave.mother == -9995 && $activeSlave.father == -9994>> /* The fruit siblings - Green & Purple Grape */
		<<for _k = 0; _k < $slaves.length; _k++>>
			<<if areSisters($slaves[_k], $activeSlave) > 0>>
				<<if $activeSlave.birthName == "Green Grape">>
					<<set $activeSlave.actualAge = $slaves[_k].actualAge-5, $activeSlave.physicalAge = $activeSlave.actualAge, $activeSlave.visualAge = $activeSlave.actualAge, $activeSlave.ovaryAge = $activeSlave.actualAge>>
				<<elseif $activeSlave.birthName == "Purple Grape">>
					<<set $activeSlave.actualAge = $slaves[_k].actualAge+5, $activeSlave.physicalAge = $activeSlave.actualAge, $activeSlave.visualAge = $activeSlave.actualAge, $activeSlave.ovaryAge = $activeSlave.actualAge>>
				<</if>>
			<</if>>
		<</for>>
	<</if>>
<</if>>

<<set $saleDescription = 1>>
<<include "Long Slave Description">>
<<slaveCost $activeSlave>>
<<set $slaveCost = (10*Math.trunc(($slaveCost/10)*2))>>
<<if $slaveCost < 40000>>
	<<set $slaveCost += random(20000,60000)>>
<</if>>
<<set $specialSlavesPriceOverride = 0>>

The offered price is <<print cashFormat($slaveCost)>>.

[[Buy her slave contract|New Slave Intro][$cash -= $slaveCost, $activeSlave.weekAcquired = $week, $nextButton = "Continue", $nextLink = "AS Dump", $returnTo = "Main", $specialSlave = 1]]


code:
:: Concubine Select [nobr]

<<set $nextButton = "Back", $nextLink = "Master Suite", $showEncyclopedia = 1, $encyclopedia = "Concubine">>
<<showallAssignmentFilter>>
<<if ($Concubine != 0)>>
	<<setLocalPronouns $Concubine>>
	''__@@.pink;<<= SlaveFullName($Concubine)>>@@__'' is serving as your Concubine.

$He will take the lead in seeing to your pleasure.
<<else>>
	You have not selected a Concubine.
<</if>>

''Appoint a Concubine from your devoted slaves:''

[[None|Concubine Workaround][$i = -1]]

<<assignmentFilter>>

	<<showallAssignmentFilter>>
	<<include "Slave Summary">>
	<<resetAssignmentFilter>>


code:
:: Concubine Workaround [silently]

<<if $Concubine != 0>>
	<<= removeJob($Concubine, "be your Concubine")>>
<</if>>
<<if $i > -1>>
	<<= assignJob($slaves[$i], "be your Concubine")>>
	<<set $slaves[$i].livingRules = "luxurious">>
	<<set $Concubine = $slaves[$i]>>
<</if>>

<<goto "Master Suite">>


code:
:: Corporate Market [nobr]

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

You're in your corporation's flagship slave market.

The corporation pays you only nominal rent for this space, but will offer you a discount on slaves here based on your shares in it. Additionally, having the corporation's premiere products sold here in $arcologies[0].name will associate them with you, allowing your reputation to improve the corporate brand. A pretty
<<if $surgicalUpgradeGenitalia == "futanari">>futanari<<elseif $captureUpgradeGender == "XY">><<if $surgicalUpgradeGenitalia == "gelded">>clipped<<else>>shemale<</if>><</if>>
sales<<if $captureUpgradeAge == "old">>woman<<else>>girl<</if>> in a slutty suit greets you properly. She's a corporate slave chosen for loyalty and intelligence, and to physically represent the brand.
<<if $drugUpgradeInjectionTwo == "supermassive">>
	She has awe-inspiring breasts which her suit jacket helps support; even so, their bottoms reach past her navel.
<<elseif $drugUpgradeInjectionTwo == "pastoral">>
	She has gigantic, milk-swollen breasts almost spilling out of her suit.
<<elseif $surgicalUpgradeImplants == "absurd">>
	She has enormous fake tits that ride inhumanly high on her chest.
<<elseif $drugUpgradeInjectionOne == "huge">>
	She has huge tits and a nice broad butt which her tight skirt hugs closely.
<<elseif $surgicalUpgradeImplants == "applied">>
	She has nice fake bimbo tits and a silicone bubble butt.
<<elseif $drugUpgradeInjectionOne == "tasteful">>
	She's nice and curvy, with nice breasts and a lovely ass.
<</if>>
<<if $surgicalUpgradeCosmetics == "applied">>Her face is flawless.<</if>>
<<if ($captureUpgradeRace != "unselected") && ($captureUpgradeRace != "none")>>
	She's $captureUpgradeRace, of course<<if $trainingUpgradeAccent == "accents">>, and has a cute accent<</if>>.
<</if>>
<<if $drugUpgradeHormones == "XX">>
	Her voice is soft and feminine, and she bats her eyes at you.
<<elseif $drugUpgradeHormones == "XY">>
	She has a deep voice, and speaks assertively.
<</if>>
<<if $generalUpgradeMuscle == "toned">>
	Her hot body is perfectly toned under her suit.
<<elseif $generalUpgradeMuscle == "ripped">>
	Her suit is specially tailored to flatter her visible musculature.
<</if>>
Of course, you know all about the corporation, but sales<<if $captureUpgradeAge == "old">>women<<else>>girls<</if>> here have standing orders to treat you like any other customer, so you can review the market properly. The slave turns to <<if $surgicalUpgradeGenitalia != "fucknugget">>a multimedia presentation on<<else>>a rack of<</if>> your corporation's slaves.

She explains that the corporation captures many people, so it only retains and trains those that fit its product lines.

<<GenerateMarketSlave "corporate">>

Her presentation done, the
<<if $surgicalUpgradeGenitalia == "futanari">>futanari<<elseif $captureUpgradeGender == "XY">><<if $surgicalUpgradeGenitalia == "gelded">>clipped<<else>>shemale<</if>><</if>>
sales<<if $captureUpgradeAge == "old">>woman<<else>>girl<</if>> directs you to the inventory interface that will allow you to peruse the corporation's slaves, and moves over to stand next to it, ready to answer any questions.
<<if $PC.dick == 1>>
	She positions herself facing away from you and hikes up her skirt to bare her
	<<if $drugUpgradeInjectionTwo == "supermassive" || $drugUpgradeInjectionTwo == "pastoral">>gigantic ass<<elseif $surgicalUpgradeImplants != "none">>fake ass<<elseif $drugUpgradeInjectionOne != "huge">>big butt<<else>>cute butt<</if>>
	and cocks her hips<<if $surgicalUpgradeGenitalia == "gelded">>, keeping her soft cock demurely out of sight<</if>>, if you feel like <<if $captureUpgradeGender == "XY" && $surgicalUpgradeGenitalia != "futanari">>sodomizing<<else>>fucking<</if>> her
<<else>>
	She gets down on her knees right there, making her mouth available if you feel like riding her face
<</if>>
while you browse.

<<link "Use her">>
	<<replace "#result">>
		<<if $PC.dick == 1>>
			Her <<if $captureUpgradeGender == "XY" && $surgicalUpgradeGenitalia != "futanari">>asshole is thoughtfully pre-lubed, and your cock slides easily up it<<else>>pussy is nice and wet, and your cock slides inside her easily<</if>> as you consider the slaves on offer. She's well trained, and uses her <<if $captureUpgradeGender == "XY" && $surgicalUpgradeGenitalia != "futanari">>sphincter<<else>>womanly muscles<</if>> to please your member expertly as she ruts herself gently back against you, doing almost all the work. When you orgasm, she retains the load carefully, keeping your cum inside her and away from her nice clothes.
		<<else>>
			She's very well trained, and does all the work. Once you move in and straddle her, she gets right down to it, or in this case, up to it. Her clever tongue runs gently along your labia to build anticipation before starting a delightful dance around and then atop your clitoris. You orgasm in no time at all, a climax which she carefully prolongs by kissing you full on the pussy in just the right way, only breaking the oral embrace when you've ridden it as far as you'll go.
		<</if>>
	<</replace>>
<</link>>

<<slaveCost $activeSlave>>
<<if $slavesSeen > $slaveMarketLimit>><<set $slaveCost += $slaveCost*(($slavesSeen-$slaveMarketLimit)*0.1)>><</if>>

<<if $publicShares <= $personalShares*0.2>>
	Your commanding share of the corporation allows you to purchase its slaves at a very steep discount.
	<<set $slaveCost *= 0.7>>
<<elseif $publicShares <= $personalShares*0.5>>
	Your large share of the corporation permits you to purchase its slaves at a steep discount.
	<<set $slaveCost *= 0.8>>
<<else>>
	Your shares of the corporation come with a decent discount on its slaves.
	<<set $slaveCost *= 0.9>>
<</if>>

<<setLocalPronouns $activeSlave>>
<<set $slaveCost = 500*Math.trunc($slaveCost/500)>>
The offered price is <<print cashFormat($slaveCost)>>.<<if $slavesSeen > $slaveMarketLimit>> You have cast such a wide net for slaves this week that it is becoming more expensive to find more for sale. Your reputation helps determine your reach within the slave market.<</if>>

<<if $cash >= $slaveCost>>
	[["Buy " + $his + " slave contract"|New Slave Intro][$cash -= $slaveCost,$nextButton = "Continue",$nextLink = "AS Dump",$returnTo = "Main"]]
<<else>>
	//You lack the necessary funds to buy this slave.//
<</if>>

[["Decline to purchase " + $him + " and check out another slave"|Corporate Market][$slavesSeen += 1]]

<<set $saleDescription = 1, $applyLaw = 1>><<include "Long Slave Description">>

<<link "End corporate slave sales here and return this sector to standard markets">>
	<<set $corpMarket = 0>>
	<<for _i = 0; _i < $sectors.length; _i++>>
		<<if $sectors[_i].type == "CorporateMarket">><<set $sectors[_i].type = "Markets">><<break>><</if>>
	<</for>>
	<<goto "Main">>
<</link>>