code:
:: P citizens and civilians [nobr]

<<if ($PC.skill.warfare >= 100) || ($PC.career == "arcology owner")>>
	<<set _cost = 10000>>
<<else>>
	<<set _cost = 20000>>
<</if>>
<<setAssistantPronouns>>

<<set $nextButton = "Continue", $nextLink = "Random Nonindividual Event">>

<<if $assistant.personality > 0>>
	While working at your desk, you are accompanied by the luscious sound of $assistant.name humming to _himselfA, which _heA does to indicate _heA's working on a difficult task. After this goes on for a while,
	<<switch $assistant.appearance>>
	<<case "monstergirl">>
		_hisA monster<<= _girlA>> avatar uses _hisA tentacle hair to wave for your attention
	<<case "shemale">>
		_hisA avatar helicopters _hisA dick until _heA has your attention
	<<case "amazon">>
		_hisA avatar jumps up and down for your attention, hooting cheerfully,
	<<case "hypergoddess">>
		_hisA avatar leans onto _hisA massive belly, allowing _hisA tits to flop onto the ground to get your attention,
	<<case "loli">>
		_hisA avatar eagerly jumps up and down to get your attention
	<<case "preggololi">>
		_hisA avatar eagerly waves _hisA hands to get your attention
	<<case "businesswoman">>
		_hisA avatar takes off _hisA reading glasses, straightens _hisA suit jacket,
	<<case "cherub" "fairy" "imp" "pregnant fairy">>
		_hisA avatar flies up to your face and waves _hisA arms
	<<case "goddess">>
		_hisA avatar hefts up _hisA gravid body, glowing brighter than usual to get your attention,
	<<case "schoolgirl">>
		_hisA school<<= _girlA>> avatar bounces up and down for your attention
	<<case "angel">>
		_hisA avatar flaps _hisA wings to grab your attention
	<<case "incubus">>
		_hisA avatar blows a huge load of cum to get your attention
	<<case "succubus">>
		_hisA avatar lets loose a huge moan to get your attention
	<<case "witch">>
		_hisA avatar summons a number of explosions, searing perfectly placed holes on _hisA robe, to get your attention
	<<case "ERROR_1606_APPEARANCE_FILE_CORRUPT">>
		_hisA avatar explodes into a twisted being of flesh and blood, reforms into _hisA usual shape,
	<<default>>
		_hisA symbol glows to get your attention
	<</switch>>
	and says, "<<= properTitle()>>, I have a suggestion. At your request I have been reviewing historical slave societies for parallels with our current situation. I calculate it would be very advantageous to bind your mercenaries more closely to the arcology. It would be expensive, but if they were all given slaves, better weapons, and some sort of title, they would defend this place to the death."
<<else>>
	<<= capFirstChar($assistant.name)>> catches your attention as you work at your desk. _HeA says, "<<= properTitle()>>, a suggestion. Review of historical slave societies for parallels with your current situation is complete. Analysis indicates it would be advantageous to increase the loyalty of your mercenaries. It would be expensive, but if they were given slaves, better weapons, and an honorary title, they would defend the arcology with increased effectiveness."
<</if>>

''This is a unique and very important opportunity'' and must not be taken lightly. //All of these choices have the same gameplay effect, and only differ in theme.//

<<link "Decline">>
	<<replace "#result">>
	The suggestion is absurd; no historical lessons are necessary for a world where drones and supercomputers rule the day. Your mercenaries will doubtless perform well enough as mercenaries.
	<</replace>>
<</link>>

<<link "They shall be my Knights">>
	<<replace "#result">>
	You ask for a meeting with your mercenaries' captain and lay out a proposal for a new contract between you over $PC.refreshment. As he reviews the terms, he looks skeptical, then surprised, then interested, and finally, he breaks out into laughter. "<<= properTitle()>>," he says, "you have no idea how fun this is going to be." He rises and gives you a short bow. "Knight-Captain reporting for duty, <<= properTitle()>>." The mercenaries — no, the Knights — are well looked after. They are each assigned a nice apartment, a freshly enslaved servant, and a suit of prototype armor equipped with the latest weapons. Word of the innovation runs through the Free Cities @@.green;like wildfire.@@
	<<run repX(5000, "event")>>
	<<run cashX(forceNeg(_cost), "mercenaries")>>
	<<set $mercenaries = 5>>
	<<set $mercenariesTitle = "Knights">>
	<</replace>>
<</link>> <<if ($PC.skill.warfare >= 100) || ($PC.career == "arcology owner")>>//This will cost <<print cashFormat(10000)>> and some upkeep, @@.springgreen;reduced by your mercenary contacts@@//<<else>>//This will cost <<print cashFormat(20000)>> and incur significant upkeep costs//<</if>>
<<if $arcologies[0].FSRomanRevivalist >= 10>>

<<link "They shall be my Evocati">>
	<<replace "#result">>
	You ask for a meeting with your mercenaries' captain and lay out a proposal for a new contract between you over $PC.refreshment. As he reviews the terms, he looks skeptical, then surprised, then interested, and finally, he breaks out into laughter. "<<= properTitle()>>," he says, "you have no idea how fun this is going to be." He rises and gives you a short bow. "Centurion reporting for duty, <<= properTitle()>>." The mercenaries — no, the Evocati — are well looked after. They are each assigned a nice apartment, a freshly enslaved servant, and a suit of prototype armor equipped with the latest weapons and bearing a Roman standard. Word of the innovation runs through the Free Cities @@.green;like wildfire.@@
	<<run repX(5000, "event")>>
	<<run cashX(forceNeg(_cost), "mercenaries")>>
	<<set $mercenaries = 5>>
	<<set $mercenariesTitle = "Evocati">>
	<</replace>>
<</link>> <<if ($PC.skill.warfare >= 100) || ($PC.career == "arcology owner")>>//This will cost <<print cashFormat(10000)>> and some upkeep, @@.springgreen;reduced by your mercenary contacts@@//<<else>>//This will cost <<print cashFormat(20000)>> and incur significant upkeep costs//<</if>>
<</if>>
<<if $arcologies[0].FSAztecRevivalist >= 10>>

<<link "They shall be my Shorn Ones">>
	<<replace "#result">>
	You ask for a meeting with your mercenaries' captain and lay out a proposal for a new contract between you over $PC.refreshment. As he reviews the terms, he looks skeptical, then surprised, then interested, and finally, he breaks out into laughter. "<<= properTitle()>>," he says, "you have no idea how fun this is going to be." He rises and gives you a short bow. "Centurion reporting for duty, <<= properTitle()>>." The mercenaries — no, the Shorn Ones — are well looked after. They are each assigned a nice apartment, a freshly enslaved servant, and a suit of prototype armor equipped with the latest weapons and bearing an Aztec standard adorned on a spear. Word of the innovation runs through the Free Cities @@.green;like wildfire.@@
	<<set $nextButton = "Continue">>
	<<run repX(5000, "event")>>
	<<run cashX(forceNeg(_cost), "mercenaries")>>
	<<set $mercenaries = 5>>
	<<set $mercenariesTitle = "Shorn Ones">>
	<</replace>>
<</link>> <<if ($PC.skill.warfare >= 100) || ($PC.career == "arcology owner")>>//This will cost <<print cashFormat(10000)>> and some upkeep, @@.springgreen;reduced by your mercenary contacts@@//<<else>>//This will cost <<print cashFormat(20000)>> and incur significant upkeep costs//<</if>>
<</if>>
<<if $arcologies[0].FSChineseRevivalist >= 10>>

<<link "They shall be my Imperial Guards">>
	<<replace "#result">>
	You ask for a meeting with your mercenaries' captain and lay out a proposal for a new contract between you over $PC.refreshment. As he reviews the terms, he looks skeptical, then surprised, then interested, and finally, he breaks out into laughter. "<<= properTitle()>>," he says, "you have no idea how fun this is going to be." He rises and gives you a short bow. "General of the Imperial Guard, reporting for duty, <<= properTitle()>>." The mercenaries — no, the Imperial Guards — are well looked after. They are each assigned a nice apartment, a freshly enslaved servant, and a suit of prototype armor equipped with the latest weapons and bearing an Imperial Chinese war banner. Word of the innovation runs through the Free Cities @@.green;like wildfire.@@
	<<set $nextButton = "Continue">>
	<<run repX(5000, "event")>>
	<<run cashX(forceNeg(_cost), "mercenaries")>>
	<<set $mercenaries = 5>>
	<<set $mercenariesTitle = "Imperial Guards">>
	<</replace>>
<</link>> <<if ($PC.skill.warfare >= 100) || ($PC.career == "arcology owner")>>//This will cost <<print cashFormat(10000)>> and some upkeep, @@.springgreen;reduced by your mercenary contacts@@//<<else>>//This will cost <<print cashFormat(20000)>> and incur significant upkeep costs//<</if>>
<</if>>
<<if $arcologies[0].FSEgyptianRevivalist >= 10>>

<<link "They shall be my Medjay">>
	<<replace "#result">>
	You ask for a meeting with your mercenaries' captain and lay out a proposal for a new contract between you over $PC.refreshment. As he reviews the terms, he looks skeptical, then surprised, then interested, and finally, he breaks out into laughter. "<<= properTitle()>>," he says, "you have no idea how fun this is going to be." He rises and gives you a short bow. "First Medjay reporting for duty, <<= properTitle()>>." The mercenaries — no, the Medjay — are well looked after. They are each assigned a nice apartment, a freshly enslaved servant, and a suit of prototype armor equipped with the latest weapons and bearing a faux cheetah cloak. Word of the innovation runs through the Free Cities @@.green;like wildfire.@@
	<<run repX(5000, "event")>>
	<<run cashX(forceNeg(_cost), "mercenaries")>>
	<<set $mercenaries = 5>>
	<<set $mercenariesTitle = "Medjay">>
	<</replace>>
<</link>> <<if ($PC.skill.warfare >= 100) || ($PC.career == "arcology owner")>>//This will cost <<print cashFormat(10000)>> and some upkeep, @@.springgreen;reduced by your mercenary contacts@@//<<else>>//This will cost <<print cashFormat(20000)>> and incur significant upkeep costs//<</if>>
<</if>>
<<if $arcologies[0].FSEdoRevivalist >= 10>>

<<link "Naturally, they shall be the Samurai">>
	<<replace "#result">>
	You ask for a meeting with your mercenaries' captain and lay out a proposal for a new contract between you over $PC.refreshment. As he reviews the terms, he looks skeptical, then surprised, then interested, and finally, he breaks out into laughter. "<<= properTitle()>>," he says, "you have no idea how fun this is going to be." He rises and gives you a short bow. "Your Samurai-Lord reports for duty, <<= properTitle()>>." The mercenaries — no, the Samurai — are well looked after. They are each assigned a nice apartment, a freshly enslaved servant, and a suit of prototype armor equipped with the latest weapons, exterior plates styled after lacquered Samurai armor, and an enraged mask covering the face. Word of the innovation runs through the Free Cities @@.green;like wildfire.@@
	<<run repX(5000, "event")>>
	<<run cashX(forceNeg(_cost), "mercenaries")>>
	<<set $mercenaries = 5>>
	<<set $mercenariesTitle = "Samurai">>
	<</replace>>
<</link>> <<if ($PC.skill.warfare >= 100) || ($PC.career == "arcology owner")>>//This will cost <<print cashFormat(10000)>> and some upkeep, @@.springgreen;reduced by your mercenary contacts@@//<<else>>//This will cost <<print cashFormat(20000)>> and incur significant upkeep costs//<</if>>
<</if>>
<<if $arcologies[0].FSArabianRevivalist >= 10>>

