code:
:: Costs Report [nobr]

<<set $nextButton = "Back to Main", $nextLink = "Main",_arcologyCosts = 0>>
<<set _arcologyCosts = 0>>
<<if $PCSlutContacts == 0>><<set $PCSlutContacts = 1>><</if>>
/*
//Your weekly costs are as follows.//

Since you are
<<if $girls >= 3>>
	accustomed to luxury,
<<elseif $girls == 2>>
	used to living well,
<<else>>
	used to a fairly normal life,
<</if>>
your personal living expenses are @@.yellowgreen;<<print cashFormat(Math.trunc($girls*(250+(50000/$localEcon))))>>.@@
<<set _arcologyCosts += Math.trunc($girls*(250+(50000/$localEcon)))>>

<<if $arcologies[0].FSRepopulationFocusLaw == 1 && $PC.pregKnown == 1>>

Rent promotion for being a pregnant citizen under ''Universal Pregnancy Subsidy:'' @@.yellowgreen;<<print cashFormat(500)>>@@
	<<set _arcologyCosts += 500>>
<</if>>

<<if $PC.preg == -1>>

Your contraceptives expenses: @@.yellowgreen;<<print cashFormat(25)>>@@
	<<set _arcologyCosts += 25>>
<<elseif $PC.fertDrugs == 1>>

Your fertility regimen: @@.yellowgreen;<<print cashFormat(50)>>@@
	<<set _arcologyCosts += 50>>
<<elseif $PC.preg >= 16>>

Increased living expenses due to being pregnant: @@.yellowgreen;<<print cashFormat(100)>>@@
	<<set _arcologyCosts += 100>>
<</if>>
<<if $PC.staminaPills == 1>>

Your stamina pills: @@.yellowgreen;<<print cashFormat(50)>>@@
	<<set _arcologyCosts += 50>>
<</if>>

<<if $PC.actualAge >= $IsInPrimePC && $PC.actualAge < $IsPastPrimePC>>
	<<if ($personalAttention == "trading") || ($personalAttention == "warfare") || ($personalAttention == "slaving") || ($personalAttention == "engineering") || ($personalAttention == "medicine") || ($personalAttention == "hacking")>>

		<<set _cost = 10000*$AgeEffectOnTrainerPricingPC,_arcologyCosts += _cost>>
		<<switch $personalAttention>>
			<<case trading>>
				__Trading__
			<<case warfare>>
				__Warfare__
			<<case slaving>>
				__Slaving__
			<<case engineering>>
				__Engineering__
			<<case medicine>>
				__Medicine__
			<<case hacking>>
				__Hacking__
		<</switch>>
		Trainer Fees: @@.yellowgreen;<<print cashFormat(_cost)>>@@
	<</if>>
<</if>>

<<if $breederOrphanageTotal > 0>><<set _breederTuition = 50>><<else>><<set _breederTuition = 0>><</if>>
<<if $citizenOrphanageTotal+$privateOrphanageTotal+$breederOrphanageTotal > 0>>

 __Orphanage__ fee: @@.yellowgreen;<<print cashFormat($citizenOrphanageTotal*100+$privateOrphanageTotal*500+_breederTuition)>>@@
	<<set _arcologyCosts += $citizenOrphanageTotal*100+$privateOrphanageTotal*500+_breederTuition>>
	<<if $citizenOrphanageTotal > 0>>

    Citizen: @@.yellowgreen;<<print cashFormat(100)>>@@ per child. Currently <<print commaNum($citizenOrphanageTotal)>> are being taught, bringing the total to @@.yellowgreen;<<print cashFormat($citizenOrphanageTotal*100)>>@@.
	<</if>>
	<<if $privateOrphanageTotal > 0>>

    Private: @@.yellowgreen;<<print cashFormat(500)>>@@ per child. Currently <<print commaNum($privateOrphanageTotal)>> are being taught, bringing the total to @@.yellowgreen;<<print cashFormat($privateOrphanageTotal*500)>>@@.
	<</if>>
	<<if $breederOrphanageTotal > 0>>

    Since <<print commaNum($breederOrphanageTotal)>> of your slaves' children are being raised into productive members of society in a society funded school, you pay a flat @@.yellowgreen;<<print cashFormat(50)>>@@ usage fee.
	<</if>>
<</if>>

<<if $peacekeepers != 0 && $peacekeepers.undermining != 0>>

 <<print cashFormat($peacekeepers.undermining)>> to undermine political support for the nearby old world peacekeeping mission.
	<<set _arcologyCosts += $peacekeepers.undermining>>
<</if>>

<<if $SF.Toggle && $SF.Active >= 1 && def $SF.Subsidy>> <<= Count()>>

__Financially supporting $SF.Lower until self sufficiency:__ <<print cashFormat(Math.ceil(_SFSubsidy))>>
	<<set _arcologyCosts += Math.ceil(_SFSubsidy)>>
<</if>>
<<if $mercenaries > 0>>
	<<set _mercCosts = $mercenaries*2000>>
	<<if $barracks>><<set _mercCosts *= 0.5>><</if>>
	<<if ($PC.warfare >= 100) || ($PC.career == "arcology owner")>><<set _mercCosts *= 0.5>><</if>>

__Mercenary Expenses__: @@.yellowgreen;<<print cashFormat(_mercCosts)>>@@
	<<if $barracks>><<else>>//@@.red;Increased by the lack of a barracks.@@//<</if>>
	<<if ($PC.warfare >= 100) || ($PC.career == "arcology owner")>>//Reduced by your @@.springgreen;mercenary contacts.@@//<</if>>
	<<set _arcologyCosts += _mercCosts>>
<</if>>

<<if $citizenRetirementMenials == 1>>

__Menial Slave Retirement Premiums__:
	<<if $CitizenRetirement == 1>>
		<<set _citizenRetirementMenialsCost = $menials * 2>>
	<<else>>
		<<set _citizenRetirementMenialsCost = ($menials + $slaves.length) * 2>>
	<</if>>
	<<set _arcologyCosts += _citizenRetirementMenialsCost>>
	@@.yellowgreen;<<print cashFormat(_citizenRetirementMenialsCost)>>@@
<</if>>

<<if $rations > 0>>
	<<set _rationsPrice = ($rations*1000)>> /* this number may need tweaking *//*

__Rations__:
	@@.yellowgreen;<<print cashFormat(_rationsPrice)>>@@
<</if>>

<<if $brothel > 0 || $club > 0 || $arcade > 0 || $dairy > 0 || $farmyard > 0>>

__Arcology Building Maintenance__:
	<<if $brothel > 0>>
	<<set _advertising = 0>>
	<<if $brothel > 0>>
		<<set _advertising = $brothelAdsSpending>>
	<</if>>

	Brothel: @@.yellowgreen;<<print cashFormat(($brothel*$facilityCost)+(0.1*$brothelUpgradeDrugs*$brothel*$facilityCost)+_advertising)>>@@
	<<set _arcologyCosts += ($brothel*$facilityCost)+(0.1*$brothelUpgradeDrugs*$brothel*$facilityCost)+_advertising>>
<</if>>
	<<if $club > 0>>
		<<set _advertising= 0>>
		<<if $club > 0>>
			<<set _advertising = $clubAdsSpending>>
			<<set _arcologyCosts += $clubAdsSpending>>
		<</if>>

		Club: @@.yellowgreen;<<print cashFormat(($club*$facilityCost)+(0.2*$clubUpgradePDAs*$club*$facilityCost)+_advertising)>>@@
		<<set _arcologyCosts += ($club*$facilityCost)+(0.2*$clubUpgradePDAs*$club*$facilityCost)+_advertising>>
	<</if>>
	<<if $arcade > 0>>

		Arcade: @@.yellowgreen;<<print cashFormat((0.5*$arcade*$facilityCost)+(0.2*$arcadeUpgradeInjectors*$arcade*$facilityCost)+(0.2*$arcadeUpgradeCollectors*$arcade*$facilityCost))>>@@
		<<set _arcologyCosts += (0.5*$arcade*$facilityCost)+(0.2*$arcadeUpgradeInjectors*$arcade*$facilityCost)+(0.2*$arcadeUpgradeCollectors*$arcade*$facilityCost)>>
	<</if>>
	<<if $dairy > 0>>

		Dairy: @@.yellowgreen;<<print cashFormat(($dairy*$facilityCost)+(0.2*$dairyFeedersUpgrade*$dairy*$facilityCost)+(0.1*$dairyPregUpgrade*$dairy*$facilityCost))>>@@
		<<set _arcologyCosts += ($dairy*$facilityCost)+(0.2*$dairyFeedersUpgrade*$dairy*$facilityCost)+(0.1*$dairyPregUpgrade*$dairy*$facilityCost)>>
		<<if $bioreactorsXY+$bioreactorsXX+$bioreactorsHerm+$bioreactorsBarren > 0>>

			Additional maintenance for milking machines upgraded with biological components: @@.yellowgreen;<<print cashFormat(($bioreactorsXY+$bioreactorsXX+$bioreactorsHerm+$bioreactorsBarren)*100)>>@@
			<<set _arcologyCosts += ($bioreactorsXY+$bioreactorsXX+$bioreactorsHerm+$bioreactorsBarren)*100>>
		<</if>>
	<</if>>
	<<if $farmyard > 0>> /*TODO: this will also need to be expanded */
		/*

		Farmyard: @@.yellowgreen;<<print cashFormat($farmyard*$facilityCost)>>@@
		<<set _arcologyCosts += $farmyard*$facilityCost>>
	<</if>>
<</if>>

<<if ($servantsQuarters > 0 && $servantsQuartersUpgradeMonitoring > 0) ||
$nursery > 0 || $masterSuiteUpgradePregnancy > 0 || $incubator > 0 ||
($cyberMod != 0 && $researchLab.built == "true")>>

__Penthouse Facility Maintenance__:
	<<if ($servantsQuarters > 0) && ($servantsQuartersUpgradeMonitoring > 0)>>

		Servants' Quarters: @@.yellowgreen;<<print cashFormat((0.2*$servantsQuartersUpgradeMonitoring*$servantsQuarters*$facilityCost))>>@@
		<<set _arcologyCosts += 0.2*$servantsQuartersUpgradeMonitoring*$servantsQuarters*$facilityCost>>
	<</if>>
	<<if $nursery > 0>> /*TODO: this will definitely need to be expanded to take into account the number of children and other factors */
		/*

		Nursery: @@.yellowgreen;<<print cashFormat($nursery*$facilityCost)>>@@
		<<set _arcologyCosts += $nursery*$facilityCost>>
	<</if>>
	<<if ($masterSuiteUpgradePregnancy > 0)>>

		Master Suite: @@.yellowgreen;<<print cashFormat(((500*$masterSuiteUpgradePregnancy) + (1000*$masterSuitePregnancyFertilitySupplements)))>>@@
		<<set _arcologyCosts += ((500*$masterSuiteUpgradePregnancy) + (1000*$masterSuitePregnancyFertilitySupplements))>>
	<</if>>
	<<if $incubator > 0>>

		Incubation Facility: @@.yellowgreen;<<print cashFormat((10*$incubator*$facilityCost)+(0.2*$incubatorUpgradeWeight*$incubator*$facilityCost)+(0.2*$incubatorUpgradeMuscles*$incubator*$facilityCost)+(0.2*$incubatorUpgradeReproduction*$incubator*$facilityCost)+(0.2*$incubatorUpgradeGrowthStims*$incubator*$facilityCost)+(0.5*$incubatorUpgradeSpeed*$incubator*$facilityCost))>>@@
		<<set _arcologyCosts += (10*$incubator*$facilityCost)+(0.2*$incubatorUpgradeWeight*$incubator*$facilityCost)+(0.2*$incubatorUpgradeMuscles*$incubator*$facilityCost)+(0.2*$incubatorUpgradeReproduction*$incubator*$facilityCost)+(0.2*$incubatorUpgradeGrowthStims*$incubator*$facilityCost)+(0.5*$incubatorUpgradeSpeed*$incubator*$facilityCost)>>
		<<if $incubatorWeightSetting+$incubatorMusclesSetting+$incubatorReproductionSetting > 0>>

    Additional monitoring and maintenance costs for growing children: @@.yellowgreen;<<print cashFormat((($incubatorWeightSetting+$incubatorMusclesSetting+$incubatorReproductionSetting+$incubatorGrowthStimsSetting)*500))>>@@
			<<set _arcologyCosts += (($incubatorWeightSetting+$incubatorMusclesSetting+$incubatorReproductionSetting+$incubatorGrowthStimsSetting)*500)>>
		<</if>>
	<</if>>
	<<if $cyberMod != 0 && $researchLab.built == "true">>

		Research Lab: @@.yellowgreen;<<print cashFormat((100*$researchLab.maxSpace))>>@@
		<<set _arcologyCosts += 100*$researchLab.maxSpace>>
		<<if $researchLab.hired != 0>>
    Scientists: @@.yellowgreen;<<print cashFormat((300*$researchLab.hired))>>@@
		<<set _arcologyCosts += 300*$researchLab.hired>> <</if>>
		<<if $researchLab.menials != 0>>
>    Menial Slaves: @@.yellowgreen;<<print cashFormat((100*$researchLab.menials))>>@@
		<<set _arcologyCosts += 100*$researchLab.menials>> <</if>>
	<</if>>
<</if>>

/* security expansion */
/*<<if $secExp > 0>>

	<<if $edictsUpkeep + $SFSupportUpkeep > 0>>
		__Edicts Upkeep__: @@.yellowgreen;<<print cashFormat($edictsUpkeep + $SFSupportUpkeep)>>@@
		<<set _arcologyCosts += ($edictsUpkeep + $SFSupportUpkeep)>>
	<</if>>
	<<if $propHub != 0 || $secHQ != 0 || $secBarracks != 0 || $riotCenter != 0>>

__Security Apparatus Maintenance Costs__:
		<<if $propHub != 0>>

			Propaganda Hub: @@.yellowgreen;<<print cashFormat($propHubUpkeep)>>@@
			<<set _arcologyCosts += $propHubUpkeep>>
		<</if>>
		<<if $secHQ != 0>>

			Security Headquarters: @@.yellowgreen;<<print cashFormat(($secHQUpkeep)+(20*$secMenials))>>@@
			<<set _arcologyCosts += ($secHQUpkeep)+(20*$secMenials)>>
		<</if>>
		<<if $secBarracks != 0>>

			Barracks: @@.yellowgreen;<<print cashFormat($secBarracksUpkeep)>>@@
			<<set _arcologyCosts += $secBarracksUpkeep>>
		<</if>>
		<<if $riotCenter != 0>>

			Riot Control Center: @@.yellowgreen;<<print cashFormat($riotUpkeep)>>@@
			<<set _arcologyCosts += $riotUpkeep>>
		<</if>>
	<</if>>

	<<if $soldierWages == 0>>
		<<set _soldierMod = 1>>
	<<elseif $soldierWages == 1>>
		<<set _soldierMod = 1.5>>
	<<else>>
		<<set _soldierMod = 2>>
	<</if>>
	<<set _milTotal = 0, _slaveTotal = 0, _mercTotal = 0, _numItems = 0>>
	<<if $militiaUnits.length > 0>>

__Militia Platoons Upkeep__:
		<<for _i = 0; _i < $militiaUnits.length; _i++>>

			 <<print ordinalSuffix($militiaUnits.length-[_i])>>: @@.yellowgreen;<<print cashFormat($militiaUnits[_i].troops*$soldierUpkeep * _soldierMod)>>@@
			<<set _milTotal += $militiaUnits[_i].troops*$soldierUpkeep * _soldierMod>>
			<<set _numItems += 1>>
		<</for>>

    ''Total: @@.yellowgreen;<<print cashFormat(_milTotal)>>@@''
	<</if>>
	<<if $slaveUnits.length > 0>>

__Slave Platoons Upkeep__:
		<<for _i = 0; _i < $slaveUnits.length; _i++>>

			 <<print ordinalSuffix($slaveUnits.length-[_i])>>: @@.yellowgreen;<<print cashFormat($slaveUnits[_i].troops*$soldierUpkeep * 0.5 * _soldierMod)>>@@
			<<set _slaveTotal += $slaveUnits[_i].troops*$soldierUpkeep * 0.5 * _soldierMod>>
		<</for>>

    ''Total: @@.yellowgreen;<<print cashFormat(_slaveTotal)>>@@''
	<</if>>
	<<if $mercUnits.length > 0>>

__Mercenary Platoons Upkeep__:
		<<for _i = 0; _i < $mercUnits.length; _i++>>

			 <<print ordinalSuffix($mercUnits.length-[_i])>>: @@.yellowgreen;<<print cashFormat($mercUnits[_i].troops*$soldierUpkeep * 1.5 * _soldierMod)>>@@
			<<set _mercTotal += $mercUnits[_i].troops*$soldierUpkeep * 1.5 * _soldierMod>>
		<</for>>

    ''Total: @@.yellowgreen;<<print cashFormat(_mercTotal)>>@@''
		<<if (_milTotal+_slaveTotal+_mercTotal) > 0>>

__Total Defense Force Upkeep__: @@.yellowgreen;<<print cashFormat(_milTotal+_slaveTotal+_mercTotal)>>@@
			<<set _arcologyCosts += (_milTotal+_slaveTotal+_mercTotal)>>
		<</if>>
	<</if>>
<</if>>

<<if $econWeatherDamage && $disasterResponse > 0>>
	<<set _DRUUpkeep = Math.trunc($disasterResponse * 200000 / $localEcon)>>

__Disaster Response Unit Expenses__: @@.yellowgreen;<<print cashFormat(_DRUUpkeep)>>@@
	<<set _arcologyCosts += _DRUUpkeep>>
<</if>>
<<if $antiWeatherFreeze > 0>>
	<<set _AWFUpkeep = Math.trunc($antiWeatherFreeze * 200000 / $localEcon)>>

__Passenger Upgrades Expenses__: @@.yellowgreen;<<print cashFormat(_AWFUpkeep)>>@@
	<<set _arcologyCosts += _AWFUpkeep>>
<</if>>
<<if $FSSpending != 0>>

__Society Shaping Expenses__: @@.yellowgreen;<<print cashFormat($FSSpending)>>@@
	<<set _arcologyCosts += $FSSpending>>
<</if>>
<<if $Recruiter != 0>>

__Recruiting Expenses__: @@.yellowgreen;<<print cashFormat(250)>>@@
	<<set _arcologyCosts += 250>>
<</if>>

<<set _schoolPresent = 0, _schoolSubsidy = 0>>
<<if ($TSS.schoolPresent > 0)>>
	<<set _school = "The Slavegirl School">>
	<<set _schoolPresent = 1>>
	<<if $TSS.subsidize != 0>>
		<<set _schoolSubsidy = 1>>
	<</if>>
<</if>>
<<if ($GRI.schoolPresent > 0)>>
	<<set _school = "Growth Research Institute">>
	<<set _schoolPresent = 1>>
	<<if $GRI.subsidize != 0>>
		<<set _schoolSubsidy = 1>>
	<</if>>
<</if>>
<<if ($SCP.schoolPresent > 0)>>
	<<set _school = "St. Claver Prepatory">>
	<<set _schoolPresent = 1>>
	<<if $SCP.subsidize != 0>>
		<<set _schoolSubsidy = 1>>
	<</if>>
<</if>>
<<if ($LDE.schoolPresent > 0)>>
	<<set _school = "L'École des Enculées">>
	<<set _schoolPresent = 1>>
	<<if $LDE.subsidize != 0>>
		<<set _schoolSubsidy = 1>>
	<</if>>
<</if>>
<<if ($TGA.schoolPresent > 0)>>
	<<set _school = "The Gymnasium-Academy">>
	<<set _schoolPresent = 1>>
	<<if $TGA.subsidize != 0>>
		<<set _schoolSubsidy = 1>>
	<</if>>
<</if>>
<<if ($HA.schoolPresent > 0)>>
	<<set _school = "The Hippolyta Academy">>
	<<set _schoolPresent = 1>>
	<<if $HA.subsidize != 0>>
		<<set _schoolSubsidy = 1>>
	<</if>>
<</if>>
<<if ($TCR.schoolPresent > 0)>>
	<<set _school = "The Cattle Ranch">>
	<<set _schoolPresent = 1>>
	<<if $TCR.subsidize != 0>>
		<<set _schoolSubsidy = 1>>
	<</if>>
<</if>>
<<if ($TFS.schoolPresent > 0)>>
	<<set _school = "The Futanari Sisters">>
	<<set _schoolPresent = 1>>
	<<if $TFS.subsidize != 0>>
		<<set _schoolSubsidy = 1>>
	<</if>>
<</if>>

<<if _schoolPresent > 0>>
<<if _school == "Growth Research Institute">>

	__<<print _school>> Subsidiary Lab Upkeep__: @@.yellowgreen;<<print cashFormat(1000)>>@@
	<<set _arcologyCosts += 1000>>
	<<if _schoolSubsidy > 0>>

		__<<print _school>> Subsidiary Lab Influence__: @@.yellowgreen;<<print cashFormat(1000)>>@@
	<</if>>
<<elseif _school == "The Cattle Ranch">>

	__<<print _school>> Local Pasture Upkeep__: @@.yellowgreen;<<print cashFormat(1000)>>@@
	<<set _arcologyCosts += 1000>>
	<<if _schoolSubsidy > 0>>

		__<<print _school>> Local Pasture Influence__: @@.yellowgreen;<<print cashFormat(1000)>>@@
	<</if>>
<<elseif _school == "The Futanari Sisters">>

	__<<print _school>> Community Upkeep__: @@.yellowgreen;<<print cashFormat(1000)>>@@
	<<set _arcologyCosts += 1000>>
	<<if _schoolSubsidy > 0>>

		__<<print _school>> Community Influence__: @@.yellowgreen;<<print cashFormat(1000)>>@@
	<</if>>
<<else>>

	__<<print _school>> Branch Campus Upkeep__: @@.yellowgreen;<<print cashFormat(1000)>>@@
	<<set _arcologyCosts += 1000>>
	<<if _schoolSubsidy > 0>>

		__<<print _school>> Branch Campus Influence__: @@.yellowgreen;<<print cashFormat(1000)>>@@
	<</if>>
<</if>>
<</if>>

<<if $alwaysSubsidizeGrowth > 0 || $alwaysSubsidizeRep > 0 || $RegularParties > 0>>

__Weekly Costs__:
	<<if $alwaysSubsidizeGrowth > 0>>

    Arcology Growth Subsidy: @@.yellowgreen;<<print cashFormat($policyCost)>>@@
		<<set _arcologyCosts += $policyCost>>
	<</if>>
	<<if $alwaysSubsidizeRep > 0>>

    Self-promotion Budget: @@.yellowgreen;<<print cashFormat($policyCost)>>@@
		<<set _arcologyCosts += $policyCost>>
	<</if>>
	<<if $RegularParties > 0>>

    Social Gatherings: @@.yellowgreen;<<print cashFormat($policyCost)>>@@
		<<set _arcologyCosts += $policyCost>>
	<</if>>
<</if>>

<<if $ProImmigrationCash == 1>>

    Pro-immigration Promotion Budget: @@.yellowgreen;<<print cashFormat($policyCost)>>@@
	<<set _arcologyCosts += $policyCost>>
<</if>>
<<if $AntiEnslavementCash == 1>>

    Anti-enslavement Charity Budget: @@.yellowgreen;<<print cashFormat($policyCost)>>@@
	<<set _arcologyCosts += $policyCost>>
<</if>>

<<if $CoursingAssociation == 1>>

    Coursing Association Membership: @@.yellowgreen;<<print cashFormat(1000)>>@@
	<<set _arcologyCosts += 1000>>
<</if>>

''Overall Arcology Costs:'' @@.yellowgreen;<<print cashFormat(_arcologyCosts)>>@@

<<set _total = 0>> <<set _SL = $slaves.length>>
<<for $i = 0; $i < _SL; $i++>>
<<set _individualCosts = 0>>
	''$slaves[$i].slaveName'':
	<<switch $slaves[$i].assignment>>
		<<case "be confined in the arcade">>
			<<set _livingExpense = ($rulesCost*.75)>>
		<<case "work in the dairy">>
			<<if $dairyRestraintsSetting >= 2>>
				<<set _livingExpense = ($rulesCost*.75)>>
			<<elseif $slaves[$i].livingRules == "normal">>
				<<set _livingExpense = ($rulesCost*1.5)>>
			<<elseif $dairyDecoration == "Degradationist">>
				<<set _livingExpense = ($rulesCost*.9)>>
			<<else>>
				<<set _livingExpense = $rulesCost>>
			<</if>>
		<<case "work as a farmhand">>
			<<if $slaves[$i].livingRules == "luxurious">>
				<<set _livingExpense = ($rulesCost)>>
			<<elseif $slaves[$i].livingRules == "normal">>
				<<set _livingExpense = ($rulesCost*2)>>
			<<else>>
				<<set _livingExpense = ($rulesCost*.9)>>
			<</if>>
		<<case "work in the brothel">>
			<<if $slaves[$i].livingRules == "normal">>
				<<set _livingExpense = ($rulesCost*1.5)>>
			<<else>>
				<<set _livingExpense = $rulesCost>>
			<</if>>
		<<case "serve in the club" "learn in the schoolroom">>
			<<set _livingExpense = ($rulesCost*1.5)>>
		<<case "get treatment in the clinic">>
			<<if $slaves[$i].livingRules == "luxurious">>
				<<set _livingExpense = ($rulesCost*2)>>
			<<elseif $slaves[$i].livingRules == "normal">>
				<<set _livingExpense = ($rulesCost*1.5)>>
			<<else>>
				<<set _livingExpense = $rulesCost>>
			<</if>>
		<<case "rest in the spa" "work as a nanny">>
			<<if $slaves[$i].livingRules == "luxurious">>
				<<set _livingExpense = ($rulesCost*1.75)>>
			<<elseif $slaves[$i].livingRules == "normal">>
				<<set _livingExpense = ($rulesCost*1.5)>>
			<<else>>
				<<set _livingExpense = $rulesCost>>
			<</if>>
		<<case "be a servant">>
			<<if $slaves[$i].livingRules == "normal">>
				<<set _livingExpense = ($rulesCost*1.5)>>
			<<else>>
				<<if $servantsQuartersDecoration == "Degradationist">>
					<<set _livingExpense = ($rulesCost*.9)>>
				<<else>>
					<<set _livingExpense = $rulesCost>>
				<</if>>
			<</if>>
		<<case "be confined in the cellblock">>
			<<if $slaves[$i].livingRules == "normal">>
				<<set _livingExpense = ($rulesCost*1.25)>>
			<<else>>
				<<set _livingExpense = ($rulesCost*.9)>>
			<</if>>
		<<case "be the Madam" "be the DJ" "be the Nurse" "be the Wardeness" "be the Attendant" "be the Matron" "be the Schoolteacher" "be the Stewardess" "be the Milkmaid" "be the Farmer">>
			<<set _livingExpense = ($rulesCost*2)>>
		<<default>>
			<<if $slaves[$i].livingRules == "luxurious">>
				<<if $slaves[$i].relationship >= 4>>
					<<set _livingExpense = ($rulesCost*3)>>
				<<else>>
					<<set _livingExpense = ($rulesCost*4)>>
				<</if>>
			<<elseif $slaves[$i].livingRules == "normal">>
				<<set _livingExpense = ($rulesCost*2)>>
			<<else>>
				<<set _livingExpense = $rulesCost>>
			<</if>>
	<</switch>>

    Living expenses: @@.yellowgreen;<<print cashFormat(_livingExpense)>>@@
	<<set _individualCosts += _livingExpense>>

    Basic slave food cost: @@.yellowgreen;<<print cashFormat($foodCost*4)>>@@
	<<set _individualCosts += $foodCost*4>>
	<<switch $slaves[$i].diet>>
		<<case "fattening" "muscle building">>

    Heavy diet: @@.yellowgreen;<<print cashFormat($foodCost)>>@@
			<<set _individualCosts += $foodCost>>
		<<case "restricted" "slimming">>

    Light diet: //reduced by// @@.yellowgreen;<<print cashFormat($foodCost)>>@@
			<<set _individualCosts -= $foodCost>>
	<</switch>>
	<<if $slaves[$i].weight > 130 || $slaves[$i].weight > 50 || $slaves[$i].weight < -50>>

    Caloric adjustment for
		<<if $slaves[$i].weight > 130>>
			heavy weight: @@.yellowgreen;<<print cashFormat($foodCost*2)>>@@
			<<set _individualCosts += $foodCost*2>>
		<<elseif $slaves[$i].weight > 50>>
			high weight: @@.yellowgreen;<<print cashFormat($foodCost)>>@@
			<<set _individualCosts += $foodCost>>
		<<elseif $slaves[$i].weight < -50>>
			light weight: //reduced by// @@.yellowgreen;<<print cashFormat($foodCost)>>@@
			<<set _individualCosts -= $foodCost>>
		<</if>>
	<</if>>
	<<if ($slaves[$i].geneticQuirks.fertility == 2 && $slaves[$i].geneticQuirks.hyperFertility == 2 && $slaves[$i].preg == 0 && ($slaves[$i].ovaries == 1 || $slaves[$i].mpreg == 1))>>

		<<if $geneticMappingUpgrade == 1>>
			Additional dietary supplements due to genetic hyper-fertility: @@.yellowgreen;<<print cashFormat($foodCost/2)>>@@
		<<else>>
			Adjustment for unusual deitary deficiencies: @@.yellowgreen;<<print cashFormat($foodCost/2)>>@@
		<</if>>
		<<set _individualCosts += $foodCost/2>>
	<</if>>
	<<if $slaves[$i].drugs == "appetite suppressors">>

    Food saved via suppressed appetite: //reduced by// @@.yellowgreen;<<print cashFormat($foodCost)>>@@
		<<set _individualCosts -= $foodCost>>
	<</if>>
	<<if $slaves[$i].lactation > 0>>

    Food to support
		<<if $slaves[$i].lactation > 1>>heavy<<else>>natural<</if>> lactation from
		<<if Math.trunc($slaves[$i].boobs/10000) > 2>>absurd udders<<elseif Math.trunc($slaves[$i].boobs/10000) > 1>>enormous boobs<<else>>reasonable breasts<</if>>:
		@@.yellowgreen;<<print cashFormat($foodCost*$slaves[$i].lactation*(1+Math.trunc($slaves[$i].boobs/10000)))>>@@
		<<set _individualCosts += $foodCost*$slaves[$i].lactation*(1+Math.trunc($slaves[$i].boobs/10000))>>
	<</if>>
	<<if $slaves[$i].preg > $slaves[$i].pregData.normalBirth/8>>
		<<if $slaves[$i].assignment == "work in the dairy" && $dairyFeedersSetting > 0>>

    Extra feeding costs to support pregnancy are covered by dairy feeders.
		<<elseif ($slaves[$i].assignment == "serve in the master suite" || $slaves[$i].assignment == "be your concubine") && $masterSuiteUpgradePregnancy == 1>>

    Extra feeding costs to support pregnancy are covered by $masterSuiteName luxuries.
		<<else>>
			<<set _pAccMult = 1>>

    Extra feeding to support <<if $slaves[$i].pregControl == "speed up">>accelerated <<set _pAccMult = 3>><</if>>pregnancy:
			@@.yellowgreen;<<print cashFormat($foodCost*$slaves[$i].pregType*_pAccMult)>>@@
			<<set _individualCosts += $foodCost*$slaves[$i].pregType*_pAccMult>>
			<<if $slaves[$i].pregType >= 10>>

    Specialized food blend to support multiples:
				@@.yellowgreen;<<print cashFormat($foodCost*$slaves[$i].pregType*2*_pAccMult)>>@@
				<<set _individualCosts += $foodCost*$slaves[$i].pregType*_pAccMult>>
			<<elseif $slaves[$i].pregType >= 30>>

    Concentrated, quick to digest food blend to support extreme multiples: @@.yellowgreen;<<print cashFormat($foodCost*$slaves[$i].pregType*_pAccMult)>>@@
				<<set _individualCosts += $foodCost*2*$slaves[$i].pregType*_pAccMult>>
			<<elseif $slaves[$i].pregType >= 50>>

    Specialized dietary adjustments and concentrated, quick to digest food required to support absurd multiples: <<print cashFormat($foodCost*$slaves[$i].pregType*3*_pAccMult)>>
				<<set _individualCosts += $foodCost*$slaves[$i].pregType*3*_pAccMult>>
			<<elseif $slaves[$i].pregType >= 100>>

    Specialized dietary requirements and feeding methods to support absurd multiples:
				@@.yellowgreen;<<print cashFormat($foodCost*$slaves[$i].pregType*5*_pAccMult)>>@@
				<<set _individualCosts += $foodCost*$slaves[$i].pregType*5*_pAccMult>>
			<</if>>
		<</if>>
	<</if>>
	<<switch $slaves[$i].diet>>
		<<case "XX" "XY">>

    Hormone enriched diet:
			@@.yellowgreen;<<print cashFormat(25)>>@@
			<<set _individualCosts += 25>>
		<<case "XXY">>

    Specialized hermaphrodite diet:
			@@.yellowgreen;<<print cashFormat(75)>>@@
			<<set _individualCosts += 75>>
		<<case "cleansing">>

    Chemical cleansing diet:
			@@.yellowgreen;<<print cashFormat(50)>>@@
			<<set _individualCosts += 50>>
		<<case "fertility">>

    Specialized fertility diet:
			@@.yellowgreen;<<print cashFormat(25)>>@@
			<<set _individualCosts += 50>>
	<</switch>>
	<<if $boobAccessibility != 1>>
		<<if ($slaves[$i].boobs > 20000)>>
			<<if ($slaves[$i].assignment != "work in the dairy" || $dairyRestraintsSetting < 2) && ($slaves[$i].assignment != "be confined in the arcade")>>

    Increased living expenses due to inconveniently huge boobs:
				@@.yellowgreen;<<print cashFormat(50)>>@@
				<<set _individualCosts += 50>>
			<</if>>
		<</if>>
	<</if>>
	<<if $pregAccessibility != 1>>
		<<if ($slaves[$i].belly >= 60000)>>
			<<if ($slaves[$i].assignment != "labor in the production line") && ($slaves[$i].assignment != "work in the dairy" || $dairyRestraintsSetting < 2) && ($slaves[$i].assignment != "be confined in the arcade")>>

    Increased living expenses due to an inconveniently huge belly:
				@@.yellowgreen;<<print cashFormat(100)>>@@
				<<set _individualCosts += 100>>
			<</if>>
		<</if>>
	<</if>>
	<<if $dickAccessibility != 1>>
		<<if ($slaves[$i].dick > 45)>>
			<<if ($slaves[$i].assignment != "work in the dairy" || $dairyRestraintsSetting < 2) && ($slaves[$i].assignment != "be confined in the arcade")>>

    Increased living expenses due to an inconveniently huge penis:
				@@.yellowgreen;<<print cashFormat(50)>>@@
				<<set _individualCosts += 50>>
			<</if>>
		<</if>>
	<</if>>
	<<if $ballsAccessibility != 1>>
		<<if ($slaves[$i].balls > 90)>>
			<<if ($slaves[$i].assignment != "work in the dairy" || $dairyRestraintsSetting < 2) && ($slaves[$i].assignment != "be confined in the arcade")>>

    Increased living expenses due to inconveniently huge balls:
				@@.yellowgreen;<<print cashFormat(50)>>@@
				<<set _individualCosts += 50>>
			<</if>>
		<</if>>
	<</if>>
	<<if $buttAccessibility != 1>>
		<<if ($slaves[$i].butt > 15)>>
			<<if ($slaves[$i].assignment != "work in the dairy" || $dairyRestraintsSetting < 2) && ($slaves[$i].assignment != "be confined in the arcade")>>

    Increased living expenses due to an inconveniently huge butt:
				@@.yellowgreen;<<print cashFormat(50)>>@@
				<<set _individualCosts += 50>>
			<</if>>
		<</if>>
	<</if>>
	<<if !canSee($slaves[$i]) && ($slaves[$i].assignment != "work in the dairy" || $dairyRestraintsSetting < 2) && ($slaves[$i].assignment != "be confined in the arcade")>>

    Increased living expenses due to lack of sight:
		@@.yellowgreen;<<print cashFormat(50)>>@@
		<<set _individualCosts += 50>>
	<<elseif $slaves[$i].eyes <= -1 && $slaves[$i].eyewear != "corrective glasses" && $slaves[$i].eyewear != "corrective contacts">>

    Increased living expenses due to poor vision:
		@@.yellowgreen;<<print cashFormat(25)>>@@
		<<set _individualCosts += 25>>
	<<elseif ($slaves[$i].eyewear == "blurring glasses") || ($slaves[$i].eyewear == "blurring contacts")>>

    Increased living expenses due to blurred vision:
		@@.yellowgreen;<<print cashFormat(25)>>@@
		<<set _individualCosts += 25>>
	<</if>>
	<<if !canHear($slaves[$i]) && ($slaves[$i].assignment != "work in the dairy" || $dairyRestraintsSetting < 2) && ($slaves[$i].assignment != "be confined in the arcade")>>

    Increased living expenses due to lack of hearing:
		@@.yellowgreen;<<print cashFormat(20)>>@@
		<<set _individualCosts += 20>>
	<<elseif $slaves[$i].hears <= -1 && $slaves[$i].earwear != "hearing aids">>

    Increased living expenses due to poor hearing:
		@@.yellowgreen;<<print cashFormat(5)>>@@
		<<set _individualCosts += 5>>
	<<elseif ($slaves[$i].earwear == "muffling ear plugs")>>

    Increased living expenses due to muffled hearing:
		@@.yellowgreen;<<print cashFormat(5)>>@@
		<<set _individualCosts += 5>>
	<</if>>
	<<if ($slaves[$i].assignment != "work in the dairy" || $dairyRestraintsSetting < 2) && ($slaves[$i].assignment != "be confined in the arcade")>>
		<<if ($slaves[$i].amp != 0)>>
			<<if ($slaves[$i].amp == 1)>>

    Increased living expenses due to limblessness:
				@@.yellowgreen;<<print cashFormat($rulesCost)>>@@
				<<set _individualCosts += $rulesCost>>
			<<else>>

    Increased living expenses due to prosthetics:
				@@.yellowgreen;<<print cashFormat($rulesCost/2)>>@@
				<<set _individualCosts += $rulesCost/2>>
			<</if>>
		<<elseif !canWalk($slaves[$i])>>

    Increased living expenses due to immobility:
			@@.yellowgreen;<<print cashFormat($rulesCost)>>@@
			<<set _individualCosts += $rulesCost>>
		<</if>>
	<</if>>
	<<if $slaves[$i].boobs > 10000>>
		<<if $slaves[$i].boobsImplantType == 1>>

    Maintenance cost for oversized string implants:
			@@.yellowgreen;<<print cashFormat(50)>>@@
			<<set _individualCosts += 50>>
		<</if>>
	<</if>>
	<<if $slaves[$i].butt > 10>>
		<<if $slaves[$i].buttImplantType == 1>>

    Maintenance cost for oversized string implants:
			@@.yellowgreen;<<print cashFormat(50)>>@@
			<<set _individualCosts += 50>>
		<</if>>
	<</if>>
	<<if $slaves[$i].preg > $slaves[$i].pregData.minLiveBirth>>
		<<if $universalRulesBirthing == 1>>
			<<if ($slaves[$i].assignment != "work in the dairy" || $dairyRestraintsSetting < 2)>>

    Coverage cost for daily pregnancy scanning:
				@@.yellowgreen;<<print cashFormat(50)>>@@
				<<set _individualCosts += 50>>
			<</if>>
		<</if>>
	<</if>>
	<<if $CitizenRetirement == 1>>

    Retirement account payments:
		@@.yellowgreen;<<print cashFormat(250)>>@@
		<<set _individualCosts += 250>>
	<</if>>
	<<if ($slaves[$i].inflation == 3)>>
		<<switch $slaves[$i].inflationType>>
		<<case "water">>

    Costs of specially formulated water for enemas; 2 gallons:
			@@.yellowgreen;<<print cashFormat(100)>>@@
			<<set _individualCosts += 100>>
		<<case "food">>

    Costs of filler food for slave stuffing; 2 gallons:
			@@.yellowgreen;<<print cashFormat(($foodCost*4))>>@@
			<<set _individualCosts += ($foodCost*4)>>
		<<case "curative" "aphrodisiac" "tightener">>

    Costs of specially formulated drug mixtures for enemas; 2 gallons:
			@@.yellowgreen;<<print cashFormat((100+($drugsCost*2)))>>@@
			<<set _individualCosts += (100+($drugsCost*2))>>
		<</switch>>
	<<elseif ($slaves[$i].inflation == 2)>>
		<<switch $slaves[$i].inflationType>>
		<<case "water">>

    Costs of specially formulated water for enemas; 1 gallon:
			@@.yellowgreen;<<print cashFormat(50)>>@@
			<<set _individualCosts += 50>>
		<<case "food">>

    Costs of filler food for slave stuffing; 1 gallon:
			@@.yellowgreen;<<print cashFormat(($foodCost*2))>>@@
			<<set _individualCosts += ($foodCost*4)>>
		<<case "curative" "aphrodisiac" "tightener">>

    Costs of specially formulated drug mixtures for enemas; 1 gallon:
			@@.yellowgreen;<<print cashFormat((50+($drugsCost*2)))>>@@
			<<set _individualCosts += (50+($drugsCost*2))>>
		<</switch>>
	<<elseif ($slaves[$i].inflation == 1)>>
		<<switch $slaves[$i].inflationType>>
		<<case "water">>

    Costs of specially formulated water for enemas; 2 liters:
			@@.yellowgreen;<<print cashFormat(25)>>@@
			<<set _individualCosts += 25>>
		<<case "food">>

    Costs of filler food for slave stuffing; 2 liters:
			<<print cashFormat(($foodCost))>>
			<<set _individualCosts += ($foodCost)>>
		<<case "curative" "aphrodisiac" "tightener">>

    Costs of specially formulated drug mixtures for enemas; 2 liters:
			@@.yellowgreen;<<print cashFormat((25+($drugsCost*2)))>>@@
			<<set _individualCosts += (25+($drugsCost*2))>>
		<</switch>>
	<</if>>
	<<switch $slaves[$i].drugs>>
	<<case "anti-aging cream">>

    Anti-aging creams:
		<<print cashFormat(($drugsCost*10))>>
		<<set _individualCosts += ($drugsCost*10)>>
	<<case "female hormone injections" "male hormone injections">>

    Hormonal injections:
		@@.yellowgreen;<<print cashFormat(($drugsCost*5))>>@@
		<<set _individualCosts += ($drugsCost*5)>>
	<<case "growth stimulants">>

    Growth stimulants:
		@@.yellowgreen;<<print cashFormat(($drugsCost*5))>>@@
		<<set _individualCosts += ($drugsCost*5)>>
	<<case "intensive breast injections" "intensive butt injections" "intensive penis enhancement" "intensive testicle enhancement" "intensive lip injections" "hyper breast injections" "hyper butt injections" "hyper penis enhancement" "hyper testicle enhancement" "hyper lip injections">>

    Intensive drugs:
		@@.yellowgreen;<<print cashFormat($drugsCost*5)>>@@
		<<set _individualCosts += $drugsCost*5>>
	<<case "sag-B-gone">>

    Questionable infomercial creams:
		@@.yellowgreen;<<print cashFormat(Math.trunc($drugsCost/10))>>@@
		<<set _individualCosts += ($drugsCost/10)>>
	<<case "no drugs" "none">>
	<<default>>

    Standard drugs:
		@@.yellowgreen;<<print cashFormat(($drugsCost*2))>>@@
		<<set _individualCosts += ($drugsCost*2)>>
	<</switch>>
	<<if $slaves[$i].curatives == 1 && $slaves[$i].assignmentVisible != 1>>
	<<elseif $slaves[$i].curatives > 0>>

    Health drugs:
		@@.yellowgreen;<<print cashFormat($drugsCost+($slaves[$i].curatives*$drugsCost))>>@@
		<<set _individualCosts += $drugsCost+($slaves[$i].curatives*$drugsCost)>>
	<</if>>
	<<if ($slaves[$i].aphrodisiacs !== 0)>>

    Aphrodisiacs/Anaphrodisiacs:
		@@.yellowgreen;<<print cashFormat(Math.trunc($drugsCost*Math.abs($slaves[$i].aphrodisiacs)))>>@@
		<<set _individualCosts += $drugsCost*Math.abs($slaves[$i].aphrodisiacs)>>
	<</if>>
	<<if ($slaves[$i].hormones != 0)>>

    Hormones:
		@@.yellowgreen;<<print cashFormat((Math.trunc($drugsCost*Math.abs($slaves[$i].hormones)*0.5)))>>@@
		<<set _individualCosts += Math.trunc($drugsCost*Math.abs($slaves[$i].hormones)*0.5)>>
	<</if>>
	<<if ($slaves[$i].bodySwap > 0)>>

    JS-Suppressants:
		@@.yellowgreen;<<print cashFormat(($drugsCost*10*$slaves[$i].bodySwap))>>@@
		<<set _individualCosts += Math.trunc($drugsCost*10*$slaves[$i].bodySwap)>>
	<</if>>
	<<if ($slaves[$i].preg == -1) && isFertile($slaves[$i])>>

    Contraceptives:
		@@.yellowgreen;<<print cashFormat((Math.trunc($drugsCost*0.5)))>>@@
		<<set _individualCosts += Math.trunc($drugsCost*0.5)>>
	<</if>>
	<<if ($studio == 1)>>
		<<if ($slaves[$i].pornFameSpending > 0)>>

    Publicity:
			@@.yellowgreen;<<print cashFormat($slaves[$i].pornFameSpending/$PCSlutContacts)>>@@
			<<set _individualCosts += ($slaves[$i].pornFameSpending/$PCSlutContacts)>>
		<</if>>
	<</if>> <<set _total += Math.trunc(_individualCosts)>>

        __Total__:
	@@.yellowgreen;<<print cashFormat(Math.trunc(_individualCosts))>>@@

<</for>>
*/
<<set _total = 0>> <<set _SL = $slaves.length>>
<<for $i = 0; $i < _SL; $i++>>
	<<capture $i>>

