code:
:: Slave Stats [nobr]

/* TODO: format this so it isn't so long */

<<run clearSummaryCache($activeSlave)>>
<<setLocalPronouns $activeSlave>>

slaveName: $activeSlave.slaveName	   /* TODO: figure out why this is being indented in-game */

slaveSurname: $activeSlave.slaveSurname

birthName: $activeSlave.birthName

birthSurname: $activeSlave.birthSurname

genes: $activeSlave.genes

pronoun: $activeSlave.pronoun

possessive: $activeSlave.possessive

possessivePronoun: $activeSlave.possessivePronoun

objectReflexive: $activeSlave.objectReflexive

object: $activeSlave.object

noun: $activeSlave.noun

weekAcquired: $activeSlave.weekAcquired

origin: $activeSlave.origin

career: $activeSlave.career

ID: $activeSlave.ID

prestige: $activeSlave.prestige

pornFeed: $activeSlave.pornFeed

pornFame: $activeSlave.pornFame

pornFameSpending: $activeSlave.pornFameSpending

pornPrestige: $activeSlave.pornPrestige

pornPrestigeDesc: $activeSlave.pornPrestigeDesc

pornFameType: $activeSlave.porn.fameType

pornFocus: $activeSlave.porn.focus

pornTypeGeneral: $activeSlave.porn.fame.general

pornTypeFuckdoll: $activeSlave.porn.fame.fuckdoll

pornTypeRape: $activeSlave.porn.fame.rape

pornTypePreggo: $activeSlave.porn.fame.preggo

pornTypeBBW: $activeSlave.porn.fame.BBW

pornTypeGainer: $activeSlave.porn.fame.gainer

pornTypeStud: $activeSlave.porn.fame.stud

pornTypeLoli: $activeSlave.porn.fame.loli

pornTypeDeepThroat: $activeSlave.porn.fame.deepThroat

pornTypeStruggleFuck: $activeSlave.porn.fame.struggleFuck

pornTypePainal: $activeSlave.porn.fame.painal

pornTypeTease: $activeSlave.porn.fame.tease

pornTypeRomantic: $activeSlave.porn.fame.romantic

pornTypePervert: $activeSlave.porn.fame.pervert

pornTypeCaring: $activeSlave.porn.fame.caring

pornTypeUnflinching: $activeSlave.porn.fame.unflinching

pornTypeSizeQueen: $activeSlave.porn.fame.sizeQueen

pornTypeNeglectful: $activeSlave.porn.fame.neglectful

pornTypeCumAddict: $activeSlave.porn.fame.cumAddict

pornTypeAnalAddict: $activeSlave.porn.fame.analAddict

pornTypeAttentionWhore: $activeSlave.porn.fame.attentionWhore

pornTypeBreastGrowth: $activeSlave.porn.fame.breastGrowth

pornTypeAbusive: $activeSlave.porn.fame.abusive

pornTypeMalicious: $activeSlave.porn.fame.malicious

pornTypeSelfHating: $activeSlave.porn.fame.selfHating

pornTypeBreeder: $activeSlave.porn.fame.breeder

pornTypeSub: $activeSlave.porn.fame.sub

pornTypeCumSlut: $activeSlave.porn.fame.cumSlut

pornTypeAnal: $activeSlave.porn.fame.anal

pornTypeHumiliation: $activeSlave.porn.fame.humiliation

pornTypeBoobs: $activeSlave.porn.fame.boobs

pornTypeDom: $activeSlave.porn.fame.dom

pornTypeSadist: $activeSlave.porn.fame.sadist

pornTypeMasochist: $activeSlave.porn.fame.masochist

pornTypePregnancy: $activeSlave.porn.fame.pregnancy

prestigeDesc: $activeSlave.prestigeDesc

recruiter: $activeSlave.recruiter

relation: $activeSlave.relation

relationTarget: $activeSlave.relationTarget

relationship: $activeSlave.relationship

relationshipTarget: $activeSlave.relationshipTarget

rivalry: $activeSlave.rivalry

rivalryTarget: $activeSlave.rivalryTarget

subTarget: $activeSlave.subTarget

father: $activeSlave.father

mother: $activeSlave.mother

daughters: $activeSlave.daughters

sisters: $activeSlave.sisters

canRecruit: $activeSlave.canRecruit

choosesOwnAssignment: $activeSlave.choosesOwnAssignment

assignment: $activeSlave.assignment

assignmentVisible: $activeSlave.assignmentVisible

sentence: $activeSlave.sentence

training: $activeSlave.training

toyHole: $activeSlave.toyHole

indenture: $activeSlave.indenture

indentureRestrictions: $activeSlave.indentureRestrictions

birthWeek: $activeSlave.birthWeek

actualAge: $activeSlave.actualAge

visualAge: $activeSlave.visualAge

physicalAge: $activeSlave.physicalAge

ovaryAge: $activeSlave.ovaryAge

ageImplant: $activeSlave.ageImplant

health: $activeSlave.health

minorInjury: $activeSlave.minorInjury

trust: $activeSlave.trust

oldTrust: $activeSlave.oldTrust

devotion: $activeSlave.devotion

oldDevotion: $activeSlave.oldDevotion

weight: $activeSlave.weight

muscles: $activeSlave.muscles

height: $activeSlave.height

heightImplant: $activeSlave.heightImplant

nationality: $activeSlave.nationality

race: $activeSlave.race

origRace: $activeSlave.origRace

markings: $activeSlave.markings

eyes: $activeSlave.eyes

eyeColor: $activeSlave.eyeColor

origEye: $activeSlave.origEye

pupil: $activeSlave.pupil

sclerae: $activeSlave.sclerae

eyewear: $activeSlave.eyewear

hears: $activeSlave.hears

earwear: $activeSlave.earwear

earImplant: $activeSlave.earImplant

smells: $activeSlave.smells

tastes: $activeSlave.tastes

origHColor: $activeSlave.origHColor

hColor: $activeSlave.hColor

pubicHColor: $activeSlave.pubicHColor

underArmHColor: $activeSlave.underArmHColor

eyebrowHColor: $activeSlave.eyebrowHColor

origSkin: $activeSlave.origSkin

skin: $activeSlave.skin

hLength: $activeSlave.hLength

eyebrowFullness: $activeSlave.eyebrowFullness

hStyle: $activeSlave.hStyle

pubicHStyle: $activeSlave.pubicHStyle

underArmHStyle: $activeSlave.underArmHStyle

eyebrowHStyle: $activeSlave.eyebrowHStyle

waist: $activeSlave.waist

corsetPiercing: $activeSlave.corsetPiercing

PLimb: $activeSlave.PLimb

amp: $activeSlave.amp

heels: $activeSlave.heels

voice: $activeSlave.voice

voiceImplant: $activeSlave.voiceImplant

accent: $activeSlave.accent

shoulders: $activeSlave.shoulders

shouldersImplant: $activeSlave.shouldersImplant

boobs: $activeSlave.boobs

boobsMilk: $activeSlave.boobsMilk

boobsImplant: $activeSlave.boobsImplant

boobsImplantType: $activeSlave.boobsImplantType

boobShape: $activeSlave.boobShape

nipples: $activeSlave.nipples

nipplesPiercing: $activeSlave.nipplesPiercing

nipplesAccessory: $activeSlave.nipplesAccessory

areolae: $activeSlave.areolae

areolaePiercing: $activeSlave.areolaePiercing

areolaeShape: $activeSlave.areolaeShape

boobsTat: $activeSlave.boobsTat

lactation: $activeSlave.lactation

lactationDuration: $activeSlave.lactationDuration

induceLactation: $activeSlave.induceLactation

lactationAdaptation: $activeSlave.lactationAdaptation

milk: $activeSlave.counter.milk

cum: $activeSlave.cum

hips: $activeSlave.hips

hipsImplant: $activeSlave.hipsImplant

butt: $activeSlave.butt

buttImplant: $activeSlave.buttImplant

buttImplantType: $activeSlave.buttImplantType

buttTat: $activeSlave.buttTat

face: $activeSlave.face

faceImplant: $activeSlave.faceImplant

faceShape: $activeSlave.faceShape

lips: $activeSlave.lips

lipsImplant: $activeSlave.lipsImplant

lipsPiercing: $activeSlave.lipsPiercing

lipsTat: $activeSlave.lipsTat

teeth: $activeSlave.teeth

tonguePiercing: $activeSlave.tonguePiercing

vagina: $activeSlave.vagina

vaginaLube: $activeSlave.vaginaLube

vaginaPiercing: $activeSlave.vaginaPiercing

vaginaTat: $activeSlave.vaginaTat

preg: $activeSlave.preg

pregSource: $activeSlave.pregSource

pregType: $activeSlave.pregType

pregAdaptation: $activeSlave.pregAdaptation

ovaImplant: $activeSlave.ovaImplant

wombImplant: $activeSlave.wombImplant

fertKnown: $activeSlave.fertKnown

fertPeak: $activeSlave.fertPeak

broodmother: $activeSlave.broodmother

broodmotherFetuses: $activeSlave.broodmotherFetuses

broodmotherOnHold: $activeSlave.broodmotherOnHold

broodmotherCountDown: $activeSlave.broodmotherCountDown

labor: $activeSlave.labor

births: $activeSlave.counter.births

laborCount: $activeSlave.counter.laborCount

cSec: $activeSlave.cSec

bellyAccessory: $activeSlave.bellyAccessory

labia: $activeSlave.labia

clit: $activeSlave.clit

clitPiercing: $activeSlave.clitPiercing

clitSetting: $activeSlave.clitSetting

foreskin: $activeSlave.foreskin

anus: $activeSlave.anus

dick: $activeSlave.dick

analArea: $activeSlave.analArea

dickPiercing: $activeSlave.dickPiercing

dickTat: $activeSlave.dickTat

prostate: $activeSlave.prostate

balls: $activeSlave.balls

scrotum: $activeSlave.scrotum

ovaries: $activeSlave.ovaries

anusPiercing: $activeSlave.anusPiercing

anusTat: $activeSlave.anusTat

makeup: $activeSlave.makeup

nails: $activeSlave.nails

brand: $activeSlave.brand

brandLocation: $activeSlave.brandLocation

earPiercing: $activeSlave.earPiercing

nosePiercing: $activeSlave.nosePiercing

eyebrowPiercing: $activeSlave.eyebrowPiercing

navelPiercing: $activeSlave.navelPiercing

shouldersTat: $activeSlave.shouldersTat

armsTat: $activeSlave.armsTat

legsTat: $activeSlave.legsTat

backTat: $activeSlave.backTat

stampTat: $activeSlave.stampTat

skill.vaginal: $activeSlave.skill.vaginal

skill.oral: $activeSlave.skill.oral

skill.anal: $activeSlave.skill.anal

skill.whore: $activeSlave.skill.whore

skill.entertainment: $activeSlave.skill.entertainment

skill.combat: $activeSlave.skill.combat

livingRules: $activeSlave.livingRules

speechRules: $activeSlave.speechRules

releaseRules: $activeSlave.releaseRules

relationshipRules: $activeSlave.relationshipRules

lactationRules: $activeSlave.lactationRules

standardPunishment: $activeSlave.standardPunishment

standardReward: $activeSlave.standardReward

useRulesAssistant: $activeSlave.useRulesAssistant

diet: $activeSlave.diet

dietCum: $activeSlave.dietCum

dietMilk: $activeSlave.dietMilk

tired: $activeSlave.tired

hormones: $activeSlave.hormones

drugs: $activeSlave.drugs

curatives: $activeSlave.curatives

chem: $activeSlave.chem

aphrodisiacs: $activeSlave.aphrodisiacs

addict: $activeSlave.addict

fuckdoll: $activeSlave.fuckdoll

choosesOwnClothes: $activeSlave.choosesOwnClothes

clothes: $activeSlave.clothes

collar: $activeSlave.collar

shoes: $activeSlave.shoes

vaginalAccessory: $activeSlave.vaginalAccessory

vaginalAttachment: $activeSlave.vaginalAttachment

dickAccessory: $activeSlave.dickAccessory

legAccessory: $activeSlave.legAccessory

buttplug: $activeSlave.buttplug

buttplugAttachment: $activeSlave.buttplugAttachment

intelligence: $activeSlave.intelligence

intelligenceImplant: $activeSlave.intelligenceImplant

energy: $activeSlave.energy

need: $activeSlave.need

attrXX: $activeSlave.attrXX

attrXY: $activeSlave.attrXY

attrKnown: $activeSlave.attrKnown

fetish: $activeSlave.fetish

fetishStrength: $activeSlave.fetishStrength

fetishKnown: $activeSlave.fetishKnown

behavioralFlaw: $activeSlave.behavioralFlaw

behavioralQuirk: $activeSlave.behavioralQuirk

sexualFlaw: $activeSlave.sexualFlaw

sexualQuirk: $activeSlave.sexualQuirk

''Genetic Quirks''

geneticQuirks: $activeSlave.geneticQuirks.gigantomastia

geneticQuirks: $activeSlave.geneticQuirks.fertility

geneticQuirks: $activeSlave.geneticQuirks.hyperFertility

geneticQuirks: $activeSlave.geneticQuirks.superfetation

geneticQuirks: $activeSlave.geneticQuirks.gigantism

geneticQuirks: $activeSlave.geneticQuirks.dwarfism

geneticQuirks: $activeSlave.geneticQuirks.pFace

geneticQuirks: $activeSlave.geneticQuirks.uFace

geneticQuirks: $activeSlave.geneticQuirks.albinism

geneticQuirks: $activeSlave.geneticQuirks.rearLipedema

geneticQuirks: $activeSlave.geneticQuirks.wellHung

geneticQuirks: $activeSlave.geneticQuirks.wGain

geneticQuirks: $activeSlave.geneticQuirks.wLoss

geneticQuirks: $activeSlave.geneticQuirks.androgyny

oralCount: $activeSlave.counter.oral

vaginalCount: $activeSlave.counter.vaginal

analCount: $activeSlave.counter.anal

mammaryCount: $activeSlave.counter.mammary

penetrativeCount: $activeSlave.counter.penetrative

publicCount: $activeSlave.counter.publicUse

pitKills: $activeSlave.counter.pitKills

custom.tattoo: $activeSlave.custom.tattoo

