code:
:: FRival

<<nobr>>
<<for _i = 0; _i < $slaves.length; _i++>>
	<<if $slaves[_i].ID == $activeSlave.rivalryTarget>>
		<<set _rival = $slaves[_i]>>
		<<break>>
	<</if>>
<</for>>
You call $activeSlave.slaveName to your office and let her know you'll be abusing _rival.slaveName together.

<<if ($activeSlave.fetish == "sadist") && ($activeSlave.fetishStrength > 60) && ($activeSlave.fetishKnown == 1)>>
	She looks overjoyed at the prospect of getting to hurt someone.
<</if>>

_rival.slaveName sees $activeSlave.slaveName as she enters and looks worried.

<<if (_rival.anus == 0) && (_rival.vagina < 0)>>
	Since she's a sissy bitch and an anal virgin, you tell her to bend over and <<if ($PC.dick == 0)>>give you head<<else>>suck your dick<</if>>. She does, and once she's working away, you tell $activeSlave.slaveName to come over and start spanking. _rival.slaveName begins to lift her head as though to protest, so you shove her back down onto your <<if ($PC.dick == 0)>>pussy<<else>>cock<</if>>, gagging and struggling. $activeSlave.slaveName administers a series of cruel slaps to the quivering <<if $seeRace == 1>>_rival.race <</if>>buttocks in front of her, making your victim yell delightfully into your <<if ($PC.dick == 0)>>womanhood<<else>>member<</if>>. After a short time $activeSlave.slaveName decides to be even crueler, and begins to 'miss' frequently, hitting _rival.slaveName's limp dick instead of her ass.
	<<set _rival.oralCount++, $oralTotal++>>
<<elseif (_rival.anus == 0) && (_rival.vagina == 0)>>
	Since she's a virgin, you tell her to bend over and <<if ($PC.dick == 0)>>give you head<<else>>suck your dick<</if>>. She does, and once she's working away, you tell $activeSlave.slaveName to come over and start spanking. _rival.slaveName begins to lift her head as though to protest, so you shove her back down onto your <<if ($PC.dick == 0)>>pussy<<else>>cock<</if>>, gagging and struggling. $activeSlave.slaveName administers a series of cruel slaps to the quivering <<if $seeRace == 1>>_rival.race <</if>>buttocks in front of her, making your victim yell delightfully into your <<if ($PC.dick == 0)>>womanhood<<else>>member<</if>>. After a short time $activeSlave.slaveName decides to be even crueler, and begins to 'miss' frequently, hitting _rival.slaveName's poor pussy instead of her ass.
	<<set _rival.oralCount++, $oralTotal++>>
<<elseif (_rival.anus == 0) && (_rival.vagina > 0) && ($activeSlave.dick > 0) && ($activeSlave.balls > 0) && ($activeSlave.hormones < 1) && ($activeSlave.dickAccessory !== "chastity")>>
	You tell her to bend over and <<if ($PC.dick == 0)>>give you head<<else>>suck your dick<</if>>. She does, and once she's working away, you tell $activeSlave.slaveName to use the bitch. _rival.slaveName begins to lift her head as though to protest, so you shove her back down onto your <<if ($PC.dick == 0)>>pussy<<else>>cock<</if>>, gagging and struggling. $activeSlave.slaveName lands a slap on the <<if $seeRace == 1>>_rival.race <</if>>butt in front of her as she lines her turgid dick up with _rival.slaveName's pussy. She sinks in with a sigh and begins to enjoy herself, using slaps and pinches to ensure that of the two slaves, the fun is entirely on her side.
	<<set _rival.vaginalCount++, _rival.oralCount++, $activeSlave.penetrativeCount++, $vaginalTotal++, $oralTotal++, $penetrativeTotal++>>
<<elseif (_rival.anus == 0) && (_rival.vagina > 0) && ($activeSlave.dick > 0)>>
	You <<if ($PC.dick == 0)>>step into a strap-on and tell her to ride it<<else>>tell her to ride your dick<</if>>, facing away from you. She does, not without trepidation, which increases when you hold her securely in place. Once she's humping away, you tell $activeSlave.slaveName to use her face. $activeSlave.slaveName comes over slowly, unsure what to do with the offer since her dick is so useless. She forces _rival.slaveName's face against her useless member anyway. After a bit of this, $activeSlave.slaveName, clearly unsatisfied, turns around and rides _rival.slaveName with her ass instead. _rival.slaveName tries to avoid orally servicing her rival's asshole, but you hold her in place and $activeSlave.slaveName sighs in contentment.
	<<set _rival.oralCount++, _rival.vaginalCount++, $activeSlave.oralCount++, $vaginalTotal++, $oralTotal += 2>>