<<if $lineSeparations == 0>>
<<else>>
<</if>>
	[[$slaves[$i].slaveName|Slave Interact][$activeSlave = $slaves[$i]]] will $slaves[$i].assignment.
	<<SlaveExpenses $slaves[$i]>>
	<</capture>>
<</for>>
/*

Overall slave costs: @@.yellowgreen;<<print cashFormat(_total)>>@@

This brings the overall total to ''@@.yellowgreen;<<print cashFormat(_arcologyCosts+_total)>>@@'' before reductions.

<<if $PC.career == "servant">>

Using your prior experience, you managed to lower your home's upkeep by @@.green;<<if $personalAttention == "upkeep">><<if $PC.belly >= 5000>>20%<<else>>25%<</if>><<else>>10%<</if>>.@@
<</if>>

<<if $secExp == 1>>

	<<if $terrain == "oceanic" || $terrain == "marine">>
		<<if $docks > 0>>

The infrastructure you've built eases the transportation and safe handling of the supplies required by the arcology. @@.green;Upkeep is lowered by <<print $docks * 5>>%.@@
		<</if>>
	<<else>>
		<<if $railway > 0>>

The infrastructure you've built eases the transportation and safe handling of the supplies required by the arcology. @@.green;Upkeep is lowered by <<print $railway * 5>>%.@@
		<</if>>
	<</if>>
<</if>>
*/