custom.label: $activeSlave.custom.label

custom.desc: $activeSlave.custom.desc

custom.title: $activeSlave.custom.title

custom.titleLisp: $activeSlave.custom.titleLisp

rudeTitle: $activeSlave.rudeTitle

currentRules: $activeSlave.currentRules

bellyTat: $activeSlave.bellyTat

induce: $activeSlave.induce

mpreg: $activeSlave.mpreg

inflation: $activeSlave.inflation

inflationType: $activeSlave.inflationType

inflationMethod: $activeSlave.inflationMethod

milkSource: $activeSlave.milkSource

cumSource: $activeSlave.cumSource

burst: $activeSlave.burst

pregKnown: $activeSlave.pregKnown

pregWeek: $activeSlave.pregWeek

belly: $activeSlave.belly

bellyPreg: $activeSlave.bellyPreg

bellyFluid: $activeSlave.bellyFluid

bellyImplant: $activeSlave.bellyImplant

bellySag: $activeSlave.bellySag

bellySagPreg: $activeSlave.bellySagPreg

bellyPain: $activeSlave.bellyPain

cervixImplant: $activeSlave.cervixImplant

birthsTotal: $activeSlave.counter.birthsTotal

pubertyAgeXX: $activeSlave.pubertyAgeXX

pubertyAgeXY: $activeSlave.pubertyAgeXY

scars: $activeSlave.scars

breedingMark: $activeSlave.breedingMark

bodySwap: $activeSlave.bodySwap

HGExclude: $activeSlave.HGExclude

ballType: $activeSlave.ballType

eggType: $activeSlave.eggType

choosesOwnChastity: $activeSlave.choosesOwnChastity

pregControl: $activeSlave.pregControl

readyLimbs: $activeSlave.readyLimbs

ageAdjust: $activeSlave.ageAdjust

bald: $activeSlave.bald

origBodyOwner: $activeSlave.origBodyOwner

origBodyOwnerID: $activeSlave.origBodyOwnerID

death: $activeSlave.death

hormoneBalance: $activeSlave.hormoneBalance

onDiet: $activeSlave.onDiet

breastMesh: $activeSlave.breastMesh

slavesFathered: $activeSlave.counter.slavesFathered

PCChildrenFathered: $activeSlave.counter.PCChildrenFathered

slavesKnockedUp: $activeSlave.counter.slavesKnockedUp

PCKnockedUp: $activeSlave.counter.PCKnockedUp

prematureBirth: $activeSlave.prematureBirth

premature: $activeSlave.premature

vasectomy: $activeSlave.vasectomy

haircuts: $activeSlave.haircuts

newGamePlus: $activeSlave.newGamePlus

skill.headGirl: $activeSlave.skill.headGirl

skill.recruiter: $activeSlave.skill.recruiter

skill.bodyguard: $activeSlave.skill.bodyguard

skill.madam: $activeSlave.skill.madam

skill.DJ: $activeSlave.skill.DJ

skill.nurse: $activeSlave.skill.nurse

skill.teacher: $activeSlave.skill.teacher

skill.attendant: $activeSlave.skill.attendant

skill.matron: $activeSlave.skill.matron

skill.stewardess: $activeSlave.skill.stewardess

skill.milkmaid: $activeSlave.skill.milkmaid

skill.farmer: $activeSlave.skill.farmer

skill.wardeness: $activeSlave.skill.wardeness

skill.servant: $activeSlave.skill.servant

skill.entertainer: $activeSlave.skill.entertainer

skill.whore: $activeSlave.skill.whore

tankBaby: $activeSlave.tankBaby

clone: $activeSlave.clone

''Gene Mods''

geneMods: $activeSlave.geneMods.NCS

geneMods: $activeSlave.geneMods.rapidCellGrowth

NCSyouthening: $activeSlave.NCSyouthening

override_Race: $activeSlave.override_Race

override_Skin: $activeSlave.override_Skin

override_Eye_Color: $activeSlave.override_Eye_Color

override_H_Color: $activeSlave.override_H_Color

override_Pubic_H_Color: $activeSlave.override_Pubic_H_Color

override_Arm_H_Color: $activeSlave.override_Arm_H_Color

override_Brow_H_Color: $activeSlave.override_Brow_H_Color

missingEyes: $activeSlave.missingEyes

missingArms: $activeSlave.missingArms

missingLegs: $activeSlave.missingLegs

slaveCost: $activeSlave.slaveCost

lifetimeCashExpenses: $activeSlave.lifetimeCashExpenses

lifetimeCashIncome: $activeSlave.lifetimeCashIncome

lastWeeksCashIncome: $activeSlave.lastWeeksCashIncome

lifetimeRepExpenses: $activeSlave.lifetimeRepExpenses

lifetimeRepIncome: $activeSlave.lifetimeRepIncome

lastWeeksRepExpenses: $activeSlave.lastWeeksRepExpenses

lastWeeksRepIncome: $activeSlave.lastWeeksRepIncome

Deadliness <<print Deadliness($activeSlave)>>


code:
:: Spa [nobr]

<<set $nextButton = "Back to Main", $nextLink = "Main", $returnTo = "Spa", $showEncyclopedia = 1, $encyclopedia = "Spa", $spaSlaves = $SpaiIDs.length>>

<<if $spaName != "the Spa">>
	<<set $spaNameCaps = $spaName.replace("the ", "The ")>>
<</if>>
$spaNameCaps
<<switch $spaDecoration>>
<<case "Roman Revivalist">>
	is built as a Roman bath. The flooring is pleasantly warm due to a modernized version of hypocaust heating, and is covered in mosaic depicting slaves enjoying sex.
<<case "Aztec Revivalist">>
	is built as an Aztec bathhouse. Water steams from the middle of the room and the air is heavy with the scent of herbs and essences. The idols by the door glisten with moisture.
<<case "Egyptian Revivalist">>
	is decorated like an Egyptian water garden. All but the hottest pools include aquatic plants around their edges, and the atmosphere is heavy with perfume.
<<case "Edo Revivalist">>
	is decorated like a traditional onsen. The stone-lined pools are surrounded by meticulously kept gardens, and there are proper provisions for bathing in the old Japanese style.
<<case "Arabian Revivalist">>
	looks like a dream of an Arabian palace garden. Every surface is richly tiled in vibrant colors, and the beguiling scents of perfumes from the Levant hang in the air.
<<case "Chinese Revivalist">>
	is gloomy and hot, filled with an oppressive steam that immediately dulls the senses. Though relaxation is possible and indeed easy here, it is a stultifying relaxation whose humid warmth seems to suppress independence.
<<case "Chattel Religionist">>
	is dedicated to the purification of the body and the spirit. The pools are arranged for the completion of self-purification procedures which include ritual masturbation.
<<case "Degradationist">>
	is utilitarian. There are waterproof cameras positioned throughout the spa so that anyone who wants to can watch the nude slaves. One wall has a screen showing the current viewer count to keep the slaves aware of this.
<<case "Asset Expansionist">>
	is utilitarian. It is equipped with all sorts of devices to help slaves care for huge assets, including lifts to help them in and out of the water, and all around showers to help clean and moisturize difficult to reach spots.
<<case "Transformation Fetishist">>
	is utilitarian. It is equipped with special devices to help speed surgical recovery, including a series of baths designed to prevent scarring.
<<case "Repopulation Focus">>
	is comfortable, with waterproof cushions lining the pools. It is equipped with all sorts of devices to aid pregnant slaves, including lifts to help them in and out of the water, baths just for their feet, and all around showers to help clean and moisturize difficult to reach spots.
<<case "Eugenics">>
	is comfortable, albeit split in half. One side for the lower classes' slaves, and the other for the elite and their pets.
<<case "Gender Radicalist">>
	is comfortable, with waterproof cushions lining the pools. There are screens on the walls showing slave girls with all different varieties of genitalia orgasming from penetration, to keep the idea at the forefront of the slaves' minds.
<<case "Gender Fundamentalist">>
	is comfortable, with waterproof cushions lining the pools. There are screens on the walls showing light entertainment featuring a lot of beautiful women and handsome men for the slaves' edification.
<<case "Physical Idealist">>
	is not the gym, but it does have some workout equipment, mostly low-impact machines designed to speed recovery. There are special hot baths to ease sore muscles.
<<case "Supremacist">>
	is comfortable, with waterproof cushions lining the pools. There are screens on the walls showing light entertainment featuring $arcologies[0].FSSupremacistRace main characters.
<<case "Subjugationist">>
	is comfortable, with waterproof cushions lining the pools. There are screens on the walls showing light entertainment featuring $arcologies[0].FSSubjugationistRace characters in comic relief roles.
<<case "Paternalist">>
	is comfortable, with waterproof cushions lining the pools. There are screens on the walls showing light entertainment written by and intended for smart, loyal slaves.
<<case "Pastoralist">>
	is utilitarian. It is equipped with all sorts of devices to help slaves care for huge assets, including lifts to help them in and out of the water, and all around showers to help clean and moisturize difficult to reach spots.
<<case "Maturity Preferentialist">>
	is comfortable, but surprisingly businesslike. It's all about beautification here; there's a bewildering array of mud baths, resting pools, and massage setups, all designed to keep mature slaves looking their very best.
<<case "Youth Preferentialist">>
	is comfortable and fun. There are hot tubs and massage tables for slaves who feel like relaxing, but there's also a colder pool with pool toys for girls who want to play. It even has a small waterslide.
<<case "Body Purist">>
	is comfortable, with waterproof cushions lining the pools. Everything is designed for the slaves' comfort; there are even special mud baths to perfect skin clarity.
<<case "Slimness Enthusiast">>
	is comfortable, with waterproof cushions lining the pools. Everything is designed for the slaves' comfort; there are even special mud baths to perfect skin clarity.
<<case "Hedonistic">>
	is comfortable, with waterproof cushions lining the pools. It is equipped with all sorts of devices to aid hefty slaves, including lifts to help them in and out of the water, specialized moisturizers to keep their skin healthy and smooth, and all around showers to help clean difficult to reach spots and between folds. <<if $arcologies[0].FSHedonisticDecadenceResearch == 1>>Platters of food and treats are readily available around the tubs so that relaxing slaves never have to strain to grab a bite to eat<<else>>Feeders connected to the slave food reserves line the pools so that so that relaxing slaves never have to strain to suck down their fill of food<</if>>.
<<default>>
	is well-appointed, with massage tables, hot tubs, and a cold pool.
<</switch>>

<<if $spaSlaves > 3>>
	It's busy in here. Slaves are relaxing in the warm water, splashing around or just floating. Here and there some of the more sex-starved are in the early stages of intercourse, but most prefer to take time off from it all.
<<elseif $spaSlaves > 0>>
	It's sparsely populated; though the few slaves here have little company they like having the water to themselves.
<<elseif $Attendant != 0>>
	<<setLocalPronouns $Attendant>>
	$Attendant.slaveName is alone here, and has nothing to do but keep the place (and $his own soft, wet body) spotlessly clean.
<<else>>
	It's empty and quiet. [[Decommission the Spa|Main][$spa = 0, $spaDecoration = "standard", $spaUpgrade = 0, $spaFix = 0]]
<</if>>

<<if $spaSlaves > 0>>
	<<if $Attendant != 0>><<set _X = 1>><<else>><<set _X = 0>><</if>>
	<<set _NewPop = $spaSlaves+$dormitoryPopulation+_X>>
	<<link "Remove all slaves" "Spa">>
		<<if $Attendant != 0>>
			<<= assignJob($Attendant, "rest")>>
		<</if>>
		<<for $spaSlaves > 0>>
			<<= assignJob($slaves[$slaveIndices[$SpaiIDs[0]]], "rest")>>
		<</for>>
	<</link>>
	<<if _NewPop > $dormitory>>
		@@.red;Dormitory capacity will be exceeded.@@
	<</if>>
<</if>>

<<set _Tmult0 = Math.trunc($spa*1000*$upgradeMultiplierArcology)>>

$spaNameCaps can house $spa slaves while they recuperate here. There <<if $spaSlaves == 1>>is<<else>>are<</if>> currently $spaSlaves slaves<<if $spaSlaves != 1>>s<</if>> recuperating in $spaName.
[[Expand the spa|Spa][cashX(forceNeg(_Tmult0), "capEx"), $spa += 5]] //Costs <<print cashFormat(_Tmult0)>>//

<<if $spaUpgrade == 1>>
	$spaNameCaps has been upgraded with state of the art temperature treatment options, from hot and cold mineral water pools to baking saunas and dense steam rooms.
<<else>>
	<<set _Tmult1 = Math.trunc($spa*1000*$upgradeMultiplierArcology)>>
	$spaNameCaps is a standard spa. [[Upgrade the spa with saunas, steam rooms, and mineral water baths|Spa][cashX(forceNeg(_Tmult1), "capEx"), $spaUpgrade = 1]] //Costs <<print cashFormat(_Tmult1)>>//
<</if>>

<<if $Attendant != 0>>
<<setLocalPronouns $Attendant>>

<<if $spaFix == 2>>
	$Attendant.slaveName is focusing only on the health and wellness of the slaves under $his care, obeying your orders to avoid attempting to right mental flaws.
	[["Order " + $him + " to only fix mindbroken slaves"|Spa][$spaFix = 1]] |
	[["Let " + $him + " tend as " + $he + " sees fit"|Spa][$spaFix = 0]]
<<elseif $spaFix == 1>>
	$Attendant.slaveName is focusing on the health and wellness of the slaves under $his care, as well as trying to bring mindbroken slaves back, while ignoring any mental hang-ups a slave may have.
	[["Order " + $him + " to not fix flaws"|Spa][$spaFix = 2]] |
	[["Let " + $him + " tend as " + $he + " sees fit"|Spa][$spaFix = 0]]
<<else>>
	$Attendant.slaveName is not following any special orders and is tending to your slaves as $he sees fit.
	[["Order " + $him + " to not fix any flaws"|Spa][$spaFix = 2]] |
	[["Order " + $him + " to only fix mindbroken slaves"|Spa][$spaFix = 1]]
<</if>>
<</if>>

<<print App.UI.SlaveList.stdFacilityPage(App.Entity.facilities.spa, true)>>