<<elseif (_rival.anus == 0) && (_rival.vagina > 0)>>
	You <<if ($PC.dick == 0)>>step into a strap-on and tell her to ride it<<else>>tell her to ride your dick<</if>>, facing away from you. She does, not without trepidation, which increases when you hold her securely in place. Once she's humping away, you tell $activeSlave.slaveName to ride her face. $activeSlave.slaveName comes over, gently rubbing her pussy. She forces _rival.slaveName's face against her slick cunt, ignoring her reluctance. _rival.slaveName eventually realizes that she's better off getting it over with, and applies her tongue as best she can.
	<<set _rival.oralCount++, _rival.vaginalCount++, $activeSlave.oralCount++, $vaginalTotal++, $oralTotal += 2>>
<<elseif (_rival.anus > 0) && (_rival.vagina < 0) && ($activeSlave.dick > 0) && ($activeSlave.balls > 0) && ($activeSlave.hormones < 1) && $activeSlave.dickAccessory !== ("chastity")>>
	You <<if ($PC.dick == 0)>>step into a strap-on and tell her to ride it<<else>>tell her to ride your dick<</if>>, facing you. She lowers her butthole down onto your cock, not without trepidation, which increases when you reach behind her and spread her buttocks as wide as they'll go. With her pinned, you tell $activeSlave.slaveName to come over and join you. $activeSlave.slaveName comes over, stroking herself hard, not certain what you mean. To make it clear, you hook a single finger up into poor _rival.slaveName's rectum alongside <<if ($PC.dick == 0)>>the fake phallus<<else>>your dick<</if>>. It takes $activeSlave.slaveName a while to jam her cock up the struggling and sobbing _rival.slaveName's anus. Of the three phalli present, _rival.slaveName's is the only one that's soft as she cries her way through a brutal double anal rape.
	<<set _rival.analCount++, $activeSlave.penetrativeCount++, $analTotal++, $penetrativeTotal++>>
<<elseif (_rival.anus > 0) && (_rival.vagina == 0) && ($activeSlave.dick > 0) && ($activeSlave.balls > 0) && ($activeSlave.hormones < 1) && $activeSlave.dickAccessory !== ("chastity")>>
	You <<if ($PC.dick == 0)>>step into a strap-on and tell her to ride it<<else>>tell her to ride your dick<</if>> anally, facing you. She lowers her butthole down onto your cock, not without trepidation, which increases when you reach behind her and spread her buttocks as wide as they'll go. With her pinned, you tell $activeSlave.slaveName to come over and join you. $activeSlave.slaveName comes over, stroking herself hard, not certain what you mean. To make it clear, you hook a single finger up into poor _rival.slaveName's rectum alongside <<if ($PC.dick == 0)>>the fake phallus<<else>>your dick<</if>>. It takes $activeSlave.slaveName a while to jam her cock up the struggling and sobbing _rival.slaveName's anus. _rival.slaveName buys continued vaginal virginity by taking a brutal double anal rape.
	<<set _rival.analCount++, $activeSlave.penetrativeCount++, $analTotal++, $penetrativeTotal++>>
<<elseif (_rival.anus > 0) && (_rival.vagina < 1) && ($activeSlave.dick > 0)>>
	You <<if ($PC.dick == 0)>>step into a strap-on and tell her to ride it<<else>>tell her to ride your dick<</if>> anally, facing away from you. She does, not without trepidation, which increases when you hold her securely in place as you pump yourself in and out of her asshole. You tell $activeSlave.slaveName to ride her face. $activeSlave.slaveName comes over slowly, unsure what to do with the offer since her dick is so useless. She forces _rival.slaveName's face against her useless member anyway. After a bit of this, $activeSlave.slaveName, clearly unsatisfied, turns around and rides _rival.slaveName with her ass instead. _rival.slaveName tries to avoid orally servicing her rival's asshole, but you hold her in place and $activeSlave.slaveName sighs in contentment.
	<<set _rival.analCount++, _rival.oralCount++, $activeSlave.oralCount++, $analTotal++, $oralTotal += 2>>
<<elseif (_rival.anus > 0) && (_rival.vagina < 1)>>
	You <<if ($PC.dick == 0)>>step into a strap-on and tell her to ride it<<else>>tell her to ride your dick<</if>> anally, facing away from you. She does, not without trepidation, which increases when you hold her securely in place as you pump yourself in and out of her asshole. You tell $activeSlave.slaveName to ride her face. $activeSlave.slaveName comes over, gently rubbing her pussy. She forces _rival.slaveName's face against her slick cunt, ignoring her reluctance. _rival.slaveName eventually realizes that she's better off getting it over with, and applies her tongue as best she can.
	<<set _rival.oralCount++, _rival.analCount++, $activeSlave.oralCount++, $analTotal++, $oralTotal += 2>>