code:
:: Costs Report Slaves [nobr]

<<set _arcologyCosts = 0>>
<<if $PCSlutContacts == 0>><<set $PCSlutContacts = 1>><</if>>

<<set _total = 0>> <<set _SL = $slaves.length>>
<<for $i = 0; $i < _SL; $i++>>
	<<capture $i>>

<<if $lineSeparations == 0>>
<<else>>
<</if>>
	[[$slaves[$i].slaveName|Slave Interact][$activeSlave = $slaves[$i]]] will $slaves[$i].assignment.
	<<SlaveExpenses $slaves[$i]>>
	<</capture>>
<</for>>

repo_name: AnonDev/fc


code:
:: Cost widgets [nobr widget]

<<widget "SlaveExpenses">>
	<<set _individualCosts = 0>>
	<<setLocalPronouns $args[0]>>
	<<switch $args[0].assignment>>
		<<case "be confined in the arcade">>
			<<set _livingExpense = ($rulesCost*.75)>>
		<<case "work in the dairy">>
			<<if $dairyRestraintsSetting >= 2>>
				<<set _livingExpense = ($rulesCost*.75)>>
			<<elseif $args[0].livingRules == "normal">>
				<<set _livingExpense = ($rulesCost*1.5)>>
			<<elseif $dairyDecoration == "Degradationist">>
				<<set _livingExpense = ($rulesCost*.9)>>
			<<else>>
				<<set _livingExpense = $rulesCost>>
			<</if>>
		<<case "work as a farmhand">>
			<<if $args[0].livingRules == "luxurious">>
				<<set _livingExpense = ($rulesCost)>>
			<<elseif $args[0].livingRules == "normal">>
				<<set _livingExpense = ($rulesCost*2)>>
			<<else>>
				<<set _livingExpense = ($rulesCost*.9)>>
			<</if>>
		<<case "work in the brothel">>
			<<if $args[0].livingRules == "normal">>
				<<set _livingExpense = ($rulesCost*1.5)>>
			<<else>>
				<<set _livingExpense = $rulesCost>>
			<</if>>
		<<case "serve in the club" "learn in the schoolroom">>
			<<set _livingExpense = ($rulesCost*1.5)>>
		<<case "get treatment in the clinic">>
			<<if $args[0].livingRules == "luxurious">>
				<<set _livingExpense = ($rulesCost*2)>>
			<<elseif $args[0].livingRules == "normal">>
				<<set _livingExpense = ($rulesCost*1.5)>>
			<<else>>
				<<set _livingExpense = $rulesCost>>
			<</if>>
		<<case "rest in the spa" "work as a nanny">>
			<<if $args[0].livingRules == "luxurious">>
				<<set _livingExpense = ($rulesCost*1.75)>>
			<<elseif $args[0].livingRules == "normal">>
				<<set _livingExpense = ($rulesCost*1.5)>>
			<<else>>
				<<set _livingExpense = $rulesCost>>
			<</if>>
		<<case "be a servant">>
			<<if $args[0].livingRules == "normal">>
				<<set _livingExpense = ($rulesCost*1.5)>>
			<<else>>
				<<if $servantsQuartersDecoration == "Degradationist">>
					<<set _livingExpense = ($rulesCost*.9)>>
				<<else>>
					<<set _livingExpense = $rulesCost>>
				<</if>>
			<</if>>
		<<case "be confined in the cellblock">>
			<<if $args[0].livingRules == "normal">>
				<<set _livingExpense = ($rulesCost*1.25)>>
			<<else>>
				<<set _livingExpense = ($rulesCost*.9)>>
			<</if>>
		<<case "be the Madam" "be the DJ" "be the Nurse" "be the Wardeness" "be the Attendant" "be the Matron" "be the Schoolteacher" "be the Stewardess" "be the Milkmaid" "be the Farmer">>
			<<set _livingExpense = ($rulesCost*2)>>
		<<default>>
			<<if $args[0].livingRules == "luxurious">>
				<<if $args[0].relationship >= 4>>
					<<set _livingExpense = ($rulesCost*3)>>
				<<else>>
					<<set _livingExpense = ($rulesCost*4)>>
				<</if>>
			<<elseif $args[0].livingRules == "normal">>
				<<set _livingExpense = ($rulesCost*2)>>
			<<else>>
				<<set _livingExpense = $rulesCost>>
			<</if>>
	<</switch>>

    Living expenses: @@.yellowgreen;<<print cashFormat(_livingExpense)>>@@
	<<set _individualCosts += _livingExpense>>

    Basic slave food cost: @@.yellowgreen;<<print cashFormat($foodCost*4)>>@@
	<<set _individualCosts += $foodCost*4>>
	<<switch $args[0].diet>>
		<<case "fattening" "muscle building">>

    Heavy diet: @@.yellowgreen;<<print cashFormat($foodCost)>>@@
			<<set _individualCosts += $foodCost>>
		<<case "restricted" "slimming">>

    Light diet: //reduced by// @@.yellowgreen;<<print cashFormat($foodCost)>>@@
			<<set _individualCosts -= $foodCost>>
	<</switch>>
	<<if $args[0].weight > 130 || $args[0].weight > 50 || $args[0].weight < -50>>

    Caloric adjustment for
		<<if $args[0].weight > 130>>
			heavy weight: @@.yellowgreen;<<print cashFormat($foodCost*2)>>@@
			<<set _individualCosts += $foodCost*2>>
		<<elseif $args[0].weight > 50>>
			high weight: @@.yellowgreen;<<print cashFormat($foodCost)>>@@
			<<set _individualCosts += $foodCost>>
		<<elseif $args[0].weight < -50>>
			light weight: //reduced by// @@.yellowgreen;<<print cashFormat($foodCost)>>@@
			<<set _individualCosts -= $foodCost>>
		<</if>>
	<</if>>
	<<if ($args[0].geneticQuirks.fertility == 2 && $args[0].geneticQuirks.hyperFertility == 2 && $args[0].preg == 0 && ($args[0].ovaries == 1 || $args[0].mpreg == 1))>>

		<<if $geneticMappingUpgrade == 1>>
			Additional dietary supplements due to genetic hyper-fertility: @@.yellowgreen;<<print cashFormat($foodCost/2)>>@@
		<<else>>
			Adjustment for unusual deitary deficiencies: @@.yellowgreen;<<print cashFormat($foodCost/2)>>@@
		<</if>>
		<<set _individualCosts += $foodCost/2>>
	<</if>>
	<<if $args[0].drugs == "appetite suppressors">>

    Food saved via suppressed appetite: //reduced by// @@.yellowgreen;<<print cashFormat($foodCost)>>@@
		<<set _individualCosts -= $foodCost>>
	<</if>>
	<<if $args[0].lactation > 0>>

    Food to support
		<<if $args[0].lactation > 1>>heavy<<else>>natural<</if>> lactation from
		<<if Math.trunc($args[0].boobs/10000) > 2>>absurd udders<<elseif Math.trunc($args[0].boobs/10000) > 1>>enormous boobs<<else>>reasonable breasts<</if>>:
		@@.yellowgreen;<<print cashFormat($foodCost*$args[0].lactation*(1+Math.trunc($args[0].boobs/10000)))>>@@
		<<set _individualCosts += $foodCost*$args[0].lactation*(1+Math.trunc($args[0].boobs/10000))>>
	<</if>>
	<<if $args[0].preg > $args[0].pregData.normalBirth/8>>
		<<if $args[0].assignment == "work in the dairy" && $dairyFeedersSetting > 0>>

    Extra feeding costs to support pregnancy are covered by dairy feeders.
		<<elseif ($args[0].assignment == "serve in the master suite" || $args[0].assignment == "be your concubine") && $masterSuiteUpgradePregnancy == 1>>

    Extra feeding costs to support pregnancy are covered by $masterSuiteName luxuries.
		<<else>>
			<<set _pAccMult = 1>>

    Extra feeding to support <<if $args[0].pregControl == "speed up">>accelerated <<set _pAccMult = 3>><</if>>pregnancy:
			@@.yellowgreen;<<print cashFormat($foodCost*$args[0].pregType*_pAccMult)>>@@
			<<set _individualCosts += $foodCost*$args[0].pregType*_pAccMult>>
			<<if $args[0].pregType >= 10>>

    Specialized food blend to support multiples:
				@@.yellowgreen;<<print cashFormat($foodCost*$args[0].pregType*2*_pAccMult)>>@@
				<<set _individualCosts += $foodCost*$args[0].pregType*_pAccMult>>
			<<elseif $args[0].pregType >= 30>>

    Concentrated, quick to digest food blend to support extreme multiples: @@.yellowgreen;<<print cashFormat($foodCost*$args[0].pregType*_pAccMult)>>@@
				<<set _individualCosts += $foodCost*2*$args[0].pregType*_pAccMult>>
			<<elseif $args[0].pregType >= 50>>

    Specialized dietary adjustments and concentrated, quick to digest food required to support absurd multiples: <<print cashFormat($foodCost*$args[0].pregType*3*_pAccMult)>>
				<<set _individualCosts += $foodCost*$args[0].pregType*3*_pAccMult>>
			<<elseif $args[0].pregType >= 100>>

    Specialized dietary requirements and feeding methods to support absurd multiples:
				@@.yellowgreen;<<print cashFormat($foodCost*$args[0].pregType*5*_pAccMult)>>@@
				<<set _individualCosts += $foodCost*$args[0].pregType*5*_pAccMult>>
			<</if>>
		<</if>>
	<</if>>
	<<switch $args[0].diet>>
		<<case "XX" "XY">>

    Hormone enriched diet:
			@@.yellowgreen;<<print cashFormat(25)>>@@
			<<set _individualCosts += 25>>
		<<case "XXY">>

    Specialized hermaphrodite diet:
			@@.yellowgreen;<<print cashFormat(75)>>@@
			<<set _individualCosts += 75>>
		<<case "cleansing">>

    Chemical cleansing diet:
			@@.yellowgreen;<<print cashFormat(50)>>@@
			<<set _individualCosts += 50>>
		<<case "fertility">>

    Specialized fertility diet:
			@@.yellowgreen;<<print cashFormat(25)>>@@
			<<set _individualCosts += 50>>
	<</switch>>
	<<if $boobAccessibility != 1>>
		<<if ($args[0].boobs > 20000)>>
			<<if ($args[0].assignment != "work in the dairy" || $dairyRestraintsSetting < 2) && ($args[0].assignment != "be confined in the arcade")>>

    Increased living expenses due to inconveniently huge boobs:
				@@.yellowgreen;<<print cashFormat(50)>>@@
				<<set _individualCosts += 50>>
			<</if>>
		<</if>>
	<</if>>
	<<if $pregAccessibility != 1>>
		<<if ($args[0].belly >= 60000)>>
			<<if ($args[0].assignment != "labor in the production line") && ($args[0].assignment != "work in the dairy" || $dairyRestraintsSetting < 2) && ($args[0].assignment != "be confined in the arcade")>>

    Increased living expenses due to an inconveniently huge belly:
				@@.yellowgreen;<<print cashFormat(100)>>@@
				<<set _individualCosts += 100>>
			<</if>>
		<</if>>
	<</if>>
	<<if $dickAccessibility != 1>>
		<<if ($args[0].dick > 45)>>
			<<if ($args[0].assignment != "work in the dairy" || $dairyRestraintsSetting < 2) && ($args[0].assignment != "be confined in the arcade")>>

    Increased living expenses due to an inconveniently huge penis:
				@@.yellowgreen;<<print cashFormat(50)>>@@
				<<set _individualCosts += 50>>
			<</if>>
		<</if>>
	<</if>>
	<<if $ballsAccessibility != 1>>
		<<if ($args[0].balls > 90)>>
			<<if ($args[0].assignment != "work in the dairy" || $dairyRestraintsSetting < 2) && ($args[0].assignment != "be confined in the arcade")>>

    Increased living expenses due to inconveniently huge balls:
				@@.yellowgreen;<<print cashFormat(50)>>@@
				<<set _individualCosts += 50>>
			<</if>>
		<</if>>
	<</if>>
	<<if $buttAccessibility != 1>>
		<<if ($args[0].butt > 15)>>
			<<if ($args[0].assignment != "work in the dairy" || $dairyRestraintsSetting < 2) && ($args[0].assignment != "be confined in the arcade")>>

    Increased living expenses due to an inconveniently huge butt:
				@@.yellowgreen;<<print cashFormat(50)>>@@
				<<set _individualCosts += 50>>
			<</if>>
		<</if>>
	<</if>>
	<<if !canSee($args[0]) && ($args[0].assignment != "work in the dairy" || $dairyRestraintsSetting < 2) && ($args[0].assignment != "be confined in the arcade")>>

    Increased living expenses due to lack of sight:
		@@.yellowgreen;<<print cashFormat(50)>>@@
		<<set _individualCosts += 50>>
	<<elseif $args[0].eyes <= -1 && $args[0].eyewear != "corrective glasses" && $args[0].eyewear != "corrective contacts">>

    Increased living expenses due to poor vision:
		@@.yellowgreen;<<print cashFormat(25)>>@@
		<<set _individualCosts += 25>>
	<<elseif ($args[0].eyewear == "blurring glasses") || ($args[0].eyewear == "blurring contacts")>>

    Increased living expenses due to blurred vision:
		@@.yellowgreen;<<print cashFormat(25)>>@@
		<<set _individualCosts += 25>>
	<</if>>
	<<if !canHear($args[0]) && ($args[0].assignment != "work in the dairy" || $dairyRestraintsSetting < 2) && ($args[0].assignment != "be confined in the arcade")>>

    Increased living expenses due to lack of hearing:
		@@.yellowgreen;<<print cashFormat(20)>>@@
		<<set _individualCosts += 20>>
	<<elseif $args[0].hears <= -1 && $args[0].earwear != "hearing aids">>

    Increased living expenses due to poor hearing:
		@@.yellowgreen;<<print cashFormat(5)>>@@
		<<set _individualCosts += 5>>
	<<elseif ($args[0].earwear == "muffling ear plugs")>>

    Increased living expenses due to muffled hearing:
		@@.yellowgreen;<<print cashFormat(5)>>@@
		<<set _individualCosts += 5>>
	<</if>>
	<<if ($args[0].assignment != "work in the dairy" || $dairyRestraintsSetting < 2) && ($args[0].assignment != "be confined in the arcade")>>
		<<if ($args[0].amp != 0)>>
			<<if ($args[0].amp == 1)>>

    Increased living expenses due to limblessness:
				@@.yellowgreen;<<print cashFormat($rulesCost)>>@@
				<<set _individualCosts += $rulesCost>>
			<<else>>

    Increased living expenses due to prosthetics:
				@@.yellowgreen;<<print cashFormat($rulesCost/2)>>@@
				<<set _individualCosts += $rulesCost/2>>
			<</if>>
		<<elseif !canWalk($args[0])>>

    Increased living expenses due to immobility:
			@@.yellowgreen;<<print cashFormat($rulesCost)>>@@
			<<set _individualCosts += $rulesCost>>
		<</if>>
	<</if>>
	<<if $args[0].boobs > 10000>>
		<<if $args[0].boobsImplantType == 1>>

    Maintenance cost for oversized string implants:
			@@.yellowgreen;<<print cashFormat(50)>>@@
			<<set _individualCosts += 50>>
		<</if>>
	<</if>>
	<<if $args[0].butt > 10>>
		<<if $args[0].buttImplantType == 1>>

    Maintenance cost for oversized string implants:
			@@.yellowgreen;<<print cashFormat(50)>>@@
			<<set _individualCosts += 50>>
		<</if>>
	<</if>>
	<<if $args[0].preg > $args[0].pregData.minLiveBirth>>
		<<if $universalRulesBirthing == 1>>
			<<if ($args[0].assignment != "work in the dairy" || $dairyRestraintsSetting < 2)>>

    Coverage cost for daily pregnancy scanning:
				@@.yellowgreen;<<print cashFormat(50)>>@@
				<<set _individualCosts += 50>>
			<</if>>
		<</if>>
	<</if>>
	<<if $CitizenRetirement == 1>>

    Retirement account payments:
		@@.yellowgreen;<<print cashFormat(250)>>@@
		<<set _individualCosts += 250>>
	<</if>>
	<<if ($args[0].inflation == 3)>>
		<<switch $args[0].inflationType>>
		<<case "water">>

    Costs of specially formulated water for enemas; 2 gallons:
			@@.yellowgreen;<<print cashFormat(100)>>@@
			<<set _individualCosts += 100>>
		<<case "food">>

    Costs of filler food for slave stuffing; 2 gallons:
			@@.yellowgreen;<<print cashFormat(($foodCost*4))>>@@
			<<set _individualCosts += ($foodCost*4)>>
		<<case "curative" "aphrodisiac" "tightener">>

    Costs of specially formulated drug mixtures for enemas; 2 gallons:
			@@.yellowgreen;<<print cashFormat((100+($drugsCost*2)))>>@@
			<<set _individualCosts += (100+($drugsCost*2))>>
		<</switch>>
	<<elseif ($args[0].inflation == 2)>>
		<<switch $args[0].inflationType>>
		<<case "water">>

    Costs of specially formulated water for enemas; 1 gallon:
			@@.yellowgreen;<<print cashFormat(50)>>@@
			<<set _individualCosts += 50>>
		<<case "food">>

    Costs of filler food for slave stuffing; 1 gallon:
			@@.yellowgreen;<<print cashFormat(($foodCost*2))>>@@
			<<set _individualCosts += ($foodCost*4)>>
		<<case "curative" "aphrodisiac" "tightener">>

    Costs of specially formulated drug mixtures for enemas; 1 gallon:
			@@.yellowgreen;<<print cashFormat((50+($drugsCost*2)))>>@@
			<<set _individualCosts += (50+($drugsCost*2))>>
		<</switch>>
	<<elseif ($args[0].inflation == 1)>>
		<<switch $args[0].inflationType>>
		<<case "water">>

    Costs of specially formulated water for enemas; 2 liters:
			@@.yellowgreen;<<print cashFormat(25)>>@@
			<<set _individualCosts += 25>>
		<<case "food">>

    Costs of filler food for slave stuffing; 2 liters:
			<<print cashFormat(($foodCost))>>
			<<set _individualCosts += ($foodCost)>>
		<<case "curative" "aphrodisiac" "tightener">>

    Costs of specially formulated drug mixtures for enemas; 2 liters:
			@@.yellowgreen;<<print cashFormat((25+($drugsCost*2)))>>@@
			<<set _individualCosts += (25+($drugsCost*2))>>
		<</switch>>
	<</if>>
	<<switch $args[0].drugs>>
	<<case "anti-aging cream">>

    Anti-aging creams:
		<<print cashFormat(($drugsCost*10))>>
		<<set _individualCosts += ($drugsCost*10)>>
	<<case "female hormone injections" "male hormone injections">>

    Hormonal injections:
		@@.yellowgreen;<<print cashFormat(($drugsCost*5))>>@@
		<<set _individualCosts += ($drugsCost*5)>>
	<<case "growth stimulants">>

    Growth stimulants:
		@@.yellowgreen;<<print cashFormat(($drugsCost*5))>>@@
		<<set _individualCosts += ($drugsCost*5)>>
	<<case "intensive breast injections" "intensive butt injections" "intensive penis enhancement" "intensive testicle enhancement" "intensive lip injections" "hyper breast injections" "hyper butt injections" "hyper penis enhancement" "hyper testicle enhancement" "hyper lip injections">>

    Intensive drugs:
		@@.yellowgreen;<<print cashFormat($drugsCost*5)>>@@
		<<set _individualCosts += $drugsCost*5>>
	<<case "sag-B-gone">>

    Questionable infomercial creams:
		@@.yellowgreen;<<print cashFormat(Math.trunc($drugsCost/10))>>@@
		<<set _individualCosts += ($drugsCost/10)>>
	<<case "no drugs" "none">>
	<<default>>

    Standard drugs:
		@@.yellowgreen;<<print cashFormat(($drugsCost*2))>>@@
		<<set _individualCosts += ($drugsCost*2)>>
	<</switch>>
	<<if $args[0].curatives == 1 && $args[0].assignmentVisible != 1>>
	<<elseif $args[0].curatives > 0>>

    Health drugs:
		@@.yellowgreen;<<print cashFormat($drugsCost+($args[0].curatives*$drugsCost))>>@@
		<<set _individualCosts += $drugsCost+($args[0].curatives*$drugsCost)>>
	<</if>>
	<<if ($args[0].aphrodisiacs !== 0)>>

    Aphrodisiacs/Anaphrodisiacs:
		@@.yellowgreen;<<print cashFormat(Math.trunc($drugsCost*Math.abs($args[0].aphrodisiacs)))>>@@
		<<set _individualCosts += $drugsCost*Math.abs($args[0].aphrodisiacs)>>
	<</if>>
	<<if ($args[0].hormones != 0)>>

    Hormones:
		@@.yellowgreen;<<print cashFormat((Math.trunc($drugsCost*Math.abs($args[0].hormones)*0.5)))>>@@
		<<set _individualCosts += Math.trunc($drugsCost*Math.abs($args[0].hormones)*0.5)>>
	<</if>>
	<<if ($args[0].bodySwap > 0)>>

    JS-Suppressants:
		@@.yellowgreen;<<print cashFormat(($drugsCost*10*$args[0].bodySwap))>>@@
		<<set _individualCosts += Math.trunc($drugsCost*10*$args[0].bodySwap)>>
	<</if>>
	<<if ($args[0].preg == -1) && isFertile($args[0])>>

    Contraceptives:
		@@.yellowgreen;<<print cashFormat((Math.trunc($drugsCost*0.5)))>>@@
		<<set _individualCosts += Math.trunc($drugsCost*0.5)>>
	<</if>>
	<<if ($studio == 1)>>
		<<if ($args[0].pornFameSpending > 0)>>

    Publicity:
			@@.yellowgreen;<<print cashFormat($args[0].pornFameSpending/$PCSlutContacts)>>@@
			<<set _individualCosts += ($args[0].pornFameSpending/$PCSlutContacts)>>
		<</if>>
	<</if>> <<set _total += Math.trunc(_individualCosts)>>

        __Predicted expense__: @@.red;<<print cashFormat(Math.trunc(_individualCosts))>>@@
	<<if $assistantPower > 0>>
		<<if $args[0].lastWeeksCashIncome > 0>>

    Income: @@.yellowgreen;<<print cashFormat($args[0].lastWeeksCashIncome)>>@@
			<<set _total = (Math.trunc($args[0].lastWeeksCashIncome - _individualCosts))>>

        __Total__:
			<<if _total > 0>>
				@@.yellowgreen;<<print cashFormat(Math.trunc(_total))>>@@
			<<else>>
				@@.red;<<print cashFormat(Math.trunc(_total))>>@@
			<</if>>
		<</if>>
	<</if>>

	<<if $args[0].origin != 0>>
		$args[0].origin

	<</if>>
	<<if $args[0].slaveCost < 0>>
		You bought $him for: @@.red;<<print cashFormat($args[0].slaveCost)>>@@.
		<<set _Cost = $args[0].slaveCost>>
	<<elseif $args[0].slaveCost == 0>>
		You spent nothing to aquire $him.
		<<set _Cost = $args[0].slaveCost>>
	<<else>>
		You have no record of how much <<if $args[0].origin != 0>>this<<else>>$he originally<</if>> cost.
		<<set _Cost = 0>>
	<</if>>

	<<if $assistantPower > 0>>
		<<set _weeksOwned = $week - $args[0].weekAcquired>>

		<<if $args[0].lifetimeCashExpenses < 0>>
			In $his <<if _weeksOwned > 0>>_weeksOwned <<if _weeksOwned == 1>>week<<else>>weeks<</if>><<else>>time<</if>> with you, $he has cost @@.red;<<print cashFormat($args[0].lifetimeCashExpenses)>>@@.
			<<set _Expense = $args[0].lifetimeCashExpenses>>
		<<else>>
			You have no record of $him costing you any ¤.
			<<set _Expense = 0>>
		<</if>>

		<<if $args[0].lifetimeCashIncome > 0>>
			In $his <<if _weeksOwned > 0>>_weeksOwned <<if _weeksOwned == 1>>week<<else>>weeks<</if>><<else>>time<</if>> with you, $he has earned @@.yellowgreen;<<print cashFormat($args[0].lifetimeCashIncome)>>@@.
			<<set _Income = $args[0].lifetimeCashIncome>>
		<<else>>
			You have no record of $him making you any ¤.
			<<set _Income = 0>>
		<</if>>

		Overall,
		<<if (_Income + _Cost + _Expense) > 0>>
			you have made @@.yellowgreen;<<print cashFormat(_Income + _Cost + _Expense)>>@@ net from $his labors.
		<<elseif (_Income + _Cost + _Expense) == 0>>
			$he is even in cost and income.
		<<else>>
			$he has cost you @@.red;<<print cashFormat(_Income + _Cost + _Expense)>>@@.
		<</if>>

		/* Reputation: */
		<<if ($args[0].lifetimeRepIncome != 0 || $args[0].lifetimeRepExpenses != 0)>>

			<<set _repTotal = ($args[0].lifetimeRepIncome + $args[0].lifetimeRepExpenses)>>
			<<if($cheatMode == 1 || $debugMode == 1)>>
				<<if $args[0].lifetimeRepIncome != 0>>

					This week $he has
					<<if $args[0].lastWeeksRepIncome == 0>>
						had no positive effect on your reputation, but
					<<else>>
						improved your reputation by @@.green;<<print commaNum($args[0].lastWeeksRepIncome)>>@@ and
					<</if>>
					over $his entire time with you, $he gained @@.green;<<print commaNum($args[0].lifetimeRepIncome)>>@@.
				<</if>>
				<<if $args[0].lifetimeRepExpenses != 0>>

					This week $he has
					<<if $args[0].lastWeeksRepExpenses == 0>>
						had no negative effect on your reputation, but
					<<else>>
						lowered your reputation by @@.red;<<print commaNum($args[0].lastWeeksRepExpenses)>>@@ and
					<</if>>
					over $his entire time with you, $he cost @@.red;<<print commaNum($args[0].lifetimeRepExpenses)>>@@.
				<</if>>

				Overall then, $he has changed your reputation by
				<<if _repTotal > 0>>
					@@.green;<<print commaNum(_repTotal)>>@@
				<<elseif _repTotal < 0>>
					@@.red;<<print commaNum(_repTotal)>>@@
				<<else>>
					<<print commaNum(_repTotal)>>
				<</if>>
			<<else>> /*lowercasedonkey: TODO: I don't like how vague my placeholder is.  Probably need to set up some kind of sliding scale to describe how much rep (roughly) she has made or lost. Need to get a sense of common ranges.*/

				Overall, $he has
				<<if _repTotal == 0>>
					had no impact on your reputation.
				<<elseif _repTotal > 0>>
					@@.green;increased@@ your reputation.
				<<elseif _repTotal < 0>>
					@@.red;decreased@@ your reputation.
				<</if>>
			<</if>>
		<</if>>
	<</if>>