<<link "They shall be my Janissaries">>
	<<replace "#result">>
	You ask for a meeting with your mercenaries' captain and lay out a proposal for a new contract between you over $PC.refreshment. As he reviews the terms, he looks skeptical, then surprised, then interested, and finally, he breaks out into laughter. "<<= properTitle()>>," he says, "you have no idea how fun this is going to be." He rises and gives you a short bow. "Corbaci reporting for duty, <<= properTitle()>>." The mercenaries — no, the Janissaries — are well looked after. They are each assigned a nice apartment, a freshly enslaved servant, and a suit of prototype armor equipped with the latest weapons and cloaked in an outer garment of fine oriental silks. Word of the innovation runs through the Free Cities @@.green;like wildfire.@@
	<<run repX(5000, "event")>>
	<<run cashX(forceNeg(_cost), "mercenaries")>>
	<<set $mercenaries = 5>>
	<<set $mercenariesTitle = "Janissaries">>
	<</replace>>
<</link>> <<if ($PC.skill.warfare >= 100) || ($PC.career == "arcology owner")>>//This will cost <<print cashFormat(10000)>> and some upkeep, @@.springgreen;reduced by your mercenary contacts@@//<<else>>//This will cost <<print cashFormat(20000)>> and incur significant upkeep costs//<</if>>
<</if>>
<<if $arcologies[0].FSChattelReligionist >= 10>>

<<link "They shall be the Knights Templar">>
	<<replace "#result">>
	You ask for a meeting with your mercenaries' captain and lay out a proposal for a new contract between you over $PC.refreshment. As he reviews the terms, he looks skeptical, then surprised, then interested, and finally, he breaks out into laughter. "<<= properTitle()>>," he says, "you have no idea how fun this is going to be." He rises and gives you a short bow. "Inquisitor-General reporting for duty, <<= properTitle()>>." The mercenaries — no, the Knights Templar — are well looked after. They are each assigned a nice apartment, a freshly enslaved servant, and a suit of prototype armor equipped with the latest weapons and bearing a cloak emblazoned with the symbol of God. Word of the innovation runs through the Free Cities @@.green;like wildfire.@@
	<<run repX(5000, "event")>>
	<<run cashX(forceNeg(_cost), "mercenaries")>>
	<<set $mercenaries = 5>>
	<<set $mercenariesTitle = "Knights Templar">>
	<</replace>>
<</link>> <<if ($PC.skill.warfare >= 100) || ($PC.career == "arcology owner")>>//This will cost <<print cashFormat(10000)>> and some upkeep, @@.springgreen;reduced by your mercenary contacts@@//<<else>>//This will cost <<print cashFormat(20000)>> and incur significant upkeep costs//<</if>>
<</if>>
<<if $arcologies[0].FSDegradationist >= 10>>

<<link "They shall be my Immortals">>
	<<replace "#result">>
	You ask for a meeting with your mercenaries' captain and lay out a proposal for a new contract between you over $PC.refreshment. As he reviews the terms, he looks skeptical, then surprised, then interested, and finally, he breaks out into laughter. "<<= properTitle()>>," he says, "you have no idea how fun this is going to be." He rises and gives you a short bow. "Satrap reporting for duty, <<= properTitle()>>." The mercenaries — no, the Immortals — are well looked after. They are each assigned a nice apartment, a freshly enslaved servant, and a suit of prototype armor equipped with the latest weapons and more than one wicked, curved blade. Word of the innovation runs through the Free Cities @@.green;like wildfire.@@
	<<run repX(5000, "event")>>
	<<run cashX(forceNeg(_cost), "mercenaries")>>
	<<set $mercenaries = 5>>
	<<set $mercenariesTitle = "Immortals">>
	<</replace>>
<</link>> <<if ($PC.skill.warfare >= 100) || ($PC.career == "arcology owner")>>//This will cost <<print cashFormat(10000)>> and some upkeep, @@.springgreen;reduced by your mercenary contacts@@//<<else>>//This will cost <<print cashFormat(20000)>> and incur significant upkeep costs//<</if>>
<</if>>
<<if $arcologies[0].FSAssetExpansionist >= 10>>

<<link "They shall be the Vast Legions">>
	<<replace "#result">>
	You ask for a meeting with your mercenaries' captain and lay out a proposal for a new contract between you over $PC.refreshment. As he reviews the terms, he looks skeptical, then surprised, then interested, and finally, he breaks out into laughter. "<<= properTitle()>>," he says, "you have no idea how fun this is going to be." He rises and gives you a short bow. "The Vast Legions reporting for duty, <<= properTitle()>>." The mercenaries — no, the Vast Legions — are well looked after. They are each assigned a nice apartment, a freshly enslaved servant, and a suit of bulky, heavily armored prototype armor. Word of the innovation runs through the Free Cities @@.green;like wildfire.@@
	<<run repX(5000, "event")>>
	<<run cashX(forceNeg(_cost), "mercenaries")>>
	<<set $mercenaries = 5>>
	<<set $mercenariesTitle = "Vast Legions">>
	<</replace>>
<</link>> <<if ($PC.skill.warfare >= 100) || ($PC.career == "arcology owner")>>//This will cost <<print cashFormat(10000)>> and some upkeep, @@.springgreen;reduced by your mercenary contacts@@//<<else>>//This will cost <<print cashFormat(20000)>> and incur significant upkeep costs//<</if>>
<</if>>
<<if $arcologies[0].FSTransformationFetishist >= 10>>

<<link "They shall be the Surgical Corps">>
	<<replace "#result">>
	You ask for a meeting with your mercenaries' captain and lay out a proposal for a new contract between you over $PC.refreshment. As he reviews the terms, he looks skeptical, then surprised, then interested, and finally, he breaks out into laughter. "<<= properTitle()>>," he says, "you have no idea how fun this is going to be." He rises and gives you a short bow. "Surgeon-General reporting for duty, <<= properTitle()>>." The mercenaries — no, the Surgical Corps — are well looked after. They are each assigned a nice apartment, a freshly enslaved servant, and a suit of prototype armor equipped with the latest medical equipment. Word of the innovation runs through the Free Cities @@.green;like wildfire.@@
	<<run repX(5000, "event")>>
	<<run cashX(forceNeg(_cost), "mercenaries")>>
	<<set $mercenaries = 5>>
	<<set $mercenariesTitle = "Surgical Corps">>
	<</replace>>
<</link>> <<if ($PC.skill.warfare >= 100) || ($PC.career == "arcology owner")>>//This will cost <<print cashFormat(10000)>> and some upkeep, @@.springgreen;reduced by your mercenary contacts@@//<<else>>//This will cost <<print cashFormat(20000)>> and incur significant upkeep costs//<</if>>
<</if>>
<<if $arcologies[0].FSGenderRadicalist >= 10>>

<<link "They shall be the Inglorious Bitches">>
	<<replace "#result">>
	You ask for a meeting with your mercenaries' captain and lay out a proposal for a new contract between you over $PC.refreshment. As he reviews the terms, he looks skeptical, then surprised, then interested, and finally, he breaks out into laughter. "<<= properTitle()>>," he says, "you have no idea how fun this is going to be." He rises and gives you a short bow. "Guess that makes me a bitch, <<= properTitle()>>." The mercenaries — no, the Inglorious Bitches — are well looked after. They are each assigned a nice apartment, a freshly enslaved servant, and a suit of prototype armor slathered in garish neon paint. Word of the innovation runs through the Free Cities @@.green;like wildfire.@@
	<<run repX(5000, "event")>>
	<<run cashX(forceNeg(_cost), "mercenaries")>>
	<<set $mercenaries = 5>>
	<<set $mercenariesTitle = "Inglorious Bitches">>
	<</replace>>
<</link>> <<if ($PC.skill.warfare >= 100) || ($PC.career == "arcology owner")>>//This will cost <<print cashFormat(10000)>> and some upkeep, @@.springgreen;reduced by your mercenary contacts@@//<<else>>//This will cost <<print cashFormat(20000)>> and incur significant upkeep costs//<</if>>
<</if>>
<<if $arcologies[0].FSGenderFundamentalist >= 10>>

<<link "They shall be the Thousand Sons">>
	<<replace "#result">>
	You ask for a meeting with your mercenaries' captain and lay out a proposal for a new contract between you over $PC.refreshment. As he reviews the terms, he looks skeptical, then surprised, then interested, and finally, he breaks out into laughter. "<<= properTitle()>>," he says, "you have no idea how fun this is going to be." He rises and gives you a short bow. "Allfather reporting for duty, <<= properTitle()>>." The mercenaries — no, the Thousand Sons — are well looked after. They are each assigned a nice apartment, a freshly enslaved servant, a private gym, and a suit of prototype armor that preserves a sample of the wearer's genetic material in the event of death. Word of the innovation runs through the Free Cities @@.green;like wildfire.@@
	<<run repX(5000, "event")>>
	<<run cashX(forceNeg(_cost), "mercenaries")>>
	<<set $mercenaries = 5>>
	<<set $mercenariesTitle = "Thousand Sons">>
	<</replace>>
<</link>> <<if ($PC.skill.warfare >= 100) || ($PC.career == "arcology owner")>>//This will cost <<print cashFormat(10000)>> and some upkeep, @@.springgreen;reduced by your mercenary contacts@@//<<else>>//This will cost <<print cashFormat(20000)>> and incur significant upkeep costs//<</if>>
<</if>>
<<if $arcologies[0].FSRepopulationFocus >= 10>>

<<link "They shall be the Guardians of the Unborn">>
	<<replace "#result">>
	You ask for a meeting with your mercenaries' captain and lay out a proposal for a new contract between you over $PC.refreshment. As he reviews the terms, he looks skeptical, then surprised, then interested, and finally, he breaks out into laughter. "<<= properTitle()>>," he says, "you have no idea how fun this is going to be." He rises and gives you a short bow. "Fetal Guardian reporting for duty, <<= properTitle()>>." The mercenaries — no, the Guardians of the Unborn — are well looked after. They are each assigned a nice apartment, three fertile slavegirls for the men, assured maternity leave for the ladies, and a suit of prototype armor designed to keep even the most heavily pregnant mercenary's child safe and sound. Word of the innovation runs through the Free Cities @@.green;like wildfire.@@
	<<run repX(5000, "event")>>
	<<run cashX(forceNeg(_cost), "mercenaries")>>
	<<set $mercenaries = 5>>
	<<set $mercenariesTitle = "Guardians of the Unborn">>
	<</replace>>
<</link>> <<if ($PC.skill.warfare >= 100) || ($PC.career == "arcology owner")>>//This will cost <<print cashFormat(10000)>> and some upkeep, @@.springgreen;reduced by your mercenary contacts@@//<<else>>//This will cost <<print cashFormat(20000)>> and incur significant upkeep costs//<</if>>
<</if>>
<<if $arcologies[0].FSRestart >= 10>>

<<link "They shall be my Shadowed Hand">>
	<<replace "#result">>
	You ask for a meeting with your mercenaries' captain and lay out a proposal for a new contract between you over $PC.refreshment. As he reviews the terms, he looks skeptical, then surprised, then interested, and finally, he breaks out into laughter. "<<= properTitle()>>," he says, "you have no idea how fun this is going to be." He rises and gives you a short bow. "Your Right Hand reporting for duty, <<= properTitle()>>." The mercenaries — no, the Shadowed Hand of the Societal Elite — are well looked after. They are each assigned a glorious apartment, a slave of their choice, what ever luxuries they can think of, and a suit of prototype armor equipped with the latest weapons and defenses. Word of the innovation runs through the Free Cities @@.green;like wildfire.@@
	<<run repX(5000, "event")>>
	<<run cashX(forceNeg(_cost), "mercenaries")>>
	<<set $mercenaries = 5>>
	<<set $mercenariesTitle = "Shadowed Hand">>
	<</replace>>
<</link>> <<if ($PC.skill.warfare >= 100) || ($PC.career == "arcology owner")>>//This will cost <<print cashFormat(10000)>> and some upkeep, @@.springgreen;reduced by your mercenary contacts@@//<<else>>//This will cost <<print cashFormat(20000)>> and incur significant upkeep costs//<</if>>
<</if>>
<<if $arcologies[0].FSPhysicalIdealist >= 10>>