<<elseif (_rival.anus > 0) && (_rival.vagina > 0) && ($activeSlave.dick > 0) && ($activeSlave.balls > 0) && ($activeSlave.hormones < 1) && $activeSlave.dickAccessory !== ("chastity")>>
	You <<if ($PC.dick == 0)>>step into a strap-on and tell her to ride it<<else>>tell her to ride your dick<</if>>, facing you. She does, with some trepidation, which increases when you reach behind her and spread her buttocks as wide as they'll go. With her pinned, you tell $activeSlave.slaveName to come over and join you. $activeSlave.slaveName comes over, stroking herself hard. You squeeze _rival.slaveName's buttocks together and then spread them again, forcing her anus to wink invitingly. You stop _rival.slaveName's abortive humping and hold her hips in place while $activeSlave.slaveName gets her cock up her ass. Once she's set, off the two of you go, with poor _rival.slaveName gasping and grimacing as she gets it rough in both holes.
	<<set _rival.vaginalCount++, _rival.analCount++, $activeSlave.penetrativeCount++, $vaginalTotal++, $analTotal++, $penetrativeTotal++>>
<<elseif (_rival.anus > 0) && (_rival.vagina > 0) && ($activeSlave.dick > 0)>>
	You <<if ($PC.dick == 0)>>step into a strap-on and tell her to ride it<<else>>tell her to ride your dick<</if>>, facing you. She does, with some trepidation, which increases when you reach behind her and spread her buttocks as wide as they'll go. With her pinned, you tell $activeSlave.slaveName to come over and join you. $activeSlave.slaveName comes over, stroking herself hard, not certain what you mean, since her cock is useless. To make it clear, you push two fingers into _rival.slaveName's butt, finger fucking her asshole until $activeSlave.slaveName takes over. Once she's set, off the two of you go, with poor _rival.slaveName gasping and grimacing as she gets it rough in both holes. $activeSlave.slaveName uses as many fingers as she can, always at least one more than _rival.slaveName would like.
	<<set _rival.vaginalCount++, _rival.analCount++, $activeSlave.penetrativeCount++, $vaginalTotal++, $analTotal++, $penetrativeTotal++>>
<<elseif (_rival.anus > 0) && (_rival.vagina > 0)>>
	You <<if ($PC.dick == 0)>>step into a strap-on and tell her to ride it<<else>>tell her to ride your dick<</if>>, facing you. She does, with some trepidation, which increases when you reach behind her and spread her buttocks as wide as they'll go. With her pinned, you tell $activeSlave.slaveName to come over and join you, indicating a strap-on for slave use, on a side shelf. $activeSlave.slaveName hurries into it and comes over. You stop _rival.slaveName's abortive humping and hold her hips in place while $activeSlave.slaveName gets her fake cock up her ass. Once she's set, off the two of you go, with poor _rival.slaveName gasping and grimacing as she gets it rough in both holes. $activeSlave.slaveName murmurs calumnies in _rival.slaveName's ear, pinches her nipples, and generally adds humiliation above and beyond being double penetrated by her owner and her rival.
	<<set _rival.vaginalCount++, _rival.analCount++, $activeSlave.penetrativeCount++, $vaginalTotal++, $analTotal++, $penetrativeTotal++>>
<<else>>
	Unforeseen combination of rival stats; yell at FC Dev to write a scene for these slaves.
<</if>>

<<if $slaves[_i].ID == _rival.ID>>
	<<set $slaves[_i] = _rival>>
<<else>>
	<<for _i = 0; _i < $slaves.length; _i++>>
		<<if $slaves[_i].ID == _rival.ID>>
		<<set $slaves[_i] = _rival>>
		<<break>>
		<</if>>
	<</for>>
<</if>>
<<if passage() !== "Slave Interact">>
  <<for _i = 0; _i < $slaves.length; _i++>>
	  <<if $slaves[_i].ID == $activeSlave.ID>>
	  <<set $slaves[_i] = $activeSlave>>
	  <<break>>
	  <</if>>
  <</for>>
<</if>>
<<set _rival = null>>

<</nobr>>\


code:
:: FSlaveImpreg

<<nobr>>

<<set $nextButton = "Back">>
<<set $nextLink = "Slave Interact">>

<<set $impregnatrix = 0>>
<<set $eligibility = 0>>

//$activeSlave.slaveName is fertile; now you must select a slave with both a penis and potent testicles.//

<</nobr>>