<</widget>>

<<widget "setupLastWeeksCash">>
/*Feel free to add categories.  Just make sure to display them in costsBudget.tw as well!*/
<<set $lastWeeksCashIncome = {
/*Slave Jobs*/
whore: 0,
whoreBrothel: 0,
rest: 0,
houseServant: 0,
confined: 0,
publicServant: 0,
classes: 0,
milked: 0,
milkedDairy: 0,
extraMilk: 0, /*milk from slaves doing other things*/
gloryhole: 0,
gloryholeArcade: 0,
porn: 0,

recruiter: 0,

/*Slaves in general*/
fuckdolls: 0,
menialTrades: 0,
menialBioreactors: 0,

slaveTransfer: 0,
fuckdollsTransfer: 0,
menialTransfer: 0,
menialBioreactorsTransfer: 0,
babyTransfer: 0,
menialRetirement: 0,

slaveMod: 0,
slaveSurgery: 0,
slaveUpkeep: 0,
birth: 0,

/*Buildings*/
lab: 0,
brothel: 0,
brothelAds: 0,
club: 0,
clubAds: 0,
arcade: 0,
dairy: 0,
servantsQuarters: 0,
masterSuite: 0,
school: 0,
spa: 0,
clinic: 0,
cellblock: 0,
incubator: 0,
nursery: 0,
farmyard: 0,
pit: 0,

environment: 0,
weather: 0,

mercenaries: 0,
peacekeepers: 0,
specialForces: 0,
securityExpansion: 0,

citizenOrphanage: 0,
privateOrphanage: 0,

capEx: 0,
futureSocieties: 0,
schoolBacking: 0,
policies: 0,

/*Personal Finance*/
personalBusiness: 0,
personalLivingExpenses: 0,
PCtraining: 0,
PCmedical: 0,
PCskills: 0,
stocksTraded: 0, /*trading*/
stocks: 0, /*share growth*/
fines: 0,
event: 0, /*poker night etc.  Try to file things elsewhere if you can.*/
war: 0,

rents: 0,

cheating: 0,
total: 0

}>>