<<link "They shall be the Asgardians">>
	<<replace "#result">>
	You ask for a meeting with your mercenaries' captain and lay out a proposal for a new contract between you over $PC.refreshment. As he reviews the terms, he looks skeptical, then surprised, then interested, and finally, he breaks out into laughter. "<<= properTitle()>>," he says, "you have no idea how fun this is going to be." He rises and gives you a short bow. "Foehammer reporting for duty, <<= properTitle()>>." The mercenaries — no, the Asgardians — are well looked after. They are each assigned a nice apartment, a freshly enslaved servant, a private gym, and a suit of prototype armor equipped with the latest weapons. Word of the innovation runs through the Free Cities @@.green;like wildfire.@@
	<<run repX(5000, "event")>>
	<<run cashX(forceNeg(_cost), "mercenaries")>>
	<<set $mercenaries = 5>>
	<<set $mercenariesTitle = "Asgardians">>
	<</replace>>
<</link>> <<if ($PC.skill.warfare >= 100) || ($PC.career == "arcology owner")>>//This will cost <<print cashFormat(10000)>> and some upkeep, @@.springgreen;reduced by your mercenary contacts@@//<<else>>//This will cost <<print cashFormat(20000)>> and incur significant upkeep costs//<</if>>
<</if>>
<<if $arcologies[0].FSHedonisticDecadence >= 10>>

<<link "They shall be the Tasters">>
	<<replace "#result">>
	You ask for a meeting with your mercenaries' captain and lay out a proposal for a new contract between you over $PC.refreshment. As he reviews the terms, he looks skeptical, then surprised, then interested, and finally, he breaks out into laughter. "<<= properTitle()>>," he says, "you have no idea how fun this is going to be." He rises and gives you a short bow. "Lead Foodie reporting for duty, <<= properTitle()>>." The mercenaries — no, the Tasters — are well looked after. They are each assigned a comfy apartment, a freshly enslaved, plush servant, all the food and drink they can want (while off duty), and a suit of self-propelling prototype armor designed for maximum comfort without sacrificing protection. Word of the innovation runs through the Free Cities @@.green;like wildfire.@@
	<<run repX(5000, "event")>>
	<<run cashX(forceNeg(_cost), "mercenaries")>>
	<<set $mercenaries = 5>>
	<<set $mercenariesTitle = "Tasters">>
	<</replace>>
<</link>> <<if ($PC.skill.warfare >= 100) || ($PC.career == "arcology owner")>>//This will cost <<print cashFormat(10000)>> and some upkeep, @@.springgreen;reduced by your mercenary contacts@@//<<else>>//This will cost <<print cashFormat(20000)>> and incur significant upkeep costs//<</if>>
<</if>>
<<if $arcologies[0].FSSupremacist >= 10>>

<<link "They shall be the Knights of the Blood">>
	<<replace "#result">>
	You ask for a meeting with your mercenaries' captain and lay out a proposal for a new contract between you over $PC.refreshment. As he reviews the terms, he looks skeptical, then surprised, then interested, and finally, he breaks out into laughter. "<<= properTitle()>>," he says, "you have no idea how fun this is going to be." He rises and gives you a short bow. "Knights of the Blood reporting for duty, <<= properTitle()>>." The mercenaries — no, the Knights of the Blood — are well looked after. They are each assigned a nice apartment, three freshly enslaved servants of inferior races, and a suit of prototype armor equipped with the latest weapons. Word of the innovation runs through the Free Cities @@.green;like wildfire.@@
	<<run repX(5000, "event")>>
	<<run cashX(forceNeg(_cost), "mercenaries")>>
	<<set $mercenaries = 5>>
	<<set $mercenariesTitle = "Knights of the Blood">>
	<</replace>>
<</link>> <<if ($PC.skill.warfare >= 100) || ($PC.career == "arcology owner")>>//This will cost <<print cashFormat(10000)>> and some upkeep, @@.springgreen;reduced by your mercenary contacts@@//<<else>>//This will cost <<print cashFormat(20000)>> and incur significant upkeep costs//<</if>>
<</if>>
<<if $arcologies[0].FSSubjugationist >= 10>>

<<link "They shall be the Knights of the Purge">>
	<<replace "#result">>
	You ask for a meeting with your mercenaries' captain and lay out a proposal for a new contract between you over $PC.refreshment. As he reviews the terms, he looks skeptical, then surprised, then interested, and finally, he breaks out into laughter. "<<= properTitle()>>," he says, "you have no idea how fun this is going to be." He rises and gives you a short bow. "Knights of the Purge reporting for duty, <<= properTitle()>>." The mercenaries — no, the Knights of the Purge — are well looked after. They are each assigned a nice apartment, three freshly enslaved servants of the inferior race, and a suit of prototype armor equipped with the latest weapons. Word of the innovation runs through the Free Cities @@.green;like wildfire.@@
	<<run repX(5000, "event")>>
	<<run cashX(forceNeg(_cost), "mercenaries")>>
	<<set $mercenaries = 5>>
	<<set $mercenariesTitle = "Knights of the Purge">>
	<</replace>>
<</link>> <<if ($PC.skill.warfare >= 100) || ($PC.career == "arcology owner")>>//This will cost <<print cashFormat(10000)>> and some upkeep, @@.springgreen;reduced by your mercenary contacts@@//<<else>>//This will cost <<print cashFormat(20000)>> and incur significant upkeep costs//<</if>>
<</if>>
<<if $arcologies[0].FSPaternalist >= 10>>

<<link "They shall be the Wardens">>
	<<replace "#result">>
	You ask for a meeting with your mercenaries' captain and lay out a proposal for a redesigned contract between you. As he reviews the terms, he looks skeptical, then surprised, then interested, and finally, he breaks out into laughter. "<<= properTitle()>>," he says, "you have no idea how fun this is going to be." He rises and gives you a short bow. "First Warden reporting for duty, <<= properTitle()>>." The mercenaries — no, the Wardens — are well looked after. They are each assigned a nice apartment, a freshly enslaved servant, and a suit of prototype armor equipped with the latest weapons and a collapsible riot shield. Word of the innovation runs through the Free Cities @@.green;like wildfire.@@
	<<run repX(5000, "event")>>
	<<run cashX(forceNeg(_cost), "mercenaries")>>
	<<set $mercenaries = 5>>
	<<set $mercenariesTitle = "Wardens">>
	<</replace>>
<</link>> <<if ($PC.skill.warfare >= 100) || ($PC.career == "arcology owner")>>//This will cost <<print cashFormat(10000)>> and some upkeep, @@.springgreen;reduced by your mercenary contacts@@//<<else>>//This will cost <<print cashFormat(20000)>> and incur significant upkeep costs//<</if>>
<</if>>
<<if $arcologies[0].FSIntellectualDependency >= 10>>

<<link "They shall be the Shepherds">>
	<<replace "#result">>
	You ask for a meeting with your mercenaries' captain and lay out a proposal for a new contract between you over $PC.refreshment. As he reviews the terms, he looks skeptical, then surprised, then interested, and finally, he breaks out into laughter. "<<= properTitle()>>," he says, "you have no idea how needed this was. Just the other day I saw a half dozen bimbos waiting for a broken elevator. When I walked past an hour later, they were still waiting." He rises and gives you a short bow. "Shepherd of the slow reporting for duty, <<= properTitle()>>." The mercenaries — no, the Shepherds — are well looked after. They are each assigned a nice apartment, a very horny servant to stake their lust, and a suit of prototype armor equipped with the latest of weapons and a bevy of toys to lure wayward slaves with. Word of the innovation runs through the Free Cities @@.green;like wildfire.@@
	<<run repX(5000, "event")>>
	<<run cashX(forceNeg(_cost), "mercenaries")>>
	<<set $mercenaries = 5>>
	<<set $mercenariesTitle = "Shepherds">>
	<</replace>>
<</link>> <<if ($PC.skill.warfare >= 100) || ($PC.career == "arcology owner")>>//This will cost <<print cashFormat(10000)>> and some upkeep, @@.springgreen;reduced by your mercenary contacts@@//<<else>>//This will cost <<print cashFormat(20000)>> and incur significant upkeep costs//<</if>>
<</if>>
<<if $arcologies[0].FSSlaveProfessionalism >= 10>>

<<link "They shall be the Geniuses">>
	<<replace "#result">>
	You ask for a meeting with your mercenaries' captain and lay out a proposal for a new contract between you over $PC.refreshment. As he reviews the terms, he looks skeptical, then surprised, then interested, and finally, he breaks out into laughter. "<<= properTitle()>>," he says, "you have no idea how fun this is going to be." He rises and gives you a short bow. "Chief brain reporting for duty, <<= properTitle()>>." The mercenaries — no, the Geniuses — are well looked after. They are each assigned a nice apartment, a skilled courtesan, and a suit of prototype armor equipped with cutting edge weaponry and combat systems. Word of the innovation runs through the Free Cities @@.green;like wildfire.@@
	<<run repX(5000, "event")>>
	<<run cashX(forceNeg(_cost), "mercenaries")>>
	<<set $mercenaries = 5>>
	<<set $mercenariesTitle = "Geniuses">>
	<</replace>>
<</link>> <<if ($PC.skill.warfare >= 100) || ($PC.career == "arcology owner")>>//This will cost <<print cashFormat(10000)>> and some upkeep, @@.springgreen;reduced by your mercenary contacts@@//<<else>>//This will cost <<print cashFormat(20000)>> and incur significant upkeep costs//<</if>>
<</if>>
<<if $arcologies[0].FSBodyPurist >= 10>>

<<link "They shall be the Purifiers">>
	<<replace "#result">>
	You ask for a meeting with your mercenaries' captain and lay out a proposal for a new contract between you over $PC.refreshment. As he reviews the terms, he looks skeptical, then surprised, then interested, and finally, he breaks out into laughter. "<<= properTitle()>>," he says, "you have no idea how fun this is going to be." He rises and gives you a short bow. "Master Purifier reporting for duty, <<= properTitle()>>." The mercenaries — no, the Purifiers — are well looked after. They are each assigned a nice apartment, a freshly enslaved servant, and a suit of prototype armor equipped with a cleansing flamethrower. Word of the innovation runs through the Free Cities @@.green;like wildfire.@@
	<<run repX(5000, "event")>>
	<<run cashX(forceNeg(_cost), "mercenaries")>>
	<<set $mercenaries = 5>>
	<<set $mercenariesTitle = "Purifiers">>
	<</replace>>
<</link>> <<if ($PC.skill.warfare >= 100) || ($PC.career == "arcology owner")>>//This will cost <<print cashFormat(10000)>> and some upkeep, @@.springgreen;reduced by your mercenary contacts@@//<<else>>//This will cost <<print cashFormat(20000)>> and incur significant upkeep costs//<</if>>
<</if>>
<<if $arcologies[0].FSSlimnessEnthusiast >= 10>>

<<link "They shall be the Abstemious">>
	<<replace "#result">>
	You ask for a meeting with your mercenaries' captain and lay out a proposal for a new contract between you over $PC.refreshment. As he reviews the terms, he looks skeptical, then surprised, then interested, and finally, he breaks out into laughter. "<<= properTitle()>>," he says, "you have no idea how fun this is going to be." He rises and gives you a short bow. "Lord-Abstinent reporting for duty, <<= properTitle()>>." The mercenaries — no, the Abstemious — are well looked after. They are each assigned a nice apartment, a freshly enslaved servant, and a suit of sleek prototype armor equipped with advanced restraining weapons. Word of the innovation runs through the Free Cities @@.green;like wildfire.@@
	<<run repX(5000, "event")>>
	<<run cashX(forceNeg(_cost), "mercenaries")>>
	<<set $mercenaries = 5>>
	<<set $mercenariesTitle = "Abstemious">>
	<</replace>>
<</link>> <<if ($PC.skill.warfare >= 100) || ($PC.career == "arcology owner")>>//This will cost <<print cashFormat(10000)>> and some upkeep, @@.springgreen;reduced by your mercenary contacts@@//<<else>>//This will cost <<print cashFormat(20000)>> and incur significant upkeep costs//<</if>>
<</if>>
<<if $arcologies[0].FSPetiteAdmiration >= 10>>