__Select an eligible slave to serve as the semen donatrix:__
<<for $i = 0; $i < $slaves.length; $i++>>\
	<<if ($slaves[$i].dick > 0)>>\
	<<if ($slaves[$i].balls > 0)>>\
	<<if ($slaves[$i].pubertyXY == 1)>>\
	<<if canBreed($activeSlave, $slaves[$i])>>\
	<<if ($slaves[$i].dickAccessory != "chastity")>>\
	<<if ($slaves[$i].ID != $activeSlave.ID)>>\
		<<print "[[$slaves[$i].slaveName|FSlaveImpreg Consummate][$impregnatrix = $slaves[" + $i + "]]]">>
		<<set $eligibility = 1>>\
	<</if>>\
	<</if>>\
	<</if>>\
	<</if>>\
	<</if>>\
	<</if>>\
<</for>>\
<<if ($eligibility == 0)>>\
	//You have no slaves capable of inseminating others.//
<</if>>\

repo_name: Elohiem/fc


code:
:: Fucktoy Workaround [silently]

<<set $slaves[$i].assignment = "please you", $slaves[$i].choosesOwnAssignment = 0>>
<<goto "Main">>


code:
:: Import Slave [nobr]

<<set $nextButton = "Continue">>
<<set $nextLink = "Slave Interact">>

//Paste the code into the text box and click Apply//

<<set $tempSlave = "">>
<<textbox "$tempSlave" $tempSlave>>
<<link "Apply">>
	<<if (def $tempSlave) && ($tempSlave !== "")>>
		<<set $tempSlave = eval('({' + $tempSlave + '})')>>
		<<set $tempSlave.ID = $IDNumber>>
		<<set $IDNumber += 1>>
		<<AddSlave $tempSlave>>
		<<replace #import>>
			''Slave imported successfully!''

		<</replace>>
		<<unset $tempSlave>>
	<<else>>
		<<replace #import>>
			''Slave not imported!''

		<</replace>>
	<</if>>
<</link>>

<<link "Continue">>
	<<goto "Slave Interact">>
<</link>>


code:
:: Remove activeSlave [silently]

<<set _ID = $activeSlave.ID, _SL = $slaves.length>>

<<if (def _i) && (_i < _SL) && ($slaves[_i].ID == _ID)>>
	<<set _x = _i>>
<<else>>
	<<for _x = 0; _x < _SL; _x++>>
		<<if _ID == $slaves[_x].ID>>
			<<break>>
		<</if>>
	<</for>>
<</if>>

<<if _ID == $PC.pregSource>>
	<<set $PC.pregSource to 0>>
<</if>>
<<if $activeSlave.reservedChildren > 0>>
	<<set $reservedChildren -= $activeSlave.reservedChildren>>
<</if>>
<<if $PC.mother == _ID>>
	<<set $PC.mother = $missingParentID>>
	<<if $PC.father == _ID>>
		<<set $PC.father = $missingParentID>>
	<</if>>
	<<set $missingParentID-->>
<</if>>
<<if $PC.father == _ID>>
	<<set $PC.father = $missingParentID>>
	<<set $missingParentID-->>
<</if>>
<<if $PC.sisters > 0>>
	<<if areSisters($PC, $activeSlave) > 0>>
		<<set $PC.sisters-->>
	<</if>>
<</if>>
<<if $PC.daughters > 0>>
	<<if $activeSlave.father == -1 || $activeSlave.mother == -1>>
		<<set $PC.daughters-->>
	<</if>>
<</if>>