<<set $lastWeeksCashExpenses = clone($lastWeeksCashIncome)>>
<<set $lastWeeksCashProfits = clone($lastWeeksCashIncome)>>

<</widget>>

<<widget "setupLastWeeksRep">>
/*Feel free to add categories.  Just make sure to display them in costsBudget.tw as well!*/
<<set $lastWeeksRepIncome = {
/*Slave Jobs*/
fucktoy: 0,
publicServant: 0,

concubine: 0,
headGirl: 0,
bodyguard: 0,
recruiter: 0,

/*Slaves in general*/
slaveTransfer: 0,
babyTransfer: 0,
birth: 0,
retirement: 0,
slavesViewOfPC: 0,
prestigiousSlave: 0,
vignette: 0,
porn: 0,

/*Buildings*/
arcade: 0,
brothel: 0,
club: 0,
publicServantClub: 0,
clubAds: 0,
pit: 0,
servantsQuarters: 0,
spa: 0,

architecture: 0,

/*Policies*/
capEx: 0,
futureSocieties: 0,
policies: 0,
war: 0,
food: 0,

/*Forces */
peacekeepers: 0,
specialForces: 0,

/*Personal Finance*/
personalBusiness: 0,
PCappearance: 0,
PCactions: 0, /*actions involving your body: becoming pregnant, etc. */
PCRelationships: 0,
SlaveRelationships: 0,
event: 0, /*poker night etc.  Try to file things elsewhere if you can.*/

/*special*/
multiplier: 0,
overflow: 0,
cheating: 0,

total: 0

}>>