<<link "They shall be the Caretakers">>
	<<replace "#result">>
	You ask for a meeting with your mercenaries' captain and lay out a proposal for a new contract between you over $PC.refreshment. As he reviews the terms, he looks skeptical, then surprised, then interested, and finally, he breaks out into laughter. "<<= properTitle()>>," he says, "you have no idea how fun this is going to be." He rises and gives you a short bow. "I'm ready to make a path for our little toys, <<= properTitle()>>." The mercenaries — no, the Caretakers — are well looked after. They are each assigned a nice apartment, a trio of tiny servants, and a suit of prototype armor capable of carrying multiple petite slaves in time of need. Word of the innovation runs through the Free Cities @@.green;like wildfire.@@
	<<run repX(5000, "event")>>
	<<run cashX(forceNeg(_cost), "mercenaries")>>
	<<set $mercenaries = 5>>
	<<set $mercenariesTitle = "Caretakers">>
	<</replace>>
<</link>> <<if ($PC.skill.warfare >= 100) || ($PC.career == "arcology owner")>>//This will cost <<print cashFormat(10000)>> and some upkeep, @@.springgreen;reduced by your mercenary contacts@@//<<else>>//This will cost <<print cashFormat(20000)>> and incur significant upkeep costs//<</if>>
<</if>>
<<if $arcologies[0].FSStatuesqueGlorification >= 10>>

<<link "They shall be the Titans">>
	<<replace "#result">>
	You ask for a meeting with your mercenaries' captain and lay out a proposal for a new contract between you over $PC.refreshment. As he reviews the terms, he looks skeptical, then surprised, then interested, and finally, he breaks out into laughter. "<<= properTitle()>>," he says, "you have no idea how fun this is going to be." He rises and gives you a short bow. "Tallest Titan reporting for duty, <<= properTitle()>>." The mercenaries — no, the Titans — are well looked after. They are each assigned a nice apartment, a freshly enslaved servant, and a towering suit of prototype armor to make their presence known. Word of the innovation runs through the Free Cities @@.green;like wildfire.@@
	<<run repX(5000, "event")>>
	<<run cashX(forceNeg(_cost), "mercenaries")>>
	<<set $mercenaries = 5>>
	<<set $mercenariesTitle = "Titans">>
	<</replace>>
<</link>> <<if ($PC.skill.warfare >= 100) || ($PC.career == "arcology owner")>>//This will cost <<print cashFormat(10000)>> and some upkeep, @@.springgreen;reduced by your mercenary contacts@@//<<else>>//This will cost <<print cashFormat(20000)>> and incur significant upkeep costs//<</if>>
<</if>>
<<if $arcologies[0].FSPastoralist >= 10>>

<<link "They shall be the Rangers">>
	<<replace "#result">>
	You ask for a meeting with your mercenaries' captain and lay out a proposal for a new contract between you over $PC.refreshment. As he reviews the terms, he looks skeptical, then surprised, then interested, and finally, he breaks out into laughter. "<<= properTitle()>>," he says, "you have no idea how fun this is going to be." He rises and gives you a short bow. "Lead Ranger reporting for duty, <<= properTitle()>>." The mercenaries — no, the Rangers — are well looked after. They are each assigned a nice apartment, a freshly enslaved servant, and a suit of prototype armor equipped with the latest weapons — and an improbably massive revolver on the hip. Word of the innovation runs through the Free Cities @@.green;like wildfire.@@
	<<run repX(5000, "event")>>
	<<run cashX(forceNeg(_cost), "mercenaries")>>
	<<set $mercenaries = 5>>
	<<set $mercenariesTitle = "Rangers">>
	<</replace>>
<</link>> <<if ($PC.skill.warfare >= 100) || ($PC.career == "arcology owner")>>//This will cost <<print cashFormat(10000)>> and some upkeep, @@.springgreen;reduced by your mercenary contacts@@//<<else>>//This will cost <<print cashFormat(20000)>> and incur significant upkeep costs//<</if>>
<</if>>


code:
:: P collaboration choice [nobr]

<<set $nextButton = "Continue", $nextLink = "Random Nonindividual Event">>

<<setLocalPronouns $traitor>>
<<run Enunciate($traitor)>>

Your next communication from the Daughters of Liberty is a request for a live video call. You accept and are surprised to be confronted by $traitor.slaveName's <<if $traitorType == "horror">>terrified <</if>>face. $He looks very different, without visible modifications of any kind and dressed in utilitarian clothes, but it's $him.

<<if $traitorType == "agent">>
	<<if $traitor.intelligence+$traitor.intelligenceImplant >= 100>>
		<<if canTalk($traitor)>>
			"Hello, <<Master>>," $he <<say>>s simply. "It'<<s>> happening soon. The Daughter<<s>> have a<<s>>ked me to call you to a<<s>>k you for your cooperation. All they want are the a<<cc>>e<<ss>> code<<s>> to your <<s>>ecurity <<s>>y<<s>>tem<<s>> and they tru<<s>>t me to get them. You <<s>>till tru<<s>>t me, right? I promi<<s>>e giving me code<<s>> to give them i<<s>> the right choi<<c>>e." $He stares at the camera, trying $his best to convey the deeper meaning to $his request. "It may be rough, but I promi<<s>>e we'll make it through it."
		<<else>>
			$He gestures that the Daughters are coming and that $he was entrusted with earning your cooperation. $He explains that they want $him to get your security codes for them, and fully expect that $he'll succeed. $He vows that you won't be making a mistake by giving $him codes and that you'll be reunited when it is all over.
		<</if>>
		<<set $traitorType = "trapper">>
	<<elseif $traitor.intelligence+$traitor.intelligenceImplant < 0>>
		<<if canTalk($traitor)>>
			"<<Master>>," $he <<say>>s with panic in $his voice, "They are coming for you. They want your a<<cc>>e<<ss>> code<<s>> <<s>>o they can get to you ea<<s>>ier, but now you know not to tru<<s>>t them!" $He manages to shout as $he is dragged offscreen, "Don't let them get you <<Master>>! <<Sh>>ow them who'<<s>> bo<<ss>>!"
		<<else>>
			$He hastily gestures that they are coming for you and that nothing you can do will deter them. $He barely signs off a plea for you to prepare your defenses.
		<</if>>
		<<set $traitorType = "hostage">>
	<<elseif $traitor.intelligence+$traitor.intelligenceImplant < -50>>
		<<if canTalk($traitor)>>
			"Hello, <<Master>>," $he <<say>>s simply. "It'<<s>> happening soon. The Daughter<<s>> have a<<s>>ked me to call you to a<<s>>k you for your help. All they need i<<s>> the a<<cc>>e<<ss>> code<<s>> to your <<s>>ecurity <<s>>y<<s>>tem<<s>>. They'll let you live, <<Master>>, they'll even let you take your money. But the arcology and the <<s>>lave<<s>>, tho<<s>>e will have to go free." $He hesitates a little. "<<Master>>, I like being free. But I don't want to <<s>>ee you killed. Plea<<s>>e, plea<<s>>e agree."
		<<else>>
			$He gestures that the Daughters are coming and that $he was asked if you would lend your assistance. $He explains, that in return for the security codes, you'll be allowed to live and escape with your wealth, but at the loss of your slaves and arcology. $He hesitates a little, before imploring you to save yourself.
		<</if>>
		<<set $traitorType = "standard">>
	<<else>>
		<<if canTalk($traitor)>>
			"Hello, <<Master>>," $he <<say>>s simply. "It'<<s>> happening soon. The Daughter<<s>> have a<<s>>ked me to call you to a<<s>>k you for your help. All they need i<<s>> the a<<cc>>e<<ss>> code<<s>> to your <<s>>ecurity <<s>>y<<s>>tem<<s>>. They'll let you live, <<Master>>, they'll even let you take your money. But the arcology and the <<s>>lave<<s>>, tho<<s>>e will have to go free. You do not want to be around when they clean up the <<s>>lave owner<<s>>." $He hesitates a little, unsure of who may be listening. "<<Master>>, I don't want to <<s>>ee you killed. Plea<<s>>e, plea<<s>>e think about who you are dealing with." $He stares into the camera, imploring you to make the right choice.
		<<else>>
			$He gestures that the Daughters are coming and that $he was asked if you would lend your assistance. $He explains, that in return for the security codes, you'll be allowed to live and escape with your wealth, but at the loss of your slaves and arcology. $He stares into the camera, imploring you not to trust $his words.
		<</if>>
	<</if>>
<<elseif $traitorType == "horror">>
	<<if canTalk($traitor)>>
		"<<Master>>," $he struggles to <<say>>, "The Daughter<<s>> have a<<s>>ked me to call you to a<<s>>k you for your help." $He takes a deep breath and composes $himself. "They need the a<<cc>>e<<ss>> code<<s>> to your <<s>>ecurity <<s>>y<<s>>tem<<s>>." $He flinches upon making such a request. "They'll let you live, <<Master>>, they'll even let you take your money. But the arcology and the <<s>>lave<<s>>, tho<<s>>e will have to go free." $He hesitates a little. "<<Master>>, I like being free. But I don't want anything more to do with you. Plea<<s>>e, plea<<s>>e agree."
	<<else>>
		$He shakily gestures that the Daughters are coming and that $he was asked if you would lend your assistance. $He explains, that in return for the security codes, you'll be allowed to live and escape with your wealth, but at the loss of your slaves and arcology. $He hesitates a little, before asking you to take the deal so you never have to see each other again.
	<</if>>
<<elseif $traitorType == "defiant">>
	<<if canTalk($traitor)>>
		"Hello, <<Master>>," $he <<say>>s simply. "It'<<s>> happening soon. The Daughter<<s>> have a<<s>>ked me to call you to a<<s>>k you for your help. All they need i<<s>> the a<<cc>>e<<ss>> code<<s>> to your <<s>>ecurity <<s>>y<<s>>tem<<s>>. You'll get to live, <<Master>>, and you'll even get to keep your money. But the arcology and the <<s>>lave<<s>> will be handed over." $He hesitates a little. "<<Master>>, I like being free. But I don't want to <<s>>ee you killed by them. Plea<<s>>e, plea<<s>>e agree."
	<<else>>
		$He gestures that the Daughters will be coming soon and that $he was asked if you would comply with their demands. $He explains, that in return for the security codes, you'll be allowed to live and escape with your wealth. $He emphasizes that they will kill you otherwise.
	<</if>>
<<else>>
	<<if canTalk($traitor)>>
		"Hello, <<Master>>," $he <<say>>s simply. "It'<<s>> happening soon. The Daughter<<s>> have a<<s>>ked me to call you to a<<s>>k you for your help. All they need i<<s>> the a<<cc>>e<<ss>> code<<s>> to your <<s>>ecurity <<s>>y<<s>>tem<<s>>. They'll let you live, <<Master>>, they'll even let you take your money. But the arcology and the <<s>>lave<<s>>, tho<<s>>e will have to go free." $He hesitates a little. "<<Master>>, I like being free. But I don't want to <<s>>ee you killed. Plea<<s>>e, plea<<s>>e agree."
	<<else>>
		$He gestures that the Daughters are coming and that $he was asked if you would lend your assistance. $He explains, that in return for the security codes, you'll be allowed to live and escape with your wealth, but at the loss of your slaves and arcology. $He hesitates a little, before imploring you to save yourself.
	<</if>>
<</if>>