<<if _x < _SL>>
	<<for _y = 0; _y < _SL; _y++>>
		<<if _ID == $slaves[_y].pregSource>>
			<<set $slaves[_y].pregSource = 0>>
		<</if>>
		<<if $activeSlave.daughters > 0>>
			<<if $slaves[_y].mother == _ID>>
				<<set $slaves[_y].mother = $missingParentID>>
			<</if>>
			<<if $slaves[_y].father == _ID>>
				<<set $slaves[_y].father = $missingParentID>>
			<</if>>
			<<if $incubator > 0>>
				<<for _z to 0; _z < $tanks.length; _z++>>
					<<if _ID == $tanks[_z].mother>>
						<<set $slaves[_z].mother = $missingParentID>>
					<</if>>
					<<if _ID == $tanks[_z].father>>
						<<set $slaves[_z].father = $missingParentID>>
					<</if>>
				<</for>>
			<</if>>
			<<set $missingParentID-->>
		<</if>>
		<<if $activeSlave.mother > 0 || $activeSlave.father > 0>>
			<<if $activeSlave.mother == $slaves[_y].ID || $activeSlave.father == $slaves[_y].ID>>
				<<set $slaves[_y].daughters-->>
			<</if>>
			<<set $missingParentID-->>
		<</if>>
		<<if $activeSlave.sisters > 0>>
			<<if areSisters($activeSlave, $slaves[_y]) > 0>>
				<<set $slaves[_y].sisters-->>
			<</if>>
		<</if>>
		<<if $slaves[_y].ID == $activeSlave.relationTarget>>
			<<set $slaves[_y].relation = 0, $slaves[_y].relationTarget = 0>>
		<</if>>
		<<if $slaves[_y].milkSource != 0>>
			<<if $slaves[_y].milkSource == _ID>>
				<<set $slaves[_y].milkSource =0, $slaves[_y].inflation = 0, $slaves[_y].inflationType = "none", $slaves[_y].inflationMethod = 0>>
			<</if>>
		<</if>>
		<<if $slaves[_y].cumSource != 0>>
			<<if $slaves[_y].cumSource == _ID>>
				<<set $slaves[_y].cumSource = 0, $slaves[_y].inflation = 0, $slaves[_y].inflationType = "none", $slaves[_y].inflationMethod = 0>>
			<</if>>
		<</if>>
		<<if $slaves[_y].ID == $activeSlave.relationshipTarget>>
			<<set $slaves[_y].relationship = 0, $slaves[_y].relationshipTarget = 0>>
		<</if>>
		<<if $slaves[_y].ID == $activeSlave.rivalryTarget>>
			<<set $slaves[_y].rivalry = 0, $slaves[_y].rivalryTarget = 0>>
		<</if>>
	<</for>>
	<<if _ID == $Recruiter.ID>><<set $Recruiter = 0>><</if>>
	<<if _ID == $HeadGirl.ID>><<set $HeadGirl = 0>><</if>>
	<<if _ID == $Bodyguard.ID>><<set $Bodyguard = 0>><</if>>
	<<if _ID == $Lurcher.ID>><<set $Lurcher = 0>><</if>>
	<<if _ID == $retiree.ID>><<set $retiree = 0>><</if>>
	<<if _ID == $fighterTwo.ID>><<set $fighterTwo = 0>><</if>>
	<<if _ID == $Madam.ID>><<set $Madam = 0>><</if>>
	<<if _ID == $DJ.ID>><<set $DJ = 0>><</if>>
	<<if _ID == $Milkmaid.ID>><<set $Milkmaid = 0>><</if>>
	<<if _ID == $Schoolteacher.ID>><<set $Schoolteacher = 0>><</if>>
	<<if _ID == $Attendant.ID>><<set $Attendant = 0>><</if>>
	<<if _ID == $Nurse.ID>><<set $Nurse = 0>><</if>>
	<<if _ID == $Collectrix.ID>><<set $Collectrix = 0>><</if>>
	<<if _ID == $Stewardess.ID>><<set $Stewardess = 0>><</if>>
	<<if _ID == $Wardeness.ID>><<set $Wardeness = 0>><</if>>
	<<if _ID == $Concubine.ID>><<set $Concubine = 0>><</if>>
	<<if _ID == $personalAttention>>
	<<if $PC.career == "servant">>
		<<set $personalAttention = "upkeep">>
	<<elseif $PC.career == "escort">>
		<<set $personalAttention = "whoring">>
	<<else>>
	<<set $personalAttention = "business">>
	<</if>>
	<</if>>
	<<for _y = 0; _y < $fighterIDs.length; _y++>>
		<<if _ID == $fighterIDs[_y]>>
			<<set _dump = $fighterIDs.deleteAt(_y), _y-->>
		<</if>>
	<</for>>
	/% Remove from facility array if assigned %/
	<<switch $slaves[_x].assignment>>
	<<case "learn in the schoolroom" "get treatment in the clinic" "rest in the spa" "work in the dairy" "be confined in the arcade" "live with your Head Girl" "be confined in the cellblock" "serve in the club" "serve in the master suite" "work as a servant" "work in the brothel">>
		<<removeJob $activeSlave $activeSlave.assignment>>
	<</switch>>

	<<set _Tcount = $slavesOriginal.length>>
	<<for _y = 0; _y < _Tcount; _y++>>
		<<if $slavesOriginal[_y].ID == _ID>>
			<<set _dump = $slavesOriginal.deleteAt(_y)>>
			<<break>>
		<</if>>
	<</for>>
	<<set _dump = $slaves.deleteAt(_x), _SL--, $activeSlave = 0>>
<</if>>


code:
:: Rest Workaround [silently]

<<set $slaves[$i].assignment = "rest", $slaves[$i].choosesOwnAssignment = 0>>
<<goto "Main">>


code:
:: RG AS Dump [silently]

<<set _SL = $slaves.length, _ID = $activeSlave.ID>>

<<set $activeSlave.actualAge = Number($activeSlave.actualAge) || 18>>
<<set $activeSlave.devotion = Number($activeSlave.devotion) || 0>>
<<set $activeSlave.trust = Number($activeSlave.trust) || 0>>
<<set $activeSlave.boobs = Number($activeSlave.boobs) || 200>>

