code:
:: pregmod widgets [nobr widget]

<<widget "PMODinit">>
<<if ndef $args[0].actualAge>>
	<<set $args[0].actualAge = $args[0].age>>
<</if>>
<<if ndef $args[0].physicalAge>>
	<<set $args[0].physicalAge = $args[0].actualAge>>
<</if>>
<<if ndef $args[0].visualAge>>
	<<set $args[0].visualAge = $args[0].actualAge>>
<</if>>
<<if ndef $args[0].ovaryAge>>
	<<set $args[0].ovaryAge = $args[0].actualAge>>
<</if>>
<<if ndef $args[0].age>>
	<<set $args[0].age = $args[0].actualAge>>
<</if>>
<<if ndef $args[0].boobsImplantType>>
  <<set $args[0].boobsImplantType = 0>>
<</if>>
<<if ndef $args[0].buttImplantType>>
  <<set $args[0].buttImplantType = 0>>
<</if>>
<<if ndef $args[0].bellyTat>>
  <<set $args[0].bellyTat = 0>>
<</if>>
<<if ndef $args[0].cSec>>
  <<set $args[0].cSec = 0>>
<</if>>
<<if ndef $args[0].labor>>
  <<set $args[0].labor = 0>>
<</if>>
<<if ndef $args[0].induce>>
  <<set $args[0].induce = 0>>
<</if>>
<<if ndef $args[0].mpreg>>
  <<set $args[0].mpreg = 0>>
<</if>>
<<if ndef $args[0].inflation>>
  <<set $args[0].inflation = 0>>
<</if>>
<<if ndef $args[0].inflationType>>
  <<set $args[0].inflationType = "none">>
<</if>>
<<if ndef $args[0].inflationMethod>>
  <<set $args[0].inflationMethod = 0>>
<</if>>
<<if ndef $args[0].milkSource>>
  <<set $args[0].milkSource = 0>>
<</if>>
<<if ndef $args[0].cumSource>>
  <<set $args[0].cumSource = 0>>
<</if>>
<<if ndef $args[0].burst>>
  <<set $args[0].burst = 0>>
<</if>>
<<if ndef $args[0].bellyImplant>>
  <<set $args[0].bellyImplant = -1>>
<</if>>
<<if ndef $args[0].bellySag>>
  <<set $args[0].bellySag = 0>>
<</if>>
<<if ndef $args[0].birthsTotal>>
  <<set $args[0].birthsTotal = $args[0].births>>
<</if>>
<<if ndef $args[0].pubertyAgeXX>>
  <<set $args[0].pubertyAgeXX = $fertilityAge>>
<</if>>
<<if ndef $args[0].bellyPain>>
	<<set $args[0].bellyPain = 0>>
<</if>>
<<if ndef $args[0].scars>>
	<<set $args[0].scars = 0>>
<</if>>
<<if ndef $args[0].breedingMark>>
	<<set $args[0].breedingMark = 0>>
<</if>>
<<if ndef $args[0].underArmHColor>>
	<<set $args[0].underArmHColor = $args[0].hColor>>
<</if>>
<<if ndef $args[0].underArmHStyle>>
	<<set $args[0].underArmHStyle = "waxed">>
<</if>>
<<if def $args[0].prostateImplant>>
	<<if ($args[0].prostateImplant == 1)>>
		<<set $args[0].prostate = 3>>
	<</if>>
	<<set $args[0].prostateImplant = undefined>>
<</if>>
<<if ndef $args[0].bodySwap>>
	<<set $args[0].bodySwap = 0>>
<</if>>
<<if ndef $args[0].father>>
	<<set $args[0].father = 0>>
<</if>>
<<if ndef $args[0].mother>>
	<<set $args[0].mother = 0>>
<</if>>
<<if ndef $args[0].daughters>>
	<<set $args[0].daughters = 0>>
<</if>>
<<if ndef $args[0].sisters>>
	<<set $args[0].sisters = 0>>
<</if>>
<<if ndef $args[0].canRecruit>>
	<<set $args[0].canRecruit = 0>>
<</if>>
<<if ndef $args[0].ballType>>
	<<set $args[0].ballType = "human">>
<</if>>
<<if ndef $args[0].eggType>>
	<<set $args[0].eggType = "human">>
<</if>>
<<if ndef $args[0].HGExclude>>
	<<set $args[0].HGExclude = 0>>
<</if>>
<<if ndef $args[0].reservedChildren>>
	<<set $args[0].reservedChildren = 0>>
<</if>>
<<if ndef $args[0].choosesOwnChastity>>
	<<set $args[0].choosesOwnChastity = 0>>
<</if>>
<<if ndef $args[0].pregControl>>
	<<set $args[0].pregControl = "none">>
<</if>>
<<if ndef $args[0].readyLimbs>>
	<<set $args[0].readyLimbs = []>>
<</if>>
<<if ndef $args[0].ageAdjust>>
	<<set $args[0].ageAdjust = 0>>
<</if>>
<<if ndef $args[0].bald>>
	<<set $args[0].bald = 0>>
<</if>>
<<if ndef $args[0].death>>
	<<set $args[0].death = "">>
<</if>>
<<if ndef $args[0].hormoneBalance>>
	<<set $args[0].hormoneBalance = 0>>
<</if>>
<<if ndef $args[0].onDiet>>
	<<set $args[0].onDiet = 0>>
<</if>>
<<if ndef $args[0].breastMesh>>
	<<set $args[0].breastMesh = 0>>
<</if>>
<<if ndef $args[0].bellySagPreg>>
	<<set $args[0].bellySagPreg = $args[0].bellySag>>
<</if>>
<<if ndef $args[0].buttplugAttachment>>
	<<set $args[0].buttplugAttachment = "none">>
<</if>>
<<if ndef $args[0].slavesFathered>>
	<<set $args[0].slavesFathered = 0>>
<</if>>
<<if ndef $args[0].PCChildrenFathered>>
	<<set $args[0].PCChildrenFathered = 0>>
<</if>>
<<if ndef $args[0].slavesKnockedUp>>
	<<set $args[0].slavesKnockedUp = 0>>
<</if>>
<<if ndef $args[0].PCKnockedUp>>
	<<set $args[0].PCKnockedUp = 0>>
<</if>>
<<if ndef $args[0].vasectomy>>
	<<set $args[0].vasectomy = 0>>
<</if>>
<<if ndef $args[0].haircuts>>
	<<set $args[0].haircuts = 0>>
<</if>>
<<if ndef $args[0].newGamePlus>>
	<<set $args[0].newGamePlus = 0>>
<</if>>

<<if ndef $args[0].pregKnown>>
	<<if $args[0].preg > 0>>
		<<set $args[0].pregKnown = 1>>
	<<else>>
		<<set $args[0].pregKnown = 0>>
	<</if>>
<</if>>
<<if ndef $args[0].pregWeek>>
	<<if $args[0].preg > 0>>
		<<set $args[0].pregWeek = $args[0].preg>>
	<<else>>
		<<set $args[0].pregWeek = 0>>
	<</if>>
<</if>>
<<SetBellySize $args[0]>>

<<if ndef $args[0].pubertyXX>>
	<<if $args[0].physicalAge >= $args[0].pubertyAgeXX>>
		<<set $args[0].pubertyXX = 1>>
	<<else>>
		<<set $args[0].pubertyXX = 0>>
	<</if>>
<</if>>
<<if ndef $args[0].pubertyAgeXY>>
  <<set $args[0].pubertyAgeXY = $potencyAge>>
<</if>>
<<if ndef $args[0].pubertyAgeXY>>
	<<if $args[0].physicalAge >= $args[0].pubertyAgeXY>>
		<<set $args[0].pubertyXY = 1>>
	<<else>>
		<<set $args[0].pubertyXY = 0>>
	<</if>>
<</if>>
<</widget>>

<<widget "AgeImplantAdjustment">>
	<<if $args[0].visualAge > 80>>
		<<set $args[0].visualAge -= 40>>
	<<elseif $args[0].visualAge >= 70>>
		<<set $args[0].visualAge -= 30>>
	<<elseif $args[0].visualAge > 50>>
		<<set $args[0].visualAge -= 20>>
	<<elseif $args[0].visualAge > 36>>
		<<set $args[0].visualAge -= 10>>
	<<else>>
		<<set $args[0].visualAge -= 5>>
	<</if>>
<</widget>>

<<widget "PCAgeImplantAdjustmentUp">>
	<<if $PC.visualAge < 35>>
		<<set $PC.visualAge += 15>>
	<<elseif $PC.visualAge <= 50>>
		<<set $PC.visualAge += 10>>
	<<elseif $PC.visualAge < 60>>
		<<set $PC.visualAge += 5>>
	<<elseif $PC.visualAge < 80>>
		<<set $PC.visualAge += 3>>
	<<else>>
		<<set $PC.visualAge += 1>>
	<</if>>
<</widget>>

<<widget "PCAgeImplantAdjustmentDown">>
	<<if $PC.visualAge > 80>>
		<<set $PC.visualAge -= 40>>
	<<elseif $PC.visualAge >= 70>>
		<<set $PC.visualAge -= 30>>
	<<elseif $PC.visualAge > 50>>
		<<set $PC.visualAge -= 20>>
	<<elseif $PC.visualAge > 36>>
		<<set $PC.visualAge -= 10>>
	<<else>>
		<<set $PC.visualAge -= 5>>
	<</if>>
<</widget>>

<<widget "InitStandards">>

<<set $activeStandard to {age: 24, weightMax: 0, weightMin: 0, muscles: 0, raceSup: "white", raceSub: "white", boobs: 0, boobsImplant: 0, lactation: 0, hips: 0, hipsImplant: 0, butt: 0, buttImplant: 0, face: 0, faceImplant: 0, lips: 15, lipsImplant: 0, chem: 0, addict: 0, intelligence: 0, intelligenceImplant: 0, bellyImplant: -1, beauty: 0, dick: 0, balls: 0, health: 0}>>

<<UpdateStandards>>
<<BreedingStandards>>
<</widget>>

<<widget "UpdateStandards">>
<<if $failedElite > 100>>
	<<set $activeStandard.intelligence = 3>>
	<<set $activeStandard.beauty = 120>>
	<<set $activeStandard.face = 95>>
<<else>>
	<<set $activeStandard.intelligence = 2>>
	<<set $activeStandard.beauty = 100>>
	<<set $activeStandard.face = 40>>