<<set $lastWeeksRepExpenses = clone($lastWeeksRepIncome)>>
<<set $lastWeeksRepProfits = clone($lastWeeksRepIncome)>>

<</widget>>


code:
:: Coursing Association [nobr]

<<set $nextButton = "Back to Main">>
<<set $nextLink = "Main">>
<<set $returnTo = "Coursing Association">>
<<showallAssignmentFilter>>

You are a member of $arcologies[0].name's Coursing Association. Coursing is a Free Cities revival of the old sport of hunting rabbits and hares with sighthounds, with the typically Free Cities amendments that the hares are replaced by newly enslaved people, the sighthounds are replaced by trained slaves, and the killing of the hare is replaced by rape. Truly, a sport of gentlemen.

The chasing slaves are known as lurchers, the term once used for the sighthounds. They require speed most of all, but must also be able to tackle their quarry; lurchers with the ability and willingness to make a spectacle of molesting the hares can improve their owners' reputations.

<<showallAssignmentFilter>>
<<if $Lurcher != 0>>
	<<= SlaveFullName($Lurcher)>> is assigned to compete as your lurcher.
<<else>>
	You have not selected a lurcher, meaning that you will not participate in coursing events.
<</if>>

//
<<= properTitle()>>, slaves assigned here can continue their usual duties.//

<<if $Lurcher != 0>>

''Fire your Lurcher:''
	<<set $Flag = 1>>
	<<include "Slave Summary">>
<</if>>

''Select a slave to course as a Lurcher:''

<<assignmentFilter>>

	<<set $Flag = 0>>
	<<showallAssignmentFilter>>
	<<include "Slave Summary">>
	<<resetAssignmentFilter>>


code:
:: Custom Slave [nobr]

<<set $nextButton = "Back", $nextLink = "Buy Slaves", $returnTo = "Buy Slaves", $showEncyclopedia = 1, $encyclopedia = "Kidnapped Slaves">>

<<setAssistantPronouns>>

<<if $customSlaveOrdered == 0>>You work up a new slave order for posting where slave merchants can work to fulfill it.<<else>>You review your posted slave order.<</if>> <<if $assistant == 1>>As you work, $assistantName makes lewd comments about what _heA looks forward to doing to this new slave. <</if>>Your order requests a slave with the following characteristics:

<<if $customSlave.age < 3>>2- years old.
<<elseif $customSlave.age < 5>>3-4 years old.
<<elseif $customSlave.age < 7>>5-6 years old.
<<elseif $customSlave.age < 10>>7-9 years old.
<<elseif $customSlave.age < 13>>10-12 years old.
<<elseif $customSlave.age < 15>>13-14 years old.
<<elseif $customSlave.age < 18>>15-17 years old.
<<elseif $customSlave.age < 20>>18-19 years old.
<<elseif $customSlave.age < 25 && $retirementAge >= 25>>20-24 years old.
<<elseif $customSlave.age < 25 && $retirementAge >= 20>>20+ years old.
<<elseif $customSlave.age < 30 && $retirementAge >= 30>>25-29 years old.
<<elseif $customSlave.age < 30 && $retirementAge >= 25>>25+ years old.
<<elseif $customSlave.age < 40 && $retirementAge >= 40>>30-39 years old.
<<elseif $customSlave.age < 40 && $retirementAge >= 30>>30+ years old.
<<elseif $customSlave.age < 50 && $retirementAge >= 50>>40-49 years old.
<<elseif $customSlave.age < 50 && $retirementAge >= 40>>40+ years old.
<<elseif $customSlave.age < 60 && $retirementAge >= 60>>50-59 years old.
<<elseif $customSlave.age < 60 && $retirementAge >= 50>>50+ years old.
<<elseif $customSlave.age < 70 && $retirementAge >= 70>>60-69 years old.
<<elseif $customSlave.age < 70 && $retirementAge >= 60>>60+ years old.
<<elseif $customSlave.age < 80 && $retirementAge >= 80>>70-79 years old.
<<elseif $customSlave.age < 80 && $retirementAge >= 70>>70+ years old.
<<elseif $customSlave.age < 90 && $retirementAge >= 90>>80-89 years old.
<<elseif $customSlave.age < 90 && $retirementAge >= 80>>80+ years old.
<<elseif $customSlave.age < 100 && $retirementAge >= 100>>90-99 years old.
<<elseif $customSlave.age < 100 && $retirementAge >= 90>>90+ years old.
<<elseif $customSlave.age < 110 && $retirementAge >= 110>>100-109 years old.
<<elseif $customSlave.age < 110 && $retirementAge >= 100>>100+ years old.
<<elseif $customSlave.age < 120 && $retirementAge >= 120>>110-119 years old.
<<elseif $customSlave.age < 120 && $retirementAge >= 110>>110+ years old.
<<elseif $customSlave.age < 130 && $retirementAge >= 130>>120-129 years old.
<<elseif $customSlave.age < 130 && $retirementAge >= 120>>120+ years old.
<<else>>130+ years old.
<</if>>

<<if $minimumSlaveAge >= 0 && $minimumSlaveAge <= 2>>
<<link "2-">>
	<<set $customSlave.age = 2>>
	<<CustomSlaveAge>>
<</link>>
|
<</if>>
<<if $minimumSlaveAge <= 3>>
<<link "3-4">>
	<<set $customSlave.age = 4>>
	<<CustomSlaveAge>>
<</link>>
|
<</if>>
<<if $minimumSlaveAge <= 5>>
<<link "5-6">>
	<<set $customSlave.age = 6>>
	<<CustomSlaveAge>>
<</link>>
|
<</if>>
<<if $minimumSlaveAge <= 7>>
<<link "7-9">>
	<<set $customSlave.age = 9>>
	<<CustomSlaveAge>>
<</link>>
|
<</if>>
<<if $minimumSlaveAge <= 10>>
<<link "10-12">>
	<<set $customSlave.age = 12>>
	<<CustomSlaveAge>>
<</link>>
|
<</if>>
<<if $minimumSlaveAge <= 13>>
<<link "13-14">>
	<<set $customSlave.age = 14>>
	<<CustomSlaveAge>>
<</link>>
|
<</if>>
<<if $minimumSlaveAge <= 15>>
<<link "15-17">>
	<<set $customSlave.age = 17>>
	<<CustomSlaveAge>>
<</link>>
|
<</if>>
<<if $minimumSlaveAge <= 18>>
<<link "18-19">>
	<<set $customSlave.age = 19>>
	<<CustomSlaveAge>>
<</link>>
|
<</if>>
<<if $retirementAge >= 25>>
<<link "20-24">>
	<<set $customSlave.age = 24>>
	<<CustomSlaveAge>>
<</link>>
|
<<elseif $retirementAge >= 20>>
<<link "20+">>
	<<set $customSlave.age = 20>>
	<<CustomSlaveAge>>
<</link>>
<<else>>
<</if>>
<<if $retirementAge >= 30>>
<<link "25-29">>
	<<set $customSlave.age = 29>>
	<<CustomSlaveAge>>
<</link>>
|
<<elseif $retirementAge >= 25>>
<<link "25+">>
	<<set $customSlave.age = 25>>
	<<CustomSlaveAge>>
<</link>>
<<else>>
<</if>>
<<if $retirementAge >= 40>>
<<link "30-39">>
	<<set $customSlave.age = 39>>
	<<CustomSlaveAge>>
<</link>>
|
<<elseif $retirementAge >= 30>>
<<link "30+">>
	<<set $customSlave.age = 30>>
	<<CustomSlaveAge>>
<</link>>
<<else>>
<</if>>
<<if $retirementAge >= 50>>
<<link "40-49">>
	<<set $customSlave.age = 49>>
	<<CustomSlaveAge>>
<</link>>
|
<<elseif $retirementAge >= 40>>
<<link "40+">>
	<<set $customSlave.age = 40>>
	<<CustomSlaveAge>>
<</link>>
<<else>>
<</if>>
<<if $retirementAge >= 60>>
<<link "50-59">>
	<<set $customSlave.age = 59>>
	<<CustomSlaveAge>>
<</link>>
|
<<elseif $retirementAge >= 50>>
<<link "50+">>
	<<set $customSlave.age = 50>>
	<<CustomSlaveAge>>
<</link>>
<<else>>
<</if>>
<<if $retirementAge >= 70>>
<<link "60-69">>
	<<set $customSlave.age = 69>>
	<<CustomSlaveAge>>