<<if $activeSlave.analArea < $activeSlave.anus>>
	<<set $activeSlave.analArea = $activeSlave.anus>>
<</if>>

/* RECRUITERS */

<<if $familyTesting == 1>>
	<<if $activeSlave.canRecruit == 1>>
		/*<<set $recruiters.push($activeSlave)>>*/
	<</if>>
<<else>>

<<if ($activeSlave.relation == 0)>>
<<if random(1,100) <= 5>>
	<<set $activeSlave.recruiter = "twin">>
<<elseif ($activeSlave.actualAge > 32) && (random(1,100) <= 41)>>
	<<set $activeSlave.recruiter = "mother">>
<<elseif ($activeSlave.actualAge < 24) && (random(1,100) <= 40)>>
	<<set $activeSlave.recruiter = "daughter">>
<<elseif ($activeSlave.actualAge < 43) && (random(1,100) <= 20)>>
	<<set $activeSlave.recruiter = "older sister">>
<<elseif ($activeSlave.actualAge < 25) && ($activeSlave.actualAge > 18) && (random(1,100) <= 20)>>
	<<set $activeSlave.recruiter = "young sister">>
<</if>>
<</if>>

<</if>>

<<if $applyCareerBonus == 1>>
	<<set _seed = 2>>
	<<if $PC.career == "capitalist">>
		<<if $activeSlave.whoreSkill < 60>><<set $activeSlave.whoreSkill += 20>><</if>>
	<<elseif $PC.career == "mercenary">>
		<<set $activeSlave.trust += 10>>
	<<elseif $PC.career == "slaver">>
		<<set $activeSlave.devotion += 10>>
	<<elseif $PC.career == "medicine">>
		<<set $activeSlave.boobs += 600, $activeSlave.boobsImplant += 600, $activeSlave.butt += 2, $activeSlave.buttImplant += 2, $activeSlave.lips += 10, $activeSlave.lipsImplant += 10, $activeSlave.waist = 55>>
	<<elseif $PC.career == "celebrity">>
		<<if $activeSlave.entertainSkill < 60>><<set $activeSlave.entertainSkill += 20>><</if>>
	<<elseif $PC.career == "servant">>
		<<set $activeSlave.trust += 10>>
		<<set $activeSlave.devotion += 10>>
	<<elseif $PC.career == "gang">>
		<<set $activeSlave.health += 5>>
		<<if $activeSlave.combatSkill < 1>>
			<<set $activeSlave.combatSkill += 1>>
		<</if>>
	<<elseif $PC.career == "escort">>
		<<if $activeSlave.entertainSkill < 60>>
			<<set $activeSlave.entertainSkill += 20>>
		<</if>>
		<<if $activeSlave.whoreSkill < 60>>
			<<set $activeSlave.whoreSkill += 20>>
		<</if>>
		<<if ($activeSlave.oralSkill < 60)>>
			<<set $activeSlave.oralSkill += 20, _seed-->>
		<</if>>
		<<if ($activeSlave.analSkill < 60) && (($activeSlave.anus > 0) || ($activeSlave.analSkill <= 10))>>
			<<set $activeSlave.analSkill += 20, _seed-->>
		<</if>>
		<<if (_seed > 0) && ($activeSlave.vaginalSkill < 60) && ($activeSlave.vagina > -1) && (($activeSlave.vagina > 0) || ($activeSlave.vaginalSkill <= 10))>>
			<<set $activeSlave.vaginalSkill += 20, _seed-->>
		<</if>>
	<<elseif $PC.career == "wealth">>
		<<if ($activeSlave.oralSkill < 60)>>
			<<set $activeSlave.oralSkill += 20, _seed-->>
		<</if>>
		<<if ($activeSlave.analSkill < 60) && (($activeSlave.anus > 0) || ($activeSlave.analSkill <= 10))>>
			<<set $activeSlave.analSkill += 20, _seed-->>
		<</if>>
		<<if (_seed > 0) && ($activeSlave.vaginalSkill < 60) && ($activeSlave.vagina > -1) && (($activeSlave.vagina > 0) || ($activeSlave.vaginalSkill <= 10))>>
			<<set $activeSlave.vaginalSkill += 20>>
		<</if>>
	<<else>>
		<<set $activeSlave.devotion += 10>>
		<<if $activeSlave.whoreSkill < 60>><<set $activeSlave.whoreSkill += 20>><</if>>
		<<if $activeSlave.entertainSkill < 60>><<set $activeSlave.entertainSkill += 20>><</if>>
		<<if ($activeSlave.oralSkill < 60)>>
			<<set $activeSlave.oralSkill += 20, _seed-->>
		<</if>>
		<<if ($activeSlave.analSkill < 60) && (($activeSlave.anus > 0) || ($activeSlave.analSkill <= 10))>>
			<<set $activeSlave.analSkill += 20, _seed-->>
		<</if>>
		<<if (_seed > 0) && ($activeSlave.vaginalSkill < 60) && ($activeSlave.vagina > -1) && (($activeSlave.vagina > 0) || ($activeSlave.vaginalSkill <= 10))>>
			<<set $activeSlave.vaginalSkill += 20>>
		<</if>>
	<</if>>
	<<set $careerBonusApplied = 1>>