<<link "Transmit the codes">>
	<<replace "#result">>
		You transmit the access codes to your security systems.
		<<if $traitorType == "agent">>
			$traitor.slaveName silently frowns as tears start to well in $his eyes.
		<<elseif $traitorType == "trapper">>
			$traitor.slaveName smiles and thanks you. "I won't di<<s>>appoint you."
		<<elseif $traitorType == "hostage">>
			If this will lessen what will happen to $traitor.slaveName, you don't know.
		<<elseif $traitorType == "horror">>
			$traitor.slaveName meekly thanks you and hurries offscreen.
		<<elseif $traitorType == "defiant">>
			$traitor.slaveName smiles and thanks you. "I hope you <<s>>urvive the attack, <<= PoliteRudeTitle($traitor)>>."
		<<else>>
			$traitor.slaveName smiles and thanks you. "You made the right de<<c>>i<<s>>ion, <<Master>>. I love you."
		<</if>>
		<<set $collaboration = 1>>
	<</replace>>
<</link>>

<<link "Refuse">>
	<<replace "#result">>
		You close the video call without a word. From your desk, you have access to thousands of video feeds from all across the arcology; they show men and women working, sleeping, eating, chatting, fucking. You wonder how many of them have plans, and what those plans are.
	<</replace>>
<</link>>

repo_name: KnightBoulegard/fc

license: mit


code:
:: P Corp Announcement [nobr]

<<set $nextButton = "Continue">>
<<set $nextLink = "Random Nonindividual Event">>

<<set $corp.Announced = 1>>
<<set $fcnn.push("...and Free Cities have definitely shaken up the stock market in recent...")>>

You never understood the power of money until accumulating so much of it yourself. If you were to try to explain it to someone without that power, you would emphasize the access it buys you. You can speak to anyone, about anything; propose anything, to anyone. And recently, you have begun to encounter the trouble of being too powerful.

Good investment opportunities are hard to come by in the uncertain world of today. The days of government bonds providing steady yields are ending. Markets are volatile, and under attack by forces they cannot begin to control or anticipate. In places, the very consensus on modern capitalism that has held for nearly fifty years is under siege. There's one reliable growth market in the Free Cities: slaves. And there's too much capital chasing too few investment opportunities in that market.

Reviewing the situation from your desk, the nerve center of your growing empire, you think to yourself: why not? You have the reputation and the capital to become a major player in the slave market, just for the asking. If you announced the incorporation of a publicly traded company dedicated to the industry of slavery, Free Cities investors would be lining up, cash in hand, ready to buy stock.


code:
:: P coup aftermath [nobr]

<<set $nextButton = " ", $nextLink = "Random Nonindividual Event", $rivalOwner = 0, $rivalryPower = 0, _num = random(0,99)>> /* hide button until user makes a selection */
<<if _num <= $seeDicks>>
	<<set $rivalGender = 2>>
<<else>>
	<<set $rivalGender = 1>>
<</if>>
<<if $rivalGender == 2>>
	<<set _heR = "he">>
	<<set _himR = "him">>
	<<set _HeR = capFirstChar(_heR)>>
<<else>>
	<<set _heR = "she">>
	<<set _himR = "her">>
	<<set _HeR = capFirstChar(_heR)>>
<</if>>
<<setAssistantPronouns>>
<<set $fcnn.push("...evidence also suggests that the Daughters of Liberty had also planned a terrorist attack on...")>>

<<if $mercenaries > 3>>Your $mercenariesTitle<<elseif $mercenaries > 0>>Your mercenaries<<elseif $arcologyUpgrade.drones > 0>>Your security drones<<else>>Private security teams<</if>> perform the grisly task of disposing of the bodies of the Daughters killed in the assault. They strip them of anything that might be of use in cleaning up after the attempted coup — communication devices, PDAs, computers, even handwritten notes. The raw intel is scanned and passed to $assistant.name. Most of it is rubbish.

Some of it is not. There is evidence of payments from a <<if $rivalSet == 0>>nearby Free City<<else>>neighboring arcology<</if>> to the leadership of the Daughters. <<= capFirstChar($assistant.name)>> is silent for a long time, crosschecking records to assemble a complete picture despite your enemies' attempts to disguise the transactions. Finally, $assistant.name finishes and displays a picture, using nearly the entire surface of your desk for effect. <<if $assistant.personality > 0>>"This," _heA says in a tone of satisfaction, "is the <<if $rivalGender == 2>>bastard<<elseif $rivalGender == 1>>bitch<<else>>cunt<</if>> you want, <<= properTitle()>>."<<else>>"This," _heA says neutrally, "is the culprit, <<= properTitle()>>."<</if>>

The face is vigorous, determined, and <<if $rivalGender == 2>>masculine. The very stereotype of the male arcology owner<<elseif ($rivalGender == 1)>>feminine. The very stereotype of the female arcology owner<<else>>androgynous. The very stereotype of the dissolute arcology owner<</if>>.
<<if $rivalSet != 0>>
	And, as you suspected, it's one of your neighbors. It's the individual who owns
	<<for $i = 0; $i < $arcologies.length; $i++>>
		<<if $arcologies[$i].rival == 1>>
			''$arcologies[$i].name.''
			<<break>>
		<</if>>
	<</for>>

<</if>>
Your assistant continues, "_HeR came into an arcology about when you did, <<= properTitle()>>. It seems the Daughters originally planned to attack _himR, but _heR bought them off and sent them after you, instead."<<if $assistant.personality > 0>> "I wonder," _heA teases, "if _heR thinks you're cute, or what?"<</if>>

You inquire as to whether there's any identifiable cause for the evident dislike.
<<if $rivalryFS != 0>>
	"Definitely," says your assistant. "The most cursory review of the recent history of this Free City shows that divergence began with your selection of $rivalryFS as a society model for the future. They immediately went the opposite direction."
<<else>>
	"No," says your assistant. "It may be that giving the Daughters an alternative target was necessary and you were simply unlucky. Alternatively, this may be envy of your success; of rising arcology owners, you have come farthest, fastest."
<</if>>

<<link "Contact the culprit privately and discuss the matter">>
	<<set $nextButton = "Continue">><<UpdateNextButton>> /* unlock Continue button */
	<<replace "#result">>
	Your fellow arcology owner proves very receptive to your missive, as well they might. Your defeat of the Daughters has made a major impact on the willingness of slaveowners to discuss slave revolts in public, and any arcology owner who was proved to be funding anti-slaver violence, even under duress, would be shunned. With very little prompting, _heR forwards a @@.yellowgreen;huge indemnity payment.@@ It's nowhere near enough to cause bankruptcy, but it's enough to give you a massive advantage should you find yourselves at odds again.
	<<run cashX(100000, "war")>>
	<</replace>>
<</link>>

<<link "Reveal the evidence publicly">>
	<<set $nextButton = "Continue">><<UpdateNextButton>> /* unlock Continue button */
	<<replace "#result">>
	Free Cities society is understandably reluctant to condemn, never mind depose, arcology owners. The precedent of removing one would be bad, even if the public brought enough strength together to accomplish it. Your evidence looks quite bad, but isn't so incontrovertible as to cause your fellow aristocrats to take such a drastic measure. Nonetheless, the public is aghast at the spectacle of an arcology owner funding an attack on another. Opinion @@.green;rallies@@ around you, and you even receive some discreet @@.yellowgreen;donations,@@ delivered with the intimation that they are to be used against your enemy. There is stony silence from the Daughters' backer; today, you began a real inter-arcology war.
	<<run repX(1000, "war")>>
	<<run cashX(10000, "war")>>
	<<set $rivalryPower = 1>>
	<<if $rivalSet != 0>>
		<<for $i = 0; $i < $arcologies.length; $i++>>
			<<if $arcologies[$i].rival == 1>>
				<<set $arcologies[$i].embargo = 2>>
				<<set $arcologies[$i].embargoTarget = 0>>
				<<set $arcologies[$i].influenceTarget = 0>>
				<<set $rivalOwner = $arcologies[$i].prosperity>>
				<<break>>
			<</if>>
		<</for>>
	<<else>>
		<<set $rivalOwner = $arcologies[0].prosperity>>
	<</if>>
	<</replace>>
<</link>>

<<link "Devote funds to tracing the evidence">>
	<<set $nextButton = "Continue">><<UpdateNextButton>> /* unlock Continue button */
	<<replace "#result">>
	The money flows out, and the information flows in. You are rewarded with a reasonably complete picture of your rival's operations. The intelligence will be extremely useful going forward, since by gathering it, you sent an unmistakable signal that you do not consider the matter closed. There is stony silence from the Daughters' backer; today, you began a real inter-arcology war. But, with this information, you can maintain it from a position of advantage.
	<<run cashX(-20000, "war")>>
	<<set $rivalryPower = 5>>
	<<if $rivalSet != 0>>
		<<for $i = 0; $i < $arcologies.length; $i++>>
			<<if $arcologies[$i].rival == 1>>
				<<set $arcologies[$i].embargo = 3>>
				<<set $arcologies[$i].embargoTarget = 0>>
				<<set $arcologies[$i].influenceTarget = 0>>
				<<set $rivalOwner = $arcologies[$i].prosperity>>
				<<break>>
			<</if>>
		<</for>>
	<<else>>
		<<set $rivalOwner = $arcologies[0].prosperity>>
	<</if>>
	<</replace>>
<</link>> //This will cost <<print cashFormat(20000)>>//


code:
:: P coup attempt [nobr]

<<set $nextButton = "Continue", $nextLink = "Random Nonindividual Event", $daughtersVictory = 1>>

<<if $traitor != 0>>
	<<set _weeks = $traitorWeeks, _pregWeeks = $traitorWeeks, $traitorWeeks = 0>>

	<<set WombProgress($traitor, _pregWeeks, _pregWeeks)>> /* In all cases should be done */
	<<set WombUpdatePregVars($traitor)>>
	<<if WombBirthReady($traitor, $traitor.pregData.normalBirth) > 0 >> /* normal birth case, partial birthers not supported*/
		<<set $traitor.preg = -1, $traitor.counter.birthsTotal += WombBirthReady($traitor, $traitor.pregData.normalBirth)>>
		<<set WombFlush($traitor)>>
	<<else>>/* still pregnant slave */
		<<set $traitor.preg = WombMaxPreg($traitor)>> /*most ready fetus is a base*/
		<<set $traitor.pregWeek = WombMaxPreg($traitor)>> /*most ready fetus is a base*/
	<</if>>
	<<run SetBellySize($traitor)>> /*In any case it's useful to do.*/

	<<if $traitor.bald != 1>>
		<<if ($traitor.hLength < 150)>>
			<<set $traitor.hLength += _weeks>>
		<</if>>
	<</if>>
	<<if $seeAge != 0>>
		<<for _weeks > 0>>
			<<set $traitor.birthWeek++>>
			<<if $traitor.birthWeek >= 52>>
				<<set $traitor.birthWeek = 0>>
				<<run ageSlave($traitor)>>
			<</if>>
			<<set _weeks-->>
		<</for>>
	<</if>>
<</if>>
<<set _doubleAgent = ["agent", "trapper"].includes($traitorType) ? 1 : 0>>

You are awakened in the middle of the night by a jolt that shakes the entire arcology, accompanied by a distant boom. It is followed by the wail of the arcology's alarm systems, and then finally by a faint crackle that grows to a constant chatter of gunfire. Main power goes out, and you claw your way in the darkness to the video feeds, running on emergency backup. The Daughters of Liberty have more sympathizers in the arcology than even you suspected, and they're well armed and have the element of surprise.
<<if $arcologies[0].FSRomanRevivalistLaw == 1>>
	$arcologies[0].name, however, is home to a society that cannot be surprised, for each and every one of its citizens is armed and trained for instant contribution to the defense of Rome. Even as you do your best to reestablish control, you hear a thunderous, ubiquitous roar from all around you. Your citizens are already getting into the fight.
<</if>>

<<if $hackerSupport == 0>>
	Many of the arcology systems are not responding properly. It seems the Daughters' penetration of your systems is thorough. Your security systems are still reasonably functional, but the rebels are aided by partial control of things like lights and door locks.
<<else>>
	It seems your cyberwarfare ally of convenience is having an effect. Arcology systems are working perfectly unless the rebels disable them physically. Their fighters are impeded by uncooperative lights, resistant locking systems, and even $assistant.name's selective deployment of firefighting systems to obscure visibility.
<</if>>