Rename $spaName: <<textbox "$spaName" $spaName "Spa">> //Use a noun or similar short phrase//

repo_name: KelioSteel/fc


code:
:: Spa Report [nobr]

<<SlaveIDSort $SpaiIDs>>
<<set _DL = $SpaiIDs.length, $spaSlaves = _DL, _SL = $slaves.length, _bonusToggle = 0, _healthBonus = 0, _idleBonus = 0, _restedSlaves = 0, _trustBonus = 0>>

<<if $spaDecoration != "standard">>
	<<set _devBonus = 1>>
<<else>>
	<<set _devBonus = 0>>
<</if>>

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

	<<if ($slaves[_FLs].health < 100)>>
		<<set $slaves[_FLs].health += 20>>
	<</if>>
	<<if ($slaves[_FLs].devotion <= 60)>>
		<<set $slaves[_FLs].devotion++>>
	<</if>>
	<<if $slaves[_FLs].trust < 60>>
		<<set $slaves[_FLs].trust++>>
	<</if>>
	<<if $slaves[_FLs].livingRules != "luxurious">>
		<<set $slaves[_FLs].livingRules = "luxurious">>
	<</if>>
	<<set _FLsFetish = 0>>
	<<if $slaves[_FLs].fetishStrength <= 95>>
		<<if $slaves[_FLs].fetish != "submissive">>
			<<if fetishChangeChance($slaves[_FLs]) > random(0,100)>>
				<<set _FLsFetish = 1, $slaves[_FLs].fetishKnown = 1, $slaves[_FLs].fetish = "submissive">>
			<</if>>
		<<elseif $slaves[_FLs].fetishKnown == 0>>
			<<set _FLsFetish = 1, $slaves[_FLs].fetishKnown = 1>>
		<<else>>
			<<set _FLsFetish = 2, $slaves[_FLs].fetishStrength += 4>>
		<</if>>
	<</if>>
	<<if ($Attendant.fetish == "none") || ($Attendant.fetish == "submissive")>>
		<<set _devBonus++>>
	<</if>>
	<<set $slaves[_FLs].devotion += _devBonus, $Attendant = $slaves[_FLs]>>
	<<setLocalPronouns $Attendant>>
	    <<= SlaveFullName($Attendant)>> is serving as the spa attendant.<<if $Attendant.relationship == -3 && $Attendant.devotion > 50>> $He tries $his best to be your perfect attentive, caring and loving wife.<</if>>
	<<if (_FLsFetish == 1)>>
		When $he is paid a visit by a slave with sexual issues to work out, $he provides them with an understanding, willing, giving partner. $He finds real satisfaction in helping your slaves find sexual gratification, and @@.lightsalmon;becomes a submissive.@@
	<<elseif (_FLsFetish == 2)>>
		Every new slave in the spa is a new person $he gets to connect with and serve. Sexually. @@.lightsalmon;$He becomes more submissive.@@
	<</if>>
	<<if setup.attendantCareers.includes($Attendant.career)>>
		$He has experience with counseling from $his life before $he was a slave, making $him better at building rapport with troubled slaves, and giving $him a better chance of softening flaws into beneficial quirks.
		<<set _bonusToggle = 1, _idleBonus++>>
	<<elseif $Attendant.skill.attendant >= $masteredXP>>
		$He has experience with counseling from working for you, making $him better at building rapport with troubled slaves, and giving $him a better chance of softening flaws into beneficial quirks.
		<<set _bonusToggle = 1, _idleBonus++>>
	<<else>>
		<<set $slaves[_FLs].skill.attendant += random(1,Math.ceil(($Attendant.intelligence+$Attendant.intelligenceImplant)/15) + 8)>>
	<</if>>
	<<if ($Attendant.eyes == -2)>>
		$His blindness allows $him to deeply connect with $his charges.
		<<set _idleBonus++>>
	<</if>>
	<<if ($Attendant.fetish == "none")>>
		$Attendant.slaveName respects the slaves lounging in the spa, allowing them to relax completely.
		<<set _idleBonus++>>
	<<elseif ($Attendant.fetish == "submissive")>>
		$Attendant.slaveName lets the slaves resting in the spa take the lead sexually, doing $his best to please them.
		<<set _idleBonus++>>
	<<elseif ($Attendant.fetishKnown == 1)>>
		$Attendant.slaveName can't keep $his hands to $himself, preventing the slaves in the spa from relaxing completely.
	<</if>>
	<<if ($Attendant.visualAge > 35)>>
		$His apparent maturity encourages the slaves in the spa to relax and pour out their troubles to $him.
		<<set _healthBonus++, _idleBonus++>>
	<</if>>
	<<if ($Attendant.intelligence+$Attendant.intelligenceImplant > 15)>>
		$He's so intelligent $he can suss out the cause of slaves' emotional issues and counsel them effectively.
		<<set _idleBonus++>>
	<</if>>
	<<if isFertile($Attendant) || ($Attendant.bellyPreg >= 1500) || ($Attendant.counter.birthsTotal > 0) || ($Attendant.bellyImplant >= 1500)>>
		$He has a natural mothering instinct and really makes $his charges feel at home.
		<<set _idleBonus++, _healthBonus++>>
	<</if>>
	<<set _attendantUsedCure = 0>>
	<<for _dI = 0; _dI < _DL; _dI++>>
		<<set $i = $slaveIndices[$SpaiIDs[_dI]]>>
		<<setLocalPronouns $slaves[$i] 2>>
		<<if ($slaves[$i].fetish == "mindbroken") && ($slaves[$i].health > 20) && (_attendantUsedCure == 0) && ($spaFix != 2)>>
			<<set _attendantUsedCure = 1>>
			<<if (random(1,100) > 90-$Attendant.devotion)>>

    @@.green;Something almost miraculous has happened.@@ $Attendant.slaveName has always refused to believe that $slaves[$i].slaveName could not be reached, and has lavished patient tenderness on _him2 in $spaName. $slaves[$i].slaveName has begun to respond, and is stirring from _his2 mental torpor.
				<<set $slaves[$i].devotion = -3, $slaves[$i].sexualFlaw = "apathetic", $slaves[$i].behavioralFlaw = either("hates men", "odd"), $slaves[$i].fetish = "none", $slaves[$i].fetishKnown = 1>>
				<<set _spr = $genePool.findIndex(function(s) { return s.ID == $slaves[$i].ID; })>>
				<<if $genePool[_spr].intelligence >= -95>>
					<<set $slaves[$i].intelligence = $genePool[_spr].intelligence-30>>
				<</if>>
				<<if ($arcologies[0].FSPaternalist > 0)>>
					Society @@.green;strongly approves@@ of $slaves[$i].slaveName being restored to sanity, which advances ideals about enlightened slaveownership.
					<<set $arcologies[0].FSPaternalist += 0.01*$FSSingleSlaveRep>>
					<<run repX(2*$FSSingleSlaveRep*($arcologies[0].FSPaternalist/$FSLockinLevel), "spa", $slaves[$i])>>
				<</if>>
			<</if>>
		<</if>>
		<<set _seed = _bonusToggle * 10>>
		<<if _bonusToggle == 1 && $slaves[$i].trust < 60>>
			<<set $slaves[$i].trust++>>
		<</if>>
		<<if $Attendant.rivalryTarget == $slaves[$i].ID>>
			$He constantly harasses $his <<print rivalryTerm($Attendant)>>, $slaves[$i].slaveName, preventing _him2 from getting comfortable and forcing _him2 to keep _his2 guard up.
			<<set $slaves[$i].devotion -= 4, $slaves[$i].trust -= 4>>
			<<if random(1,100) > 35>>
				<<set $Attendant.rivalry++, $slaves[_FLs].rivalry++, $slaves[$i].rivalry++>>
			<</if>>
		<<elseif $Attendant.relationshipTarget == $slaves[$i].ID>>
			$He dedicates most of $his attention to $his <<print relationshipTerm($Attendant)>>, $slaves[$i].slaveName, making _his2 stress, both physical and mental, wash away.
			<<set $slaves[$i].devotion += 3, $slaves[$i].trust += 3>>
		<<elseif $familyTesting == 1 && areRelated($Attendant, $slaves[$i]) > 0>>
			$He makes sure to spend extra time caring for $his <<print relativeTerm($Attendant.ID,$slaves[$i].ID)>>, $slaves[$i].slaveName.
			<<set $slaves[$i].trust++, $slaves[$i].health++>>
		<<elseif $Attendant.relationTarget == $slaves[$i].ID && $familyTesting == 0>>
			$He makes sure to spend extra time caring for $his $slaves[$i].relation, $slaves[$i].slaveName.
			<<set $slaves[$i].trust++>>
		<</if>>
		<<switch $slaves[$i].prestigeDesc>>
		<<case "She is a famed Free Cities whore, and commands top prices.">>
			$He does $his best to relax the famous whore, $slaves[$i].slaveName, making sure to
			<<if $slaves[$i].vagina > 2 || $slaves[$i].anus > 2>>
				pay special attention to _his2 worn holes.
			<<else>>
				get _him2 clean and relaxed for _his2 next usage.
			<</if>>
			<<set $slaves[$i].devotion += 3, $slaves[$i].trust += 3>>
		<<case "She is a famed Free Cities slut, and can please anyone.">>
			$He does $his best to soothe the famous entertainer, $slaves[$i].slaveName, letting _him2 relax in blissful peace.
			<<set $slaves[$i].devotion += 3, $slaves[$i].trust += 3>>
		<<case "She is remembered for winning best in show as a cockmilker.">>
			<<if ($slaves[$i].balls > 6) && ($slaves[$i].dick != 0)>>
				<<if $Attendant.fetish == "cumslut">>
					$He can't keep $his hands off $slaves[$i].slaveName's cock and balls, but _he2 doesn't mind being milked constantly. Before long, strands of cum can be found floating all throughout the bath.
					<<set $Attendant.fetishStrength += 4, $slaves[_FLs].fetishStrength += 4>>
				<<else>>
					$He does $his best to accommodate $slaves[$i].slaveName's massive genitals and tends to _him2 whenever _he2 feels a need for release.
					<<if random(1,100) > 65 && $Attendant.fetish == "none">>
						After taking several massive loads to the face, $Attendant.slaveName begins to find satisfaction in being coated in cum.
						<<set $Attendant.fetish = "cumslut", $slaves[_FLs].fetish = "cumslut">>
					<</if>>
				<</if>>
			<</if>>
			<<set $slaves[$i].devotion += 3, $slaves[$i].trust += 3>>
		<<case "She is remembered for winning best in show as a dairy cow.">>
			<<if ($slaves[$i].lactation > 0) && (($slaves[$i].boobs-$slaves[$i].boobsImplant) > 6000)>>
				<<if $Attendant.fetish == "boobs">>
					$He can't keep $his hands off $slaves[$i].slaveName's huge breasts, but _he2 doesn't mind being milked constantly. Before long the bath gains a white tint.
					<<set $Attendant.fetishStrength += 4, $slaves[_FLs].fetishStrength += 4>>
				<<else>>
					$He does $his best to accommodate $slaves[$i].slaveName's massive breasts and tends to _him2 whenever _he2 feels a need for release.
					<<if random(1,100) > 65 && $Attendant.fetish == "none">>
						After multiple milking sessions, $Attendant.slaveName begins to find $himself fantasizing about having giant milky breasts too.
						<<set $Attendant.fetish = "boobs", $slaves[_FLs].fetish = "boobs">>
					<</if>>
				<</if>>
				<<set $slaves[$i].devotion += 3, $slaves[$i].trust += 3, $slaves[$i].lactationDuration = 2, $slaves[$i].boobs -= $slaves[$i].boobsMilk, $slaves[$i].boobsMilk = 0>>
			<</if>>
		<<case "She is remembered for winning best in show as a breeder.">>
			<<if $slaves[$i].bellyPreg >= 5000>>
				<<if $Attendant.fetish == "pregnancy">>
					$He can't keep $his hands off $slaves[$i].slaveName's pregnancy, but _he2 doesn't mind _his2 full belly being fondled.
					<<set $Attendant.fetishStrength += 4, $slaves[_FLs].fetishStrength += 4>>
				<<else>>
					$He does $his best to accommodate $slaves[$i].slaveName's pregnancy and to make sure the mother-to-be is happy and comfortable.
					<<if random(1,100) > 65 && $Attendant.fetish == "none">>
						After massaging $slaves[$i].slaveName's growing belly multiple times, $Attendant.slaveName begins to find $himself fantasizing about being swollen with life too.
						<<set $Attendant.fetish = "pregnancy", $slaves[_FLs].fetish = "pregnancy">>
					<</if>>
				<</if>>
				<<set $slaves[$i].devotion += 3, $slaves[$i].trust += 3>>
			<<else>>
				<<if $Attendant.fetish == "pregnancy">>
					$He can't help but pester $slaves[$i].slaveName with questions about _his2 famous pregnancy, limiting _his2 ability to truly relax.
					<<set $slaves[$i].devotion += 1, $slaves[$i].trust += 1>>
				<<elseif canGetPregnant($slaves[$i])>>
					$He does $his best to encourage $slaves[$i].slaveName's fertilization by performing any fertility boosting actions $he can.
					<<set $slaves[$i].devotion += 3, $slaves[$i].trust += 3>>
				<</if>>
			<</if>>
		<</switch>>
		<<if ($Attendant.intelligence+$Attendant.intelligenceImplant > 15) && (_attendantUsedCure == 0) && (($Attendant.intelligence+$Attendant.intelligenceImplant)+_seed) > random(1,200) && ($spaFix == 0)>>
			<<if $slaves[$i].behavioralFlaw != "none">>
				<<run SoftenBehavioralFlaw($slaves[$i])>>
				<<set _attendantUsedCure += 1>>

    $Attendant.slaveName works carefully with $slaves[$i].slaveName, and successfully @@.green;softens _his2 behavioral flaw@@ into an appealing quirk.
			<<elseif $slaves[$i].sexualFlaw != "none">>
				<<run SoftenSexualFlaw($slaves[$i])>>
				<<set _attendantUsedCure += 1>>

    $Attendant.slaveName works carefully with $slaves[$i].slaveName, and successfully @@.green;softens _his2 sexual flaw@@ into an appealing quirk.
			<</if>>
		<</if>>
		<<if $slaves[$i].lactation > 0>>
			$Attendant.slaveName takes care to keep $slaves[$i].slaveName's breasts comfortably drained.
			<<set $slaves[$i].lactationDuration = 2, $slaves[$i].boobs -= $slaves[$i].boobsMilk, $slaves[$i].boobsMilk = 0>>
		<</if>>
	<</for>>
	<<if (_DL < $spa)>>
		<<set _seed = random(1,10)+(($spa-_DL)*(random(150,170)+(_idleBonus*10)))>>
		<<run cashX(_seed, "spa", $Attendant)>>

    Since $he doesn't have enough slaves to occupy all $his time, the spa takes in citizens' slaves on a contract basis and $he helps them too, earning @@.yellowgreen;<<print cashFormat(_seed)>>.@@
		<<if ($arcologies[0].FSHedonisticDecadence > 0) && (_DL == 0)>>
			Society @@.green;loves@@ being allowed to lounge in your spa, greatly advancing your laid back culture.
			<<= FutureSocieties.Change("Hedonistic", 2)>>
		<</if>>
	<</if>>
	<<if (_DL > 0)>>

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