<</if>>

<<for _i = 0; _i < _SL; _i++>>
	<<if _ID == $slaves[_i].ID>><<break>><</if>>
<</for>>
<<if _i < _SL>>
	<<set $slaves[_i] = $activeSlave>>
<<elseif def $activeSlave.slaveName>>
	<<AddSlave $activeSlave>>
<</if>>

<<goto $returnTo>>


code:
:: Servant Workaround [silently]

<<set $slaves[$i].assignment = "be a servant", $slaves[$i].choosesOwnAssignment = 0>>
<<goto "Main">>


code:
:: Commit Starting Girl [nobr]

<<set $activeSlave.actualAge = Number($activeSlave.actualAge) || 18>>
<<set $activeSlave.devotion = Number($activeSlave.devotion) || 0>>
<<set $activeSlave.trust = Number($activeSlave.trust) || 0>>
<<if $activeSlave.indenture >= 0>>
	<<set $activeSlave.indenture = Math.clamp($activeSlave.indenture, 26, 208) || 26>>
<</if>>
<<set $activeSlave.height = Math.clamp($activeSlave.height, 85, 274) || 140>>
<<set $activeSlave.boobs = Math.clamp(Math.trunc($activeSlave.boobs/50)*50, 0, 10000) || 200>>

<<set $careerBonusApplied = 0>>
<<set $originOveride = 0>>

<<if $cash < $minimumSlaveCost>><<goto "Acquisition">><</if>>

<<set $showStartingGirlsExplanation = 0>>

<<if $createRelatedSlave == 0 && (($hostage == 0) || ($slaveCost > $hostageCost))>>
	<<set $hostage = $slaveWithoutBonuses, $hostageCost = $slaveCost, $hostageAnnounced = -1>>
<</if>>

$activeSlave.slaveName has been added to your starting stable of slaves. You now have ¤$cash remaining.

<<if $cash >= $minimumSlaveCost>>

	<<link "Add another slave, starting from a new slave">>
		<<StartingGirlsWorkaround>>
		<<goto "Starting Girls">>
	<</link>>

[[Add another slave, based on the previous slave|Starting Girls][$activeSlave = $slaveWithoutBonuses, $activeSlave.relation = 0, $activeSlave.relationTarget = 0, $startingGirlCopied = 1, $activeSlave.mother = 0, $activeSlave.father = 0]]
	<<if $createRelatedSlave == 1>>

	//Add another slave, related to the previous slave://

	<<if $familyTesting == 1>>
		//Use "based on the previous slave" and the available .father and .mother controls to create your family//
		/*
		[[Twin|RG AS Dump][$returnTo = "Starting Girls", $activeSlave.father = $missingParentID, $activeSlave.mother = $missingParentID, $startingSlaveRelative = "twin"]]
		<<if $activeSlave.actualAge <= 8 && ($PC.career == "servant" || $PC.career == "escort") && ($PC.vagina == 1)>>
		<<else>>

		[[Sister|RG AS Dump][$returnTo = "Starting Girls", $activeSlave.father = $missingParentID, $activeSlave.mother = $missingParentID, $startingSlaveRelative = "sister"]]
		<<if $activeSlave.actualAge >= ($fertilityAge + $minimumSlaveAge)>>

			[[Daughter|RG AS Dump][$returnTo = "Starting Girls", $activeSlave.birthsTotal += 1, $startingSlaveRelative = "daughter"]]
		<</if>>
		<</if>>
		*/
	<<else>>
		[[Twin|RG AS Dump][$returnTo = "Starting Girls", $activeSlave.relation = "twin", $activeSlave.relationTarget = $activeSlave.ID+1, $startingGirlCopied = 1]]
		<<if $activeSlave.actualAge <= 8 && ($PC.career == "servant" || $PC.career == "escort") && ($PC.vagina == 1)>>
		<<else>>

		[[Sister|RG AS Dump][$returnTo = "Starting Girls", $activeSlave.relation = "sister", $activeSlave.relationTarget = $activeSlave.ID+1, $startingGirlCopied = 1]]
		<<if $activeSlave.actualAge <= 24>>

			[[Mother|RG AS Dump][$returnTo = "Starting Girls", $activeSlave.relation = "daughter", $activeSlave.relationTarget = $activeSlave.ID+1, $startingGirlCopied = 1]]
		<</if>>
		<<if $activeSlave.actualAge >= ($fertilityAge + $minimumSlaveAge)>>

			[[Daughter|RG AS Dump][$returnTo = "Starting Girls", $activeSlave.relation = "mother", $activeSlave.birthsTotal += 1, $activeSlave.relationTarget to $activeSlave.ID+1, $startingGirlCopied = 1]]
		<</if>>
		<</if>>
	<</if>>
	<<elseif $activeSlave.relation == 0>>