<<if $personalArms == 0>>
	Since you are not well armed or armored, you stay in your penthouse and do what you can to coordinate the defense.
<<elseif $personalArms == 1>>
	The Daughters are appalled to encounter you striding thunderously out of your penthouse, fully armored. Your exoskeleton mounts an acoustic riot control system that even allows you to take prisoners.
<<else>>
	The Daughters are appalled to encounter you striding thunderously out of your penthouse, fully armored. Your exoskeleton mounts an acoustic riot control system that even allows you to take prisoners.
	<<if $arcologyUpgrade.drones > 0>>
		Meanwhile, your security drones are busily rearming themselves, and soon the dominant sound in the arcology is the ripping noise made by their small-caliber guns. A few of them retain their nonlethal weapons and swoop in to subdue when possible.
	<</if>>
<</if>>

<<if $traitor != 0 && ($traitorType == "trapper" || $traitorType == "agent")>>

	Every now and then you catch sight of $traitor.slaveName seeding disorder through the ranks.
	<<if random(1,100) > $traitor.intelligence+$traitor.intelligenceImplant>>
		<<set _traitorDeath = 1>>
	<</if>>
<</if>>

<<if ($mercenaries == 0) && ($arcologies[0].FSRomanRevivalistLaw == 0)>>
	You are alone in contributing to the defense of your home.
<<elseif $mercenaries == 1>>
	Your mercenaries desperately defend their barracks but manage little else.
<<elseif $mercenaries == 3>>
	Your mercenaries manage to get into action quickly enough, but are bogged down in the streets. They are obliged to fight a confused battle to establish a perimeter. Only once it's stable are they able to push out.
<<else>>
	Your $mercenariesTitle spread out into the arcology, as invincible as Medieval men-at-arms matched against peasants. They are so dominant over the Daughters that they are able to take many prisoners. Their armor often permits them to approach armed, resisting rebels and disarm them manually.
<</if>>
<<if $arcologies[0].FSRomanRevivalistLaw == 1>>
	As the crisis is reached and passed, lower-class citizens armed as Hastati, with lighter weapons and personal armor, begin to sweep the arcology to ensure no one escapes. Middle-class citizens, meanwhile, heavily armored as Principes, methodically grind out pockets of armed resistance. The toughest rebel groups are left to the exoskeleton-armored Triarii.
<</if>>

<<set _newSlaves = []>>
<<if $arcologies[0].FSRomanRevivalistLaw + $mercenaries + $personalArms + $hackerSupport + _doubleAgent > 8>>
	@@.yellow;The Daughters of Liberty are utterly crushed.@@ $arcologies[0].name has been slightly damaged, but even as the last pockets of resistance are crushed, your citizens begin repairs themselves. The effect on your reputation is @@.green;immensely positive,@@ since your victory was insultingly easy and barely set the arcology's prosperity back at all. You also took a truly impressive bag of prisoners.
	<<set $daughtersVictory = 3>>
	<<run cashX(-2000, "war")>>
	<<run cashX(forceNeg(Math.trunc($cash*0.2)), "war")>>
	<<set $arcologies[0].prosperity = Math.trunc($arcologies[0].prosperity*0.7)>>
	<<run repX(2000, "war")>>
	<<set $activeSlaveOneTimeMinAge = 16>>
	<<set $activeSlaveOneTimeMaxAge = 32>>
	<<set $oneTimeDisableDisability = 1>>
	<<for _pca = 0; _pca < 8; _pca++>>
		<<if random(0,99) < $seeDicks>>
			<<set $activeSlave = GenerateNewSlave("XY")>>
			<<set $activeSlave.weight = random(-20,30)>>
			<<set $activeSlave.muscles = random(20,80)>>
			<<set $activeSlave.waist = random(10,80)>>
		<<else>>
			<<set $activeSlave = GenerateNewSlave("XX")>>
			<<set $activeSlave.weight = random(-50,30)>>
			<<set $activeSlave.muscles = random(0,80)>>
			<<set $activeSlave.waist = random(-20,20)>>
		<</if>>
		<<set $activeSlave.origin = "$He is an enslaved Daughter of Liberty.">>
		<<set _newSlaves.push($activeSlave)>>
	<</for>>
	<<set $desc = "a damaged plate carrier bearing Daughters of Liberty insignia">>
	<<set $trinkets.push($desc)>>
	<<= IncreasePCSkills('warfare', 5)>>
<<elseif $arcologies[0].FSRomanRevivalistLaw == 1>>
	@@.yellow;The Daughters of Liberty are annihilated.@@ @@.red;$arcologies[0].name has been damaged,@@ and the repairs will be quite costly. However, the effect on your reputation is @@.green;very positive,@@ since though your victory was hard-fought and set the arcology's prosperity back @@.red;considerably,@@ you did better than other arcology owners have done when faced with similar well-armed unrest. You also took a truly impressive bag of prisoners.
	<<set $daughtersVictory = 3>>
	<<run cashX(-5000, "war")>>
	<<run cashX(forceNeg(Math.trunc($cash*0.2)), "war")>>
	<<set $arcologies[0].prosperity = Math.trunc($arcologies[0].prosperity*0.7)>>
	<<run repX(1000, "war")>>
	<<if $seeDicks >= 50>>
		<<set _pcaj = 5>>
	<<elseif $seeDicks > 0>>
		<<set _pcaj = 2>>
	<<else>>
		<<set _pcaj = 0>>
	<</if>>
	<<for _pca = 0; _pca <= _pcaj; _pca++>>
		<<set $activeSlaveOneTimeMinAge = 16>>
		<<set $activeSlaveOneTimeMaxAge = 32>>
		<<set $oneTimeDisableDisability = 1>>
		<<set $activeSlave = GenerateNewSlave("XY")>>
		<<set $activeSlave.origin = "$He is an enslaved Daughter of Liberty.">>
		<<set $activeSlave.weight = random(-20,30)>>
		<<set $activeSlave.muscles = random(20,80)>>
		<<set $activeSlave.waist = random(10,80)>>
		<<set _newSlaves.push($activeSlave)>>
	<</for>>
	<<if $seeDicks < 50>>
		<<set _pcaj = 5>>
	<<elseif $seeDicks < 100>>
		<<set _pcaj = 3>>
	<<else>>
		<<set _pcaj = 0>>
	<</if>>
	<<for _pca = 0; _pca <= _pcaj; _pca++>>
		<<set $activeSlaveOneTimeMinAge = 16>>
		<<set $activeSlaveOneTimeMaxAge = 32>>
		<<set $oneTimeDisableDisability = 1>>
		<<set $activeSlave = GenerateNewSlave("XX")>>
		<<set $activeSlave.origin = "$He is an enslaved Daughter of Liberty.">>
		<<set $activeSlave.weight = random(-50,30)>>
		<<set $activeSlave.muscles = random(0,80)>>
		<<set $activeSlave.waist = random(-20,20)>>
		<<set _newSlaves.push($activeSlave)>>
	<</for>>
	<<set $desc = "a Daughters of Liberty flag that once hung in their forward command post within your arcology">>
	<<set $trinkets.push($desc)>>
<<else>>
	@@.yellow;The Daughters of Liberty are defeated.@@ @@.red;$arcologies[0].name is heavily damaged,@@ and the repairs will be very costly. The effect on your reputation is @@.green;muted, but positive,@@ since though you won, your victory was hard-fought and set the arcology's prosperity back @@.red;a long way.@@
	<<if $traitor != 0 && !["agent", "trapper"].includes($traitorType)>>
		$traitor.slaveName was killed in the fighting.
		<<set $traitor = 0, $traitorStats = 0, $traitorType = 0>>
	<</if>>
	<<set $daughtersVictory = 2>>
	<<run cashX(-10000, "war")>>
	<<run cashX(forceNeg(Math.trunc($cash*0.3)), "war")>>
	<<set $arcologies[0].prosperity = Math.trunc($arcologies[0].prosperity*0.5)>>
	<<run repX(500, "war")>>
	<<if $seeDicks >= 50>>
		<<set _pcaj = 3>>
	<<elseif $seeDicks > 0>>
		<<set _pcaj = 1>>
	<<else>>
		<<set _pcaj = 0>>
	<</if>>
	<<for _pca = 0; _pca <= _pcaj; _pca++>>
		<<set $activeSlaveOneTimeMinAge = 16>>
		<<set $activeSlaveOneTimeMaxAge = 32>>
		<<set $oneTimeDisableDisability = 1>>
		<<set $activeSlave = GenerateNewSlave("XY")>>
		<<set $activeSlave.origin = "$He is an enslaved Daughter of Liberty.">>
		<<set $activeSlave.weight = random(-20,30)>>
		<<set $activeSlave.muscles = random(20,80)>>
		<<set $activeSlave.waist = random(10,80)>>
		<<set _newSlaves.push($activeSlave)>>
	<</for>>
	<<if $seeDicks < 50>>
		<<set _pcaj = 3>>
	<<elseif $seeDicks < 100>>
		<<set _pcaj = 2>>
	<<else>>
		<<set _pcaj = 0>>
	<</if>>
	<<for _pca = 0; _pca <= _pcaj; _pca++>>
		<<set $activeSlaveOneTimeMinAge = 16>>
		<<set $activeSlaveOneTimeMaxAge = 32>>
		<<set $oneTimeDisableDisability = 1>>
		<<set $activeSlave = GenerateNewSlave("XX")>>
		<<set $activeSlave.origin = "$He is an enslaved Daughter of Liberty.">>
		<<set $activeSlave.weight = random(-50,30)>>
		<<set $activeSlave.muscles = random(0,80)>>
		<<set $activeSlave.waist = random(-20,20)>>
		<<set _newSlaves.push($activeSlave)>>
	<</for>>
	<<set $desc = "a Daughters of Liberty brassard">>
	<<set $trinkets.push($desc)>>
	<<= IncreasePCSkills('warfare', 5)>>
<</if>>

<<if $traitor != 0 && _traitorDeath != 1>>
	<<setLocalPronouns $traitor>>
	<<if ["agent", "trapper"].includes($traitorType)>>
		$traitor.slaveName returns to your service having completed the task assigned to $him.
		<<set $traitor.assignment = "rest">>
	<<elseif $traitorType == "hostage">>
		$traitor.slaveName wanders back to the penthouse, battered and bloody, but alive.
		<<set $traitor.assignment = "rest">>
		<<run setHealth($traitor, $traitor.health.condition, $traitor.health.condition - $traitor.health.shortDamage + 80, $traitor.health.longDamage, $traitor.health.illness, $traitor.health.tired)>>
	<<else>>
		$traitor.slaveName was captured and has been returned to you.
		<<set $traitor.assignment = "stay confined">>
		<<run setHealth($traitor, $traitor.health.condition, $traitor.health.condition - $traitor.health.shortDamage + 80, $traitor.health.longDamage, $traitor.health.illness, $traitor.health.tired)>>
		<<set $traitor.origin = "$He was your slave, but you freed $him, which $he repaid by participating in a coup attempt against you. It failed, and $he is again your chattel.">>
	<</if>>
	<<if $traitorStats.PCpregSource > 0 && $PC.preg > 0 && $PC.pregSource == 0>>
		<<set $PC.pregSource = $traitor.ID>>
	<</if>>
	<<if $traitorStats.PCmother > 0>>
		<<set $PC.mother = $traitor.ID>>
	<</if>>
	<<if $traitorStats.PCfather > 0>>
		<<set $PC.father = $traitor.ID>>
	<</if>>
	<<for _pca = 0; _pca < $slaves.length; _pca++>>
		<<if $traitorStats.traitorMother.includes($slaves[_pca].ID)>>
			<<set $slaves[_pca].mother = $traitor.ID>>
		<</if>>
		<<if $traitorStats.traitorFather.includes($slaves[_pca].ID)>>
			<<set $slaves[_pca].father = $traitor.ID>>
		<</if>>
		<<if $traitorStats.traitorPregSources.includes($slaves[_pca].ID) && $slaves[_pca].preg > 0 && $slaves[_pca].pregSource == 0>>
			<<set $slaves[_pca].pregSource = $traitor.ID>>
		<</if>>
	<</for>>
	<<if $incubator > 0>>
		<<for _pca = 0; _pca < $tanks.length; _pca++>>
			<<if $traitorStats.traitorMotherTank.includes($tanks[_pca].ID)>>
				<<set $tanks[_pca].mother = $traitor.ID>>
			<</if>>
			<<if $traitorStats.traitorFatherTank.includes($tanks[_pca].ID)>>
				<<set $tanks[_pca].father = $traitor.ID>>
			<</if>>
		<</for>>
	<</if>>
	<<if $nursery > 0>>
		<<for _pca = 0; _pca < $cribs.length; _pca++>>
			<<if $traitorStats.traitorMotherTank.includes($cribs[_pca].ID)>>
				<<set $cribs[_pca].mother = $traitor.ID>>
			<</if>>
			<<if $traitorStats.traitorFatherTank.includes($cribs[_pca].ID)>>
				<<set $cribs[_pca].father = $traitor.ID>>
			<</if>>
		<</for>>
	<</if>>
	<<if $traitorStats.boomerangBody > 0>>
		<<set _pca = $slaveIndices[$traitorStats.traitorBody]>>
		<<if def _pca>>
			<<set $slaves[_pca].origBodyOwnerID = $traitor.ID>>
		<</if>>
	<</if>>
	<<for _pca = 0; _pca < $slaves.length; _pca++>>
		<<run WombChangeID($slaves[_pca], $traitor.missingParentTag, $traitor.ID)>>
		<<run WombChangeGeneID($slaves[_pca], $traitor.missingParentTag, $traitor.ID)>>
	<</for>>
	<<run newSlave($traitor)>> /* skip New Slave Intro */
	<<set $traitor = 0, $traitorStats = 0, $traitorType = 0>>