<<if (_DL > 0)>>
	    ''<<if (_DL > 1)>>There are _DL slaves<<else>>There is one slave<</if>> resting and recuperating in the spa.''
	<<if ($arcologies[0].FSHedonisticDecadence > 0) && (_DL == 0)>>
		Society @@.green;approves@@ of your slaves being pampered this way, greatly advancing your laid back culture.
		<<= FutureSocieties.Change("Hedonistic", 1)>>
	<</if>>
<</if>>

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

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

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

		<</if>>
		/* 000-250-006 */
		''__@@.pink;<<= SlaveFullName($slaves[$i])>>@@__'' is serving as the Attendant in $spaName.

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

<<include "SA devotion">>
	<<else>>
		<<silently>>
		<<set _chosenClothes = saChoosesOwnClothes($slaves[$i])>>
		<<include "SA rules">>
		<<include "SA diet">>
		<<include "SA long term effects">>
		<<include "SA drugs">>
		<<include "SA relationships">>
		<<include "SA rivalries">>
		<<include "SA devotion">>
		<</silently>>
	<</if>>
	<<set $Attendant = $slaves[_FLs]>>
<</if>>

<<for _dI = 0; _dI < _DL; _dI++>>
	<<set $i = $slaveIndices[$SpaiIDs[_dI]]>>
	<<setLocalPronouns $slaves[$i] 2>>
	<<set $slaves[$i].devotion += _devBonus, $slaves[$i].trust += _trustBonus, $slaves[$i].health += _healthBonus>>
	<<if ($slaves[$i].devotion < 60) && ($slaves[$i].trust < 60)>>
		<<set $slaves[$i].devotion++, $slaves[$i].trust++>>
	<<elseif ($slaves[$i].trust < 40)>>
		<<set $slaves[$i].trust += 10>>
	<<elseif ($slaves[$i].devotion < 40)>>
		<<set $slaves[$i].devotion += 10>>
	<</if>>
	<<if ($spaUpgrade == 1) && ($slaves[$i].health < 20)>>
		<<set $slaves[$i].health += 3>>
	<</if>>
	<<switch $spaDecoration>>
	<<case "Chattel Religionist" "Chinese Revivalist">>
		<<set $slaves[$i].livingRules = "normal">>
	<<case "Degradationist">>
		<<set $slaves[$i].livingRules = "spare">>
	<<default>>
		<<set $slaves[$i].livingRules = "luxurious">>
	<</switch>>
	<<if ($slaves[$i].health >= 20) && ($slaves[$i].trust > 60) && ($slaves[$i].devotion > 60) && ($slaves[$i].fetish != "mindbroken") && ($slaves[$i].sexualFlaw == "none") && ($slaves[$i].behavioralFlaw == "none")>>

''__@@.pink;$slaves[$i].slaveName@@__'' is feeling well enough to leave $spaName, so @@.yellow;_his2 assignment has defaulted to rest.@@
		<<= removeJob($slaves[$i], "rest in the spa")>>
		<<set _restedSlaves++, _DL--, _dI-->>
		<<continue>>
	<</if>>
	<<if $showEWD != 0>>

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

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

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

    _He2 <<= saRest($slaves[$i])>>
		<<if ($slaves[$i].fetish == "mindbroken")>>
			$He remains in the Spa, completely mindbroken.
		<<elseif($slaves[$i].sexualFlaw != "none") || ($slaves[$i].behavioralFlaw != "none")>>
			$He remains in the Spa, stubborn in $his flaw.
		<<elseif ($slaves[$i].trust < 60) || ($slaves[$i].devotion < 60)>>
			$He remains in the Spa, as $he is still learning to accept life as a slave.
		<<elseif ($slaves[$i].health < 20)>>
			$He remains in the Spa, as $his health is still low.
		<</if>>

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

<<include "SA devotion">>
	<<else>>
		<<silently>>
		<<include "SA chooses own job">>
		<<run saChoosesOwnClothes($slaves[$i])>>
		<<run saRest($slaves[$i])>>
		<<include "SA rules">>
		<<include "SA diet">>
		<<include "SA long term effects">>
		<<include "SA drugs">>
		<<include "SA relationships">>
		<<include "SA rivalries">>
		<<include "SA devotion">>
		<</silently>>
	<</if>>
<</for>>
<<if (_restedSlaves > 0)>>

	<<if (_restedSlaves == 1)>>
		One slave has rested until she reached a state of @@.hotpink;devotion@@ and @@.mediumaquamarine;trust@@ and will leave the spa before the end of the week.
	<<else>>
		_restedSlaves slaves have rested until they reached a state of @@.hotpink;devotion@@ and @@.mediumaquamarine;trust@@ and will leave the spa before the end of the week.
	<</if>>
	<<if $spaDecoration != "standard">>

    $spaNameCaps's $spaDecoration atmosphere @@.hotpink;had an impact on <<if _restedSlaves == 1>>her while she was<<else>>them while they were<</if>>@@ resting.
	<</if>>
<</if>>
<<if _DL > 0 || $Attendant != 0>>

<</if>>


code:
:: Special Slave [nobr]

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

<<if $heroSlaves.length == 0>>
	Unfortunately, the catalog is empty.
<<else>>

	<<run slaveSortMinor($heroSlaves)>>
	<<set $activeSlave = App.Utils.getHeroSlave($heroSlaves.random(), $baseHeroSlave)>>
	<<set $activeSlave.weekAcquired = $week>>
	<<if ndef $activeSlave.pubicHColor>>
		<<set $activeSlave.pubicHColor = $activeSlave.hColor>>
	<</if>>
	<<if ndef $activeSlave.underArmHColor>>
		<<set $activeSlave.underArmHColor = $activeSlave.hColor>>
	<</if>>

	<<if ($activeSlave.override_Eye_Color != 1)>>
		<<switch ($activeSlave.eyeColor)>>
			<<case "blind blue">>
				<<set $activeSlave.origEye = "deep blue">>
			<<case "implant" "milky white">>
				<<set $activeSlave.origEye = either("blue", "brown", "dark blue", "dark green", "green", "hazel", "light blue", "light green")>>
			<<default>>
				<<set $activeSlave.origEye = $activeSlave.eyeColor>>
		<</switch>>
	<</if>>
	<<if ($activeSlave.override_Race != 1)>>
		<<set $activeSlave.origRace = $activeSlave.race>>
	<</if>>
	<<if ($activeSlave.override_H_Color != 1)>>
		<<set $activeSlave.origHColor = $activeSlave.hColor>>
	<</if>>
	<<if ($activeSlave.override_Arm_H_Color != 1)>>
		<<set $activeSlave.underArmHColor = $activeSlave.hColor>>
	<</if>>
	<<if ($activeSlave.override_Pubic_H_Color != 1)>>
		<<set $activeSlave.pubicHColor = $activeSlave.hColor>>
	<</if>>
	<<if ($activeSlave.override_Brow_H_Color != 1)>>
		<<set $activeSlave.eyebrowHColor = $activeSlave.hColor>>
	<</if>>
	<<if ($activeSlave.override_Skin != 1)>>
		<<set $activeSlave.origSkin = $activeSlave.skin>>
	<</if>>

	<<run SetBellySize($activeSlave)>>
	<<if $familyTesting == 1>>
		/* special slaves exceptions to keep siblings sensible */
		<<if $activeSlave.mother == -9999 && $activeSlave.father == -9998>> /* The twins — Camille & Kennerly */
			<<for _k = 0; _k < $slaves.length; _k++>>
				<<if areSisters($slaves[_k], $activeSlave) > 0>>
					<<set $activeSlave.actualAge = $slaves[_k].actualAge, $activeSlave.physicalAge = $activeSlave.actualAge, $activeSlave.visualAge = $activeSlave.actualAge, $activeSlave.ovaryAge = $activeSlave.actualAge, $activeSlave.birthWeek = $slaves[_k].birthWeek>>
				<</if>>
			<</for>>
		<</if>>
		<<if $activeSlave.mother == -9997 && $activeSlave.father == -9996>> /* The siblings — Elisa & Martin */
			<<for _k = 0; _k < $slaves.length; _k++>>
				<<if areSisters($slaves[_k], $activeSlave) > 0>>
					<<if $activeSlave.birthName == "Elisa">>
						<<set $activeSlave.actualAge = $slaves[_k].actualAge-1, $activeSlave.physicalAge = $activeSlave.actualAge, $activeSlave.visualAge = $activeSlave.actualAge, $activeSlave.ovaryAge = $activeSlave.actualAge>>
					<<elseif $activeSlave.birthName == "Martin">>
						<<set $activeSlave.actualAge = $slaves[_k].actualAge+1, $activeSlave.physicalAge = $activeSlave.actualAge, $activeSlave.visualAge = $activeSlave.actualAge, $activeSlave.ovaryAge = $activeSlave.actualAge>>
					<</if>>
				<</if>>
			<</for>>
		<</if>>
		<<if $activeSlave.mother == -9995 && $activeSlave.father == -9994>> /* The fruit siblings — Green & Purple Grape */
			<<for _k = 0; _k < $slaves.length; _k++>>
				<<if areSisters($slaves[_k], $activeSlave) > 0>>
					<<if $activeSlave.birthName == "Green Grape">>
						<<set $activeSlave.actualAge = $slaves[_k].actualAge-5, $activeSlave.physicalAge = $activeSlave.actualAge, $activeSlave.visualAge = $activeSlave.actualAge, $activeSlave.ovaryAge = $activeSlave.actualAge>>
					<<elseif $activeSlave.birthName == "Purple Grape">>
						<<set $activeSlave.actualAge = $slaves[_k].actualAge+5, $activeSlave.physicalAge = $activeSlave.actualAge, $activeSlave.visualAge = $activeSlave.actualAge, $activeSlave.ovaryAge = $activeSlave.actualAge>>
					<</if>>
				<</if>>
			<</for>>
		<</if>>
	<</if>>
	<<run nationalityToAccent($activeSlave)>>
	<<set $specialSlavesPriceOverride = 1>>
	<<set $slaveCost = slaveCost($activeSlave)>>
	<<set $slaveCost = (10*Math.trunc(($slaveCost/10)*2))>>
	<<if $slaveCost < 20000>>
		<<set $slaveCost += random(5000,30000)>>
	<</if>>
	<<setLocalPronouns $activeSlave>>

	You review a piece of merchandise via video call, making a few lewd demands to gauge $his obedience. The background of the video feed is luxurious and plush; somewhere offscreen someone is moaning rapturously.

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

	[["Buy " + $his + " slave contract"|New Slave Intro][cashX(forceNeg($slaveCost), "slaveTransfer", $activeSlave),$nextButton = "Continue",$nextLink = "AS Dump",$returnTo = "Main",$specialSlave = 1]]

	[[Pay to access complete catalog of slaves|Complete Catalog][cashX(-1000, "personalBusiness")]] //Costs <<print cashFormat(1000)>>.//

	//Best regards to /d/, whose fine denizens came up with most of the slaves in the "previously owned" database.//

	<<set $saleDescription = 1>><<include "Long Slave Description">>
	<<set $specialSlavesPriceOverride = 0>>

<</if>>


code:
:: Stewardess Select [nobr]

<<set $nextButton = "Back", $nextLink = "Servants' Quarters", $showEncyclopedia = 1, $encyclopedia = "Stewardess">>
<<if ($Stewardess != 0)>>
	<<set $Stewardess = getSlave($Stewardess.ID)>>
	<<setLocalPronouns $Stewardess>>
	''__@@.pink;<<= SlaveFullName($Stewardess)>>@@__'' is serving as your Stewardess.

$He will manage the Servants' Quarters.
<<else>>
	You have not selected a Stewardess.
<</if>>

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

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

<<print App.UI.SlaveList.facilityManagerSelection(App.Entity.facilities.servantsQuarters)>>


code:
:: Stewardess Workaround [silently]

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

<<goto "Servants' Quarters">>


code:
:: StoryCaption [nobr]

<<set _Pass = passage()>>
<<if _Pass == "Encyclopedia">>
	<<link [[($nextButton)|($nextLink)]]>><</link>> to Free Cities

	/* Intro, new players, PC/Gameplay focused */
	[[Playing Free Cities|Encyclopedia][$encyclopedia = "Playing Free Cities"]]

[[Design your master|Encyclopedia][$encyclopedia = "Design Your Master"]]

[[Being in charge|Encyclopedia][$encyclopedia = "Being in charge"]]
	/* Section for slaves */

[[Slaves|Encyclopedia][$encyclopedia = "Slaves"]]

[[Obtaining Slaves|Encyclopedia][$encyclopedia = "Obtaining Slaves"]]

[[Slave Assignments|Encyclopedia][$encyclopedia = "Slave Assignments"]]

[[Slave Body|Encyclopedia][$encyclopedia = "Body"]] / [[Skills|Encyclopedia][$encyclopedia = "Skills"]]

[[Slave Fetishes|Encyclopedia][$encyclopedia = "Fetishes"]] / [[Quirks|Encyclopedia][$encyclopedia = "Quirks"]] / [[Flaws|Encyclopedia][$encyclopedia = "Flaws"]]