<</link>>
|
<<elseif $retirementAge >= 60>>
<<link "60+">>
	<<set $customSlave.age = 60>>
	<<CustomSlaveAge>>
<</link>>
<<else>>
<</if>>
<<if $retirementAge >= 80>>
<<link "70-79">>
	<<set $customSlave.age = 79>>
	<<CustomSlaveAge>>
<</link>>
|
<<elseif $retirementAge >= 70>>
<<link "70+">>
	<<set $customSlave.age = 70>>
	<<CustomSlaveAge>>
<</link>>
<<else>>
<</if>>
<<if $retirementAge >= 90>>
<<link "80-89">>
	<<set $customSlave.age = 89>>
	<<CustomSlaveAge>>
<</link>>
|
<<elseif $retirementAge >= 80>>
<<link "80+">>
	<<set $customSlave.age = 80>>
	<<CustomSlaveAge>>
<</link>>
<<else>>
<</if>>
<<if $retirementAge >= 100>>
<<link "90-99">>
	<<set $customSlave.age = 99>>
	<<CustomSlaveAge>>
<</link>>
|
<<elseif $retirementAge >= 90>>
<<link "90+">>
	<<set $customSlave.age = 90>>
	<<CustomSlaveAge>>
<</link>>
<<else>>
<</if>>
<<if $retirementAge >= 110>>
<<link "100-109">>
	<<set $customSlave.age = 109>>
	<<CustomSlaveAge>>
<</link>>
|
<<elseif $retirementAge >= 100>>
<<link "100+">>
	<<set $customSlave.age = 100>>
	<<CustomSlaveAge>>
<</link>>
<<else>>
<</if>>
<<if $retirementAge >= 120>>
<<link "110-119">>
	<<set $customSlave.age = 119>>
	<<CustomSlaveAge>>
<</link>>
|
<<elseif $retirementAge >= 110>>
<<link "110+">>
	<<set $customSlave.age = 110>>
	<<CustomSlaveAge>>
<</link>>
<<else>>
<</if>>
<<if $retirementAge >= 130>>
<<link "120-129">>
	<<set $customSlave.age = 129>>
	<<CustomSlaveAge>>
<</link>>
|
<<elseif $retirementAge >= 120>>
<<link "120+">>
	<<set $customSlave.age = 120>>
	<<CustomSlaveAge>>
<</link>>
<<else>>
<</if>>
<<if $retirementAge >= 130>>
<<link "130+">>
	<<set $customSlave.age = 130>>
	<<CustomSlaveAge>>
<</link>>
<</if>>

<<if $customSlave.health == 0>>Healthy.
<<else>>Extremely healthy.
<</if>>

<<link "Healthy">>
	<<set $customSlave.health = 0>>
	<<CustomSlaveHealth>>
<</link>>
|
<<link "Extremely healthy">>
	<<set $customSlave.health = 80>>
	<<CustomSlaveHealth>>
<</link>>

<<if $customSlave.muscles > 95>>
	Ripped.
<<elseif $customSlave.muscles > 50>>
	Muscular.
<<elseif $customSlave.muscles > 30>>
	Well built.
<<elseif $customSlave.muscles > 5>>
	Toned.
<<elseif $customSlave.muscles > -6>>
	Soft.
<<elseif $customSlave.muscles > -31>>
	Weak.
<<elseif $customSlave.muscles > -96>>
	Very weak.
<<else>>
	Frail.
<</if>>

<<link "Frail">>
	<<set $customSlave.muscles = -97>>
	<<CustomSlaveMuscles>>
<</link>>
|
<<link "Very weak">>
	<<set $customSlave.muscles = -51>>
	<<CustomSlaveMuscles>>
<</link>>
|
<<link "Weak">>
	<<set $customSlave.muscles = -21>>
	<<CustomSlaveMuscles>>
<</link>>
|
<<link "Normal">>
	<<set $customSlave.muscles = 0>>
	<<CustomSlaveMuscles>>
<</link>>
|
<<link "Toned">>
	<<set $customSlave.muscles = 20>>
	<<CustomSlaveMuscles>>
<</link>>
|
<<link "Well built">>
	<<set $customSlave.muscles = 45>>
	<<CustomSlaveMuscles>>
<</link>>
|
<<link "Muscular">>
	<<set $customSlave.muscles = 65>>
	<<CustomSlaveMuscles>>
<</link>>
|
<<link "Ripped">>
	<<set $customSlave.muscles = 96>>
	<<CustomSlaveMuscles>>
<</link>>

<<if $customSlave.lips <= 10>>Thin lips.
<<elseif $customSlave.lips <= 20>>Normal lips.
<<elseif $customSlave.lips <= 40>>Plush lips.
<<elseif $customSlave.lips <= 70>>Big lips.
<<elseif $customSlave.lips <= 95>>Huge lips.
<<else>>Facepussy.
<</if>>

<<link "Thin">>
	<<set $customSlave.lips = 5>>
	<<CustomSlaveLips>>
<</link>>
|
<<link "Normal">>
	<<set $customSlave.lips = 15>>
	<<CustomSlaveLips>>
<</link>>
|
<<link "Plush">>
	<<set $customSlave.lips = 35>>
	<<CustomSlaveLips>>
<</link>>
|
<<link "Big">>
	<<set $customSlave.lips = 65>>
	<<CustomSlaveLips>>
<</link>>
|
<<link "Enormous">>
	<<set $customSlave.lips = 85>>
	<<CustomSlaveLips>>
<</link>>
|
<<link "Facepussy">>
	<<set $customSlave.lips = 100>>
	<<CustomSlaveLips>>
<</link>>

<<if $customSlave.voice == 3>>High, girly voice.
<<elseif $customSlave.voice == 2>>Feminine voice.
<<elseif $customSlave.voice == 1>>Deep voice.
<<elseif $customSlave.voice == 0>>Mute.
<<else>>Voice is unimportant.
<</if>>

<<link "High, girly voice">>
	<<set $customSlave.voice = 3>>
	<<CustomSlaveVoice>>
<</link>>
|
<<link "Feminine voice">>
	<<set $customSlave.voice = 2>>
	<<CustomSlaveVoice>>
<</link>>
|
<<link "Deep voice">>
	<<set $customSlave.voice = 1>>
	<<CustomSlaveVoice>>
<</link>>
|
<<link "Mute">>
	<<set $customSlave.voice = 0>>
	<<CustomSlaveVoice>>
<</link>>
|
<<link "Voice is unimportant">>
	<<set $customSlave.voice = -1>>
	<<CustomSlaveVoice>>
<</link>>

<<if $customSlave.heightMod == "greatly below average">>Petite.
<<elseif $customSlave.heightMod == "below average">>Short.
<<elseif $customSlave.heightMod == "normal">>Average height.
<<elseif $customSlave.heightMod == "above average">>Tall.
<<else>>Very tall.
<</if>>

<<link "Petite">>
	<<set $customSlave.heightMod = "greatly below average">>
	<<CustomSlaveHeight>>
<</link>>
|
<<link "Short">>
	<<set $customSlave.heightMod = "below average">>
	<<CustomSlaveHeight>>
<</link>>
|
<<link "Average height">>
	<<set $customSlave.heightMod = "normal">>
	<<CustomSlaveHeight>>
<</link>>
|
<<link "Tall">>
	<<set $customSlave.heightMod = "above average">>
	<<CustomSlaveHeight>>
<</link>>
|
<<link "Very tall">>
	<<set $customSlave.heightMod = "greatly above average">>
	<<CustomSlaveHeight>>
<</link>>

<<if $customSlave.weight == -50>>Very thin.
<<elseif $customSlave.weight == -15>>Thin.
<<elseif $customSlave.weight == 0>>Average weight.
<<elseif $customSlave.weight == 15>>Chubby.
<<elseif $customSlave.weight == 50>>Plump.
<<elseif $customSlave.weight == 100>>Fat.
<<elseif $customSlave.weight == 150>>Very Fat.
<<else>>Immobile.
<</if>>

<<link "Very thin">>
	<<set $customSlave.weight = -50>>
	<<CustomSlaveWeight>>
<</link>>
|
<<link "Thin">>
	<<set $customSlave.weight = -15>>
	<<CustomSlaveWeight>>
<</link>>
|
<<link "Average">>
	<<set $customSlave.weight = 0>>
	<<CustomSlaveWeight>>
<</link>>
|
<<link "Chubby">>
	<<set $customSlave.weight = 15>>
	<<CustomSlaveWeight>>
<</link>>
|
<<link "Plump">>
	<<set $customSlave.weight = 50>>
	<<CustomSlaveWeight>>
<</link>>
|
<<link "Fat">>
	<<set $customSlave.weight = 100>>
	<<CustomSlaveWeight>>
<</link>>
|
<<link "Very Fat">>
	<<set $customSlave.weight = 150>>
	<<CustomSlaveWeight>>
<</link>>
|
<<link "Immobile">>
	<<set $customSlave.weight = 200>>
	<<CustomSlaveWeight>>
<</link>>

<<if $customSlave.face < -40>>Very unattractive face.
<<elseif $customSlave.face < -10>>Unattractive face.
<<elseif $customSlave.face <= 10>>Average face.
<<elseif $customSlave.face <= 40>>Attractive face.
<<else>>Very attractive face.
<</if>>

<<link "Very unattractive">>
	<<set $customSlave.face = -55>>
	<<CustomSlaveFace>>
<</link>>
|
<<link "Unattractive">>
	<<set $customSlave.face = -15>>
	<<CustomSlaveFace>>
<</link>>
|
<<link "Average">>
	<<set $customSlave.face = 0>>
	<<CustomSlaveFace>>
<</link>>
|
<<link "Attractive">>
	<<set $customSlave.face = 15>>
	<<CustomSlaveFace>>
<</link>>
|
<<link "Very attractive">>
	<<set $customSlave.face = 55>>
	<<CustomSlaveFace>>
<</link>>

Ethnicity:
<<textbox "$customSlave.race" $customSlave.race "Custom Slave">>

<<link "White">>
	<<set $customSlave.race = "white">>
	<<CustomSlaveRace>>
<</link>>
|
<<link "Asian">>
	<<set $customSlave.race = "asian">>
	<<CustomSlaveRace>>
<</link>>
|
<<link "Latina">>
	<<set $customSlave.race = "latina">>
	<<CustomSlaveRace>>
<</link>>
|
<<link "Middle Eastern">>
	<<set $customSlave.race = "middle eastern">>
	<<CustomSlaveRace>>
<</link>>
|
<<link "Black">>
	<<set $customSlave.race = "black">>
	<<CustomSlaveRace>>
<</link>>
|
<<link "Semitic">>
	<<set $customSlave.race = "semitic">>
	<<CustomSlaveRace>>
<</link>>
|
<<link "Southern European">>
	<<set $customSlave.race = "southern european">>
	<<CustomSlaveRace>>
<</link>>
|
<<link "Indo-Aryan">>
	<<set $customSlave.race = "indo-aryan">>
	<<CustomSlaveRace>>
<</link>>
|
<<link "Amerindian">>
	<<set $customSlave.race = "amerindian">>
	<<CustomSlaveRace>>
<</link>>
|
<<link "Pacific Islander">>
	<<set $customSlave.race = "pacific islander">>
	<<CustomSlaveRace>>
<</link>>
|
<<link "Malay">>
	<<set $customSlave.race = "malay">>
	<<CustomSlaveRace>>
<</link>>
|
<<link "Mixed Race">>
	<<set $customSlave.race = "mixed race">>
	<<CustomSlaveRace>>
<</link>>
|
<<link "Ethnicity is unimportant">>
	<<set $customSlave.race = "ethnicity is unimportant">>
	<<CustomSlaveRace>>
<</link>>

Skin tone:
<<textbox "$customSlave.skin" $customSlave.skin "Custom Slave">>

<<link "Pure White">>
	<<set $customSlave.skin = "pure white">>
	<<CustomSlaveSkin>>
<</link>>
|
<<link "Extremely Pale">>
	<<set $customSlave.skin = "extremely pale">>
	<<CustomSlaveSkin>>
<</link>>
|
<<link "Pale">>
	<<set $customSlave.skin = "pale">>
	<<CustomSlaveSkin>>
<</link>>
|
<<link "Extremely Fair">>
	<<set $customSlave.skin = "extremely fair">>
	<<CustomSlaveSkin>>
<</link>>
|
<<link "Very Fair">>
	<<set $customSlave.skin = "very fair">>
	<<CustomSlaveSkin>>
<</link>>
|
<<link "Fair">>
	<<set $customSlave.skin = "fair">>
	<<CustomSlaveSkin>>
<</link>>
|
<<link "White">>
	<<set $customSlave.skin = "white">>
	<<CustomSlaveSkin>>
<</link>>
|
<<link "Light">>
	<<set $customSlave.skin = "light">>
	<<CustomSlaveSkin>>
<</link>>
|
<<link "Lightened">>
	<<set $customSlave.skin = "lightened">>
	<<CustomSlaveSkin>>
<</link>>
|
<<link "Light Olive">>
	<<set $customSlave.skin = "light olive">>
	<<CustomSlaveSkin>>
<</link>>
|
<<link "Olive">>
	<<set $customSlave.skin = "olive">>
	<<CustomSlaveSkin>>
<</link>>
|
<<link "Natural">>
	<<set $customSlave.skin = "natural">>
	<<CustomSlaveSkin>>
<</link>>
|
<<link "Tanned">>
	<<set $customSlave.skin = "tanned">>
	<<CustomSlaveSkin>>
<</link>>
|
<<link "Bronzed">>
	<<set $customSlave.skin = "bronzed">>
	<<CustomSlaveSkin>>
<</link>>
|
<<link "Dark Olive">>
	<<set $customSlave.skin = "dark olive">>
	<<CustomSlaveSkin>>
<</link>>
|
<<link "Dark">>
	<<set $customSlave.skin = "dark">>
	<<CustomSlaveSkin>>
<</link>>
|
<<link "Light Brown">>
	<<set $customSlave.skin = "light brown">>
	<<CustomSlaveSkin>>
<</link>>
|
<<link "Brown">>
	<<set $customSlave.skin = "brown">>
	<<CustomSlaveSkin>>
<</link>>
|
<<link "Dark Brown">>
	<<set $customSlave.skin = "dark brown">>
	<<CustomSlaveSkin>>
<</link>>
|
<<link "Black">>
	<<set $customSlave.skin = "black">>
	<<CustomSlaveSkin>>
<</link>>
|
<<link "Ebony">>
	<<set $customSlave.skin = "ebony">>
	<<CustomSlaveSkin>>