<</if>>
<<set $activeStandard.chem = 20>>
<<set $activeStandard.addict = 0>>
<<if $arcologies[0].FSSupremacist > 20>>
	<<set $activeStandard.raceSup = $arcologies[0].FSSupremacistRace>>
<</if>>
<<if $arcologies[0].FSSubjugationist > 20>>
	<<set $activeStandard.raceSub = $arcologies[0].FSSubjugationistRace>>
<</if>>
<<if $arcologies[0].FSGenderRadicalist > 20>>
	<<set $activeStandard.dick = 1>>
	<<set $activeStandard.balls = 1>>
<<elseif $arcologies[0].FSGenderFundamentalist > 20>>
	<<set $activeStandard.dick = 0>>
	<<set $activeStandard.balls = 0>>
<</if>>
<<if $arcologies[0].FSPaternalist > 20>>
	<<set $activeStandard.intelligenceImplant = 1>>
	<<set $activeStandard.health = 60>>
<<elseif $arcologies[0].FSDegradationist > 20>>
	<<set $activeStandard.intelligenceImplant = 0>>
	<<set $activeStandard.health = 0>>
<</if>>
<<if $arcologies[0].FSBodyPurist > 20>>
	<<if $failedElite > 100>>
		<<set $activeStandard.chem = 0>>
	<<else>>
		<<set $activeStandard.chem = 15>>
	<</if>>
	<<set $activeStandard.boobsImplant = 0>>
	<<set $activeStandard.buttImplant = 0>>
	<<set $activeStandard.lipsImplant = 0>>
	<<set $activeStandard.hipsImplant = 0>>
	<<set $activeStandard.shouldersImplant = 0>>
	<<set $activeStandard.faceImplant = 5>>
	<<set $activeStandard.bellyImplant = -1>>
<<elseif $arcologies[0].FSTransformationFetishist > 20>>
	<<set $activeStandard.chem = 20>>
<</if>>
<<if $arcologies[0].FSSlimnessEnthusiast > 20>>
	<<if $arcologies[0].FSHedonisticDecadence > 20>>
		<<set $activeStandard.weightMax = 30>>
	<<else>>
		<<set $activeStandard.weightMax = 0>>
	<</if>>
	<<set $activeStandard.butt = 2>>
	<<set $activeStandard.boobs = 400>>
<<elseif $arcologies[0].FSAssetExpansionist > 20>>
	<<set $activeStandard.butt = 6>>
	<<set $activeStandard.boobs = 1000>>
<</if>>
<<if $arcologies[0].FSPastoralist > 20>>
	<<set $activeStandard.lactation = 1>>
<</if>>
<<if $arcologies[0].FSPhysicalIdealist > 20>>
	<<set $activeStandard.muscles = 95>>
<<elseif $arcologies[0].FSHedonisticDecadence > 20>>
	<<if $arcologies[0].FSSlimnessEnthusiast > 20>>
		<<set $activeStandard.weightMin = 10>>
	<<else>>
		<<set $activeStandard.weightMin = 95>>
	<</if>>
<</if>>
<</widget>>

<<widget "BreedingStandards">>

In order to be eligible to be bred, the potential breeding bitch must first satisfy the following conditions:
<<if $failedElite > 100>>

She must be of finest intelligence.

She must be unbelieveably beautiful.

Her face must be breathtaking.
<<else>>

She must be very smart.

She must be beautiful.

Her face must be gorgeous.
<</if>>

Her health must not be overly impacted by drug use.

She must not be addicted to drugs.
<<if $arcologies[0].FSSupremacist > 20>>

She must be $arcologies[0].FSSupremacistRace.
<</if>>
<<if $arcologies[0].FSSubjugationist > 20>>

She must not be $arcologies[0].FSSubjugationistRace.
<</if>>
<<if $arcologies[0].FSGenderRadicalist > 20>>

She must have a functional penis.
<<elseif $arcologies[0].FSGenderFundamentalist > 20>>

She must be physically female.
<</if>>
<<if $arcologies[0].FSPaternalist > 20>>

She must be educated.

She must be in good health.
<</if>>
<<if $arcologies[0].FSBodyPurist > 20>>

Her genome must be damage free.

She must be implant free.
<</if>>
<<if $arcologies[0].FSMaturityPreferentialist > 20>>

She must be older than 24.
<<elseif $arcologies[0].FSYouthPreferentialist > 20>>

She must be younger than 24.
<</if>>
<<if $arcologies[0].FSSlimnessEnthusiast > 20>>
	<<if $arcologies[0].FSHedonisticDecadence > 20>>

She may be no larger than "plush".
	<<else>>

She must be thin.
	<</if>>

She must have a trim rear.

She must have a sleek chest.
<<elseif $arcologies[0].FSAssetExpansionist > 20>>

She must have a naturally gigantic rear.

She must be naturally busty.
<</if>>
<<if $arcologies[0].FSPastoralist > 20>>

She must be lactating naturally.
<</if>>
<<if $arcologies[0].FSPhysicalIdealist > 20>>

She must be extremely muscular.
<<elseif $arcologies[0].FSHedonisticDecadence > 20>>
	<<if $arcologies[0].FSSlimnessEnthusiast > 20>>

She must be larger size than "trim".
	<<else>>

She must be big, soft and fat.
	<</if>>
<</if>>

For each slave examined, a fee of @@.yellowgreen;¤5000@@ will be deducted from your account.

Failures will be sterilized. Please make sure your slave fits the criteria before submitting them for testing. We shall not be held responsible for time wasted.

Updates will be posted periodically. It is your responsibility to keep up to date with current standards.
<</widget>>

<<widget "BreedingEligibility">>
<<set $passing = 0>>

$activeSlave.slaveName is up for review:
<<if $activeSlave.intelligence >= $activeStandard.intelligence>>

She @@.lime;PASSED@@ the intelligence test.
<<else>>

She @@.red;FAILED@@ the intelligence test.
	<<set $passing-->>
<</if>>
<<if $beauty >= $activeStandard.beauty>>

She @@.lime;PASSED@@ the beauty test.
<<else>>

She @@.red;FAILED@@ the beauty test.
	<<set $passing-->>
<</if>>
<<if $activeSlave.face >= $activeStandard.face>>

She @@.lime;PASSED@@ the facial attractiveness test.
<<else>>

She @@.red;FAILED@@ the facial attractiveness test.
	<<set $passing-->>
<</if>>
<<if $activeSlave.chem <= $activeStandard.chem>>

She @@.lime;PASSED@@ the genome damage test.
<<else>>

She @@.red;FAILED@@ the genome damage test.
	<<set $passing-->>
<</if>>
<<if $activeSlave.addict >= $activeStandard.addict>>

She @@.lime;PASSED@@ the drug test.
<<else>>

She @@.red;FAILED@@ the drug test.
	<<set $passing-->>
<</if>>
<<if $arcologies[0].FSSupremacist > 20>>
	<<if $activeSlave.race == $activeStandard.raceSup>>

She @@.lime;PASSED@@ racial testing.
	<<else>>

She @@.red;FAILED@@ racial testing.
		<<set $passing-->>
	<</if>>
<</if>>
<<if $arcologies[0].FSSubjugationist > 20>>
	<<if $activeSlave.race != $activeStandard.raceSub>>

She @@.lime;PASSED@@ racial testing.
	<<else>>

She @@.red;FAILED@@ racial testing.
		<<set $passing-->>
	<</if>>
<</if>>
<<if $arcologies[0].FSGenderRadicalist > 20>>
	<<if $activeSlave.dick >= $activeStandard.dick && $activeSlave.balls >= $activeStandard.balls>>

She @@.lime;PASSED@@ penis inspection.
	<<else>>

She @@.red;FAILED@@ penis inspection.
		<<set $passing-->>
	<</if>>
<<elseif $arcologies[0].FSGenderFundamentalist > 20>>
	<<if $activeSlave.dick == $activeStandard.dick && $activeSlave.balls == $activeStandard.balls>>

She @@.lime;PASSED@@ genital inspection.
	<<else>>

She @@.red;FAILED@@ genital inspection.
		<<set $passing-->>
	<</if>>
<</if>>
<<if $arcologies[0].FSPaternalist > 20>>
	<<if $activeSlave.intelligenceImplant == $activeStandard.intelligenceImplant>>

She @@.lime;PASSED@@ educational trials.
	<<else>>

She @@.red;FAILED@@ educational trials.
		<<set $passing-->>
	<</if>>
	<<if $activeSlave.health >= $activeStandard.health>>

She @@.lime;PASSED@@ health examinations.
	<<else>>

She @@.red;FAILED@@ health examinations.
		<<set $passing-->>
	<</if>>
<</if>>
<<if $arcologies[0].FSBodyPurist > 20>>
	<<if $activeSlave.chem <= $activeStandard.chem>>

She @@.lime;PASSED@@ health examinations.
	<<else>>

She @@.red;FAILED@@ health examinations.
		<<set $passing-->>
	<</if>>
	<<if $activeSlave.boobsImplant == 0 && $activeSlave.buttImplant == 0 && $activeSlave.lipsImplant == 0 && $activeSlave.hipsImplant == 0 && $activeSlave.shouldersImplant == 0 && $activeSlave.faceImplant <= 5 && $activeSlave.bellyImplant == -1>>

She @@.lime;PASSED@@ implant examinations.
	<<else>>

She @@.red;FAILED@@ implant examinations.
		<<set $passing-->>
	<</if>>
<</if>>
<<if $arcologies[0].FSMaturityPreferentialist > 20>>
	<<if $activeSlave.physicalAge > $activeStandard.age>>

She @@.lime;PASSED@@ age examinations.
	<<else>>

She @@.red;FAILED@@ age examinations.
		<<set $passing-->>
	<</if>>
<<elseif $arcologies[0].FSYouthPreferentialist > 20>>
	<<if $activeSlave.physicalAge < $activeStandard.age>>

She @@.lime;PASSED@@ age examinations.
	<<else>>

She @@.red;FAILED@@ age examinations.
		<<set $passing-->>
	<</if>>
<</if>>
<<if $arcologies[0].FSSlimnessEnthusiast > 20>>
	<<if $activeSlave.weight <= $activeStandard.weightMax>>

She @@.lime;MET@@ weight limits.
	<<else>>

She @@.red;EXCEEDED@@ weight limits.
		<<set $passing-->>
	<</if>>
	<<if $activeSlave.butt <= $activeStandard.butt>>