[[Slave Relationships|Encyclopedia][$encyclopedia = "Relationships"]]
	/* Section for arcology and Lore */

[[The X-Series Arcology|Encyclopedia][$encyclopedia = "What the Upgrades Do"]]

[[Arcology Facilities|Encyclopedia][$encyclopedia = "Facilities"]]

[[Terrain Types|Encyclopedia][$encyclopedia = "Terrain Types"]]

[[Future Societies|Encyclopedia][$encyclopedia = "Future Societies"]]

[[Lore|Encyclopedia][$encyclopedia = "Lore"]]
	/* Mods and extras */

[[Game Mods|Encyclopedia][$encyclopedia = "Game Mods"]]

[[Credits|Encyclopedia][$encyclopedia = "Credits"]]
<<elseif _Pass == "Starting Girls">>
	<<SlaveCostDescription>>

<<elseif $ui == "disclaimer">>
	<<link [[($nextButton)|($nextLink)]]>><</link>>
<<elseif $ui != "start">>

	<<set _SL = $slaves.length>>
	<<if $cheatMode || $debugMode>>_Pass
<</if>>
	''Week $week''

Week of $month $day, $year
	<<if (_Pass == "Main") && ($cheatMode)&& ($cheatModeM)>>
		<<set _TWeek = $week>>
		<<textbox "$week" $week>>
		<<link "Apply">>
		<<set $week = Math.trunc(Number($week) || _TWeek)>>
		<<if $week < 1>><<set $week = 1>><</if>>
		<<replace "#week">>''Week $week''<</replace>>
		<</link>>
	<</if>>

	<<if $weatherToday.severity == 1>>
		//@@.cyan;$weatherToday.name@@//
	<<elseif $weatherToday.severity == 2>>
		//@@.yellow;$weatherToday.name@@//
	<<elseif $weatherToday.severity == 3>>
		//@@.orange;$weatherToday.name@@//
	<<else>>
		//@@.red;$weatherToday.name@@//
	<</if>>

	<<if $nextButton == "END WEEK">>
		<<link [[($nextButton)|($nextLink)]]>><</link>> @@.cyan;[Ent]@@
		<<if $rulesError && $rulesAssistantAuto == 1>>