<<elseif $traitor != 0>>
	$traitor.slaveName's body was found among the dead. $He died sabotaging the Daughters' efforts.
	<<set $traitor = 0, $traitorStats = 0, $traitorType = 0>>
<</if>>

<<link "Sell your prisoners immediately">>
	<<replace "#result">>
	<<for _pca = 0; _pca < _newSlaves.length; _pca++>>
		<<set _slaveCost = slaveCost(_newSlaves[_pca])>>
		<<run cashX(_slaveCost, "slaveTransfer")>>
	<</for>>
	Prisoners sold.
	<</replace>>
<</link>> <<if $traitor != 0>>//$traitor.slaveName will not be sold.//<</if>>

<<link "Give your prisoners to those who suffered property damage">>
	<<replace "#result">>
	<<for _pca = 0; _pca < _newSlaves.length; _pca++>>
		<<set _slaveCost = slaveCost(_newSlaves[_pca])>>
		<<run repX(Math.trunc(_slaveCost/10), "war")>>
	<</for>>
	Prisoners @@.green;given away.@@
	<</replace>>
<</link>> <<if $traitor != 0>>//$traitor.slaveName will not be given away.//<</if>>

<<link "Enslave all of your prisoners">>
	<<replace "#result">>
	<<for _pca = 0; _pca < _newSlaves.length; _pca++>>
		<<run newSlave(_newSlaves[_pca])>> /* skip New Slave Intro */
	<</for>>
	You simply enslave all of the prisoners yourself. You will make them pay for attacking your arcology.
	<</replace>>
<</link>>


code:
:: P coup betrayal [nobr]

<<set $nextButton = "Continue", $nextLink = "Random Nonindividual Event", $daughtersVictory = 1>>

<<set _weeks = $traitorWeeks, _pregWeeks = $traitorWeeks, $traitorWeeks = 0>>

<<set WombProgress($traitor, _pregWeeks, _pregWeeks)>> /* In all cases should be done */
<<set WombUpdatePregVars($traitor)>>
<<if WombBirthReady($traitor, $traitor.pregData.normalBirth) > 0 >> /* normal birth case, partial birthers not supported*/
	<<set $traitor.preg = -1, $traitor.counter.birthsTotal += WombBirthReady($traitor, $traitor.pregData.normalBirth)>>
	<<set WombFlush($traitor)>>
<<else>>/* still pregnant slave */
	<<set $traitor.preg = WombMaxPreg($traitor)>> /*most ready fetus is a base*/
	<<set $traitor.pregWeek = WombMaxPreg($traitor)>> /*most ready fetus is a base*/
<</if>>
<<run SetBellySize($traitor)>> /*In any case it's useful to do.*/

<<if $traitor.bald != 1>>
	<<if ($traitor.hLength < 150)>>
		<<set $traitor.hLength += _weeks>>
	<</if>>
<</if>>
<<if $seeAge != 0>>
	<<for _weeks > 0>>
		<<set $traitor.birthWeek++>>
		<<if $traitor.birthWeek >= 52>>
			<<set $traitor.birthWeek = 0>>
			<<run ageSlave($traitor)>>
		<</if>>
		<<set _weeks-->>
	<</for>>
<</if>>

You are awakened in the middle of the night by a jolt that shakes the entire arcology, accompanied by a distant boom. It is followed by the wail of the arcology's alarm systems, and then finally by a faint crackle that grows to a constant chatter of gunfire. You rush to the video feeds to see what is going on. The Daughters of Liberty have not only succeeded in locking down your arcology with them outside of it, but have effectively cornered themselves against it. A PMC group has their retreat cut off and is steadily bleeding their numbers. It is a rather short, if not spectacular, battle.

@@.yellow;The Daughters of Liberty are utterly crushed.@@ $arcologies[0].name has been slightly damaged in the crossfire, but even as the last pockets of resistance are cleaned up, your citizens begin repairs themselves. The effect on your reputation is @@.green;immensely positive,@@ since you won without lifting a finger and the arcology's prosperity, if anything, was benefited. However, the PMCs took the lion's share of the loot.

<<run cashX(-10000, "war")>>
<<run cashX(forceNeg(Math.trunc($cash*0.3)), "war")>>
<<set $arcologies[0].prosperity = Math.trunc($arcologies[0].prosperity*0.5)>>
<<run repX(500, "war")>>
<<set $daughtersVictory = 3>>
<<set $desc = "a leftover banner bearing Daughters of Liberty insignia">>
<<set $trinkets.push($desc)>>

<<setLocalPronouns $traitor>>
When $traitor.slaveName finally manages to return to you, $he explains what happened. $He caught wind of the military contractors working in the area and succeeded in goading the Daughters of Liberty into attacking the supposed slaver troop. Once it became clear that the untrained ex-slaves and their saviors stood no chance against a coordinated force, they beat a hasty retreat for your arcology under the assumption that the codes you gave them would allow them a fortifiable position. But alas, they found nothing more than their demise.

<<set $traitor.assignment = "rest">>
<<if $traitorStats.PCpregSource > 0 && $PC.preg > 0 && $PC.pregSource == 0>>
	<<set $PC.pregSource = $traitor.ID>>
<</if>>
<<if $traitorStats.PCmother > 0>>
	<<set $PC.mother = $traitor.ID>>
<</if>>
<<if $traitorStats.PCfather > 0>>
	<<set $PC.father = $traitor.ID>>
<</if>>
<<for _pca = 0; _pca < $slaves.length; _pca++>>
	<<if $traitorStats.traitorMother.includes($slaves[_pca].ID)>>
		<<set $slaves[_pca].mother = $traitor.ID>>
	<</if>>
	<<if $traitorStats.traitorFather.includes($slaves[_pca].ID)>>
		<<set $slaves[_pca].father = $traitor.ID>>
	<</if>>
	<<if $traitorStats.traitorPregSources.includes($slaves[_pca].ID) && $slaves[_pca].preg > 0 && $slaves[_pca].pregSource == 0>>
		<<set $slaves[_pca].pregSource = $traitor.ID>>
	<</if>>
<</for>>
<<if $incubator > 0>>
	<<for _pca = 0; _pca < $tanks.length; _pca++>>
		<<if $traitorStats.traitorMotherTank.includes($tanks[_pca].ID)>>
			<<set $tanks[_pca].mother = $traitor.ID>>
		<</if>>
		<<if $traitorStats.traitorFatherTank.includes($tanks[_pca].ID)>>
			<<set $tanks[_pca].father = $traitor.ID>>
		<</if>>
	<</for>>
<</if>>
<<if $nursery > 0>>
	<<for _pca = 0; _pca < $cribs.length; _pca++>>
		<<if $traitorStats.traitorMotherTank.includes($cribs[_pca].ID)>>
			<<set $cribs[_pca].mother = $traitor.ID>>
		<</if>>
		<<if $traitorStats.traitorFatherTank.includes($cribs[_pca].ID)>>
			<<set $cribs[_pca].father = $traitor.ID>>
		<</if>>
	<</for>>
<</if>>
<<if $traitorStats.boomerangBody > 0>>
	<<set _pca = $slaveIndices[$traitorStats.traitorBody]>>
	<<if def _pca>>
		<<set $slaves[_pca].origBodyOwnerID = $traitor.ID>>
	<</if>>
<</if>>
<<for _pca = 0; _pca < $slaves.length; _pca++>>
	<<run WombChangeID($slaves[_pca], $traitor.missingParentTag, $traitor.ID)>>
	<<run WombChangeGeneID($slaves[_pca], $traitor.missingParentTag, $traitor.ID)>>
<</for>>
<<run newSlave($traitor)>> /* skip New Slave Intro */
<<set $traitor = 0, $traitorStats = 0, $traitorType = 0>>


code:
:: P coup collaboration [nobr]

<<if $traitor != 0>>
	<<set _weeks = $traitorWeeks, _pregWeeks = $traitorWeeks, $traitorWeeks = 0>>
	<<setLocalPronouns $traitor>>
	<<run Enunciate($traitor)>>

	<<set WombProgress($traitor, _pregWeeks, _pregWeeks)>> /* In all cases should be done */
	<<set WombUpdatePregVars($traitor)>>
	<<if WombBirthReady($traitor, $traitor.pregData.normalBirth) > 0 >> /* normal birth case, partial birthers not supported*/
		<<set $traitor.preg = -1, $traitor.counter.birthsTotal += WombBirthReady($traitor, $traitor.pregData.normalBirth)>>
		<<set WombFlush($traitor)>>
	<<else>>/* still pregnant slave */
		<<set $traitor.preg = WombMaxPreg($traitor)>> /*most ready fetus is a base*/
		<<set $traitor.pregWeek = WombMaxPreg($traitor)>> /*most ready fetus is a base*/
	<</if>>
	<<run SetBellySize($traitor)>> /*In any case it's useful to do.*/
<</if>>

You are awakened in the middle of the night by an odd darkness. All the normal lights of your healthy arcology are out. Main power has gone out, and you claw your way in the darkness to the video feeds, running on emergency backup.

Armed rebels are running unchecked down the corridors. <<if $mercenaries > 0>>Your mercenaries' quarters is locked down, but from the interior feeds you can see a few of them lying in their beds or slumped in chairs as gas is pumped through the ventilation systems. <</if>>The security drones are actively assisting the rebels.
<<if $traitor != 0>>
	You can see
	<<if $traitor.bellyPreg >= 100000>>
		the staggeringly pregnant
	<<elseif $traitor.bellyPreg >= 15000>>
		the heavily pregnant
	<<elseif $traitor.bellyPreg >= 10000>>
		the very pregnant
	<<elseif $traitor.bellyPreg >= 5000>>
		the pregnant
	<</if>>
	$traitor.slaveName on one of the feeds,
	<<if $traitorType == "agent">>
		trying to sabotage a stockpile of explosives.
	<<elseif $traitorType == "horror">>
		encouraging $his fellow fighters<<if canTalk($traitor)>> with yells<</if>> from the back lines.
	<<elseif $traitorType == "defiant">>
		encouraging $his fellow fighters<<if canTalk($traitor)>> with yells<</if>> and spearheading the charge<<if $traitor.bellyPreg >= 15000>> as best $he can<</if>>.
	<<else>>
		encouraging $his fellow fighters<<if canTalk($traitor)>> with yells<</if>>, and when that fails, leading them by example<<if $traitor.bellyPreg >= 15000>> as best $he can<</if>>.
	<</if>>