[[Add another slave, related to the previous slave|Commit Starting Girl][$createRelatedSlave = 1]]
	<</if>>
<</if>>

[[Stop adding slaves and take control of the arcology|Acquisition]]


code:
:: More customization options

<<nobr>>

<<set $activeSlave.pubicHColor = $activeSlave.hColor>>
<<set $activeSlave.underArmHColor = $activeSlave.hColor>>
<<set $activeSlave.origHColor = $activeSlave.hColor>>
<<set $activeSlave.origEye = $activeSlave.eyeColor>>

<</nobr>>\
\
''Birth name:'' <<textbox "$activeSlave.birthName" $activeSlave.birthName "More customization options">>
''Slave name:'' <<textbox "$activeSlave.slaveName" $activeSlave.slaveName "More customization options">>
''Career:'' <<textbox "$activeSlave.career" $activeSlave.career "More customization options">>
''Nationality:'' <<textbox "$activeSlave.nationality" $activeSlave.nationality "More customization options">>
    //This will not alter name or race//
''Ethnicity:'' <<textbox "$activeSlave.race" $activeSlave.race "More customization options">>
    //This will not apply phenotypes//
''Hair color:'' <<textbox "$activeSlave.hColor" $activeSlave.hColor "More customization options">>
    //This will also set pubic and underarm hair color//
''Eye color:'' <<textbox "$activeSlave.eyeColor" $activeSlave.eyeColor "More customization options">>
Custom tattoo: <<textbox "$activeSlave.customTat" $activeSlave.customTat "More customization options">>
    //Use complete, capitalized and punctuated sentences//
Custom origin story: <<textbox "$activeSlave.origin" $activeSlave.origin "More customization options">>
    //For best results, use complete, capitalized and punctuated sentences.//
<<if $originOveride == 0>>
	[[Origin Override|More customization options][$originOveride = 1]] //Will keep your custom origin from being overwritten.//
<<else>>
	[[Disable Override|More customization options][$originOveride = 0]] //Will unlock origin and allow slavegen to overwrite it.//
<</if>>
Custom description: <<textbox "$activeSlave.customDesc" $activeSlave.customDesc "More customization options">>
    //Use complete, capitalized and punctuated sentences.//
Custom label: <<textbox "$activeSlave.customLabel" $activeSlave.customLabel "More customization options">>
    //Use a short phrase//

<<nobr>>
''Natural skin distinctiveness:'' $activeSlave.markings.
[[None|More customization options][$activeSlave.markings = "none"]]
| [[Freckles|More customization options][$activeSlave.markings = "freckles"]]
| [[Heavily freckled|More customization options][$activeSlave.markings = "heavily freckled"]]
| [[Beauty mark|More customization options][$activeSlave.markings = "beauty mark"]]
| [[Birthmark|More customization options][$activeSlave.markings = "birthmark"]]
<</nobr>>\
<<nobr>>
<<if $activeSlave.anus > 0>>
<br>
''External appearance of anus:''
<<if $activeSlave.analArea <= $activeSlave.anus>>
	Recently stretched to current size.
<<elseif $activeSlave.analArea - $activeSlave.anus == 1>>
	Used to current size.
<<else>>
	Very broad.
<</if>>
[[Recently stretched|More customization options][$activeSlave.analArea = $activeSlave.anus]]
| [[Used to current size|More customization options][$activeSlave.analArea = $activeSlave.anus+1]]
| [[Very broad|More customization options][$activeSlave.analArea = $activeSlave.anus+2]]
<</if>>
<</nobr>>
<<nobr>>
''Natural breast shape:'' $activeSlave.boobShape.
[[Normal|More customization options][$activeSlave.boobShape = "normal"]]
| [[Perky|More customization options][$activeSlave.boobShape = "perky"]]
| [[Torpedo-shaped|More customization options][$activeSlave.boobShape = "torpedo-shaped"]]
| [[Wide-set|More customization options][$activeSlave.boobShape = "wide-set"]]
| [[Downward-facing|More customization options][$activeSlave.boobShape = "downward-facing"]]
| [[Saggy|More customization options][$activeSlave.boobShape = "saggy"]]
<</nobr>>

[[Continue|Starting Girls]]