@@.yellow; WARNING: some custom rules will change slave variables@@<</if>>
	<<elseif $nextButton !== " ">>
		 /* target for miscWidgets' <<UpdateNextButton>> */
			<<link "$nextButton">> /* must use link so spacebar shortcut will work */
					<<set $ui = "main">>
					<<goto $nextLink>>
			<</link>>
			@@.cyan;[Space]@@

	<<else>>

	<</if>>

	<<set $cash = Math.trunc($cash)>>

	<<if $cash > 0>>
		@@.yellowgreen;Cash@@
	<<else>>
		__@@.red;Cash@@__
	<</if>>
	| <<print cashFormat($cash)>>

	<<if _Pass == "Main">>
		<<set _TCash2 = ($cash-$cashLastWeek)>>

		<<if _TCash2 < 0>>
			(@@.red;<<print cashFormat(_TCash2)>>@@
		<<else>>
			(@@.yellowgreen;+<<print cashFormat(_TCash2)>>@@
		<</if>>

		since last week)
		<<if ($cheatMode) && ($cheatModeM)>>
			<<set _TCash1 = $cash>>
			<<textbox "$cash" $cash>>
			<<link "Apply">>
			<<set $cash = Math.trunc(Number($cash) || _TCash1), $cheater = 1>>
			<<replace "#cash">>
			<<if $cash > 0>>
				@@.yellowgreen;Cash@@
			<<else>>
				__@@.red;Cash@@__
			<</if>>
			| <<print cashFormat($cash)>>
			<</replace>>
			<<set _TCash2 = ($cash-$cashLastWeek)>>
			<<replace "#oldcash">>
			<<if _TCash2 < 0>>
				(@@.red;<<print cashFormat(_TCash2)>>@@
			<<else>>
				(@@.yellowgreen;+<<print cashFormat(_TCash2)>>@@
			<</if>>
			<</replace>>
			since last week)
			<</link>>
		<</if>>

		<<if $foodMarket > 0>>
			<<set $food = Math.trunc($food)>>
			<<set $foodConsumption = (($lowerClass*$lowerRate) + ($middleClass*$middleRate) + ($upperClass*$upperRate) + ($topClass*$topRate))>>

			<<if $food > $foodConsumption>> /* if there is enough food for the next week */
				@@.chocolate;Food@@
			<<else>>
				@@.red;Food@@
			<</if>>
			<<if $food < 0>>
				<<set $food = 0>>
			<</if>>
			| <<print massFormat($food)>>

			<<set _TFood2 = ($food-$foodLastWeek)>>

			<<if _TFood2 < 0>>
				(@@.red;<<print massFormat(_TFood2)>>@@
			<<else>>
				(@@.chocolate;+<<print massFormat(_TFood2)>>@@
			<</if>>

			since last week)
			<<if ($cheatMode) && ($cheatModeM)>>
				<<set _TFood1 = $food>>
				<<textbox "$food" $food>>
				<<link "Apply">>
				<<if $food < 0>>
					<<set $food = 0>>
				<<else>>
					<<set $food = Math.trunc(Number($food) || _TFood1), $cheater = 1>>
				<</if>>
				<<replace "#food">>
				<<if $food > $foodConsumption>>		/* if there is enough food for the next week */
					@@.chocolate;Food@@
				<<else>>
					__@@.red;Food@@__
				<</if>>
				| <<print massFormat($food)>>
				<</replace>>
				<<set _TFood2 = ($food-$foodLastWeek)>>
				<<replace "#oldfood">>
				<<if _TFood2 < 0>>
					(@@.red;<<print massFormat(_TFood2)>>@@
				<<else>>
					(@@.chocolate;+<<print massFormat(_TFood2)>>@@
				<</if>>
				<</replace>>
				since last week)
				<</link>>
			<</if>>
		<</if>>
		[[Upkeep|Costs Budget]] |
	<<else>>
		<<if $foodMarket > 0>>
			<<set $food = Math.trunc($food)>>

			<<if $food > $foodConsumption>>		/* if there is enough food for the next week */
				@@.chocolate;Food@@
			<<else>>
				@@.red;Food@@
			<</if>>
			| <<print massFormat($food)>>

		<</if>>
		Upkeep |
	<</if>><<print cashFormat($costs)>>

@@.pink;Total Sex Slaves@@ | <<print num(_SL)>>

@@.pink;Penthouse Beds@@ |
	<<if $dormitoryPopulation+$roomsPopulation > ($dormitory+$rooms)>>@@.red;<<print $dormitoryPopulation+$roomsPopulation>>@@<<else>><<print $dormitoryPopulation+$roomsPopulation>><</if>>/<<print ($dormitory+$rooms)>>

@@.pink;Dormitory Beds@@ | <<if $dormitoryPopulation > $dormitory>>@@.red;<<print $dormitoryPopulation>>@@<<else>><<print $dormitoryPopulation>><</if>>/<<print $dormitory>>

@@.pink;Luxury Rooms@@ | <<if $roomsPopulation > $rooms>>@@.red;<<print $roomsPopulation>>@@<<else>><<print $roomsPopulation>><</if>>/<<print $rooms>>

@@.yellowgreen;GSP@@ |
	<<print Math.trunc(0.1*$arcologies[0].prosperity)>>m
	<<if $arcologies[0].ownership >= $arcologies[0].minority>>
		<<if $arcologies[0].ownership >= $arcologies[0].minority+5>>
			<<if $arcologies[0].ownership < 100>>
				<<if $assistantPower >= 1>> (@@.yellowgreen;<<print $arcologies[0].ownership>>%@@:<<print $arcologies[0].minority>>%) <<else>> (@@.yellowgreen;<<print $arcologies[0].ownership>>%@@) <</if>>
			<<else>> (<<print $arcologies[0].ownership>>%)
			<</if>>
		<<else>>
			<<if $assistantPower >= 1>> (@@.yellow;<<print $arcologies[0].ownership>>%@@:<<print $arcologies[0].minority>>%) <<else>> (@@.yellow;<<print $arcologies[0].ownership>>%@@) <</if>>
		<</if>>
	<<else>>
		<<if $assistantPower >= 1>> (@@.red;<<print $arcologies[0].ownership>>%@@:<<print $arcologies[0].minority>>%) <<else>> (@@.red;<<print $arcologies[0].ownership>>%@@) <</if>>
	<</if>>
	<<if _Pass == "Main">>

[[Rep|Rep Budget]] |
	<<else>>

@@.green;Rep@@ |
	<</if>>

	<<if $rep > 19000>>
		@@color:rgb(0,145,0);worshipped@@
	<<elseif $rep > 18000>>
		@@color:rgb(0,150,0);great@@
	<<elseif $rep > 17000>>
		@@color:rgb(0,155,0);exalted@@
	<<elseif $rep > 16000>>
		@@color:rgb(0,160,0);illustrious@@
	<<elseif $rep > 15000>>
		@@color:rgb(0,165,0);prestigious@@
	<<elseif $rep > 14000>>
		@@color:rgb(0,170,0);renowned@@
	<<elseif $rep > 13000>>
		@@color:rgb(0,175,0);famed@@
	<<elseif $rep > 12000>>
		@@color:rgb(0,180,0);celebrated@@
	<<elseif $rep > 11000>>
		@@color:rgb(0,185,0);honored@@
	<<elseif $rep > 10000>>
		@@color:rgb(0,190,0);acclaimed@@
	<<elseif $rep > 9000>>
		@@color:rgb(0,195,0);eminent@@
	<<elseif $rep > 8250>>
		@@color:rgb(0,200,0);prominent@@
	<<elseif $rep > 7000>>
		@@color:rgb(0,205,0);distinguished@@
	<<elseif $rep > 6750>>
		@@color:rgb(0,210,0);admired@@
	<<elseif $rep > 6000>>
		@@color:rgb(0,215,0);esteemed@@
	<<elseif $rep > 5250>>
		@@color:rgb(0,220,0);respected@@
	<<elseif $rep > 4500>>
		@@color:rgb(0,225,0);known@@
	<<elseif $rep > 3750>>
		@@color:rgb(0,230,0);recognized@@
	<<elseif $rep > 3000>>
		@@color:rgb(0,235,0);rumored@@
	<<elseif $rep > 2250>>
		@@color:rgb(0,240,0);envied@@
	<<elseif $rep > 1500>>
		@@color:rgb(0,245,0);resented@@
	<<elseif $rep > 750>>
		@@color:rgb(0,250,0);disliked@@
	<<else>>
		@@color:rgb(0,255,0);unknown@@
	<</if>>
	(<<print num($rep)>>)

	<<if (_Pass == "Main")>>
		<<if ($cheatMode) && ($cheatModeM)>>
			<<set _TRep = $rep>>
			<<textbox "$rep" $rep>>
			<<link "Apply">>
			<<set $rep = Math.clamp(Math.trunc(Number($rep) || _TRep), 0, 20000), $cheater = 1>>
			<<replace "#rep">>
			<<if $rep > 19000>>
				@@color:rgb(0,145,0);worshipped@@
			<<elseif $rep > 18000>>
				@@color:rgb(0,150,0);great@@
			<<elseif $rep > 17000>>
				@@color:rgb(0,155,0);exalted@@
			<<elseif $rep > 16000>>
				@@color:rgb(0,160,0);illustrious@@
			<<elseif $rep > 15000>>
				@@color:rgb(0,165,0);prestigious@@
			<<elseif $rep > 14000>>
				@@color:rgb(0,170,0);renowned@@
			<<elseif $rep > 13000>>
				@@color:rgb(0,175,0);famed@@
			<<elseif $rep > 12000>>
				@@color:rgb(0,180,0);celebrated@@
			<<elseif $rep > 11000>>
				@@color:rgb(0,185,0);honored@@
			<<elseif $rep > 10000>>
				@@color:rgb(0,190,0);acclaimed@@
			<<elseif $rep > 9000>>
				@@color:rgb(0,195,0);eminent@@
			<<elseif $rep > 8250>>
				@@color:rgb(0,200,0);prominent@@
			<<elseif $rep > 7000>>
				@@color:rgb(0,205,0);distinguished@@
			<<elseif $rep > 6750>>
				@@color:rgb(0,210,0);admired@@
			<<elseif $rep > 6000>>
				@@color:rgb(0,215,0);esteemed@@
			<<elseif $rep > 5250>>
				@@color:rgb(0,220,0);respected@@
			<<elseif $rep > 4500>>
				@@color:rgb(0,225,0);known@@
			<<elseif $rep > 3750>>
				@@color:rgb(0,230,0);recognized@@
			<<elseif $rep > 3000>>
				@@color:rgb(0,235,0);rumored@@
			<<elseif $rep > 2250>>
				@@color:rgb(0,240,0);envied@@
			<<elseif $rep > 1500>>
				@@color:rgb(0,245,0);resented@@
			<<elseif $rep > 750>>
				@@color:rgb(0,250,0);disliked@@
			<<else>>
				@@color:rgb(0,255,0);unknown@@
			<</if>>
			($rep)
			<</replace>>
			<</link>>
		<</if>>
	<</if>>
	<<if $secExp == 1>>

@@.darkviolet;Auth@@ |
		<<set $authority = Math.clamp(Math.trunc($authority), 0, 20000)>>

		<<if $authority > 19500>>
			@@color:rgb(148, 0, 211);divine will@@
		<<elseif $authority > 19000>>
			@@color:rgb(148, 0, 211);sovereign@@
		<<elseif $authority > 18000>>
			@@color:rgb(148, 0, 211);monarch@@
		<<elseif $authority > 17000>>
			@@color:rgb(148, 0, 211);tyrant@@
		<<elseif $authority > 15000>>
			@@color:rgb(148, 0, 211);dictator@@
		<<elseif $authority > 14000>>
			@@color:rgb(148, 0, 211);prince@@
		<<elseif $authority > 13000>>
			@@color:rgb(183, 0, 211);master@@
		<<elseif $authority > 12000>>
			@@color:rgb(183, 0, 211);leader@@
		<<elseif $authority > 11000>>
			@@color:rgb(183, 0, 211);director@@
		<<elseif $authority > 10000>>
			@@color:rgb(183, 0, 211);overseer@@
		<<elseif $authority > 9000>>
			@@color:rgb(183, 0, 211);chief@@
		<<elseif $authority > 8000>>
			@@color:rgb(183, 0, 211);manager@@
		<<elseif $authority > 7000>>
			@@color:rgb(211,0,204);principal@@
		<<elseif $authority > 6000>>
			@@color:rgb(211,0,204);auxiliary@@
		<<elseif $authority > 5000>>
			@@color:rgb(211,0,204);subordinate@@
		<<elseif $authority > 4000>>
			@@color:rgb(211,0,204);follower@@
		<<elseif $authority > 3000>>
			@@color:rgb(211,0,204);powerless@@
		<<elseif $authority > 2000>>
			@@color:rgb(211,0,204);toothless@@
		<<elseif $authority > 1000>>
			@@color:rgb(211,0,204);mostly harmless@@
		<<else>>
			@@color:rgb(211,0,204);harmless@@
		<</if>>
		(<<print num($authority)>>)

		<<if (_Pass == "Main")>>
			<<if ($cheatMode) && ($cheatModeM)>>
				<<set _TAuth = $authority>>
				<<textbox "$authority" $authority>>
				<<link "Apply">>
					<<set $authority = Math.clamp(Math.trunc(Number($authority) || _TAuth), 0, 20000), $cheater = 1>>
					<<replace "#auth">>
						<<if $authority > 19500>>
							@@color:rgb(148, 0, 211);divine will@@
						<<elseif $authority > 19000>>
							@@color:rgb(148, 0, 211);sovereign@@
						<<elseif $authority > 18000>>
							@@color:rgb(148, 0, 211);monarch@@
						<<elseif $authority > 17000>>
							@@color:rgb(148, 0, 211);tyrant@@
						<<elseif $authority > 15000>>
							@@color:rgb(148, 0, 211);dictator@@
						<<elseif $authority > 14000>>
							@@color:rgb(148, 0, 211);prince@@
						<<elseif $authority > 13000>>
							@@color:rgb(183, 0, 211);master@@
						<<elseif $authority > 12000>>
							@@color:rgb(183, 0, 211);leader@@
						<<elseif $authority > 11000>>
							@@color:rgb(183, 0, 211);director@@
						<<elseif $authority > 10000>>
							@@color:rgb(183, 0, 211);overseer@@
						<<elseif $authority > 9000>>
							@@color:rgb(183, 0, 211);chief@@
						<<elseif $authority > 8000>>
							@@color:rgb(183, 0, 211);manager@@
						<<elseif $authority > 7000>>
							@@color:rgb(211,0,204);principal@@
						<<elseif $authority > 6000>>
							@@color:rgb(211,0,204);auxiliary@@
						<<elseif $authority > 5000>>
							@@color:rgb(211,0,204);subordinate@@
						<<elseif $authority > 4000>>
							@@color:rgb(211,0,204);follower@@
						<<elseif $authority > 3000>>
							@@color:rgb(211,0,204);powerless@@
						<<elseif $authority > 2000>>
							@@color:rgb(211,0,204);toothless@@
						<<elseif $authority > 1000>>
							@@color:rgb(211,0,204);mostly harmless@@
						<<else>>
							@@color:rgb(211,0,204);harmless@@
						<</if>>
					<</replace>>
				<</link>>
			<</if>>
		<</if>>

@@.deepskyblue;Security@@ | @@.deepskyblue;<<print Math.trunc($security)>>%@@

		<<if (_Pass == "Main")>>
			<<if ($cheatMode) && ($cheatModeM)>>
				<<set _TSec = $security>>
				<<textbox "$security" $security>>
				<<link "Apply">>
				<<set $security = Math.clamp(Math.trunc(Number($security) || _TSec), 0, 100), $cheater = 1>>
				<<replace "#sec">>

@@.deepskyblue;Security@@ | <<print Math.trunc($security)>>%
				<</replace>>
				<</link>>
			<</if>>
		<</if>>

@@.orangered;Crime@@ | @@.orangered;<<print Math.trunc($crime)>>%@@

		<<if (_Pass == "Main")>>
			<<if ($cheatMode) && ($cheatModeM)>>
				<<set _TCrime = $crime>>
				<<textbox "$crime" $crime>>
				<<link "Apply">>
				<<set $crime = Math.clamp(Math.trunc(Number($crime) || _TCrime), 0, 100), $cheater = 1>>
				<<replace "#crime">>

@@.orangered;Crime@@ | <<print Math.trunc($crime)>>%
				<</replace>>
				<</link>>
			<</if>>

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

	<<if (_Pass == "Main")>>

<<link [[Policies]]>><<set $nextButton = "Back", $nextLink = "Manage Corporation">><</link>> @@.cyan;[Y]@@

<<link [[Universal Rules]]>><</link>> @@.cyan;[V]@@
		<<if $FSAnnounced>>

<<link [[Future Societies|Future Society]]>><<set $nextButton = "Back", $nextLink = "Main">><</link>> @@.cyan;[F]@@ <<if ($FSCredits > 0) || ($FSReminder)>>@@.yellow;[!]@@<</if>>
		<</if>>

<<link [[Personal Assistant|Personal assistant options]]>><</link>> @@.cyan;[T]@@
	<</if>>

	<<if $nextButton !== "Continue" && $nextButton !== " ">>

		<<if _Pass !== "Manage Arcology">>

 <<link "Manage Arcology" "Manage Arcology">> <</link>> @@.cyan;[C]@@
		<</if>>

		<<if _Pass !== "Manage Penthouse">>

 <<link "Manage Penthouse" "Manage Penthouse">> <</link>> @@.cyan;[P]@@
		<</if>>

		<<if _Pass !== "Manage Personal Affairs">>

 <<link "Manage Personal Affairs" "Manage Personal Affairs">> <</link>> @@.cyan;[X]@@
		<</if>>

		<<if $corpAnnounced == 1>>

<<link "Manage Corporation">><<set $nextButton = "Back", $nextLink = _Pass>><<goto "Manage Corporation">><</link>>
			<<if ($corpSpecToken > 0) && ($corpSpecTimer == 0)>>@@.yellow;[!]@@<</if>>

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

	<<if (_Pass == "Main") && $newModelUI === 0>>

		<<if ($HGSuite)>>

 <<link "$HGSuiteNameCaps""Head Girl Suite">><</link>>
			<<if $abbreviateSidebar == 2>>
				<<if $HeadGirl != 0>>(HG<<if $HGSuiteSlaves > 0>>, 1)<<else>>)<</if>><</if>>
			<<else>>
				<<if $HeadGirl != 0>>(HG<<if $HGSuiteSlaves > 0>> and slave<<else>>)<</if>><</if>>
			<</if>>
		<</if>>
		<<if ($dojo > 1)>>

[[Armory|BG Select]]
			<<if $Bodyguard != 0>>
				(BG)
			<</if>>
		<</if>>
		<<if ($brothel)>>

 <<link "$brothelNameCaps""Brothel">><</link>>
			<<if $abbreviateSidebar == 2>>
				($brothelSlaves/<<print $brothel>> whores<<if $Madam>>, madam<</if>>)
			<<else>>
				($brothelSlaves/<<print $brothel>><<if $Madam>>, L<</if>>)
			<</if>>
		<</if>>
		<<if ($club)>>

 <<link "$clubNameCaps""Club">><</link>>
			<<if $abbreviateSidebar == 2>>
				($clubSlaves/<<print $club>> sluts<<if $DJ>>, DJ<</if>>)
			<<else>>
				($clubSlaves/<<print $club>><<if $DJ>>, L<</if>>)
			<</if>>
		<</if>>
		<<if ($arcade)>>

 <<link "$arcadeNameCaps""Arcade">><</link>>
			<<if $abbreviateSidebar == 2>>
				($arcadeSlaves/<<print $arcade>> inmates)
			<<else>>
				($arcadeSlaves/<<print $arcade>>)
			<</if>>
		<</if>>
		<<if ($dairy)>>

 <<link "$dairyNameCaps""Dairy">><</link>>
			<<set _SCapT9 = $bioreactorsXY+$bioreactorsXX+$bioreactorsHerm+$bioreactorsBarren>>
			<<if $abbreviateSidebar == 2>>
				($dairySlaves<<if _SCapT9>>+_SCapT9<</if>>/<<print $dairy>> cows<<if $Milkmaid>>, milkmaid<</if>>)
			<<else>>
				($dairySlaves<<if _SCapT9>>+_SCapT9<</if>>/<<print $dairy>><<if $Milkmaid>>, L<</if>>)
			<</if>>
		<</if>>
		<<if ($farmyard)>>

 <<link "$farmyardNameCaps""Farmyard">><</link>>
			<<if $abbreviateSidebar == 2>>
				($farmyardSlaves/$farmyard farmhands<<if $Farmer>>, farmer<</if>>)
			<<else>>
				($farmyardSlaves/$farmyard<<if $Farmer>>, L<</if>>)
			<</if>>
		<</if>>
		<<if ($servantsQuarters)>>

 <<link "$servantsQuartersNameCaps""Servants' Quarters">><</link>>
			<<if $abbreviateSidebar == 2>>
				($servantsQuartersSlaves/$servantsQuarters servants<<if $Stewardess>>, stewardess<</if>>)
			<<else>>
				($servantsQuartersSlaves/$servantsQuarters<<if $Stewardess>>, L<</if>>)
			<</if>>
		<</if>>
		<<if ($masterSuite)>>

 <<link "$masterSuiteNameCaps""Master Suite">><</link>>
			<<if $abbreviateSidebar == 2>>
				($masterSuiteSlaves/$masterSuite <<if $masterSuiteSlaves != 1>>fucktoys<<else>>fucktoy<</if>><<if $Concubine>>, Concubine<</if>>)
			<<else>>
				($masterSuiteSlaves/$masterSuite<<if $Concubine>>, C<</if>>)
			<</if>>
		<</if>>
		<<if ($schoolroom)>>

 <<link "$schoolroomNameCaps""Schoolroom">><</link>>
			<<if $abbreviateSidebar == 2>>
				($schoolroomSlaves/$schoolroom <<if $schoolroomSlaves != 1>>students<<else>>student<</if>><<if $Schoolteacher>>, schoolteacher<</if>>)
			<<else>>
				($schoolroomSlaves/$schoolroom<<if $Schoolteacher>>, L<</if>>)
			<</if>>
		<</if>>
		<<if ($spa)>>

 <<link "$spaNameCaps""Spa">><</link>>
			<<if $abbreviateSidebar == 2>>
				($spaSlaves/$spa <<if $spaSlaves != 1>>bathers<<else>>bathing<</if>><<if $Attendant>>, attendant<</if>>)
			<<else>>
				($spaSlaves/$spa<<if $Attendant>>, L<</if>>)
			<</if>>
		<</if>>
		<<if ($nursery)>>

 <<link "$nurseryNameCaps""Nursery">><</link>>
			<<if $abbreviateSidebar == 2>>
				(<<if $nursery-$nurseryBabies == 0>>No empty rooms<<elseif $nursery-$nurseryBabies == 1>>1 empty room<<else>><<print $nursery-$nurseryBabies>> empty rooms<</if>>, $nurserySlaves/$nurseryNannies <<if $nurserySlaves != 1>>nannies<<else>>nanny<</if>><<if $Matron>>, attendant<</if>>)
			<<else>>
				($nurseryBabies/$nursery, $nurserySlaves/$nurseryNannies<<if $Matron>>, L<</if>>)
			<</if>>
		<</if>>
		<<if ($clinic)>>

 <<link "$clinicNameCaps""Clinic">><</link>>
			<<if $abbreviateSidebar == 2>>
				($clinicSlaves/$clinic <<if $clinicSlaves != 1>>patients<<else>>patient<</if>><<if $Nurse>>, nurse<</if>>)
			<<else>>
				($clinicSlaves/$clinic<<if $Nurse>>, L<</if>>)
			<</if>>
		<</if>>
		<<if ($cellblock)>>

 <<link "$cellblockNameCaps""Cellblock">><</link>>
			<<if $abbreviateSidebar == 2>>
				($cellblockSlaves/$cellblock <<if $cellblockSlaves != 1>>prisoners<<else>>prisoner<</if>><<if $Wardeness>>, wardeness<</if>>)
			<<else>>
				($cellblockSlaves/$cellblock<<if $Wardeness>>, L<</if>>)
			<</if>>
		<</if>>
		<<if ($incubator)>>

 <<link "$incubatorNameCaps""Incubator">><</link>>
			<<if $abbreviateSidebar == 2>>
				(<<if $incubator-$incubatorSlaves == 0>>No empty tanks<<elseif $incubator-$incubatorSlaves == 1>>1 empty tank<<else>><<print $incubator-$incubatorSlaves>> empty tanks<</if>>)
			<<else>>
				($incubatorSlaves/$incubator)
			<</if>>
		<</if>>
		<<if ($pit)>>

 <<link "$pitNameCaps""Pit">><</link>>
			<<set _SCapT = $fighterIDs.length>>
			<<if $abbreviateSidebar == 2>>
				(_SCapT <<if _SCapT != 1>>combatants<<else>>combatant<</if>>)
			<<else>>
				(_SCapT)
			<</if>>

		<</if>>
	<<elseif _Pass == "Wardrobe Use">>

 <<link [[Wardrobe (shopping)|Wardrobe]]>><</link>>
	<<elseif _Pass == "Options">>

 [[Summary Options]]

 [[Description Options]]
	<<elseif _Pass == "Manage Arcology">>

		<<if $secExp == 1>>

<<link [[Edicts|edicts]]>><<set $nextButton = "Back", $nextLink = "Main">><</link>> @@.cyan;[D]@@
		<</if>>
		<<if $secExp > 0 || $SF.Toggle && $SF.Active >= 1>>

			<<link "Manage Security">> <<replace "#Security">>

				<<if $SF.Toggle && $SF.Active >= 1>>

 <<link "$SF.Caps's firebase""Firebase">><</link>>  @@.cyan;[Z]@@
				<</if>>
				<<if $secExp == 1>>
					<<if $propHub == 1>>

<<link "Manage PR">><<set $nextButton = "Back", $nextLink = _Pass>><<goto "propagandaHub">><</link>> @@.cyan;[Shift+H]@@
					<</if>>
					<<if $secHQ == 1>>

<<link "Manage Security">><<set $nextButton = "Back", $nextLink = _Pass>><<goto "securityHQ">><</link>> @@.cyan;[Shift+S]@@
					<</if>>
					<<if $secBarracks == 1>>

<<link "Manage Military">><<set $nextButton = "Back", $nextLink = _Pass>><<goto "secBarracks">><</link>> @@.cyan;[Shift+A]@@
					<</if>>
					<<if $riotCenter == 1>>

<<link "Manage Rebels">><<set $nextButton = "Back", $nextLink = _Pass>><<goto "riotControlCenter">><</link>> @@.cyan;[Shift+R]@@
					<</if>>
				<</if>>
			<</replace>> <</link>>
		<</if>>

	<<elseif _Pass == "Manage Penthouse">>

 <<link [[Wardrobe]]>><</link>>
		<<if $dispensary>>
[[Pharmaceutical Fabricator|Dispensary]]<</if>>
		<<if $organFarmUpgrade>>
[[Organ Farm|Organ Farm]]<</if>>
		<<if $ImplantProductionUpgrade>>
[[Implant Manufactory|Implant Manufactory]]<</if>>
		<<if $geneticMappingUpgrade>>
[[Gene Lab|Gene Lab]]<</if>>
	<<elseif ["Dispensary", "Organ Farm", "Implant Manufactory", "Gene Lab", "Prosthetics Config"].includes(_Pass)>>
		<<if $dispensary && _Pass !== "Dispensary">>
[[Pharmaceutical Fabricator|Dispensary]]<</if>>
		<<if $organFarmUpgrade && _Pass !== "Organ Farm">>
[[Organ Farm|Organ Farm]]<</if>>
		<<if $ImplantProductionUpgrade && _Pass !== "Implant Manufactory">>
[[Implant Manufactory|Implant Manufactory]]<</if>>
		<<if $geneticMappingUpgrade && _Pass !== "Gene Lab">>
[[Gene Lab|Gene Lab]]<</if>>
		<<if $prostheticsUpgrade && _Pass !== "Prosthetic Lab">>
[[Prosthetic Lab|Prosthetic Lab]]<</if>>
	<<elseif _Pass == "Manage Personal Affairs">>

 <<if $rep >= 10000>>
[[Black Market|The Black Market]]<</if>>
	<<elseif ["propagandaHub", "securityHQ", "secBarracks", "riotControlCenter"].includes(_Pass)>>

		<<if $propHub > 0 && _Pass !== "propagandaHub">>

<<link "Manage PR">><<set $nextButton = "Back", $nextLink = _Pass>><<goto "propagandaHub">><</link>> @@.cyan;[Shift+H]@@
		<</if>>
		<<if $secHQ > 0 && _Pass !== "securityHQ">>

<<link "Manage Security">><<set $nextButton = "Back", $nextLink = _Pass>><<goto "securityHQ">><</link>> @@.cyan;[Shift+S]@@
		<</if>>
		<<if $secBarracks > 0 && _Pass !== "secBarracks">>

<<link "Manage Military">><<set $nextButton = "Back", $nextLink = _Pass>><<goto "secBarracks">><</link>> @@.cyan;[Shift+A]@@
		<</if>>
		<<if $riotCenter > 0 && _Pass !== "riotControlCenter">>

<<link "Manage Rebels">><<set $nextButton = "Back", $nextLink = _Pass>><<goto "riotControlCenter">><</link>> @@.cyan;[Shift+R]@@
		<</if>>
	<</if>>
<</if>>

<<if $nextButton !== "Continue" && _Pass !== "Options" || ["attackReport", "rebellionReport", "Slave Assignments Report"].includes(_Pass)>>

	<<link "Game Options">>
		<<set $nextButton = "Back", $nextLink = _Pass>>
		<<goto "Options">>
	<</link>>
	 @@.cyan;[O]@@
<</if>>

<<if _Pass === "Encyclopedia" || $showEncyclopedia === 0 || $encyclopedia === " " || $nextButton === "Continue">>
<<else>>

//FCE:// [[$encyclopedia|Encyclopedia][$nextButton = "Back", $nextLink = _Pass]]
<</if>>

<<if ($debugMode == 1)>>

Debugging Tools

	<<link "Display Variables">><<checkvars>><</link>>

	<<link "Display Changed Variables">>
		<<set Config.history.maxStates = 2>> /* makes sure we store the current state so we can return to it */
		<<goto "Variable Difference">>
	<</link>>

	<<link "Bug Report">><<bugreport>><</link>>

	<<textarea "_customEvalCode" "">>
	<<link "Run Custom Function">>
		<<if _customEvalCode>>
			<<if _customEvalCode.charAt(0) != "(" || $nextLink == ")">> /* second condition is only there for sanityCheck */
				<<set _customEvalCode = "(" + _customEvalCode + ")">>
			<</if>>
			<<if typeof eval(_customEvalCode) === "function">>
				<<run (eval(_customEvalCode))()>>
			<</if>>
		<</if>>
		<<goto _Pass>>
	<</link>>

	<<link "Dump Game State">><<run App.Debug.dumpGameState()>><</link>>
<</if>>


code:
:: Subordinate Targeting [nobr]

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

<<set _displaySlave = $activeSlave>>
<<setLocalPronouns $activeSlave>>

<<if $activeSlave.subTarget == $activeSlave.ID>>
	<<set $activeSlave.subTarget = 0>>
<</if>>
<<= assignJob($activeSlave, "be a subordinate slave")>>
<<set _st = $slaveIndices[$activeSlave.subTarget]>>
<<if def _st>>
	$activeSlave.slaveName will submit to ''__@@.pink;$slaves[_st].slaveName@@__'' this week.
<<else>>
	$activeSlave.slaveName has not been given to any particular slave, so $he will have to offer $himself to everyone this week.
	<<set $activeSlave.subTarget = 0>>
<</if>>

__Select a slave for $him to submit to, sexually:__
<<= App.UI.SlaveList.slaveSelectionList(
		s => s.devotion >= -20 && s.fuckdoll === 0 && State.variables.activeSlave.ID !== s.ID &&
			(State.variables.activeSlave.amp !== 1 || s.amp !== 1),
		(s, i) => App.UI.passageLink(SlaveFullName(s), 'Subordinate Targeting', `$activeSlave.subTarget = ${s.ID}`),
	)>>

[[None|Subordinate Targeting][$activeSlave.subTarget = 0]]

<<set $activeSlave = _displaySlave>>
<<= assignJob($activeSlave, "be a subordinate slave")>>


code:
:: Summary Options [nobr]

<<set $nextButton = "Back", $nextLink = "Options">>
<<run clearSummaryCache()>>

//These options will affect the short slave summaries that appear on the main menu and the facility management screens.//

<<OptionAbbreviateSidebar>>

<<OptionSortMain>>

<<OptionSortBy>>

<<OptionSortOrder>>

<<OptionRulesAssistantMain>>

<<OptionDisplayAssignments>>

<<OptionSummaryStats>>

<<OptionLineSeparations>>

<<OptionAbbreviateDevotion>>

<<OptionAbbreviateRules>>

<<OptionAbbreviateDiet>>

<<OptionAbbreviateHealth>>

<<OptionAbbreviateDrugs>>

<<OptionAbbreviateHormoneBalance>>

<<OptionAbbreviateRace>>

<<OptionAbbreviateNationality>>

<<OptionAbbreviateGenitalia>>

<<OptionAbbreviatePhysicals>>

<<OptionAbbreviateSkills>>

<<OptionAbbreviateMental>>

<<OptionAbbreviateClothes>>

<<OptionAbbreviateRulesets>>

<<OptionAbbreviateOrigins>>

<<if $showMissingSlaves>>

<<OptionAbbreviateMissing>>
<</if>>

//[[FC Dev's preferred options|Summary Options][$seeDesk = 0, $seeFCNN = 0, $sortSlavesBy = "devotion",$sortSlavesOrder = "descending",$sortSlavesMain = 0,$rulesAssistantMain = 1,$abbreviateDevotion = 1,$abbreviateRules = 1,$abbreviateClothes = 2,$abbreviateHealth = 1,$abbreviateDiet = 1,$abbreviateDrugs = 1,$abbreviateRace = 1,$abbreviateGenitalia = 1,$abbreviatePhysicals = 1,$abbreviateSkills = 1,$abbreviateMental = 1,$abbreviateSidebar = 1]]//


code:
:: TFS Farm Upgrade [nobr]

<<set $nextButton = "Continue", $nextLink = "Scheduled Event">>
<<set $TFS.farmUpgradeAsked = $week>>

You receive yet another personal call from an older Futanari Sister, one of the Sisters who lives in your arcology; you've given up trying to tell them apart. Unusually, this one has taken a break from the Sisters' constant sexual communion to concentrate on speaking with you, and she looks serious, though she's still a gorgeous naked futa whose boobs fill half the screen, and whose perpetually erect dick pokes insistently into frame. "<<if $PC.surname>><<if $PC.title>>Mr.<<else>>Ms.<</if>> <<print $PC.surname>><<else>><<print $PC.name>><</if>>," she says
<<if ($PC.dick == 1) && ($PC.vagina == 1) && ($PC.boobs == 1)>>
	submissively, "I would like to beg a favor of you." She looks uncharacteristically uncomfortable, but steels herself and asks. "Please, may we use your organ farm? We're not... complete. Like you." She hugs herself unconsciously, her arms pressing her enormous breasts against her chest. "We... I... would like to be like you, and we
<<else>>
	politely, "I would like to ask a favor of you on behalf of myself and my Sisters." She looks less confident than the older Sisters usually do, but steels herself and asks. "May we use your organ farm? We would like to really complete our transformations. We
<</if>>
<<if $TFS.schoolUpgrade == 3 && $TFS.compromiseWeek+15 <= $week>>have a rather cheap one to grow dicks for the girls and we<</if>> can pay for the costs of using it, but we have no other way of accessing such advanced technology."

"I know that you could demand thousands of credits," she continues, "but the discount we already give you is all we can afford without selling Sisters early.
<<if ($PC.dick == 1) && ($PC.vagina == 1) && ($PC.boobs == 1)>>
	I would pretend to be independent and offer you the choice of how we approach this, but you've already given us so much, and you're... so perfect. We'll do whatever you say. If you do give us this priceless gift, it's your decision
<<else>>
	All we have to offer for this priceless gift is your decision on an important question:
<</if>>
whether we will use contraception after we are transformed." She shudders suddenly, gripped by obscure emotion. "Not using contraception would be a hard change in some ways. But years later, there would be... more of us."

"Please forgive me for calling you, instead of asking you in person," she says penitently. "And please come down to see us, whatever you decide."

<<link "Permit them access, but tell them to use contraception">>
	<<replace "#result">>
		You signify your assent, telling the Sister that the organ farm will accept seed tissue from any of them for the purpose of fabricating ovaries. To your mild surprise, she responds by breaking down into cutely inelegant crying. You add that you think the Sisters are beautiful as they are, and recruits will continue to approach them; it's not necessary for them to go through the rigors of pregnancy. It takes her a long time to manage to thank to properly, and she hurries to end the call before she can embarrass herself further.
		<<set $TFS.farmUpgrade = 1>>
	<</replace>>
<</link>>
<<if $seePreg != 0>>

<<link "Permit them access, and encourage them to get pregnant">>
		<<replace "#result">>
			You signify your assent, telling the Sister that the organ farm will accept seed tissue from any of them for the purpose of fabricating ovaries. To your mild surprise, she responds with cutely inelegant crying. You add that you think the world needs more Futanari Sisters, especially ones as cute and sexy as you're confident her many daughters will be. At that, she breaks down completely, one of her hands going to rub her belly gently. It takes her a long time to manage to thank to properly, and she hurries to end the call before she can embarrass herself further.<<if $arcologies[0].FSRestartDecoration == 100 && $eugenicsFullControl != 1>> The Societal Elite are @@.red;outraged@@ that you would not only allow such a breach of eugenics to occur, but encourage it.<</if>>
			<<set $TFS.farmUpgrade = 2>>
			<<if $arcologies[0].FSRestart != "unset" && $eugenicsFullControl != 1>>
				<<set $failedElite += 275>>
			<</if>>
		<</replace>>
	<</link>>
	<<if $seeHyperPreg == 1>>

<<link "Permit them access, and encourage them to embrace hyperpregnancy.">>
			<<replace "#result">>
				You signify your assent, telling the Sister that the organ farm will accept seed tissue from any of them for the purpose of fabricating ovaries, so long as they are willing to bear as many children as they can handle. To your mild surprise, she responds with cutely inelegant crying. You add that you think the world needs many more Futanari Sisters, especially ones as cute and sexy as you're confident her countless daughters will be. At that, she breaks down completely, one of her hands going to rub her belly gently. It takes her a long time to manage to thank to properly, and she hurries to end the call before she can embarrass herself further.<<if $arcologies[0].FSRestartDecoration == 100 && $eugenicsFullControl != 1>> The Societal Elite are @@.red;outraged@@ that you would not only allow such a breach of eugenics to occur, but encourage it to such an obscene degree.<</if>>
				<<set $TFS.farmUpgrade = 3>>
				<<if $arcologies[0].FSRestart != "unset" && $eugenicsFullControl != 1>>
					<<set $failedElite += 1000>>
				<</if>>
			<</replace>>
		<</link>>
	<</if>>
	/*

<<link "Decline, but grant them something more fitting">>
		<<replace "#result">>
			You decline her offer and propose a new one, letting the Sister know that the organ farm will accept seed tissue from any of them for the purpose of fabricating testicular ovaries, which should satisfy their desires, if in an unorthodox way. To your mild surprise, she responds with cutely inelegant crying. You add that you think the world needs more Futanari Sisters, especially ones as cute and sexy as you're confident her many daughters will be. At that, she breaks down completely, one of her hands going to rub her balls gently. It takes her a long time to manage to thank to properly, and she hurries to end the call before she can embarrass herself further.<<if $arcologies[0].FSRestartDecoration == 100 && $eugenicsFullControl != 1>> The Societal Elite are @@.red;outraged@@ that you would not only allow such a breach of eugenics to occur, but encourage it.<</if>>
			<<set $TFS.farmUpgrade = 4>>
			<<if $arcologies[0].FSRestart != "unset" && $eugenicsFullControl != 1>>
				<<set $failedElite += 100>>
			<</if>>
		<</replace>>
	<</link>>
	*/
<</if>>

<<link "Decline">>
	<<replace "#result">>
		You decline. The Sister accepts your decision politely, but cannot hide her deep disappointment.
		<<set $TFS.farmUpgrade = -1>>
	<</replace>>
<</link>>


code:
:: The Futanari Sisters [nobr]

<<set $nextButton = "Back", $nextLink = "Buy Slaves", $returnTo = "Buy Slaves", $showEncyclopedia = 1, $encyclopedia = "Slave Schools">>
/* Multi-Purchase Support */
<<if ndef $newSlaves>><<set $newSlaves = []>><</if>>
<<if $newSlaves.length > 0>>
	<<set $nextButton = "Continue", $nextLink = "Bulk Slave Intro", $slaveMarket = "TFS", $returnTo = "Main", $newSlaveIndex = 0>>
<</if>>

<<if $TFS.schoolPresent == 1>>

You pay a visit to the Futanari Sisters. They occupy a suite remodeled for their very special needs; it's surprisingly small, to house so many girls, since they live communally and do not believe in privacy. You are the only outsider permitted to enter the outer door. As you move towards the center of the suite, you pass through the outer ring of sleeping areas, kitchens, medical rooms, and workout stations that surround the inner sanctum.

This is a large, circular room with a shallow depression in the floor, filled with pillows and naked, fucking futas. Every possible interaction between mouths, nipples, breasts, penises, vaginas, and anuses is taking place, with most participants managing several at once. They are all very, very pretty, and it's easier to distinguish the older ones by their bigger tits, asses and cocks than by their apparent age. The older futas tend to be on top, but this is by no means the rule, and they like to switch around often.
<<if $TFS.farmUpgrade == 2>>
	<<if $TFS.farmUpgradeAsked < $week - 10>>

		It's been long enough since you allowed them to use your organ farm to add ovaries to themselves and instructed them not to use contraceptives that most of them are visibly pregnant. This hasn't slowed their sexual congress at all, though. They've become much more focused on vaginal, and there's an obvious eagerness to cum inside Sisters who aren't obviously pregnant.
	<<else>>

		It hasn't been long enough since you allowed them to use your organ farm to add ovaries to themselves for the effects to be obvious yet. Most of them are doubtless pregnant, however. There's been a subtle shift in their sexual behavior, too: they're much more likely to focus on vaginal sex than they were before, so much so that they often double penetrate each others' pussies. When there aren't any cunts available, they do their best to hold their orgasms until one opens up, so to speak.
	<</if>>
<<elseif $TFS.farmUpgrade == 3>>
	<<if $TFS.farmUpgradeAsked < $week - 20>>

		It's been long enough since you allowed them to use your organ farm to add ovaries to themselves and instructed them not to use contraceptives that most of them are extremely pregnant. This hasn't slowed their sexual congress at all, though they've had to get creative with their positioning. They've become much more focused on vaginal, and there's an obvious eagerness to cum inside Sisters who aren't obviously pregnant.
	<<elseif $TFS.farmUpgradeAsked < $week - 10>>

		It's been long enough since you allowed them to use your organ farm to add ovaries to themselves and instructed them not to use contraceptives that most of them are visibly pregnant. This hasn't slowed their sexual congress at all, though. They've become much more focused on vaginal, and there's an obvious eagerness to cum inside Sisters who aren't obviously pregnant.
	<<else>>

		It hasn't been long enough since you allowed them to use your organ farm to add ovaries to themselves for the effects to be obvious yet. Most of them are doubtless pregnant, however. There's been a subtle shift in their sexual behavior, too: they're much more likely to focus on vaginal sex than they were before, so much so that they often double penetrate each others' pussies. When there aren't any cunts available, they do their best to hold their orgasms until one opens up, so to speak.
	<</if>>
<</if>>

Visitors are not common: in fact, visitors are only as frequent as you feel like visiting. It takes a while before they notice you. When a dreamy-eyed young futa finally does, she reaches a lazy hand over to alert the eldest one present by tugging on one of her nipples and pointing in your direction. The elder looks over at you and gives you a friendly wave followed by a wait-one-moment gesture. She's curled up on her back with her cockhead in her own mouth, using both hands to give her own shaft a boob job while a younger futa is eats her ass and fingers her pussy. The futa matron orgasms promptly, sucking down her own cum. She gets up languidly, her plush body, softening forearm-sized dick, and enormous natural boobs making it a wonderful sight.

<<if $PC.title == 1>>"Protector,<<else>>"Protectrix,<</if>> thank you so much for coming to see us. Our own Selection of a Sister to serve in slavery is not to take place for some time, but our communications interface in that side room," she points, "will permit you to access a regional listing of Selected Sisters<<if $TFS.farmUpgrade > 0>>, all of which are fully fertile and produce their own natural female hormones, thanks to you<</if>>." She looks uncharacteristically uncertain. "Will you permit me to <<if $PC.dick == 1>><<if $PC.vagina == 1>>worship your perfect genitalia<<else>>serve your cock<</if>><<else>>adore your pussy<</if>> while you use it? I think my Sisters will forgive me the infidelity." <<if ($PC.dick == 1) && ($PC.vagina == 1) && ($PC.boobs == 1)>>She looks at you speculatively. "Or you could join us for a while."<</if>>

<<link "Let her give you oral while you browse">>
	<<replace "#result">>
		You accept her offer, and she walks seductively over to the interface with the listing of available Sisters, getting down on her knees below it. When you step up to look through the listing, she presses her huge soft tits against your knees
		<<if $PC.dick == 1>>
			<<if $PC.vagina == 1>>
				and nuzzles her plush lips and hot tongue against your womanhood, using one hand to massage your shaft languidly. Perusing the very thorough pictures and videos of the pretty futanari for sale here is arousing enough without a truly masterful oral queen pleasing both your cock and your pussy, and you cum quickly. She drinks your cum rapturously and returns her mouth to your wet cunt, eagerly working to bring more forth.
			<<else>>
				and snuggles her face between your thighs, nuzzling her nose into your ballsack before licking it with appetite and then sucking each of your balls gently, one by one. Meanwhile one of her clever hands is languidly massaging your shaft, bringing forth a drop of precum which she laps up with appetite. Humming with pleasure, she deepthroats you without apparent effort, her mischievous tongue flicking forward to lap at your scrotum. You blow your load down her throat, and she starts to suck you hard again.
			<</if>>
		<<else>>
			and trails nibbles and kisses along your inner thighs before nuzzling her plush lips and hot tongue against your womanhood. Perusing the very thorough pictures and videos of the pretty futanari for sale here is arousing enough without a truly masterful cunt pleaser working her magic between your legs, and you've orgasmed before you finish one listing. She prolongs the climax cleverly and then starts to build you towards another.
		<</if>>
	<</replace>>
<</link>>
<<if ($PC.dick == 1) && ($PC.vagina == 1) && ($PC.boobs == 1)>>

<<link "Join the Sisters' orgy">>
		<<replace "#result">>
			<<set $futaAddiction += 1>>
			<<switch $futaAddiction>>
			<<case 1>>
				You agree to spend some time taking part in the Sisters' orgy. The futa matron looks doubtful. "You'd have to agree to act as one of us," she says. "No different. No special sexual treatment." Her voice rises cutely on the last syllable, as you take her enormous dick in one hand and begin to stroke it vigorously. "V-very well," she gasps, taking one of your breasts in each of her hands. You leave the Sisters' suite after a few hours of fucking and being fucked, feeling tired but satisfied.
				<<if $PC.preg == 0 && $PC.vagina > 0>>
					<<= knockMeUp($PC, 5, 0, -9, 1)>>
				<</if>>
			<<case 2>>
				She doesn't have to explain the Sisters' sexual equality this time, or that you have to subject yourself to it. You remember, and you let her know you're willing by giving her a friendly hug that squashes your breasts against each other and rubs your stiff pricks together. She reaches around you to grab your ass, already pulling you towards the pile of futas. You leave the Sisters' suite after a few hours of fucking and being fucked, in a state of total sexual satiation.
				<<if $PC.preg == 0 && $PC.vagina > 0>>
					<<= knockMeUp($PC, 10, 0, -9, 1)>>
				<</if>>
			<<case 3>>
				She asked that with a distinctly flirty tone, obviously hoping you'd agree again, and she isn't disappointed. You take her by the hand and skip over to the pile of futas, most of which know you very intimately by now. They see their Sister and you approaching, and those of them that don't have their mouths full greet you eagerly. Three of them quickly rearrange themselves to present you with a couple of dicks to sit on and a pussy to fuck, all at once. You leave the Sisters' suite after many hours of fucking and being fucked, tired but satisfied.
				<<if $PC.preg == 0 && $PC.vagina > 0>>
					<<= knockMeUp($PC, 20, 0, -9, 1)>>
				<</if>>
			<<case 4>>
				She asked that in a knowing voice, confident you'd agree, and was already moving in to kiss you when you did. She seems to want you more than usual today, and pulls you down onto the edge of the pit, guiding your cock into her pussy. She isn't selfish, of course, and reaches around to spread your buttocks so you can get fucked while you fuck. You leave the Sisters' suite after many hours of this, very tired. You wonder when you can make time to visit the Sisters again.
				<<if $PC.preg == 0 && $PC.vagina > 0>>
					<<= knockMeUp($PC, 40, 0, -9, 1)>>
				<</if>>
			<<case 5>>
				She runs her tongue over her lips as she asks, and sits you down on the edge of the pit and deepthroats you as soon as you agree. She wants your cum, and uses a couple of fingers to tickle your prostate and make it appear faster. You jerk with orgasm, and she pushes your wet cock up against your stomach so she can fuck your pussy. She pauses for a moment, letting a younger Sister enter her ass first. You leave the Sisters' suite after a full day of this, utterly exhausted but eager to return.
				<<if $PC.preg == 0 && $PC.vagina > 0>>
					<<= knockMeUp($PC, 60, 0, -9, 1)>>
				<</if>>
			<<case 6>>
				You nod, and she turns back towards the orgy, not seeing any reason to lead you, since you know the way. You both sink back into the pile of cocks, pussies, mouths, asses, boobs; the hours go by without you noticing. You leave the Sisters' suite unable to remember specifics, but you clearly fucked and got fucked by every futa there at least once. You're surprised when you learn how long you were there, but the worries of being an arcology owner no longer seem as pressing as they once did.
				<<if $PC.preg == 0 && $PC.vagina > 0>>
					<<= knockMeUp($PC, 80, 0, -9, 1)>>
				<</if>>
			<<case 7>>
				You don't even bother to respond, and head straight for the orgy. You insert yourself into an eager mouth, bending over so the matron following you can take you from behind. The worries of your life as an arcology owner seem very far away as she slides inside you. You only leave when $assistantName repeatedly pages you over the arcology's public announcement system. On the way to your office, you notice how full of cum your stomach is, how relaxed your pussy and ass are, and how happy you feel.
				<<if $PC.preg == 0 && $PC.vagina > 0>>
					<<= knockMeUp($PC, 100, 0, -9, 1)>>
				<</if>>
			<<case 8>>
				<<set $gameover = "sisters">>
				<<goto "Gameover">>
			<<default>>
				<<set $futaAddiction = 0>>
			<</switch>>
		<</replace>>
	<</link>>
<</if>>

<<else>>

//The Futanari Sisters use the same legalistic structures as other slave schools, but are actually very different. They're quite enigmatic, and inquiry into their cult-like methods is politely discouraged. All the Sisters own the institution together, and seem to share the goal of pursuing transformation of themselves to fit the classic futanari fetish — that is, to transform themselves into beautiful, curvaceous women with large dicks. All Sisters remain within the closed society for at least seven years. The Sisters fund themselves by selling members into slavery: interestingly, the more impressive a member is, the older she seems to be when sold; there may be a sort of selection mechanism by which the losers are sold immediately and the winners remain, leading the Sisters. This does not mean that ex-Sisters are unhappy with enslavement. On the contrary, it seems to be an expected stage of their lives, and not shameful.
<<if $TFS.schoolUpgrade != 0>>

	Since you have supported the faction within the Sisters that favors
	<<if $TFS.schoolUpgrade == 3>>
		a mix of futas with and without balls; its female members will appear without balls, while its male members will appear with extremely large testicles.
		<<if $TFS.compromiseWeek+15 > $week>>Or they will, in around <<print (($TFS.compromiseWeek+15)-$week)>> weeks.<</if>>
	<<elseif $TFS.schoolUpgrade == 1>>
		futas without balls, its members will now appear without visible testicles and increased submissiveness.
	<<else>>
		futa balls, its members will now appear with extremely large testicles and increased sex drives.
	<</if>>
	As a major <<if $PC.title == 0>>benefactrix<<else>>benefactor<</if>> of the institution, you also receive a discount on them.
<</if>>//

The Sisters offer a member selected for sale into slavery for inspection via video call. The feed is of an exhausted futa, fast asleep. Whatever ceremonies the Sisters perform before releasing a member into slavery, they seem to have tired her out. There are indistinct but obviously sexual sounds audible in the background; it sounds like an orgy with a very large number of participants is going on nearby.

<</if>>

<<= generateMarketSlave("TFS")>>
<<set $slaveCost = slaveCost($activeSlave)>>
<<set $slaveCost = Math.trunc($slaveCost*0.8)>>
<<if $TFS.schoolSale != 0>>
	<<set $slaveCost = Math.trunc($slaveCost*0.5)>>
<<elseif $TFS.schoolUpgrade != 0>>
	<<set $slaveCost = Math.trunc($slaveCost*0.8)>>
<</if>>
<<if $slavesSeen > $slaveMarketLimit>><<set $slaveCost += Math.trunc($slaveCost*(($slavesSeen-$slaveMarketLimit)*0.1))>><</if>>

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

<<setLocalPronouns $activeSlave>>
<<buyingFromSchoolControls $TFS "slave" "slaves">>