<</link>>
|
<<link "Pure Black">>
	<<set $customSlave.skin = "pure black">>
	<<CustomSlaveSkin>>
<</link>>
|
<<link "Left natural">>
	<<set $customSlave.skin = "left natural">>
	<<CustomSlaveSkin>>
<</link>>

<<if $customSlave.boobs == 200>>Flat chest.
<<elseif $customSlave.boobs <= 500>>Healthy breasts.
<<elseif $customSlave.boobs <= 800>>Big breasts.
<<elseif $customSlave.boobs <= 1400>>Huge breasts.
<<elseif $customSlave.boobs <= 2100>>Giant breasts.
<<else>>Massive breasts.
<</if>>

<<link "Flat">>
	<<set $customSlave.boobs = 200>>
	<<CustomSlaveBoobs>>
<</link>>
|
<<link "Healthy">>
	<<set $customSlave.boobs = 500>>
	<<CustomSlaveBoobs>>
<</link>>
|
<<link "Big">>
	<<set $customSlave.boobs = 800>>
	<<CustomSlaveBoobs>>
<</link>>
|
<<link "Huge">>
	<<set $customSlave.boobs = 1400>>
	<<CustomSlaveBoobs>>
<</link>>
|
<<link "Giant">>
	<<set $customSlave.boobs = 2100>>
	<<CustomSlaveBoobs>>
<</link>>
|
<<link "Massive">>
	<<set $customSlave.boobs = 6000>>
	<<CustomSlaveBoobs>>
<</link>>

<<if $customSlave.butt == 1>>Flat buttocks.
<<elseif $customSlave.butt < 4>>Healthy buttocks.
<<elseif $customSlave.butt < 6>>Huge buttocks.
<<else>>Massive buttocks.
<</if>>

<<link "Flat">>
	<<set $customSlave.butt = 1>>
	<<CustomSlaveButt>>
<</link>>
|
<<link "Healthy">>
	<<set $customSlave.butt = 3>>
	<<CustomSlaveButt>>
<</link>>
|
<<link "Huge">>
	<<set $customSlave.butt = 5>>
	<<CustomSlaveButt>>
<</link>>
|
<<link "Massive">>
	<<set $customSlave.butt = 8>>
	<<CustomSlaveButt>>
<</link>>

<<if $customSlave.sex == 1>>Female (cock & balls options not applied).
<<elseif $customSlave.sex == 2>>Male (pussy options not applied).
<<else>>Futanari (clit options not applied).
<</if>>

<<link "Female">>
	<<set $customSlave.sex = 1>>
	<<CustomSlaveSex>>
<</link>>
|
<<link "Male">>
	<<set $customSlave.sex = 2>>
	<<CustomSlaveSex>>
<</link>>
|
<<link "Both">>
	<<set $customSlave.sex = 3>>
	<<CustomSlaveSex>>
<</link>>

<<if $customSlave.virgin == 0>>Vaginal virgin.
<<else>>Virginity not important.
<</if>>

<<link "Vaginal virgin">>
	<<set $customSlave.virgin = 0>>
	<<CustomSlaveVirgin>>
<</link>>
|
<<link "Not Important">>
	<<set $customSlave.virgin = 1>>
	<<CustomSlaveVirgin>>
<</link>>

<<if $seeDicks > 0>>

<<if $customSlave.dick == 0>>No penis.
<<elseif $customSlave.dick == 2>>Small penis.
<<else>>Large penis.
<</if>>

<<link "No penis">>
	<<set $customSlave.dick = 0>>
	<<CustomSlaveDick>>
<</link>>
|
<<link "Small penis">>
	<<set $customSlave.dick = 2>>
	<<CustomSlaveDick>>
<</link>>
|
<<link "Large penis">>
	<<set $customSlave.dick = 4>>
	<<CustomSlaveDick>>
<</link>>
<</if>>

<<if $customSlave.balls == 0>>No testicles.
<<elseif $customSlave.balls == 2>>Small testicles.
<<elseif $customSlave.balls == 4>>Large testicles.
<<else>>Huge Balls.
<</if>>

<<link "No testicles">>
	<<set $customSlave.balls = 0>>
	<<CustomSlaveBalls>>
<</link>>
|
<<link "Small testicles">>
	<<set $customSlave.balls = 2>>
	<<CustomSlaveBalls>>
<</link>>
|
<<link "Large testicles">>
	<<set $customSlave.balls = 4>>
	<<CustomSlaveBalls>>
<</link>>
|
<<link "huge testicles">>
	<<set $customSlave.balls = 6>>
	<<CustomSlaveBalls>>
<</link>>

<<if $customSlave.clit == 0>>Normal clitoris.
<<elseif $customSlave.clit == 1>>Big clitoris.
<<elseif $customSlave.clit == 3>>Enormous clitoris.
<<else>>Pseudophallus.
<</if>>

<<link "Normal clitoris">>
	<<set $customSlave.clit = 0>>
	<<CustomSlaveClit>>
<</link>>
|
<<link "Big clitoris">>
	<<set $customSlave.clit = 1>>
	<<CustomSlaveClit>>
<</link>>
|
<<link "Enormous clitoris">>
	<<set $customSlave.clit = 3>>
	<<CustomSlaveClit>>
<</link>>
|
<<link "Clit dick">>
	<<set $customSlave.clit = 5>>
	<<CustomSlaveClit>>
<</link>>

<<if $customSlave.labia == 0>>Normal labia.
<<elseif $customSlave.labia == 1>>big labia.
<<elseif $customSlave.labia == 2>>Huge labia.
<<else>>Enormous labia.
<</if>>

<<link "Normal labia">>
	<<set $customSlave.labia = 0>>
	<<CustomSlaveLabia>>
<</link>>
|
<<link "Big labia">>
	<<set $customSlave.labia = 1>>
	<<CustomSlaveLabia>>
<</link>>
|
<<link "Huge labia">>
	<<set $customSlave.labia = 2>>
	<<CustomSlaveLabia>>
<</link>>
|
<<link "Enormous labia">>
	<<set $customSlave.labia = 3>>
	<<CustomSlaveLabia>>
<</link>>

<<if $customSlave.vaginaLube == 0>>Dry vagina.
<<elseif $customSlave.vaginaLube == 1>>Wet vagina.
<<else>>Sopping wet vagina.
<</if>>

<<link "Dry vagina">>
	<<set $customSlave.vaginaLube = 0>>
	<<CustomSlaveLube>>
<</link>>
|
<<link "Wet vagina">>
	<<set $customSlave.vaginaLube = 1>>
	<<CustomSlaveLube>>
<</link>>
|
<<link "Sopping wet vagina">>
	<<set $customSlave.vaginaLube = 2>>
	<<CustomSlaveLube>>
<</link>>

<<if $customSlave.analVirgin == 0>>Anal virgin.
<<else>>Anal virginity is not important.
<</if>>

<<link "Anal virgin">>
	<<set $customSlave.analVirgin = 0>>
	<<CustomSlaveAnalVirginity>>
<</link>>
|
<<link "Anal virginity is not important">>
	<<set $customSlave.analVirgin = 1>>
	<<CustomSlaveAnalVirginity>>
<</link>>

<<if $customSlave.skills <= 10>>Sexually unskilled.
<<elseif $customSlave.skills <= 15>>Basic sex skills.
<<else>>Sexually skilled.
<</if>>

<<link "Unskilled">>
	<<set $customSlave.skills = 0>>
	<<CustomSlaveSkills>>
<</link>>
|
<<link "Skilled">>
	<<set $customSlave.skills = 15>>
	<<CustomSlaveSkills>>
<</link>>
|
<<link "Expert">>
	<<set $customSlave.skills = 35>>
	<<CustomSlaveSkills>>
<</link>>

<<if $customSlave.whoreSkills <= 10>>Unskilled at prostitution and entertainment.
<<elseif $customSlave.whoreSkills <= 15>>Basic skills at prostitution and entertainment.
<<else>>Skilled at prostitution and entertainment.
<</if>>

<<link "Unskilled">>
	<<set $customSlave.whoreSkills = 0>>
	<<CustomSlaveWhoreSkills>>
<</link>>
|
<<link "Skilled">>
	<<set $customSlave.whoreSkills = 15>>
	<<CustomSlaveWhoreSkills>>
<</link>>
|
<<link "Expert">>
	<<set $customSlave.whoreSkills = 35>>
	<<CustomSlaveWhoreSkills>>
<</link>>

<<if $customSlave.combatSkills == 0>>Unskilled at combat.
<<else>>Skilled at combat.
<</if>>

<<link "Unskilled">>
	<<set $customSlave.combatSkills = 0>>
	<<CustomSlaveCombatSkills>>
<</link>>
|
<<link "Skilled">>
	<<set $customSlave.combatSkills = 1>>
	<<CustomSlaveCombatSkills>>
<</link>>

<<if $customSlave.intelligence >= 3>>Brilliant.
<<elseif $customSlave.intelligence == 2>>Very smart..
<<elseif $customSlave.intelligence == 1>>Smart.
<<elseif $customSlave.intelligence == 0>>Average intelligence.
<<elseif $customSlave.intelligence == -1>>Stupid.
<<elseif $customSlave.intelligence == -2>>Very stupid.
<<else>>Moronic.
<</if>>

<<link "Brilliant">>
	<<set $customSlave.intelligence = 3>>
	<<CustomSlaveIntelligence>>
<</link>>
|
<<link "Very smart">>
	<<set $customSlave.intelligence = 2>>
	<<CustomSlaveIntelligence>>
<</link>>
|
<<link "Smart">>
	<<set $customSlave.intelligence = 1>>
	<<CustomSlaveIntelligence>>
<</link>>
|
<<link "Average intelligence">>
	<<set $customSlave.intelligence = 0>>
	<<CustomSlaveIntelligence>>
<</link>>
|
<<link "Stupid">>
	<<set $customSlave.intelligence = -1>>
	<<CustomSlaveIntelligence>>
<</link>>
|
<<link "Very stupid">>
	<<set $customSlave.intelligence = -2>>
	<<CustomSlaveIntelligence>>
<</link>>
|
<<link "Moronic">>
	<<set $customSlave.intelligence = -3>>
	<<CustomSlaveIntelligence>>
<</link>>

<<if $customSlave.intelligenceImplant >= 30>>Well educated.
<<elseif $customSlave.intelligenceImplant >= 15>>Educated.
<<else>>Uneducated.
<</if>>

<<link "Well educated">>
	<<set $customSlave.intelligenceImplant = 30>>
	<<CustomSlaveEducation>>
<</link>>
|
<<link "Educated">>
	<<set $customSlave.intelligenceImplant = 15>>
	<<CustomSlaveEducation>>
<</link>>
|
<<link "Uneducated">>
	<<set $customSlave.intelligenceImplant = 0>>
	<<CustomSlaveEducation>>
<</link>>

<<if $seeExtreme == 1>>
	<<if $customSlave.eyes == 1>>Normal vision.
	<<elseif $customSlave.eyes == -1>>Nearsighted.
	<<else>>Blind.
	<</if>>
<<else>>
	<<if $customSlave.eyes == 1>>Normal vision.
	<<else>>Nearsighted.
	<</if>>
<</if>>

<<link "Normal Vision">>
	<<set $customSlave.eyes = 1>>
	<<CustomSlaveEyes>>
<</link>>
|
<<link "Nearsighted">>
	<<set $customSlave.eyes = -1>>
	<<CustomSlaveEyes>>
<</link>>
<<if $seeExtreme == 1>>
|
<<link "Blind">>
	<<set $customSlave.eyes = -2>>
	<<CustomSlaveEyes>>
<</link>>
<</if>>

<<if $seeExtreme == 1>>
	<<if $customSlave.hears == 0>>Normal hearing.
	<<elseif $customSlave.hears == -1>>Hard of hearing.
	<<else>>Deaf.
	<</if>>
<<else>>
	<<if $customSlave.hears == 0>>Normal hearing.
	<<else>>Hard of hearing.
	<</if>>
<</if>>

<<link "Normal Hearing">>
	<<set $customSlave.hears = 0>>
	<<CustomSlaveEars>>
<</link>>
|
<<link "Hard of Hearing">>
	<<set $customSlave.hears = -1>>
	<<CustomSlaveEars>>
<</link>>
<<if $seeExtreme == 1>>
|
<<link "Deaf">>
	<<set $customSlave.hears = -2>>
	<<CustomSlaveEars>>
<</link>>
<</if>>

<<if $seeExtreme == 1>>

<<if $customSlave.amp == 1>>Limbless.
<<else>>Limbed.
<</if>>

<<link "Limbless">>
	<<set $customSlave.amp = 1>>
	<<CustomSlaveAmp>>
<</link>>
|
<<link "Limbed">>
	<<set $customSlave.amp = 0>>
	<<CustomSlaveAmp>>
<</link>>

<</if>>

Nationality: $customSlave.nationality.

<<link "Slave">>
	<<set $customSlave.nationality = "slave">>
	<<CustomSlaveNationality>>
<</link>>
|
<<link "Stateless">>
	<<set $customSlave.nationality = "Stateless">>
	<<CustomSlaveNationality>>
<</link>>
|
<<link "Nationality is unimportant">>
	<<set $customSlave.nationality = "Nationality is unimportant">>
	<<CustomSlaveNationality>>
<</link>>

<<for _i = 0; _i < setup.baseNationalities.length; _i++>>
<<set _nation = setup.baseNationalities[_i]>>

<<print "
<<link _nation>>
	<<set $customSlave.nationality = setup.baseNationalities[" + _i + "]>>
	<<CustomSlaveNationality>>
<</link>>
">>
<<if _i < setup.baseNationalities.length-1>>
|
<</if>>
<</for>>

<<link "Reset custom order form">>
	<<set $customSlave = {age: 19, health: 0, muscles: 0, lips: 15, heightMod: "normal", weight: 0, face: 0, race: "white", skin: "left natural", boobs: 500, butt: 3, sex: 1, virgin: 0, dick: 2, balls: 2, clit: 0, labia: 0, vaginaLube: 1, analVirgin: 0, skills: 15, whoreSkills: 15, combatSkills: 0, intelligence: 0, intelligenceImplant: 0, nationality: "Stateless", amp: 0, eyes: 1, hears: 0}>>
	<<goto "Custom Slave">>
<</link>>

<<if $customSlaveOrdered == 1>>
[[Withdraw custom slave order|Main][$customSlaveOrdered = 0]]
<<else>>
[[Post custom slave order|Main][$customSlaveOrdered = 1]]
<</if>>