<</if>>
In areas already controlled by the Daughters, slaveowners are being summarily shot in the streets. "<<= properTitle()>>," $assistant.name says, "the Daughters of Liberty are in complete control of all arcology systems. Remain here."

After half an hour of watching the executions,
<<if $traitor != 0>>
	<<if $traitorType == "agent">>
		$traitor.slaveName <<if $traitor.bellyPreg >= 10000>>waddles<<else>>steps<</if>> slowly into your office, dreading what is to come. You greet $him by name and $he breaks down in tears. As $he takes a shot at the nearest Daughter, they open fire on the both of you. Your cause of death is that of many an oppressor — an aneurysm of the cerebellum, in 9mm Parabellum.
	<<elseif $traitorType == "horror">>
		$traitor.slaveName <<if $traitor.bellyPreg >= 10000>>waddles<<else>>steps<</if>> gingerly into your office, not happy to be here once more. You greet $him by name, in response to which $he cowers in fear<<if hasAnyArms($traitor)>> and drops $his weapon<</if>>. Not interested in giving you an opportunity, $his comrade takes the shot. Your cause of death is that of many an oppressor — an aneurysm of the cerebellum, in 9mm Parabellum.
	<<elseif $traitorType == "defiant">>
		$traitor.slaveName <<if $traitor.bellyPreg >= 10000>>waddles<<else>>strides<</if>> confidently into your office. You greet $him by name, in response to which $he <<if hasAnyArms($traitor)>>deals<<else>>orders one of $his comrades to give<</if>> you a vicious open-handed slap that knocks you out of your chair.
		<<if !canTalk($traitor)>>
			$His last words to you are nothing more than a rude gesture.
		<<elseif $traitor.slaveName != $traitor.birthName>>
			"My name," $he <<say>>s, "i<<s>>
			<<if SlaveStatsChecker.checkForLisp($traitor)>>
				<<= lispReplace($traitor.birthName)>>.
			<<else>>
				$traitor.birthName.
			<</if>>
			I'm going to enjoy thi<<s>> after what you did to me."
		<<else>>
			"You <<s>>tupid fuck," $he <<say>>s. "I'm going to enjoy thi<<s>> after what you did to me."
		<</if>>
		Your cause of death is that of many an oppressor — an aneurysm of the cerebellum, in 9mm Parabellum.
	<<else>>
		$traitor.slaveName <<if $traitor.bellyPreg >= 10000>>waddles<<else>>strides<</if>> confidently into your office. You greet $him by name, in response to which $he <<if hasAnyArms($traitor)>>deals<<else>>orders one of $his comrades to give<</if>> you a vicious open-handed slap that knocks you out of your chair.
		<<if !canTalk($traitor)>>
			$He wastes no time trying to speak to the likes of you.
		<<elseif $traitor.slaveName != $traitor.birthName>>
			"My name," $he <<say>>s, "i<<s>>
			<<if SlaveStatsChecker.checkForLisp($traitor)>>
				<<= lispReplace($traitor.birthName)>>."
			<<else>>
				$traitor.birthName."
			<</if>>
		<<else>>
			"You <<s>>tupid fuck," $he <<say>>s.
		<</if>>
		Your cause of death is that of many an oppressor — an aneurysm of the cerebellum, in 9mm Parabellum.
	<</if>>
<<else>>
	the leader of the assault strides confidently into your office, deals you a vicious open-handed slap that knocks you out of your chair, and holds a pistol to your forehead. Your cause of death is that of many an oppressor — an aneurysm of the cerebellum, in 9mm Parabellum.
<</if>>

''GAME OVER''

<<set $ui = "start">>


code:
:: P coup loss [nobr]

<<if $traitor != 0>>
	<<set _weeks = $traitorWeeks, _pregWeeks = $traitorWeeks, $traitorWeeks = 0>>
	<<setLocalPronouns $traitor>>

	<<set WombProgress($traitor, _pregWeeks, _pregWeeks)>> /* In all cases should be done */
	<<set WombUpdatePregVars($traitor)>>
	<<if WombBirthReady($traitor, $traitor.pregData.normalBirth) > 0 >> /* normal birth case, partial birthers not supported*/
		<<set $traitor.preg = -1, $traitor.counter.birthsTotal += WombBirthReady($traitor, $traitor.pregData.normalBirth)>>
		<<set WombFlush($traitor)>>
	<<else>>/* still pregnant slave */
		<<set $traitor.preg = WombMaxPreg($traitor)>> /*most ready fetus is a base*/
		<<set $traitor.pregWeek = WombMaxPreg($traitor)>> /*most ready fetus is a base*/
	<</if>>
	<<run SetBellySize($traitor)>> /*In any case it's useful to do.*/
<</if>>

You are awakened in the middle of the night by a jolt that shakes the entire arcology, accompanied by a distant boom. It is followed by another, and another, and then the wail of the arcology's alarm systems, and then finally by a faint crackle that grows to a constant chatter of gunfire. Main power goes out, and you claw your way in the darkness to the video feeds, running on emergency backup.

<<if $mercenaries > 0>>Sheets of flame are pouring from your mercenaries' quarters; it seems they were among the first targets for bombs. <</if>>Heavy gunfire is bringing down security drones by the scores. The attackers seem to have figured out where the drone hangars are, and are laying down fire on the exits the drones must use to get into action.
<<if $traitor != 0 && $traitorType != "hostage">>
	You can see
	<<if $traitor.bellyPreg >= 100000>>
		the staggeringly pregnant
	<<elseif $traitor.bellyPreg >= 15000>>
		the heavily pregnant
	<<elseif $traitor.bellyPreg >= 10000>>
		the very pregnant
	<<elseif $traitor.bellyPreg >= 5000>>
		the pregnant
	<</if>>
	$traitor.slaveName on one of the feeds,
	<<if $traitorType == "agent" || $traitorType == "trapper">>
		trying to sabotage a stockpile of explosives.
	<<elseif $traitorType == "horror">>
		encouraging $his fellow fighters<<if canTalk($traitor)>> with yells<</if>> from the back lines.
	<<elseif $traitorType == "defiant">>
		encouraging $his fellow fighters<<if canTalk($traitor)>> with yells<</if>> and spearheading the charge<<if $traitor.bellyPreg >= 15000>> as best $he can<</if>>.
	<<else>>
		encouraging $his fellow fighters<<if canTalk($traitor)>> with yells<</if>>, and when that fails, leading them by example<<if $traitor.bellyPreg >= 15000>> as best $he can<</if>>.
	<</if>>
<</if>>
In areas already controlled by your enemies, slaveowners are being summarily shot in the streets. <<if $hackerSupport == 1>>"<<= properTitle()>>," $assistant.name says, "the Daughters of Liberty are attempting a coup. They appear to have smuggled a significant quantity of arms and explosives into the arcology.<<else>>"<<= properTitle()>>," $assistant.name says, "the Daughters of Liberty are attempting a coup. They appear to have smuggled a significant qua — zzzt —" There is nothing more from the computer systems.<</if>>

<<if $traitor != 0>>
	If this were a movie,
	<<if $traitorType == "agent" || $traitorType == "hostage" || $traitorType == "trapper">>
		you'd bleed out in the arms of the sobbing $traitor.slaveName
	<<else>>
		$traitor.slaveName would be the one to kill you
	<</if>>
	after a desperate struggle in your office. Reality does not have such a refined sense of drama.
<</if>>
If the Daughters had any plans to take you alive, they are lost to the exigencies of combat. Your penthouse remains locked down, forcing them to use breaching charges to make an entrance. These prove entirely too effective, and your last impression is of the floor heaving bodily up toward the ceiling.

''GAME OVER''

<<set $ui = "start">>


code:
:: P defense fears [nobr]

<<set $nextButton = " ", $nextLink = "Random Nonindividual Event">> /* hide button until user makes a selection */
<<set $fcnn.push("...hiring mercenaries to act as a defensive force against the old world...")>>

A deputation of slaveowning citizens comes to see you. Though they haven't experienced anything so disturbing as your dealings with the Daughters of Liberty, rumors of unrest and revolution are running through the Free Cities. They are upset with the lack of troops to protect the arcology. This is quite a development in the young history of Free Cities society; only a few months ago, the idea of collective defense would have been a bitterly controversial one. It's still an employer's market for mercenaries; you could easily hire some. Alternatively, your citizens would probably agree to fund them by subscription — the word "taxes" would be impolitic.

''This is a unique and very important opportunity'' and must not be taken lightly.

<<link "Install a full platoon by subscription">>
	<<set $nextButton = "Continue">><<UpdateNextButton>> /* unlock Continue button */
	<<replace "#result">>
	You hire a full platoon of reputable mercenaries and a veteran officer to command them, kit them in excellent gear, and quarter them in the arcology. Their pay is on an escrow basis; the huge lump sum you paid will serve to secure them, and its interest will constitute their pay. The sight of many armed men on patrol has reassured the worried slaveowners, but they are @@.red;resentful@@ of having to take this step themselves.
	<<run repX(-500, "event")>>
	<<set $mercenaries = 3>>
	<</replace>>
<</link>>

<<link "Install a full platoon at your expense">>
	<<set $nextButton = "Continue">><<UpdateNextButton>> /* unlock Continue button */
	<<replace "#result">>
	You hire a full platoon of reputable mercenaries and a veteran officer to command them, kit them in excellent gear, and quarter them in the arcology. Their pay is on an escrow basis; the huge lump sum you paid will serve to secure them, and its interest will constitute their pay. The sight of many armed men on patrol has reassured the worried slaveowners, and they are @@.green;grateful@@ to you for seeing to their defense.
	<<run repX(2500, "event")>>
	<<run cashX(-10000, "mercenaries")>>
	<<set $mercenaries = 3>>
	<</replace>>
<</link>> <<if ($PC.skill.warfare >= 100) || ($PC.career == "arcology owner")>>//This will cost <<print cashFormat(10000)>> and some upkeep, @@.springgreen;reduced by your mercenary contacts@@//<<else>>//This will cost <<print cashFormat(10000)>> and incur significant upkeep costs//<</if>>

<<link "Refuse to quarter so many troops in your arcology">>
	<<set $nextButton = "Continue">><<UpdateNextButton>> /* unlock Continue button */
	<<replace "#result">>
	The consensus that the arcology is vulnerable triggers an @@.red;exodus@@ of your most wealthy and valuable citizens, and your reputation @@.red;suffers@@ grievously.
	<<set $arcologies[0].prosperity = Math.trunc($arcologies[0].prosperity*0.8)>>
	<<run repX(-1000, "event")>>
	<</replace>>
<</link>>


code:
:: P FS Announcement [nobr]

<<set $nextButton = "Continue", $nextLink = "Random Nonindividual Event">>

<<set $FSAnnounced = 1>>
<<set $FSCredits += 1>>
<<set $FSGotRepCredits = 1>>
<<setAssistantPronouns>>

	<<if $seeImages == 1>><<= assistantArt(3)>><</if>>

The simple pleasure of power has to be experienced to be understood. You often take a moment to stand on a balcony overlooking an interior atrium, watching the living, breathing, flowing current of your demesne. <<= capFirstChar($assistant.name)>> knows to allow you these moments of peace.

You immediately pay attention, therefore, when _heA interrupts. "<<= properTitle()>>," _heA says, "this is an appropriate moment to bring a serious matter to your attention. I monitor conversations, social media, and general opinion within the arcology where I can. You are respected, and the inhabitants of this arcology are starting to look to you to give direction to society."

"This is not a situation that requires your attention," _heA continues. "You can continue to lead them by simple example. Or, you can take a more active role in defining the future. The rewards could be considerable. I will make the necessary additions to the arcology management interface to support societal modification."