She @@.lime;MET@@ ass measurements.
	<<else>>

She @@.red;EXCEEDED@@ ass measurements.
		<<set $passing-->>
	<</if>>
	<<if $activeSlave.boobs <= $activeStandard.boobs>>

She @@.lime;MET@@ chest measurements.
	<<else>>

She @@.red;EXCEEDED@@ chest measurements.
		<<set $passing-->>
	<</if>>
<<elseif $arcologies[0].FSAssetExpansionist > 20>>
	<<if ($activeSlave.butt - $activeSlave.buttImplant) >= $activeStandard.butt>>

She @@.lime;MET@@ ass measurements.
	<<else>>

She @@.red;FAILED@@ to meet ass measurements.
		<<set $passing-->>
	<</if>>
	<<if ($activeSlave.boobs - $activeSlave.boobsImplant) >= $activeStandard.boobs>>

She @@.lime;MET@@ chest measurements.
	<<else>>

She @@.red;FAILED@@ to meet chest measurements.
		<<set $passing-->>
	<</if>>
<</if>>
<<if $arcologies[0].FSPastoralist > 20>>
	<<if $activeSlave.lactation == $activeStandard.lactation>>

She @@.lime;MET@@ milk production standards.
	<<elseif $activeSlave.lactation > $activeStandard.lactation>>

She @@.red;EXCEEDED@@ milk production standards.
		<<set $passing-->>
	<<else>>

She @@.red;FAILED@@ to meet milk production standards.
		<<set $passing-->>
	<</if>>
<</if>>
<<if $arcologies[0].FSPhysicalIdealist > 20>>
	<<if $activeSlave.muscles > $activeStandard.muscles>>

She @@.lime;MET@@ the required muscle mass.
	<<else>>

She @@.red;FAILED@@ to meet the required muscle mass.
		<<set $passing-->>
	<</if>>
<<elseif $arcologies[0].FSHedonisticDecadence > 20>>
	<<if $activeSlave.weight > $activeStandard.weightMin>>

She @@.lime;MET@@ the minimum weight limit.
	<<else>>

She @@.red;failed@@ to meet minimum weight limits.
		<<set $passing-->>
	<</if>>
<</if>>

<<if $passing != 0>>
	The slave known as "<<SlaveFullName $activeSlave>>" has been deemed @@.red;unsuitable@@ for breeding and has been @@.green;sterilized@@ as per agreement.
	<<set $activeSlave.preg = -3>>
<<else>>
	The slave known as "<<SlaveFullName $activeSlave>>" has been deemed @@.green;worthy@@ of being used for breeding and has been marked as such. Please note the increased restrictions on breeding slaves.

They are not permitted for public use or anything that may harm their growing child. The child within them is considered a member of the elite class and as such, any harm that comes to them will result in severe penalties to the breeder's owner. Development of the child will be closely monitored; should the fetus be identified as not of the owner's blood (or any other member of the Elite class), said owner shall face severe fines.
	<<set $activeSlave.breedingMark = 1, $activeSlave.pregControl = "none">>
<</if>>

@@.yellowgreen;¤5000@@ has been deducted from your account as agreed.
<<removeJob $activeSlave $activeSlave.assignment>>
<</widget>>

<<widget "PlayerRace">>
	<<replace #ethnicity>>
		You're $PC.race.
	<</replace>>
<</widget>>

<<widget "PlayerSkin">>
	<<replace #skin>>
		You have $PC.skin skin.
	<</replace>>
<</widget>>

<<widget "PlayerMarkings">>
	<<replace #markings>>
		<<if $PC.markings == "none">>
			Your skin is pure and clear of any freckles.
		<<elseif $PC.markings == "freckles">>
			You have some freckles on your cheeks and elsewhere.
		<<elseif $PC.markings == "heavily freckled">>
			You have dense freckles on your cheeks and elsewhere.
		<</if>>
	<</replace>>
<</widget>>

<<widget "ResyncHeight">>

<<set $args[0].height = Math.round(Height.random($args[0]))>>
/*
<<switch $activeSlave.actualAge>>
<<case 3>>
	<<set $activeSlave.height = random(91,96)>>
<<case 4>>
	<<set $activeSlave.height = random(97,104)>>
<<case 5>>
	<<set $activeSlave.height = random(104,111)>>
<<case 6>>
	<<set $activeSlave.height = random(112,119)>>
<<case 7>>
	<<set $activeSlave.height = random(118,126)>>
<<case 8>>
	<<set $activeSlave.height = random(124,132)>>
<<case 9>>
	<<set $activeSlave.height = random(129,137)>>
<<case 10>>
	<<set $activeSlave.height = random(133,142)>>
<<case 11>>
	<<set $activeSlave.height = random(140,149)>>
<<case 12>>
	<<set $activeSlave.height = random(147,156)>>
<<case 13>>
	<<set $activeSlave.height = random(152,162)>>
<<case 14>>
	<<set $activeSlave.height = random(156,165)>>
<<case 15>>
	<<set $activeSlave.height = random(157,166)>>
<<default>>
	<<set $activeSlave.height = random(159,167)>>
<</switch>>
*/

<</widget>>

<<widget "BodyguardWeapon">>

<<if ($activeSlave.muscles+$activeSlave.height-100)/25 > 5>>
    She has a long ceramic sword strapped to her back,
	<<switch $activeSlave.nationality>>
	<<case "Uzbek" "Kazakh" "Belarusian" "Armenian" "Hungarian" "Cuban">>
		and, in keeping with her heritage, a PKM GPMG
	<<case "Russian">>
		and, in keeping with her heritage, a PKP Pecheneg GPMG
	<<case "Ukrainian">>
		and, in keeping with her heritage, a Fort-401 LMG
	<<case "American">>
		and, in keeping with her heritage, a US Ordnance Mk43 Mod.1 GPMG
	<<case "Canadian">>
		and, in keeping with her heritage, a Colt Canada 5.56-LSW LMG
	<<case "British" "Scottish">>
		and, in keeping with her heritage, an L7A2 GPMG
	<<case "Japanese">>
		and, in keeping with her heritage, a Sumitomo Type 62 GPMG
	<<case "Belgian">>
		and, in keeping with her heritage, a FN Minimi M3 LMG
	<<case "Israeli">>
		and, in keeping with her heritage, an IWI Negev NG7 GPMG
	<<case "German" "Chilean">>
		and, in keeping with her heritage, a Rheinmetall MG3 GPMG
	<<case "Mexican">>
		and, in keeping with her heritage, a SEDENA MG-21 GPMG
	<<case "Spanish">>
		and, in keeping with her heritage, a CETME MG 82 Ameli LMG
	<<case "Australian">>
		and, in keeping with her heritage, a Lithgow F89 Maximi GPMG
	<<case "Chinese">>
		and, in keeping with her heritage, a Norinco QJY-88 LMG
	<<case "French">>
		and, in keeping with her heritage, a MAS AAT-F1 GPMG
	<<case "Korean">>
		and, in keeping with her heritage, a S&T K12 GPMG
	<<case "South African">>
		and, in keeping with her heritage, a Vektor SS-77 GPMG
	<<case "Finnish">>
		and, in keeping with her heritage, a Valmet KvKK 62 LMG
	<<case "Polish">>
		and, in keeping with her heritage, a ZMT UKM-2000 GPMG
	<<case "Swiss">>
		and, in keeping with her heritage, a W+F-Bern MG51 GPMG
	<<case "Austrian">>
		and, in keeping with her heritage, a Steyr MG 74 GPMG
	<<case "Zimbabwean">>
		<<if $activeSlave.race == "white">>
			and, in keeping with her heritage, a FN MAG-58 GPMG
		<<else>>
			and a FN MAG 60.20 GPMG
		<</if>>
	<<case "Czech" "Slovak">>
		and, in keeping with her heritage, a ZVI Uk vz.59 Rachot GPMG
	<<case "Indonesian">>
		and, in keeping with her heritage, a Pindad SM2 LMG
	<<case "Indian">>
		and, in keeping with her heritage, an OFB MG 2A1 GPMG
	<<case "Turkish">>
		and, in keeping with her heritage, a MKEK MG3 GPMG
	<<case "Iranian">>
		and, in keeping with her heritage, a DIO MGA3 GPMG
	<<case "Vietnamese">>
		and, in keeping with her heritage, a Z111 RPK LMG
	<<case "Filipina">>
		and, in keeping with her heritage, a Government Arsenal M60E4 GPMG
	<<case "Serbian">>
		and, in keeping with her heritage, a Zastava M09 LMG
	<<case "Romanian">>
		and, in keeping with her heritage, a FACSA PM md.93 LMG
	<<default>>
		and a FN MAG 60.20 GPMG
	<</switch>>
	slung crosswise on her chest.
<<elseif ($activeSlave.muscles+$activeSlave.height-100)/25 > 4>>
    She has a ceramic sword strapped to her back
	<<switch $activeSlave.nationality>>
	<<case "Uzbek" "Kazakh" "Belarusian" "Armenian">>
		and, in keeping with her heritage, a Kalashnikov AK-74M assault rifle
	<<case "Russian">>
		and, in keeping with her heritage, an Izhmash AN-94 Abakan assault rifle
	<<case "Ukrainian">>
		and, in keeping with her heritage, a Fort-227 assault rifle
	<<case "American">>
		and, in keeping with her heritage, a Colt M16A4 assault rifle
	<<case "Canadian">>
		and, in keeping with her heritage, a Colt Canada MRR assault rifle
	<<case "Japanese">>
		and, in keeping with her heritage, a Howa Type 89 assault rifle
	<<case "British" "Scottish">>
		and, in keeping with her heritage, an L85A3 bullpup assault rifle
	<<case "Belgian">>
		and, in keeping with her heritage, a FN FNC M2 assault rifle
	<<case "Israeli">>
		and, in keeping with her heritage, an IWI MTAR-21 bullpup assault rifle
	<<case "German">>
		and, in keeping with her heritage, a H&K G36A2 assault rifle
	<<case "Mexican">>
		and, in keeping with her heritage, a DGIM FX-05 Xiuhcoatl assault rifle
	<<case "Spanish">>
		and, in keeping with her heritage, a CETME Model C battle rifle
	<<case "Cuban">>
		and, in keeping with her heritage, an AKM assault rifle
	<<case "Australian">>
		and, in keeping with her heritage, a Lithgow EF88 Austeyr bullpup assault rifle
	<<case "Chinese">>
		and, in keeping with her heritage, a Norinco QBZ-95-1 bullpup assault rifle
	<<case "French">>
		and, in keeping with her heritage, a Nexter FAMAS G2 bullpup assault rifle
	<<case "Italian">>
		and, in keeping with her heritage, a Beretta ARX-160 assault rifle
	<<case "Korean">>
		and, in keeping with her heritage, a Daewoo K2C1 assault rifle
	<<case "South African">>
		and, in keeping with her heritage, a Vektor R4 assault rifle
	<<case "Swedish">>
		and, in keeping with her heritage, a Bofors Ak-5C assault rifle
	<<case "Finnish">>
		and, in keeping with her heritage, a SAKO Rk 95 TP assault rifle
	<<case "Colombian">>
		and, in keeping with her heritage, a Indumil ACE 22 assault rifle
	<<case "Polish">>
		and, in keeping with her heritage, a FB MSBS assault rifle
	<<case "Swiss">>
		and, in keeping with her heritage, a SIG SG 550 assault rifle
	<<case "Austrian">>
		and, in keeping with her heritage, a Steyr AUG A3 bullpup assault rifle
	<<case "Zimbabwean">>
		<<if $activeSlave.race == "white">>
			and, in keeping with her heritage, a FN FAL battle rifle
		<<else>>
			and a FN F2000 bullpup assault rifle
		<</if>>
	<<case "Czech" "Slovak">>
		and, in keeping with her heritage, a CZUB CZ-806 BREN-2 assault rifle
	<<case "Indonesian">>
		and, in keeping with her heritage, a Pindad SS2 assault rifle
	<<case "Indian">>
		and, in keeping with her heritage, an OFB MCIWS assault rifle
	<<case "Turkish">>
		and, in keeping with her heritage, a MKEK MPT-76 assault rifle
	<<case "Iranian">>
		and, in keeping with her heritage, a DIO KH-2002 Khaybar bullpup assault rifle
	<<case "Vietnamese">>
		and, in keeping with her heritage, a Z111 AKM assault rifle
	<<case "Filipina">>
		and, in keeping with her heritage, an Elitool M653P carbine
	<<case "Thai">>
		and, in keeping with her heritage, a MND Type 11 assault rifle
	<<case "Brazilian">>
		and, in keeping with her heritage, an IMBEL IA2 assault rifle
	<<case "Argentinian">>
		and, in keeping with her heritage, a FMAP FARA-83 assault rifle
	<<case "Peruvian">>
		and, in keeping with her heritage, a SIMA FAD bullpup assault rifle
	<<case "Chilean">>
		and, in keeping with her heritage, a FAMAE ACE 22NC assault rifle
	<<case "Serbian">>
		and, in keeping with her heritage, a Zastava M21A assault rifle
	<<case "Croatian">>
		and, in keeping with her heritage, an HS Produkt VHS-2 bullpup assault rifle
	<<case "Hungarian">>
		and, in keeping with her heritage, a FEG AMD-65M assault rifle
	<<case "Romanian">>
		and, in keeping with her heritage, a ROMARM PA md.86 assault rifle
	<<default>>
		and a FN F2000 bullpup assault rifle
	<</switch>>
	slung across her chest.
<<elseif ($activeSlave.muscles+$activeSlave.height-100)/25 > 3>>
    She has a straight ceramic sword strapped to her back
	<<switch $activeSlave.nationality>>
	<<case "Uzbek" "Kazakh" "Belarusian" "Armenian">>
		and, in keeping with her heritage, an Kalashnikov AKS-74U PDW
	<<case "Russian">>
		and, in keeping with her heritage, a KBP PP-90M1 SMG
	<<case "Ukrainian">>
		and, in keeping with her heritage, a Fort-224 bullpup SMG
	<<case "American">>
		and, in keeping with her heritage, a KRISS Vector SMG
	<<case "British" "Scottish">>
		and, in keeping with her heritage, an L91A1 SMG
	<<case "Belgian">>
		and, in keeping with her heritage, a FN P90 bullpup PDW
	<<case "Israeli">>
		and, in keeping with her heritage, an IWI Uzi SMG
	<<case "German">>
		and, in keeping with her heritage, an H&K MP7A1 PDW
	<<case "Mexican">>
		and, in keeping with her heritage, a Mendoza Cobra SMG
	<<case "Spanish">>
		and, in keeping with her heritage, a Star Z84 SMG
	<<case "Chinese">>
		and, in keeping with her heritage, a Norinco QCQ-05 SMG
	<<case "Italian">>
		and, in keeping with her heritage, a Beretta MX4 SMG
	<<case "Korean">>
		and, in keeping with her heritage, a Daewoo K1A PDW
	<<case "South African">>
		and, in keeping with her heritage, a Milkor BXP SMG
	<<case "Swedish">>
		and, in keeping with her heritage, a Carl Gustav m/45 SMG
	<<case "Polish">>
		and, in keeping with her heritage, a FB PM-06 Glauberyt SMG
	<<case "Swiss">>
		and, in keeping with her heritage, a SIG MPX SMG
	<<case "Austrian">>
		and, in keeping with her heritage, a Steyr AUG A3 Para XS bullpup SMG
	<<case "Zimbabwean">>
		<<if $activeSlave.race == "white">>
			and, in keeping with her heritage, a Sterling Mk.IV SMG
		<<else>>
			and a H&K MP5 SMG
		<</if>>
	<<case "Indonesian">>
		and, in keeping with her heritage, a Pindad PM1A1 SMG
	<<case "Indian">>
		and, in keeping with her heritage, an OFB MSMC SMG
	<<case "Turkish">>
		and, in keeping with her heritage, a Sarsilmaz SAR 109 SMG
	<<case "Iranian">>
		and, in keeping with her heritage, a DIO MPT-9 Tondar SMG
	<<case "Vietnamese">>
		and, in keeping with her heritage, a Z111 K-50M LMG
	<<case "Filipina">>
		and, in keeping with her heritage, a Ferfrans SCW7 PDW
	<<case "Brazilian">>
		and, in keeping with her heritage, a Taurus MT40 G2 SMG
	<<case "Argentinian">>
		and, in keeping with her heritage, a Halcon ML-63 SMG
	<<case "Chilean">>
		and, in keeping with her heritage, a FAMAE SAF-200 SMG
	<<case "Serbian">>
		and, in keeping with her heritage, a Zastava Master FLG SMG
	<<case "Croatian">>
		and, in keeping with her heritage, a PM Agram 2000 SMG
	<<case "Romanian">>
		and, in keeping with her heritage, a UM Cugir LP7 SMG
	<<default>>
		and a H&K MP5 SMG
	<</switch>>
	slung across her chest.
<<else>>
    She has a short ceramic sword strapped to her back
	<<switch $activeSlave.nationality>>
	<<case "Uzbek" "Kazakh" "Belarusian" "Armenian" "Ukrainian" "Cuban">>
		and, in keeping with her heritage, a Molot Ordnance Stechkin APS machine pistol
	<<case "Russian">>
		and, in keeping with her heritage, a KBP OTs-33 Pernach machine pistol
	<<case "American">>
		and, in keeping with her heritage, a MAC-10 machine pistol
	<<case "Japanese">>
		and, in keeping with her heritage, a Minebea PM-9 machine pistol
	<<case "Belgian">>
		and, in keeping with her heritage, a VBR-Belgium PDW machine pistol
	<<case "Israeli">>
		and, in keeping with her heritage, an IWI Uzi Pro machine pistol
	<<case "German">>
		and, in keeping with her heritage, a H&K VP70 machine pistol
	<<case "Mexican">>
		and, in keeping with her heritage, a Trejo Modelo 2 Especial machine pistol
	<<case "Chinese">>
		and, in keeping with her heritage, a Chongqing Changfeng CF-05 machine pistol
	<<case "Italian">>
		and, in keeping with her heritage, a Beretta 93R machine pistol
	<<case "Swedish">>
		and, in keeping with her heritage, a Saab Bofors Dynamics CBJ-MS machine pistol
	<<case "Polish">>
		and, in keeping with her heritage, a WITU PMM machine pistol
	<<case "Czech" "Slovak">>
		and, in keeping with her heritage, a CZUB CZ 75 Automatic machine pistol
	<<case "Swiss">>
		and, in keeping with her heritage, a B+T MP9 machine pistol
	<<case "Austrian">>
		and, in keeping with her heritage, a Steyr TMP machine pistol
	<<case "Turkish">>
		and, in keeping with her heritage, a TiSAS Zigana F machine pistol
	<<case "Romanian">>
		and, in keeping with her heritage, a UMS Pistolul md.98 Dracula machine pistol
	<<case "Hungarian">>
		and, in keeping with her heritage, a FEG KGP-9 machine pistol
	<<case "Peruvian">>
		and, in keeping with her heritage, a SIMA MGP-87 machine pistol
	<<default>>
		and a Glock 18 machine pistol
	<</switch>>
	at her side.
<</if>>

<</widget>>

/*
<<widget "GenSkinTone">>

black 5
brown 4
dark 3
olive 2
light brown 1
null 0
light -1
white -2
fair -3
pale -4
extremely pale -5

<<set _skin = 0>>
<<set _skin0 = 0>>
<<set _skin1 = 0>>

<<switch $args[0].skin>>
<<case "black">>
	<<set _skin0 = 10>>
<<case "brown">>
	<<set _skin0 = 9>>
<<case "dark">>
	<<set _skin0 = 8>>
<<case "olive">>
	<<set _skin0 = 7>>
<<case "light brown">>
	<<set _skin0 = 6>>
<<case "light">>
	<<set _skin0 = 4>>
<<case "white">>
	<<set _skin0 = 3>>
<<case "fair">>
	<<set _skin0 = 2>>
<<case "pale">>
	<<set _skin0 = 1>>
<<case "extremely pale">>
	<<set _skin0 = 0>>
<<default>>
	<<set _skin0 = 5>>
<</switch>>

<<switch $args[1].skin>>
<<case "black">>
	<<set _skin1 = 10>>
<<case "brown">>
	<<set _skin1 = 9>>
<<case "dark">>
	<<set _skin1 = 8>>
<<case "olive">>
	<<set _skin1 = 7>>
<<case "light brown">>
	<<set _skin1 = 6>>
<<case "light">>
	<<set _skin1 = 4>>
<<case "white">>
	<<set _skin1 = 3>>
<<case "fair">>
	<<set _skin1 = 2>>
<<case "pale">>
	<<set _skin1 = 1>>
<<case "extremely pale">>
	<<set _skin1 = 0>>
<<default>>
	<<set _skin1 = 5>>
<</switch>>

<<set _skin = Math.round((_skin1+_skin0)/2)>>

<<switch _skin>>
<<case 10>>
	<<set $activeSlave.skin = "black">>
<<case 9>>
	<<set $activeSlave.skin = "brown">>
<<case 8>>
	<<set $activeSlave.skin = "dark">>
<<case 7>>
	<<set $activeSlave.skin = "olive">>
<<case 6>>
	<<set $activeSlave.skin = "light brown">>
<<case 4>>
	<<set $activeSlave.skin = "light">>
<<case 3>>
	<<set $activeSlave.skin = "white">>
<<case 2>>
	<<set $activeSlave.skin = "fair">>
<<case 1>>
	<<set $activeSlave.skin = "pale">>
<<case 0>>
	<<set $activeSlave.skin = "extremely pale">>
<<default>>
	<<set $activeSlave.skin = either($args[0].skin, $args[1].skin)>>
<</switch>>

<</widget>>
*/

<<widget "GenSkinTone">>
<>
<</widget>>

<<widget "ParentNames">>
<<set _currentSlaveNames = $slaves.map(s => s.slaveName)>>
<<set _namePool =
	(setup.namePoolSelector[$args[0].nationality + "." + $args[1].race]
	|| setup.namePoolSelector[$args[0].nationality]
	|| setup.whiteAmericanSlaveNames)
	.filter(sn => !_currentSlaveNames.includes(sn))>>
<<set _maxTries = 10>>
<<if _namePool.length <= 0 && setup.nationalityPoolSelector[$continent]>>
	<<set _continentNationality = setup.nationalityPoolSelector[$continent].random()>>
	<<for _namePool.length <= 0 && _maxTries > 5>>
		<<set _namePool =
			(setup.namePoolSelector[_continentNationality + "." + $args[1].race]
			|| setup.namePoolSelector[_continentNationality]
			|| []
			.filter(sn => !_currentSlaveNames.includes(sn))>>
		<<set _maxTries -= 1>>
	<</for>>
<</if>>
<<for _namePool.length <= 0 && _maxTries > 0>>
	<<set _namePool = Object.values(setup.namePoolSelector).random().filter(sn => !_currentSlaveNames.includes(sn))>>
	<<set _maxTries -= 1>>
<</for>>
<<if _namePool.length <= 0>>
	<<set _namePool = Object.values(setup.namePoolSelector).random()>>
<</if>>
<<set $args[1].slaveName = _namePool.random()>>
<<unset _currentSlaveNames, _namePool, _maxTries, _continentNationality>>
<</widget>>

<<widget "NewChildName">>
/* thanks surname setting, for making me do this */
<<set $args[0].birthName =
	(setup.namePoolSelector[$args[0].nationality + "." + $args[0].race]
		|| setup.namePoolSelector[$args[0].nationality]
		|| setup.whiteAmericanSlaveNames).random()>>
<<set $args[0].slaveName = $args[0].birthName>>
<</widget>>

<<widget "seBirthToIncubator">>
<<set _dispositionId = _.uniqueId('babyDisposition-')>>

<<if $csec == 1>>

<<set _getFather = $slaves.find(function(s) { return s.ID == $slaves[$i].pregSource; })>>
<<if def _getFather>>
	<<set $daddy = _getFather.slaveName>>
<<else>>
	<<set $daddy = "some former slave">>
<</if>>

$pronounCap was given @@.orange;a cesarean section@@ due to health concerns. From $possessive womb,
<<if $slaves[$i].pregType <= 1>>
	a single baby,
<<elseif $slaves[$i].pregType >= 40>>
	a massive brood of $slaves[$i].pregType babies,
<<elseif $slaves[$i].pregType >= 20>>
	a brood of $slaves[$i].pregType babies,
<<elseif $slaves[$i].pregType >= 10>>
	a squirming pile of $slaves[$i].pregType babies,
<<elseif $slaves[$i].pregType == 9>>
	nonuplets,
<<elseif $slaves[$i].pregType == 8>>
	octuplets,
<<elseif $slaves[$i].pregType == 7>>
	septuplets,
<<elseif $slaves[$i].pregType == 6>>
	sextuplets,
<<elseif $slaves[$i].pregType == 5>>
	quintuplets,
<<elseif $slaves[$i].pregType == 4>>
	quadruplets,
<<elseif $slaves[$i].pregType == 3>>
	triplets,
<<else>>
	twins,
<</if>>
created by
<<if $slaves[$i].pregSource == -1>>
	your magnificent dick,
<<elseif $slaves[$i].pregSource == -2>>
	your arcology's eager citizens,
<<elseif $slaves[$i].pregSource == -3>>
	the Societal Elite,
<<elseif $slaves[$i].pregSource == 0>>
	an unknown father,
<<elseif $slaves[$i].ID == $daddy.ID>>
	$possessive own curiosity over if $pronoun could fuck <<print $possessive>>self,
<<else>>
	$daddy's virile cock and balls,
<</if>>
entered the world.

<<if $arcologies[0].FSRestart != "unset">>
	<<if $slaves[$i].breedingMark == 1 && $slaves[$i].pregSource == -1>>

		The Societal Elite @@.green;are pleased@@ at the new additions to their class.
		<<set $failedElite -= 2*$slaves[$i].pregType>>
	<<else>>

		The Societal Elite @@.red;are disappointed@@ that you would allow subhuman filth to dirty society under your watch. Society @@.red;frowns@@ on the unwelcome addition of more subhumans into the world.
		<<set $failedElite += 5*$slaves[$i].pregType>>
		<<set $rep -= 10*$slaves[$i].pregType>>
	<</if>>
<</if>>

Since $possessive <<if $slaves[$i].mpreg == 1>>ass<<else>>vagina<</if>> was spared from childbirth, @@.lime;it retained its tightness.@@

<<set $slaves[$i].births += $slaves[$i].pregType>>
<<set $slaves[$i].birthsTotal += $slaves[$i].pregType>>
<<set $birthsTotal += $slaves[$i].pregType>>
<<if $slaves[$i].pregSource > 0>>
	<<set _babyDaddy = $slaves.findIndex(function(s) { return s.ID == $slaves[$i].pregSource; })>>
	<<set $slaves[_babyDaddy].slavesFathered += $slaves[$i].pregType>>
<<elseif $slaves[$i].pregSource == -1>>
	<<set $PC.slavesFathered += $slaves[$i].pregType>>
<</if>>

<<set $mom = $slaves[$i]>>

Of her $slaves[$i].pregType child<<if $slaves[$i].pregType > 1>>ren<</if>>; $slaves[$i].reservedChildren <<if $slaves[$i].reservedChildren > 1>>were<<else>>was<</if>> taken to $incubatorName.
<<for _k = $slaves[$i].reservedChildren; _k != 0; _k-->>
	<<include "Generate Child">>
	<<include "Incubator Workaround">>
	<<set $slaves[$i].pregType-->>
<</for>>

<<if $slaves[$i].fetish != "mindbroken" && $slaves[$i].fuckdoll == 0>>

	<<if $slaves[$i].pregSource == -1>>
		<<if $slaves[$i].devotion < 20 && ($week-$slaves[$i].weekAcquired >= $slaves[$i].weekAcquired)>>

			She @@.mediumorchid;despises@@ you for using her body to bear your children.
			<<set $slaves[$i].devotion -= 10>>
		<<elseif $slaves[$i].devotion > 50>>

			She's @@.hotpink;so proud@@ to have successfully carried children for you.
			<<set $slaves[$i].devotion += 3>>
		<</if>>
	<</if>>

	<<if $slaves[$i].pregType > 0>>
	<>
	<<if  $arcologies[0].FSRestart != "unset" && $slaves[$i].breedingMark == 1 && $slaves[$i].pregSource == -1>>
		<<set _lostBabies = 1>>
		As for the rest; the Societal Elite collected them to be raised into upstanding members of the new society.
	<<elseif $Cash4Babies == 1>>
		<<set _lostBabies = 1>>
		<<set _babyCost = random(-12,12)>>
		<<if ($slaves[$i].relationship == -3)>>
			As for the rest; you make sure $possessive children are cared for, since $pronoun is your wife. $slaves[$i].slaveName is @@.hotpink;touched@@ by this @@.mediumaquamarine;act of kindness.@@
			<<set $slaves[$i].trust += 3, $slaves[$i].devotion += 3>>
			<<set _lostBabies = 0>>
		<<elseif ($slaves[$i].assignment == "serve in the master suite" || $slaves[$i].assignment == "be your Concubine")>>
			As for the rest; $possessive children are guaranteed to be treated well despite the laws you've passed since $pronoun is a member of your harem. $slaves[$i].slaveName is @@.hotpink;touched@@ by this @@.mediumaquamarine;act of kindness.@@
			<<set $slaves[$i].trust += 3, $slaves[$i].devotion += 3>>
			<<set _lostBabies = 0>>
		<<else>>
			<<if $slaves[$i].pregType == 50>>
				As for the rest; $possessive babies sold for a total of @@.yellowgreen;¤<<print 12*(50+_babyCost)>>@@.
				<<set $cash += 12*(50+_babyCost)>>
			<<else>>
				As for the rest; $possessiveCap babies sold for a total of @@.yellowgreen;¤<<print $slaves[$i].pregType*(50+_babyCost)>>@@.
				<<set $cash += $slaves[$i].pregType*(50+_babyCost)>>
			<</if>>
		<</if>>
	<</if>>
	<<if _lostBabies != 1>>
		<<set $slaveOrphanageTotal += $slaves[$i].pregType>>
		Unless you provide otherwise, the remaining child<<if $slaves[$i].pregType > 1>>ren<</if>> will be remanded to one of $arcologies[0].name's slave orphanages. $slaves[$i].slaveName
		<<if $slaves[$i].devotion > 95>>
			worships you so completely that she will not resent this.
		<<elseif $slaves[$i].devotion > 50>>
			is devoted to you, but she will @@.mediumorchid;struggle to accept this.@@
			<<set $slaves[$i].devotion -= 2>>
		<<elseif $slaves[$i].devotion > 20>>
			has accepted being a sex slave, but she will @@.mediumorchid;resent this intensely.@@
			<<set $slaves[$i].devotion -= 3>>
		<<else>>
			will of course @@.mediumorchid;hate you for this.@@
			<<set $slaves[$i].devotion -= 4>>
		<</if>>
		<<capture $i, _dispositionId>>
		<<if $arcologies[0].FSRepopulationFocus > 40>>
			<<link 'Send them to a breeder school'>>
				<<replace `"#" + _dispositionId`>>
					The remaining child<<if $slaves[$i].pregType > 1>>ren are<<else>> is<</if>> sent to one of $arcologies[0].name's future minded schools, to be administered fertility and virility treatments as well as be brought up to take pride in reproduction. $slaves[$i].slaveName
					<<if $slaves[$i].devotion > 95>>
						loves you already, but she'll @@.hotpink;love you even more@@ for this. She can't wait to see her child<<if $slaves[$i].pregType > 1>>ren<</if>> proudly furthering your cause.
						<<set $slaves[$i].devotion += 4>>
					<<elseif $slaves[$i].devotion > 50>>
						heard about these and will be @@.hotpink;happy that her child<<if $slaves[$i].pregType > 1>>ren<</if>> will have a purpose in your society other than slavery.@@ She will miss her child<<if $slaves[$i].pregType > 1>>ren<</if>>, but she expected that.
						<<set $slaves[$i].devotion += 4>>
					<<elseif $slaves[$i].devotion > 20>>
						will naturally miss her child<<if $slaves[$i].pregType > 1>>ren<</if>>, but will is broken enough to hope that her offspring will have a better life, or at least an enjoyable one.
					<<else>>
						will of course @@.mediumorchid;hate you for this.@@ The mere thought of her $fertilityAge year old daughter<<if $slaves[$i].pregType > 1>>s<</if>> swollen with life, and proud of it, fills her with @@.gold;disdain.@@
						<<set $slaves[$i].devotion -= 4, $slaves[$i].trust -= 4>>
					<</if>>
					<<set $breederOrphanageTotal +=$slaves[$i].pregType, $slaveOrphanageTotal -= $slaves[$i].pregType>>
				<</replace>>
			<</link>>
			//Will cost a one time ¤50// |
		<</if>>
		<<link 'Send them to a citizen school'>>
			<<replace `"#" + _dispositionId`>>
				The remaining child<<if $slaves[$i].pregType > 1>>ren are<<else>> is<</if>> sent to one of $arcologies[0].name's citizen schools, to be brought up coequal with the arcology's other young people. $slaves[$i].slaveName
				<<if $slaves[$i].devotion > 95>>
					loves you already, but she'll @@.hotpink;love you even more@@ for this.
				<<elseif $slaves[$i].devotion > 50>>
					knows about these and will be @@.hotpink;overjoyed.@@ She will miss her child<<if $slaves[$i].pregType > 1>>ren<</if>>, but she expected that.
				<<elseif $slaves[$i].devotion > 20>>
					will naturally miss her child<<if $slaves[$i].pregType > 1>>ren<</if>>, but will @@.hotpink;take comfort@@ in the hope that her offspring will have a better life.
				<<else>>
					will naturally retain some resentment over being separated from her child<<if $slaves[$i].pregType > 1>>ren<</if>>, but this should be balanced by hope that her offspring will have a better life.
				<</if>>
				<<set $slaves[$i].devotion += 4, $citizenOrphanageTotal +=$slaves[$i].pregType, $slaveOrphanageTotal -= $slaves[$i].pregType>>
			<</replace>>
		<</link>>
		//Will cost ¤100 weekly//
		| <<link 'Have them raised privately'>>
			<<replace `"#" + _dispositionId`>>
				The child<<if $slaves[$i].pregType > 1>>ren are<<else>> is<</if>> sent to be privately raised, to be brought up as a future high class citizen. $slaves[$i].slaveName
				<<if $slaves[$i].devotion > 95>>
					will @@.hotpink;worship you utterly@@ for this.
				<<elseif $slaves[$i].devotion > 50>>
					understands that this is the best possible outcome for the offspring of slave, and will be @@.hotpink;overjoyed.@@
				<<elseif $slaves[$i].devotion > 20>>
					will miss her child<<if $slaves[$i].pregType > 1>>ren<</if>>, but will be @@.hotpink;very grateful,@@ since she'll understand this is the best possible outcome for a slave mother.
				<<else>>
					will resent being separated from her child<<if $slaves[$i].pregType > 1>>ren<</if>>, but @@.hotpink;should understand and be grateful@@ that this is the best possible outcome here.
				<</if>>
				The remaining child<<if $slaves[$i].pregType > 1>>ren<</if>> will be raised privately, with expert care and tutoring, an expensive proposition.
				<<set $slaves[$i].devotion += 6, $privateOrphanageTotal += $slaves[$i].pregType, $slaveOrphanageTotal -= $slaves[$i].pregType>>
			<</replace>>
		<</link>>
		//Will cost ¤500 weekly//
		<</capture>>
	<</if>>
	<>
	<</if>>
<<elseif $Cash4Babies == 1>>
	<<set _babyCost = random(-12,12)>>
	<<if $slaves[$i].pregType == 50>>
		As for the rest; $possessive babies sold for a total of @@.yellowgreen;¤<<print 12*(50+_babyCost)>>@@.
		<<set $cash += 12*(50+_babyCost)>>
	<<else>>
		As for the rest; $possessive babies sold for a total of @@.yellowgreen;¤<<print $slaves[$i].pregType*(50+_babyCost)>>@@.
		<<set $cash += $slaves[$i].pregType*(50+_babyCost)>>
	<</if>>
<</if>>

<<set _tmp = lastPregRule($slaves[$i], $defaultRules)>>
<<if ($slaves[$i].assignmentVisible == 0) && (_tmp != null)>>
	<<set $slaves[$i].preg = -1>>
<<else>>
	<<set $slaves[$i].preg = 0>>
<</if>>
<<set $slaves[$i].pregType = 0>>
<<set $slaves[$i].pregSource = 0>>
<<set $slaves[$i].pregKnown = 0>>
<<set $slaves[$i].pregWeek = 0>>
<<SetBellySize $slaves[$i]>>
<<set $reservedChildren -= $slaves[$i].reservedChildren>>
<<set $slaves[$i].reservedChildren = 0>>
<<set $csec = 0>>

<<else>> /* normal birth */

<<set _getFather = $slaves.find(function(s) { return s.ID == $slaves[$i].pregSource; })>>
<<if def _getFather>>
	<<set $daddy = _getFather.slaveName>>
<</if>>

<<if $humiliation == 1>>

	Giving birth in such a manner was completely humiliating,
	<<if $slaves[$i].fetish == "humiliation">>
		and a complete turn on to $object. $possessiveCap humiliation fetish @@.lightcoral;strengthens@@ as $pronoun eagerly fantasizes about giving birth in public again.
		<<set $slaves[$i].fetishStrength += 4>>
	<<elseif $slaves[$i].fetish == "none" || $slaves[$i].fetishStrength <= 60>>
		and a curious experience to $object. <<if random(1,5) == 1>>@@.lightcoral;$possessiveCap has developed a humiliation fetish.@@<<set $slaves[$i].fetish to "humiliation">><<else>>$pronounCap hopes to never repeat it.<</if>>
	<<elseif $slaves[$i].devotion <= 20>>
		and completely devastating to $possessive image of herself. The experience @@.hotpink;habituates $object@@ to cruelties of slavery.
		<<set $slaves[$i].devotion += 5>>
	<<else>>
		and $pronoun hopes to never undergo it again.
	<</if>>
<</if>>

She @@.orange;gave birth@@<<if $slaves[$i].pregType >= 50>> but her overfilled womb barely lost any size. Her body gave life <</if>>
<<if $slaves[$i].pregType == 50>>
	to nearly a dozen babies throughout the week,
<<elseif $slaves[$i].pregType <= 1>>
	to a single baby,
<<elseif $slaves[$i].pregType >= 40>>
	to a massive brood of $slaves[$i].pregType babies,
<<elseif $slaves[$i].pregType >= 20>>
	to a brood of $slaves[$i].pregType babies,
<<elseif $slaves[$i].pregType >= 10>>
	to a squirming pile of $slaves[$i].pregType babies,
<<elseif $slaves[$i].pregType == 9>>
	to nonuplets,
<<elseif $slaves[$i].pregType == 8>>
	to octuplets,
<<elseif $slaves[$i].pregType == 7>>
	to septuplets,
<<elseif $slaves[$i].pregType == 6>>
	to sextuplets,
<<elseif $slaves[$i].pregType == 5>>
	to quintuplets,
<<elseif $slaves[$i].pregType == 4>>
	to quadruplets,
<<elseif $slaves[$i].pregType == 3>>
	to triplets,
<<else>>
	to twins,
<</if>>
created by
<<if $slaves[$i].pregSource == -1>>
	your magnificent dick.
<<elseif $slaves[$i].pregSource == -2>>
	your arcology's eager citizens.
<<elseif $slaves[$i].pregSource == -3>>
	the Societal Elite.
<<elseif $slaves[$i].pregSource == 0>>
	an unknown father.
<<elseif $slaves[$i].ID == $daddy.ID>>
	$possessive own curiosity over if $pronoun could fuck <<print $possessive>>self.
<<else>>
	$daddy's virile cock and balls.
<</if>>
<<if $slaves[$i].pregType >= 80>>
	After an entire day of labor and birth, her belly sags heavily.
<<elseif $slaves[$i].pregType >= 40>>
	After half a day of labor and birth, her belly sags emptily.
<<elseif $slaves[$i].pregType >= 20>>
	After several hours of labor and birth, $possessive belly sags softly.
<</if>>

<<if $arcologies[0].FSRestart != "unset">>
<<if $slaves[$i].breedingMark == 1 && $slaves[$i].pregSource == -1>>

	The Societal Elite @@.green;are pleased@@ at the new additions to their class.
	<<set $failedElite -= 2*$slaves[$i].pregType>>
<<else>>

	The Societal Elite @@.red;are disappointed@@ that you would allow subhuman filth to be born under your watch. Society @@.red;frowns@@ on the birth of more subhumans into the world.
	<<set $failedElite += 5*$slaves[$i].pregType>>
	<<set $rep -= 10*$slaves[$i].pregType>>
<</if>>
<</if>>

<<if ($slaves[$i].vagina == 0) || ($slaves[$i].mpreg == 1 && $slaves[$i].anus == 0)>>
<<if $slaves[$i].fetish != "mindbroken">>

<<if ($slaves[$i].fetish == "masochist")>>
	Since she was a virgin, giving birth was a @@.red;terribly painful@@ experience.<<if $slaves[$i].fetishKnown == 0>>She seems to have orgasmed several times during the experience, she appears to @@.lightcoral;really like pain@@.<<else>> However, due to her masochistic streak, she @@.hotpink;greatly enjoyed@@ said experience<</if>>.
	<<set $slaves[$i].health -= 10>>
	<<set $slaves[$i].devotion += 2>>
	<<set $slaves[$i].fetishKnown = 1>>
<<else>>
	Since she was a virgin, giving birth was a @@.red;terribly painful@@ experience. She @@.mediumorchid;despises@@ you for taking her virginity in such a @@.gold;horrifying@@ way.
	<<set $slaves[$i].health -= 40>>
	<<set $slaves[$i].devotion -= 25.0>>
	<<set $slaves[$i].trust -= 25.0>>
<</if>>
<</if>>
<</if>>

<<if $slaves[$i].birthsTotal == 0>>

	$possessiveCap inexperience @@.red;complicated $possessive first birth@@.
<</if>>
<<if $slaves[$i].mpreg == 1>>
	<<if $slaves[$i].anus < 2>>

		$possessiveCap tight ass @@.red;hindered $possessive baby's birth@@.
	<</if>>
<<else>>
	<<if $slaves[$i].vagina < 2>>

		$possessiveCap tight vagina @@.red;hindered $possessive baby's birth@@.
	<</if>>
	<<if $slaves[$i].vaginaLube == 0>>

		$possessiveCap dry vagina made pushing $possessive child out @@.red;painful@@.
	<</if>>
<</if>>
<<if $slaves[$i].hips < 0>>

	$possessiveCap narrow hips made birth @@.red;troublesome@@.
<</if>>
<<if $slaves[$i].weight < -95>>

	$possessiveCap very thin body @@.red;was nearly incapable of birthing $possessive child@@.
<<elseif $slaves[$i].weight <= -30>>

	$possessiveCap thin body was @@.red;ill-suited $possessive childbirth@@.
<</if>>
<<if $slaves[$i].health < -20>>

	$possessiveCap poor health made laboring @@.red;exhausting@@.
<</if>>
<<if $slaves[$i].physicalAge < 6>>

	$possessiveCap very young body was @@.red;not designed to be able pass a baby@@.
<<elseif $slaves[$i].physicalAge < 9>>

	$possessiveCap young body had @@.red;a lot of trouble@@ birthing $possessive baby.
<<elseif $slaves[$i].physicalAge < 13>>

	$possessiveCap young body had @@.red;trouble birthing@@ $possessive baby.
<</if>>
<<if $slaves[$i].tired > 0>>

	$pronounCap was so tired, $pronoun @@.red;lacked the energy to effectively push@@.
<</if>>
<<if $slaves[$i].muscles < -95>>

	$pronounCap tried and tried but $possessive frail body @@.red;could not push $possessive child out@@.
<<elseif $slaves[$i].muscles < -30>>

	$possessiveCap very weak body @@.red;barely managed to push@@ out $possessive child.
<<elseif $slaves[$i].muscles < -5>>

	$possessiveCap weak body @@.red;struggled to push@@ out $possessive child.
<</if>>
<<if $slaves[$i].preg > 50>>

	$possessiveCap's child had extra time to grow @@.red;greatly complicating childbirth@@.
<</if>>
<<if (($slaves[$i].vagina >= 2 || $slaves[$i].vaginaLube > 0) && $slaves[$i].mpreg == 1) || $slaves[$i].births > 0 || $slaves[$i].hips > 0 || (setup.nurseCareers.includes($slaves[$i].career) && $slaves[$i].fetish != "mindbroken" && $slaves[$i].muscles >= -95) || $slaves[$i].intelligenceImplant > 0>>

However:
<<if $slaves[$i].mpreg == 1>>
	<<if $slaves[$i].anus >= 2>>

		$possessiveCap @@.green;loose ass@@ made birthing $possessive child easier.
	<</if>>
<<else>>
	<<if $slaves[$i].vagina >= 2>>

		$possessiveCap @@.green;loose vagina@@ made birthing $possessive child easier.
	<</if>>
	<<if $slaves[$i].vaginaLube > 0>>

		$possessiveCap @@.green;moist vagina@@ hastened $possessive child's birth.
	<</if>>
<</if>>
<<if $slaves[$i].birthsTotal > 0>>

	$pronounCap has @@.green;given birth before@@, so $pronoun knows just what to do.
<</if>>
<<if $slaves[$i].hips > 0>>

	$possessiveCap @@.green;wide hips@@ greatly aided childbirth.
<</if>>
<<if setup.nurseCareers.includes($slaves[$i].career) && $slaves[$i].fetish != "mindbroken" && $slaves[$i].muscles >= -95>>

	Thanks to $possessive @@.green;previous career@@, childbirth went smoothly.
<</if>>
<<if $slaves[$i].intelligenceImplant > 0>>

	$pronounCap was @@.green;taught how to handle birth@@ in class.
<</if>>
<</if>>

<<if $slaves[$i].assignment != "work in the dairy" && $slaves[$i].pregType < 50 && $csec == 0>>
	All in all,
	<<if $birthDamage > 15>>
		childbirth was @@.red;horrifically difficult for $object and nearly claimed $possessive life@@.
	<<elseif $birthDamage > 10>>
		childbirth was extremely difficult for $object and @@.red;greatly damaged $possessive health@@.
	<<elseif $birthDamage > 5>>
		childbirth was difficult for $object and @@.red;damaged $possessive health@@.
	<<elseif $birthDamage > 0>>
		childbirth was painful for $object, though not abnormally so, and @@.red;damaged $possessive health@@.
	<<else>>
		childbirth was @@.green;no problem@@ for $object.
	<</if>>
	<<if $birthDamage > 0>>
		<<set $slaves[$i].health -= Math.round(($birthDamage/2)*10)>>
	<</if>>
<</if>>

<<if $slaves[$i].mpreg == 1>>
	<<if ($slaves[$i].anus < 0)>> /* you somehow got a pregnant slave with no vagina catch */
		Childbirth has @@.lime;has torn $object a gaping anus.@@
	<<elseif ($slaves[$i].anus == 0)>> /* please stop selling me pregnant virgins, neighbor gender fundamentalist arcology */
		Childbirth has @@.lime;ruined $possessive virgin ass.@@
	<<elseif ($slaves[$i].anus == 1)>>
		Childbirth has @@.lime;greatly stretched out $possessive ass.@@
	<<elseif ($slaves[$i].anus == 2)>>
		Childbirth has @@.lime;stretched out $possessive ass.@@
	<<elseif ($slaves[$i].anus == 3)>>
		$possessiveCap ass was loose enough to not be stretched by childbirth.
	<<elseif ($slaves[$i].anus < 10)>>
		Childbirth stood no chance of stretching $possessive gaping ass.
	<<elseif ($slaves[$i].anus == 10)>>
		$possessiveCap child could barely stretch $possessive cavernous ass.
	<<else>>
		Childbirth has @@.lime;stretched out $possessive ass.@@
	<</if>>
<<else>>
	<<if ($slaves[$i].vagina < 0)>> /* you somehow got a pregnant slave with no vagina catch */
		Childbirth has @@.lime;has torn $object a gaping vagina.@@
	<<elseif ($slaves[$i].vagina == 0)>> /* please stop selling me pregnant virgins, neighbor gender fundamentalist arcology */
		Childbirth has @@.lime;ruined $possessive virgin vagina.@@
	<<elseif ($slaves[$i].vagina == 1)>>
		Childbirth has @@.lime;greatly stretched out $possessive vagina.@@
	<<elseif ($slaves[$i].vagina == 2)>>
		Childbirth has @@.lime;stretched out $possessive vagina.@@
	<<elseif ($slaves[$i].vagina == 3)>>
		$possessiveCap vagina was loose enough to not be stretched by childbirth.
	<<elseif ($slaves[$i].vagina < 10)>>
		Childbirth stood no chance of stretching $possessive gaping vagina.
	<<elseif ($slaves[$i].vagina == 10)>>
		$possessiveCap child could barely stretch $possessive cavernous vagina.
	<<else>>
		Childbirth has @@.lime;stretched out $possessive vagina.@@
	<</if>>
<</if>>

<<set $slaves[$i].births += $slaves[$i].pregType>>
<<set $slaves[$i].birthsTotal += $slaves[$i].pregType>>
<<set $birthsTotal += $slaves[$i].pregType>>
<<if $slaves[$i].pregSource > 0>>
	<<set _babyDaddy = $slaves.findIndex(function(s) { return s.ID == $slaves[$i].pregSource; })>>
	<<if _babyDaddy != -1>>
		<<set $slaves[_babyDaddy].slavesFathered += $slaves[$i].pregType>>
	<</if>>
<<elseif $slaves[$i].pregSource == -1>>
	<<set $PC.slavesFathered += $slaves[$i].pregType>>
<</if>>

<<set $mom = $slaves[$i]>>

Of her $slaves[$i].pregType child<<if $slaves[$i].pregType > 1>>ren<</if>>; $slaves[$i].reservedChildren <<if $slaves[$i].reservedChildren > 1>>were<<else>>was<</if>> taken to $incubatorName.
<<for _k = $slaves[$i].reservedChildren; _k != 0; _k-->>
	<<include "Generate Child">>
	<<include "Incubator Workaround">>
	<<set $slaves[$i].pregType-->>
<</for>>
<<set _count = $slaves[$i].pregType>>

<<if $slaves[$i].fetish != "mindbroken" && $slaves[$i].fuckdoll == 0>>

	<<if $slaves[$i].pregSource == -1>>
	<<if $slaves[$i].devotion < 20 && ($week-$slaves[$i].weekAcquired >= $slaves[$i].weekAcquired)>>

		She @@.mediumorchid;despises@@ you for using her body to bear your children.
		<<set $slaves[$i].devotion -= 10>>
	<<elseif $slaves[$i].devotion > 50>>

		She's @@.hotpink;so proud@@ to have successfully carried children for you.
		<<set $slaves[$i].devotion += 3>>
	<</if>>
	<</if>>

	<<if $slaves[$i].pregType > 0>>
	<>
	<<if  $arcologies[0].FSRestart != "unset" && $slaves[$i].breedingMark == 1 && $slaves[$i].pregSource == -1>>
		<<set _lostBabies = 1>>
		As for the rest; the Societal Elite collected them to be raised into upstanding members of the new society.
	<<elseif $Cash4Babies == 1>>
		<<set _lostBabies = 1>>
		<<set _babyCost = random(-12,12)>>
		<<if ($slaves[$i].relationship == -3)>>
			As for the rest; you make sure $possessive children are cared for, since $pronoun is your wife. $slaves[$i].slaveName is @@.hotpink;touched@@ by this @@.mediumaquamarine;act of kindness.@@
			<<set $slaves[$i].trust += 3, $slaves[$i].devotion += 3>>
			<<set _lostBabies = 0>>
		<<elseif ($slaves[$i].assignment == "serve in the master suite" || $slaves[$i].assignment == "be your Concubine")>>
			As for the rest; $possessive children are guaranteed to be treated well despite the laws you've passed since $pronoun is a member of your harem. $slaves[$i].slaveName is @@.hotpink;touched@@ by this @@.mediumaquamarine;act of kindness.@@
			<<set $slaves[$i].trust += 3, $slaves[$i].devotion += 3>>
			<<set _lostBabies = 0>>
		<<else>>
			<<if $slaves[$i].pregType == 50>>
				As for the rest; $possessive babies sold for a total of @@.yellowgreen;¤<<print 12*(50+_babyCost)>>@@.
				<<set $cash += 12*(50+_babyCost)>>
			<<else>>
				As for the rest; $possessiveCap babies sold for a total of @@.yellowgreen;¤<<print $slaves[$i].pregType*(50+_babyCost)>>@@.
				<<set $cash += $slaves[$i].pregType*(50+_babyCost)>>
			<</if>>
		<</if>>
	<</if>>
	<<if _lostBabies != 1>>
		<<set $slaveOrphanageTotal += $slaves[$i].pregType>>
		Unless you provide otherwise, the remaining child<<if $slaves[$i].pregType > 1>>ren<</if>> will be remanded to one of $arcologies[0].name's slave orphanages. $slaves[$i].slaveName
		<<if $slaves[$i].devotion > 95>>
			worships you so completely that she will not resent this.
		<<elseif $slaves[$i].devotion > 50>>
			is devoted to you, but she will @@.mediumorchid;struggle to accept this.@@
			<<set $slaves[$i].devotion -= 2>>
		<<elseif $slaves[$i].devotion > 20>>
			has accepted being a sex slave, but she will @@.mediumorchid;resent this intensely.@@
			<<set $slaves[$i].devotion -= 3>>
		<<else>>
			will of course @@.mediumorchid;hate you for this.@@
			<<set $slaves[$i].devotion -= 4>>
		<</if>>
		<<capture $i, _dispositionId, _count>>
		<<if $arcologies[0].FSRepopulationFocus > 40>>
			<<link 'Send them to a breeder school'>>
				<<replace `"#" + _dispositionId`>>
					The remaining child<<if $slaves[$i].pregType > 1>>ren are<<else>> is<</if>> sent to one of $arcologies[0].name's future minded schools, to be administered fertility and virility treatments as well as be brought up to take pride in reproduction. $slaves[$i].slaveName
					<<if $slaves[$i].devotion > 95>>
						loves you already, but she'll @@.hotpink;love you even more@@ for this. She can't wait to see her child<<if $slaves[$i].pregType > 1>>ren<</if>> proudly furthering your cause.
						<<set $slaves[$i].devotion += 4>>
					<<elseif $slaves[$i].devotion > 50>>
						heard about these and will be @@.hotpink;happy that her child<<if $slaves[$i].pregType > 1>>ren<</if>> will have a purpose in your society other than slavery.@@ She will miss her child<<if $slaves[$i].pregType > 1>>ren<</if>>, but she expected that.
						<<set $slaves[$i].devotion += 4>>
					<<elseif $slaves[$i].devotion > 20>>
						will naturally miss her child<<if $slaves[$i].pregType > 1>>ren<</if>>, but will is broken enough to hope that her offspring will have a better life, or at least an enjoyable one.
					<<else>>
						will of course @@.mediumorchid;hate you for this.@@ The mere thought of her $fertilityAge year old daughter<<if $slaves[$i].pregType > 1>>s<</if>> swollen with life, and proud of it, fills her with @@.gold;disdain.@@
						<<set $slaves[$i].devotion -= 4, $slaves[$i].trust -= 4>>
					<</if>>
					<<set $breederOrphanageTotal +=$slaves[$i].pregType, $slaveOrphanageTotal -= $slaves[$i].pregType>>
				<</replace>>
			<</link>>
			//Will cost a one time ¤50// |
		<</if>>
		<<link 'Send them to a citizen school'>>
			<<replace `"#" + _dispositionId`>>
				The remaining child<<if $slaves[$i].pregType > 1>>ren are<<else>> is<</if>> sent to one of $arcologies[0].name's citizen schools, to be brought up coequal with the arcology's other young people. $slaves[$i].slaveName
				<<if $slaves[$i].devotion > 95>>
					loves you already, but she'll @@.hotpink;love you even more@@ for this.
				<<elseif $slaves[$i].devotion > 50>>
					knows about these and will be @@.hotpink;overjoyed.@@ She will miss her child<<if $slaves[$i].pregType > 1>>ren<</if>>, but she expected that.
				<<elseif $slaves[$i].devotion > 20>>
					will naturally miss her child<<if $slaves[$i].pregType > 1>>ren<</if>>, but will @@.hotpink;take comfort@@ in the hope that her offspring will have a better life.
				<<else>>
					will naturally retain some resentment over being separated from her child<<if $slaves[$i].pregType > 1>>ren<</if>>, but this should be balanced by hope that her offspring will have a better life.
				<</if>>
				<<set $slaves[$i].devotion += 4, $citizenOrphanageTotal +=$slaves[$i].pregType, $slaveOrphanageTotal -= $slaves[$i].pregType>>
			<</replace>>
		<</link>>
		//Will cost ¤100 weekly//
		| <<link 'Have them raised privately'>>
			<<replace `"#" + _dispositionId`>>
				The child<<if $slaves[$i].pregType > 1>>ren are<<else>> is<</if>> sent to be privately raised, to be brought up as a future high class citizen. $slaves[$i].slaveName
				<<if $slaves[$i].devotion > 95>>
					will @@.hotpink;worship you utterly@@ for this.
				<<elseif $slaves[$i].devotion > 50>>
					understands that this is the best possible outcome for the offspring of slave, and will be @@.hotpink;overjoyed.@@
				<<elseif $slaves[$i].devotion > 20>>
					will miss her child<<if $slaves[$i].pregType > 1>>ren<</if>>, but will be @@.hotpink;very grateful,@@ since she'll understand this is the best possible outcome for a slave mother.
				<<else>>
					will resent being separated from her child<<if $slaves[$i].pregType > 1>>ren<</if>>, but @@.hotpink;should understand and be grateful@@ that this is the best possible outcome here.
				<</if>>
				The remaining child<<if $slaves[$i].pregType > 1>>ren<</if>> will be raised privately, with expert care and tutoring, an expensive proposition.
				<<set $slaves[$i].devotion += 6, $privateOrphanageTotal += $slaves[$i].pregType, $slaveOrphanageTotal -= $slaves[$i].pregType>>
			<</replace>>
		<</link>>
		//Will cost ¤500 weekly//
		<</capture>>
	<</if>>
	<>
	<</if>>
<<elseif $Cash4Babies == 1 && $slaves[$i].pregType > 0>>
	<<set _babyCost = random(-12,12)>>
	<<if $slaves[$i].pregType == 50>>
		As for the rest; $possessive babies sold for a total of @@.yellowgreen;¤<<print 12*(50+_babyCost)>>@@.
		<<set $cash += 12*(50+_babyCost)>>
	<<else>>
		As for the rest; $possessive babies sold for a total of @@.yellowgreen;¤<<print $slaves[$i].pregType*(50+_babyCost)>>@@.
		<<set $cash += $slaves[$i].pregType*(50+_babyCost)>>
	<</if>>
<</if>>

<<set _tmp = lastPregRule($slaves[$i], $defaultRules)>>
<<if ($slaves[$i].assignmentVisible == 0) && (_tmp != null)>>
	<<set $slaves[$i].preg = -1>>
<<else>>
	<<set $slaves[$i].preg = 0>>
<</if>>
<<set $slaves[$i].pregType = 0>>
<<set $slaves[$i].pregSource = 0>>
<<set $slaves[$i].pregKnown = 0>>
<<set $slaves[$i].pregWeek = 0>>
<<SetBellySize $slaves[$i]>>
<<set $reservedChildren -= $slaves[$i].reservedChildren>>
<<set $slaves[$i].reservedChildren = 0>>
<<if $slaves[$i].mpreg == 1>>
	<<if $slaves[$i].anus < 3>>
		<<set $slaves[$i].anus = 3>>
	<</if>>
<<else>>
	<<if $slaves[$i].vagina < 3>>
		<<set $slaves[$i].vagina = 3>>
	<</if>>
<</if>>

<</if>> /* closes c-section */
<<set $mom = 0>>

<</widget>>

<<widget "HeroSlavesCleanup">>
<<run $heroSlaves.forEach(function(s) {
	const validRaces = [
		"amerindian", "asian", "black", "indo-aryan", "latina", "malay", "middle eastern", "mixed race",
		"pacific islander", "semitic", "southern european", "white"];
	/* Nationalities, races, surnames random fill */
	if(!s.nationality) {
		s.nationality = setup.nationalityPoolSelector[Object.keys(setup.nationalityPoolSelector).random()].random();
		/* Check for a pre-set race and if the nationality fits, else regenerate */
		if(s.race && validRaces.includes(s.race)) {
			while(setup.raceSelector[s.nationality] && !setup.raceSelector[s.nationality].includes(s.race)) {
				s.nationality = setup.nationalityPoolSelector[Object.keys(setup.nationalityPoolSelector).random()].random();
			}
		}
	}
	if(!s.race || !validRaces.includes(s.race)) {
		s.race = (setup.raceSelector[s.nationality] || setup.raceSelector[""]).random();
	}
	if(!s.birthSurname) {
		s.birthSurname = (setup.surnamePoolSelector[s.nationality + "." + s.race]
			|| setup.surnamePoolSelector[s.nationality]
			|| setup.whiteAmericanSlaveSurnames).random();
	}
})>>
<</widget>>