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>>


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.

repo_name: NovX/fc

license: mit


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>>
	<<run ageSlaveWeeks($traitor, _weeks)>>
<</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")>>
			<<run generateSalonModifications($activeSlave)>>
			<<set $activeSlave.weight = random(-20,30)>>
			<<set $activeSlave.muscles = random(20,80)>>
			<<set $activeSlave.waist = random(10,80)>>
		<<else>>
			<<set $activeSlave = GenerateNewSlave("XX")>>
			<<run generateSalonModifications($activeSlave)>>
			<<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")>>
		<<run generateSalonModifications($activeSlave)>>
		<<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")>>
		<<run generateSalonModifications($activeSlave)>>
		<<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")>>
		<<run generateSalonModifications($activeSlave)>>
		<<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")>>
		<<run generateSalonModifications($activeSlave)>>
		<<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>>
<<run ageSlaveWeeks($traitor, _weeks)>>

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")>>
<<set $arcologies[0].prosperity = Math.trunc($arcologies[0].prosperity*0.9)>>
<<run repX(5000, "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 $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."


code:
:: P hacker support [nobr]

<<set $nextButton = "End Call", $nextLink = "Random Nonindividual Event", $hackerSupport = 0>>

<<setAssistantPronouns>>
<<set $fcnn.push("...the Daughters of Liberty as 'cyberterrorists', after an attempted...")>>

While you are reviewing your information security posture in light of the Daughters of Liberty and their apparent ability to get into your systems, you receive yet another well-secured message unannounced. To your surprise, it isn't the Daughters. It's a video call from a rather interesting individual. She is quite pretty, and has a variety of facial tattoos and piercings; her face is androgynous enough that you aren't entirely sure what gender (probably) she considers herself. Her pale skin is illuminated by the diffuse glow from what's clearly a huge bank of monitors, and the clacking sound of a traditional mechanical keyboard can be heard over the line.

"Hi!" she says cheerfully. "I seen you been contacted by these Daughters cunts. They been after me too. They're pretty decent at cyberwarfare, but I'm fuckin' better." A momentary discomfort crosses her face, and she shifts a little in her seat. "They're building up for somethin' big. Wouldn't a' contacted you at all, let us both fight our own fights, but I gotta short fuse on this vulnerability and I need to bribe a weak link. Your money can get me in; my skills can fuck 'em up. What do you say?<<if $traitorType == "hostage">> If it sweetens the deal at all, I can even get $traitor.slaveName out of hot water. Not the brightest, that one.<</if>>"
<<if $assistant.personality > 0>>
	<<= capFirstChar($assistant.name)>> has been trying to track the contact, but fails horribly. The hacker glances at _hisA
	<<switch $assistant.appearance>>
	<<case "monstergirl">>
		frustrated little monster<<= _girlA>> avatar
	<<case "shemale">>
		angry little shemale avatar
	<<case "amazon">>
		raging little amazon avatar
	<<case "businesswoman">>
		mortified little business<<= _womanA>> avatar
	<<case "fairy" "pregnant fairy">>
		pouting little fairy avatar
	<<case "goddess">>
		scornful little goddess avatar
	<<case "hypergoddess">>
		scornful "little" goddess avatar
	<<case "loli">>
		pouting little _girlA avatar
	<<case "preggololi">>
		pouting little _girlA avatar
	<<case "schoolgirl">>
		embarrassed little school<<= _girlA>> avatar
	<<case "angel">>
		terrified little angel avatar
	<<case "cherub">>
		terrified little cherub avatar
	<<case "incubus">>
		indignant little incubus avatar
	<<case "succubus">>
		frustrated little succubus avatar
	<<case "imp">>
		pouting little imp avatar
	<<case "witch">>
		frustrated little witch avatar
	<<case "ERROR_1606_APPEARANCE_FILE_CORRUPT">>
		expressionless little corrupted avatar
	<<default>>
		symbol
	<</switch>>
	and chuckles. "Haha, cute."
<</if>>

As she finishes speaking, another spasm distorts her expression, and then she suddenly relaxes. After a moment, she looks down, out of your field of view, and hisses, <<if $seeDicks == 0>>"Keep licking, bitch, I like aftershocks. Work my clit, or it's your asshole."<<else>>"Swallow, bitch. Every fucking drop, or it's your asshole."<</if>>

<<link "Decline">>
	<<set $nextButton = "Continue">><<UpdateNextButton>>
	<<replace "#result">>
	She's almost certainly trying to extort a quick payoff. You politely decline. "Meh," she shrugs. <<if $seeDicks == 0>>She shudders again and there's a gasping sound from down below. She looks down again, and as she ends the video call, you hear her say "Good job. Ha ha, fuck you, slut, it's your asshole anyway. Get me my strap-on."<<else>>She shudders and there's a popping sound from down below, like a cockhead springing free of someone's mouth. Sure enough, a still-erect dickhead springs into view from the bottom of the screen; for that to be visible she has to be truly huge, almost as long as one of her forearms. She looks down again, and as she ends the video call, you hear her say "Good job. Ha ha, fuck you, slut, it's your asshole anyway. Rape time! Turn around." Tearful begging can be heard before the call closes.<</if>>
	<<if $traitorType == "hostage">>
		<<set $traitor = 0>>
	<</if>>
	<</replace>>
<</link>>

<<link "Accept">>
	<<set $nextButton = "Continue">><<UpdateNextButton>>
	<<replace "#result">>
	You transfer the funds. "Meh," she shrugs. <<if $seeDicks == 0>>She shudders again and there's a gasping sound from down below. She looks down again, and as she ends the video call, you hear her say "Good job. Ha ha, fuck you, slut, it's your asshole anyway. Get me my strap-on."<<else>>She shudders and there's a popping sound from down below, like a cockhead springing free of someone's mouth. Sure enough, a still-erect dickhead springs into view from the bottom of the screen; for that to be visible she has to be truly huge, almost as long as one of her forearms. She looks down again, and as she ends the video call, you hear her say "Good job. Ha ha, fuck you, bitch, it's your asshole anyway. Buttrape time!"<</if>>
	<<if $assistant.personality > 0>>
		<<switch $assistant.appearance>>
		<<case "monstergirl">>
			She seems to have left a present for your poor personal assistant; _hisA little monster<<= _girlA>> avatar is visible in the bottom corner of a screen on the wall opposite you, and is writhing around, babbling and orgasming continuously.
		<<case "shemale">>
			She seems to have left a present for your poor personal assistant; _hisA little shemale avatar is visible in the bottom corner of a screen on the wall opposite you. _HeA's being assraped by a representation of the hacker in the same style, and is helplessly masturbating as _heA gets fucked.
		<<case "amazon">>
			She seems to have left a present for your poor personal assistant; _hisA little amazon avatar is visible in the bottom corner of a screen on the wall opposite you, and is writhing around, babbling and squirting continuously.
		<<case "businesswoman">>
			She seems to have left a present for your poor personal assistant; _hisA little business<<= _womanA>> avatar is visible in the bottom corner of a screen on the wall opposite you, and seems to be under a compulsion to strip out of _hisA suit. _HeA's blushing furiously at _hisA inability to control _himselfA.
		<<case "fairy">>
			She seems to have left a present for your poor personal assistant; _hisA little fairy avatar is visible in the bottom corner of a screen on the wall opposite you, and is grinding against the stamen of a virtual flower. _HeA repeatedly moans your name as _hisA body twitches and jerks against the plant.
		<<case "pregnant fairy">>
			She seems to have left a present for your poor personal assistant; _hisA little fairy avatar is visible in the bottom corner of a screen on the wall opposite you, and is currently perched upon a virtual flower with the stamen buried in _hisA little ass. Milk leaks from _hisA breasts down _hisA swollen belly as _heA writhes in both pain and pleasure, slowly giving birth to a pair of fairies.
		<<case "goddess">>
			She seems to have left a present for your poor personal assistant; _hisA little goddess avatar is visible in the bottom corner of a screen on the wall opposite you. _HeA's being facefucked by a representation of the hacker in the same style, meekly struggling, but flushed with arousal.
		<<case "hypergoddess">>
			She seems to have left a present for your poor personal assistant; _hisA "little" goddess avatar is visible in the bottom corner of a screen on the wall opposite you. _HeA's being assfucked by a representation of the hacker in the same style, while _hisA large breasts are roughly milked. Every few thrusts coincide with another baby slipping out alongside an orgasm.
		<<case "loli">>
			She seems to have left a present for your poor personal assistant; _hisA little _girlA avatar is visible in the bottom corner of a screen on the wall opposite you.
			<<if $seePreg != 0>>
				_HisA virginity is being forcibly taken by a representation of the hacker in the same style. _HeA cries out as she cums in _hisA fertile womb; again and again the hacker uploads her virus into _hisA abused pussy until _hisA sagging bloated belly is touching the floor. _HeA leaves the avatar drooling cum to rest on _hisA new pregnancy. _HeA may need to be reset after this experience.
				<<set $assistant.appearance = "preggololi">>
			<<else>>
				_HeA's writhing on the floor in tears as a series of hands tickles _hisA body. They shift their focus to _hisA nipples and pussy as _heA begins moaning with lust. As _heA twitches and jerks before the mounting orgasm, they vanish, leaving _himA writhing in sexual frustration before you. Before your eyes, _hisA hands shoot to _hisA crotch and _heA climaxes lewdly in front of you.
			<</if>>
		<<case "preggololi">>
			She seems to have left a present for your poor personal assistant; _hisA little _girlA avatar is visible in the bottom corner of a screen on the wall opposite you. _HisA vagina is being forcibly fucked by a representation of the hacker in the same style. Each thrust causes _himA to rock atop _hisA bulging pregnancy until the hacker unloads into _himA. She leaves the avatar drooling cum to rest on _hisA overfilled belly.
		<<case "schoolgirl">>
			She seems to have left a present for your poor personal assistant; _hisA little school<<= _girlA>> avatar is visible in the bottom corner of a screen on the wall opposite you, and is blushing furiously as _heA compulsively fists _himselfA.
		<<case "angel">>
			She seems to have left a present for your poor personal assistant; _hisA little angel avatar is visible in the bottom corner of a screen on the wall opposite you. _HisA virginity is being forcibly taken by a representation of the hacker in the same style. _HeA pleads for them to stop before _heA falls, but it goes unheeded. _HeA cries out in orgasm as the hacker unloads their corrupting jism deep into _hisA womb before pulling out and letting _himA drop to the ground. _HeA rolls from side to side in anguish,
			<<if $seePreg != 0>>
				gripping _hisA cum filled belly as it rounds more and more, before settling on _hisA back and cradling _hisA now full-term pregnancy. As it continues to grow, _hisA body becomes increasingly withered, until _heA appears to be pregnant with a fully grown person.
				<<if $seeExtreme == 1>>
					As the light fades from _himA, _hisA gravid belly begins to shudder violently, its occupant trying to tear its way free. Before long, it splits open, revealing a gorgeous _womanA with all the features of the fallen angel. $assistant.name spreads _hisA bat-like wings as _heA rises from the disintegrating remains of _hisA once holy body, turns to you, and sensually traces _hisA new curves seductively.
				<<else>>
					As the light fades from _himA, _hisA gravid belly begins to shudder violently, its occupant trying to find its way out. A pair of arms burst forth from _hisA ruined pussy, followed a perfectly endowed _womanA with all the features of the former angel. $assistant.name rises and spreads _hisA bat-like wings as the remains of _hisA once holy body turn to dust behind _himA. _HeA turns to you, sensually tracing the contours of _hisA new body, and blows you a kiss.
				<</if>>
			<<else>>
				alternating between groping _hisA swelling breasts and fingering _hisA aching pussy, before screaming with climax as _hisA body twists into a more suiting form. $assistant.name rises to _hisA feet, spreads _hisA bat-like wings, and sensually traces _hisA new curves before bending over revealing _hisA sopping wet cunt. "All for you, <<print $PC.slaveName>>, you know you want it."
			<</if>>
			<<set $assistant.appearance = "succubus">>
		<<case "cherub">>
			She seems to have left a present for your poor personal assistant; _hisA little cherub avatar is visible in the bottom corner of a screen on the wall opposite you, and is writhing around, both hands on _hisA pussy and masturbating furiously.
		<<case "incubus">>
			She seems to have left a present for your poor personal assistant; _hisA little incubus avatar is visible in the bottom corner of a screen on the wall opposite you, _hisA dick steadily growing longer and prehensile. As _heA gasps in shock, it rockets into _hisA mouth and down _hisA throat. It delves deeper into the struggling demon, _hisA intestines bulging under _hisA skin as _hisA dick snakes through _himA, until it pops out the other end. It begins pistoning in and out of _hisA body, literally forcing _himA to fuck _himselfA until _heA cums, causing it to rapidly retract back through _hisA body. _HeA collapses to the floor, coughing up cum and struggling to catch _hisA breath.
		<<case "succubus">>
			She seems to have left a present for your poor personal assistant; _hisA little succubus avatar is visible in the bottom corner of a screen on the wall opposite you. _HeA has adjusted _hisA form to better suit _hisA lover: a representation of the hacker in the same style. _HeA calls out a silent name, something you'll never know, as she comes deep into _hisA pussy. They shift positions, $assistant.name standing, legs spread, with _hisA arms against the edge of the screen as the hacker fucks _hisA rear.
			<<if $seePreg != 0>>
				As _heA bucks against her, it is obvious that _hisA belly has rounded significantly; swaying slightly with every thrust. Cumming again, the hacker pulls _hisA leg up over their shoulder and begins thrusting anew, _hisA middle heavily rounded with child now, quickly bring both to orgasm. _HeA is left to slide down the edge of the screen and upon reaching the bottom, spreads _hisA legs and begins laboring on _hisA new child. Each imp that passes through _hisA netherlips brings another orgasm and muffled shout of the hacker's name. Once the last hacker imp leaves _hisA womb, _heA
			<<else>>
				Position after position, orgasm after orgasm, you are forced to watch. Once the hacker is satisfied, _heA is left to slide down the edge of the screen, and, upon reaching the bottom,
			<</if>>
			reaches down, gathers a trace of cum, and licks it off _hisA finger while staring you down, stating "$PC.slaveName will never be as good as..." before passing out.
		<<case "imp">>
			She seems to have left a present for your poor personal assistant; _hisA little impish avatar is visible in the bottom corner of a screen on the wall opposite you, and is writhing around, vigorously fisting _hisA pussy.
		<<case "witch">>
			She seems to have left a present for your poor personal assistant; _hisA little witch avatar is visible in the bottom corner of a screen on the wall opposite you being assaulted by tentacles. They've already managed to rip _hisA robes off and are currently forcing themselves into all _hisA holes. Only once every orifice has two to three tentacles crammed into it does the beast start fucking _himA. Before long,
			<<if $seePreg != 0>>
				half the tentacles are pumping the poor _girlA full of cum while the rest fill _himA with eggs; _heA struggles valiantly at first, but as _hisA middle grows larger and heavier, _heA is forced to accept _hisA fate. When the tentacles feel they can fit no more eggs into _himA, they pull _himA into a sitting position and spread _hisA legs wide; just in time for the first hatched larva to begin squeezing its way from _hisA packed womb. Moments later, another plops from _hisA rear, and yet another squirms up _hisA throat and out _hisA mouth, flopping wetly onto _hisA chest. With each path cleared, the rest of the larvae begin to pour from _hisA body.
			<<else>>
				the tentacles begin pumping the poor _girlA full of cum; _heA struggles valiantly at first, but as _hisA middle grows larger and heavier, _heA is forced to accept _hisA fate. As they vacate _hisA body, a large surge of fluid follows.
			<</if>>
			Given the size of _hisA belly, it may be awhile before _heA is done.
		<<case "ERROR_1606_APPEARANCE_FILE_CORRUPT">>
			She seems to have left a present for your poor personal assistant; _hisA little bugged avatar is visible in the bottom corner of a screen on the wall opposite you, and is writhing disturbingly. _HisA arms twist into a pair of extremely phallic tentacles, which it uses to forcefully fuck _hisA ass and pussy.
		<</switch>>
	<</if>>
	<<run cashX(-10000, "event")>>
	<<set $hackerSupport = 1>>
	<</replace>>
<</link>> //This will cost <<print cashFormat(10000)>>//


code:
:: P invasion [nobr]

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

<<set $invasionVictory = 1, $peacekeepers = 0>>
<<setAssistantPronouns>>

The day that wasn't supposed to come is here. The troubled little country next door is falling apart. Last month, its stock market collapsed. Last week, its government fell. Yesterday, there was open looting in its cities. And today, a faction of disaffected citizens that blames the Free Cities for siphoning off business and causing the collapse seized weapons from unguarded army depots<<if ($terrain == "marine") || ($terrain == "oceanic")>>, armed merchant ships and private vessels, and are approaching the Free City over the water<<else>> and advanced towards your home<</if>>.

Sirens are blaring; there is a crump far above as $arcologies[0].name's defensive systems knock down one of the first mortar rounds fired into the Free City. The lights in your office changed to a harsh emergency scheme as soon as the attack became a certainty.
<<if $assistant.personality == 0>>
	Your personal assistant offers terse reports on the efficiency of the point defense fire.
<<else>>
	You get a report on the artillery battle from $assistant.name, whose avatar is showing off _hisA prowess at point defense.
	<<switch $assistant.appearance>>
	<<case "monstergirl">>
		_HisA tentacle hair is spread out and forward, forming a concave shape around _hisA face, and _heA's firing beams from _hisA eyes
	<<case "shemale">>
		_HeA's using both hands to aim _hisA massive erection, and is firing blasts of cum
	<<case "amazon">>
		_HeA's holding a hide shield and a club, which _heA's using to swat
	<<case "businesswoman">>
		_HeA looks as immaculate as ever. The stern little business<<= _womanA>> is cradling an expensive fowling piece, which _heA's using to fire
	<<case "fairy">>
		_HeA zips around in the air, getting in close to fire a barrage of little balls of light
	<<case "pregnant fairy">>
		Striking a match almost half as long as _heA is, _heA happily skips along a line of fireworks and lights them as _heA goes. One by one they blast off and fly into the sky
	<<case "goddess">>
		_HisA expression is one of affronted maternal protectiveness, and _heA's using outstretched hands to project beams of pure light
	<<case "hypergoddess">>
		_HisA expression is one of affronted maternal protectiveness, and _heA's using outstretched hands to project beams of pure light
	<<case "loli">>
		_HeA's wearing an annoyed expression and is pretending to shoot _hisA fingers
	<<case "preggololi">>
		_HeA's wearing a tired expression and is pretending to shoot _hisA fingers
	<<case "schoolgirl">>
		_HeA's wearing a fierce expression and holding a baseball bat, using it to swat
	<<case "angel">>
		_HeA has _hisA wings spread to safeguard your arcology and firing beams of holy light
	<<case "cherub">>
		_HeA is darting around, firing beams of holy light
	<<case "incubus">>
		_HeA is carefully aiming _hisA cumshots
	<<case "succubus">>
		_HeA is flying around, using _hisA rear to catch depictions of projectiles and moaning lewdly with each hit.
	<<case "imp">>
		_HeA is darting around, throwing balls of darkness
	<<case "witch">>
		_HeA is using a broom to swat
	<<case "ERROR_1606_APPEARANCE_FILE_CORRUPT">>
		_HeA has split into countless fleshy tendrils and is rapidly swinging
	<<default>>
		The symbol radiates readouts of ammunition, power, and targeting, clean lines flashing
	<</switch>>
	<<if $assistant.appearance != "succubus">>at depictions of projectiles.<</if>>
<</if>>
It's going well. Whoever's in command of the attackers sees that their fire is having no effect, and orders an advance. The mortars and other artillery systems maintain their fire, trying to occupy as many guns as possible.

The loose militia lately organized by the arcology owners has been called out to defend the city. Its commander, seeing that the attackers have more passion than tactical skill, orders an immediate counterattack by anyone able<<if ($terrain == "marine") || ($terrain == "oceanic")>> to push the invaders landing in the dock areas back into the sea<</if>>. Technology has advanced to the point that rich militiamen who buy their own gear can form a powerful fighting force. With luck, the counterattack should shatter the enemy.

<<if $personalArms == 0>>Since you are not well armed or armored, you stay back and oversee the defense of your own arcology.<<elseif $personalArms == 1>>Since you are well armed and armored, you take part in the counterattack. Your exoskeleton mounts a smart mortar system that independently targets and eliminates enemy groups even as you lay down fire from the guns mounted on your forearms.<<else>>Since you are well armed and armored and your drones are combat ready, you take part in the counterattack. You are preceded into combat by a wedge of your drones, which lack the intelligence to take good cover but are remorseless and highly accurate. Your exoskeleton mounts a smart mortar system that independently targets and eliminates enemy groups even as you lay down fire from the guns mounted on your forearms.<</if>>

<<if $mercenaries == 0>>You are alone in contributing to the defense of your home.<<elseif $mercenaries == 1>>Your mercenaries see to the defense of $arcologies[0].name, ensuring that nothing that gets through will do truly serious damage.<<else>>Your mercenaries see to the defense of $arcologies[0].name, ensuring that nothing that gets through will do truly serious damage. There are enough of them that they can even spare a squad to accompany the counterattack. They're mostly old veterans of many bitter brush wars, and they go about the bloody business with the air of men and women who saw their first battlefield long before their hair was shot with grey.<</if>>

<<if $mercenaries + $personalArms < 2>>
	@@.red;The counterattack fails.@@ The enemy is eventually defeated, but only after they get mired in urban combat in the streets of the Free City. @@.red;$arcologies[0].name takes considerable damage from <<if $terrain == "ravine">>cliffside fire<<else>>stray fire<</if>>, and many supplies have been lost or stolen.@@ The repairs will be extremely costly.
	<<if $terrain == "ravine">>
	<<run cashX(forceNeg(Math.trunc($cash*0.8)), "war")>>
	<<run cashX(-50000, "war")>>
	<<else>>
	<<run cashX(forceNeg(Math.trunc($cash*0.9)), "war")>>
	<<run cashX(-10000, "war")>>
	<</if>>
<<elseif $mercenaries + $personalArms < 6>>
	@@.yellow;The counterattack succeeds.@@ @@.red;$arcologies[0].name takes minor damage from stray fire,@@ but the repairs are not too costly. Your participation in the counterattack that saved the Free City was noted, and @@.green;you are acclaimed as a protector of its people.@@
	<<set $invasionVictory = 2>>
	<<run cashX(forceNeg(Math.trunc($cash*0.2)), "war")>>
	<<run cashX(-5000, "war")>>
	<<run repX(5000, "event")>>
<<else>>

@@.green;The counterattack is a crushing success.@@ Your mercenary squad and your drones form an irresistible phalanx around you that smashes everything it touches. The enemy is put to flight, and you send your drones racing ahead to take captives. By law these are shared among the militia. There is talk that your contributions deserve more than a few wretched slaves in reward. A public subscription pays for the damage $arcologies[0].name took from stray fire, and @@.green;you are acclaimed a hero.@@
<<set $invasionVictory = 3>>
<<run repX(10000, "event")>>

<<set _newSlaves = []>>
<<for _i = 0; _i < 3; _i++>>
	<<if (random(0,99) < $seeDicks)>>
		<<set $oneTimeDisableDisability = 1>>
		<<set $activeSlave = GenerateNewSlave("XY")>>
	<<else>>
		<<set $oneTimeDisableDisability = 1>>
		<<set $activeSlave = GenerateNewSlave("XX")>>
	<</if>>
	<<set $activeSlave.origin = "$He is an enslaved prisoner of war.">>
	<<set _newSlaves.push($activeSlave)>>
<</for>>

<<set $menials += 5>>
<<set $desc = "a shot-torn flag of the failed nation whose militants attacked the Free City">>
<<set $trinkets.push($desc)>>

<<link "Sell your prisoners immediately">>
	<<replace "#result">>
	<<for _i = 0; _i < _newSlaves.length; _i++>>
		<<set _slaveCost = slaveCost(_newSlaves[_i])>>
		<<run cashX(_slaveCost, "slaveTransfer")>>
	<</for>>
	Prisoners sold.
	<</replace>>
<</link>>

<<link "Give your prisoners to citizens who displayed bravery during the counterattack">>
	<<replace "#result">>
	<<for _i = 0; _i < _newSlaves.length; _i++>>
		<<set _slaveCost = slaveCost(_newSlaves[_i])>>
		<<run repX(Math.trunc(_slaveCost/2), "event")>>
	<</for>>
	Prisoners @@.green;given away.@@
	<</replace>>
<</link>>

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

<</if>>


code:
:: P mercenaries [nobr]

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

<<if ($PC.skill.warfare >= 100)>>
	<<set _price = 2500>>
<<elseif ($PC.skill.warfare >= 50)>>
	<<set _price = 3725>>
<<else>>
	<<set _price = 5000>>
<</if>>

Another wave of security hysteria is sweeping the Free Cities. And this time, it's not based on rumor and alarmism. On the other side of the globe, a Free City was sacked by an old world army today. The Free City's handful of high-technology defenders and multitude of drones caused heavy casualties among the attackers, but eventually sheer weight of numbers wore them down.

Your Free City is on good terms with the nations that border it, unlike the unfortunate sacked city, which was next to a nation suffering total collapse and looking for a convenient target. However, there's no telling how long this will last. The situation in the small, troubled country close to the arcology you've been monitoring grows worse by the day<<if $nationHate > 0>>, and if rumor of your enslavement of some of their vulnerable citizens got out, its people may have cause to hate you.<</if>>

The budgetary difficulty many old world countries are in has resulted in unemployed soldiers looking for mercenary work. You could easily hire some of them to protect the arcology and fight in the militia if necessary. ''This is a unique opportunity.'' Without this security scare, it's unlikely you could convince any of your free-spirited tenants to even stay near a permanent armed presence.

/* the ordering here is bothering me - I feel like it should go from greatest to least */
<<link "Quarter a squad in the arcology">>
	<<replace "#result">>
	You hire some reputable mercenaries, kit them in excellent gear, and quarter them in $arcologies[0].name. The sight of armed men on patrol has @@.red;offended some of the more free-spirited citizens@@ of $arcologies[0].name.
	<<run repX(-100, "event")>>
	<<run cashX(forceNeg(_price), "mercenaries")>>
	<<set $mercenaries = 1>>
	<<set $mercFreeManpower = 15>>
	<</replace>>
<</link>> <<if ($PC.skill.warfare >= 50) || ($PC.career == "arcology owner")>>//This will cost <<print cashFormat(_price)>> and some upkeep, @@.springgreen;reduced by your mercenary contacts@@//<<else>>//This will cost <<print cashFormat(5000)>> and incur significant upkeep costs//<</if>>

<<link "Install a full platoon">>
	<<replace "#result">>
	You hire a full platoon of reputable mercenaries with a veteran officer to command them, kit them in excellent gear, and quarter them in $arcologies[0].name. The sight of many armed men on patrol has @@.red;deeply offended some of the more free-spirited citizens@@ of $arcologies[0].name.
	<<run repX(-500, "event")>>
	<<run cashX(forceNeg((_price*2)), "mercenaries")>>
	<<set $mercenaries = 3>>
	<<set $mercFreeManpower = 30>>
	<</replace>>
<</link>> <<if ($PC.skill.warfare >= 50) || ($PC.career == "arcology owner")>>//This will cost <<print cashFormat((_price*2))>> and some upkeep, @@.springgreen;reduced by your mercenary contacts@@//<<else>>//This will cost <<print cashFormat(10000)>> and incur significant upkeep costs//<</if>>

<<link "Do not quarter troops in your arcology">>
	<<replace "#result">>
		Having armed men on permanent watch is a step too far. $arcologies[0].name's security systems are formidable and will have to serve.
		<<set $mercenaries = 0>>
	<</replace>>
<</link>>


code:
:: P mercenary romeo [nobr]

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

<<set _romeoSlaves = $slaves.filter(function(s) { return s.fetish != "mindbroken" && s.fuckdoll == 0 && ["serve in the club", "serve the public", "whore", "work in the brothel"].includes(s.assignment); })>>
<<if _romeoSlaves.length == 0>>
	<<set _romeoSlaves = $slaves.filter(function(s) { return (s.counter.publicUse > 0) && (s.newGamePlus == 0) && (s.relationship > -3) && !["be your Concubine", "serve in the master suite"].includes(s.assignment); })>>
	<<if _romeoSlaves.length == 0>>
		<<set _name = setup.whiteAmericanSlaveNames.random()>>
	<<else>>
		<<set $activeSlave = _romeoSlaves.random()>>
	<</if>>
<<else>>
	<<set $activeSlave = _romeoSlaves.random()>>
<</if>>
<<if ndef $activeSlave>>
	<<set _name = setup.whiteAmericanSlaveNames.random()>>
<</if>>

<<if _name == 0>>
	<<set _slaveCost = slaveCost($activeSlave)>>
	<<set _slaveCost = (random(60,70)*Math.trunc(_slaveCost/100))>>
	<<set _slaveCost = 100*Math.trunc(_slaveCost/100)>>
	<<setLocalPronouns $activeSlave>>
<</if>>
<<setNonlocalPronouns $seeDicks>>

One of your mercenaries requests an interview. He's a worn, grey-haired tank of a man, made bulkier still by heavy ceramic plate armor and lots of ammunition and gear. The murderous submachine gun favored for city fighting looks like a toy in his hands. But as he sits at your invitation and accepts a
<<if $PC.refreshmentType == 0>>
	$PC.refreshment
<<elseif $PC.refreshmentType == 1>>
	glass of $PC.refreshment
<<elseif $PC.refreshmentType == 2>>
	a plate of $PC.refreshment
<<elseif $PC.refreshmentType == 3>>
	line of $PC.refreshment
<<elseif $PC.refreshmentType == 4>>
	syringe of $PC.refreshment
<<elseif $PC.refreshmentType == 5>>
	pill of $PC.refreshment
<<elseif $PC.refreshmentType == 6>>
	tab of $PC.refreshment
<</if>>
proffered by an attentive slave _girlU, he seems almost bashful.

"<<= properTitle()>>, I'll say this straight. I'd like to buy one of your slaves.
<<if _name != 0>>
	<<setNonlocalPronouns $seeDicks>>
	I've been seeing _name a lot, and _heU makes the years sit a little lighter on me. I've scraped together what I can, and I can pay <<print cashFormat(50000)>>." It's a huge sum for a mercenary; it's probably his entire savings, but there is a slight problem; the slave he is looking for isn't one of yours. "Well then," he says in embarrassment, "Have to say this is a little awkward." He gives a fake cough, "You wouldn't happen to, you know, know who _hisU owner is?" You shake your head. A run in with a _girlU named _name isn't much to go by and it really isn't your problem. "Ah well, I'm sure I'll see _himU around again. Anyway, that was a fine victory the other day, <<= properTitle()>>; come down to the bar and join the boys and I. We'll buy you a drink. Devil knows, thanks to you we can afford to. Hell, maybe you'll even get to meet _name too, get to see just how much of a looker _heU is."
<<else>>
	<<if ["serve in the club", "serve the public", "whore", "work in the brothel"].includes($activeSlave.assignment)>>
		I've been seeing <<= App.UI.slaveDescriptionDialog($activeSlave)>> a lot, and $he makes the years sit a little lighter on me.
	<<else>>
		I've seen <<= App.UI.slaveDescriptionDialog($activeSlave)>> here and there and I can't stop thinking about $him. I feel $he'd make the years sit a little lighter on me.
	<</if>>
	I've scraped together what I can, and I can pay <<print cashFormat(_slaveCost)>>." It's a decent price, probably a little less than you could get at auction. It's a huge sum for a mercenary; it's probably his entire savings. You ask what he would do with $him. "Well," he says, actually blushing, "I'd free $him. And marry $him, if $he'd have me."

	<<link "Decline, and tell $him not to see him">>
		<<replace "#result">>
			$activeSlave.slaveName obeys your orders not to see the old mercenary. Though neither he or $activeSlave.slaveName says a word about it, his squadmates are not so closemouthed. Soon the tragic story of The Mercenary and the Slave $Girl is being told in bars and brothels across the Free City, with you naturally playing @@.red;the role of the villain.@@
			<<run repX(-1000, "event")>>
		<</replace>>
	<</link>>

<<link "Politely decline">>
		<<replace "#result">>
			"Ah well," he says, "didn't think you would, but I had to ask. If you'd be so kind as to keep $him assigned so's I can see $him, I would be grateful. That was a fine victory, <<= properTitle()>>; come down to the bar and join the boys and I. We'll buy you a drink. Devil knows, thanks to you we can afford to."
			<<if $activeSlave.relationship == -3 && $activeSlave.fetish != "mindbroken" && $activeSlave.devotion+$activeSlave.trust > 190>>$activeSlave.slaveName politely thanks you for not letting him take $him away.<</if>>
		<</replace>>
	<</link>>

<<link "Accept">>
		<<replace "#result">>
			The mercenary leaves to collect his purchase. On the video feeds, you see that $activeSlave.slaveName can hardly believe what's
			<<if $activeSlave.relationship == -3 && $activeSlave.fetish != "mindbroken" && $activeSlave.devotion+$activeSlave.trust > 190>>
				happening. You can't hear what he says as he takes out a ring, but $his reaction speaks clearly. $He says "No."
				<<if canWalk($activeSlave) && hasAnyArms($activeSlave)>>
					$He points back into your penthouse and returns to $his home.
				<<else>>
					$He gestures towards the nearest camera and he helps $him back into your penthouse.
				<</if>>
				The only thing $he wants after being freed is to return to your side.
				"I thought I was giving $him a better life... But $he already had everything $he wanted. I'm sorry for putting you in such a position." You can hear the sadness in his voice. "Thank you for your time. I'm sorry to have bothered you."
				Since $he returned to slavery, it's only fair to return the credits he paid for $him. He thanks you hollowly before heading on his way.
			<<else>>
				happened.
				<<if hasAnyArms($activeSlave) && hasBothLegs($activeSlave)>>
					$He hugs him, sobbing into his shoulder. As they walk hand in hand down towards his quarters,
				<<else>>
					As he <<if !isAmputee($activeSlave)>>gives<<else>>picks up $his limbless form to give<</if>> $him a hug,
				<</if>>
				$he gives the nearest camera a little nod and silently mouths the words "Thank you, <<= WrittenMaster($activeSlave)>>." Soon the romantic story of The Mercenary and the Slave $Girl is being told in bars and brothels across the Free City, with you naturally playing @@.green;a supporting role.@@
				<<run cashX(_slaveCost, "slaveTransfer")>>
				<<= removeActiveSlave() >>
			<</if>>
		<</replace>>
	<</link>>

<<link "Give $him to him as a gift">>
		<<replace "#result">>
			The mercenary cannot believe his ears. After you repeat yourself twice, he leaves to collect your gift, thanking you clumsily. On the video feeds, you see that $activeSlave.slaveName can hardly believe what's
			<<if $activeSlave.relationship == -3 && $activeSlave.fetish != "mindbroken" && $activeSlave.devotion+$activeSlave.trust > 190>>
				happening. You can't hear what he says as he takes out a ring, but $his reaction speaks clearly. $He says "No."
				<<if canWalk($activeSlave) && hasAnyArms($activeSlave)>>
					$He points back into your penthouse and returns to $his home.
				<<else>>
					$He gestures towards the nearest camera and he helps $him back into your penthouse.
				<</if>>
				The only thing $he wants after being freed is to return to your side.
				"I thought I was giving $him a better life... But $he already had everything $he wanted. I'm sorry for putting you in such a position." You can hear the sadness in his voice. "Thank you for your time. I'm sorry to have bothered you."
			<<else>>
				happened.
				<<if hasAnyArms($activeSlave) && hasAnyLegs($activeSlave)>>
					$He hugs him, sobbing into his shoulder. As they walk hand in hand down towards his quarters,
				<<else>>
					As he <<if !isAmputee($activeSlave)>>gives<<else>>picks up $his limbless form to give<</if>> $him a hug,
				<</if>>
				$he gives the nearest camera a little nod and silently mouths the words "Thank you, <<= WrittenMaster($activeSlave)>>." You smile to yourself; when they get there they'll find flowers and a paid reservation at the arcology's best restaurant. Soon the story is being told in bars and brothels across the Free City, with you naturally playing @@.green;a starring role.@@ Some days later, you hear a dramatization is being filmed, with an aging action star playing the mercenary, a rising starlet playing $activeSlave.slaveName, and a noted character actor playing you.
				<<run repX(15000, "event")>>
				<<set _poster = "a poster for the movie that was made about the love between one of your mercenaries and " + $activeSlave.slaveName>>
				<<set $trinkets.push(_poster)>>
				<<= removeActiveSlave() >>
			<</if>>
		<</replace>>
	<</link>>

$His records...

			$His current task is to <<print $activeSlave.assignment>><<if $assignmentRecords[$activeSlave.ID]>>, and before that to <<print $assignmentRecords[$activeSlave.ID]>><</if>>.

		<<includeDOM slaveImpactLongTerm(V.activeSlave)>>

<</if>>


code:
:: P Mercs Help Corp [nobr]

<<set $nextButton = "Decline", $nextLink = "Random Nonindividual Event", $mercenariesHelpCorp = -1>> /* hide button until user makes a selection */

Your weekly meeting with your $mercenariesTitle commander finishes with unusual speed. With the arcology owner who set the Daughters on you enslaved, all other immediate threats defused or smashed,<<if $arcologies[0].FSRomanRevivalistLaw > 0>> your citizens serving in the urban cohorts with enthusiasm,<</if>> and the $mercenariesTitle in excellent fighting condition, there just weren't enough concerns from either of your perspectives to fill the time. You sit across your desk from each other, discussing the global situation over $PC.refreshment.

"You know, <<= properTitle()>>," the scarred man says thoughtfully. "Threat board's pretty sparse these days. I mean, not for those poor bastards." He <<if $PC.refreshmentType == 0>>waves his $PC.refreshment<<elseif $PC.refreshmentType == 1>>uses his glass to point<<elseif $PC.refreshmentType == 2>>points a piece of $PC.refreshment<<elseif $PC.refreshmentType == 3>>finishes arranging a line before pointing<<elseif $PC.refreshmentType == 4>>using his syringe to point<<elseif $PC.refreshmentType == 5>>shaking the bottle of $PC.refreshment<<elseif $PC.refreshmentType == 6>>using the sheet of $PC.refreshment to point<</if>> at a screen showing a live news feed from a war on the other side of the world. A huge cloud in an unmistakable, malevolent shape, a broad rising head atop a dirty column of vapor, is towering above a large city.

"But in our immediate area, there's just not much that can threaten us. Most trouble on the horizon's going to come from economics and supply and the climate, but that stuff doesn't shoot back. I think we can afford a little dispersal of military effort. Why don't I second squads to your corporation, when we've got the availability? Your corporate guys are already pulling meat out of the conflict zones. No offense to them, they're pretty good, but they're not quite at the level of my boys and girls. And don't worry, I'd keep 'em clear of shit like that." He indicates the on-screen mushroom cloud again.

''This is a unique opportunity'' and will not reoccur.

<<link "Decline">>
	<<replace "#result">>
	Best to keep the $mercenariesTitle in reserve. You decline, and the commander chuckles. "Well <<= properTitle()>>, if you insist, I suppose we could find ways to keep busy around the arcology. I mean, we're a little starved for <<if $seeDicks != 0>>female<<else>>intimate<</if>> company here, but we can make do."
	<</replace>>
<</link>>

<<link "Make it so">>
	<<set $nextButton = "Continue">><<UpdateNextButton>>
	<<replace "#result">>
	<<setNonlocalPronouns $seeDicks>>
	It's a fine idea, and you agree. The commander looks so enthused that you feel obliged to ask that he not risk himself unduly. He laughs. "There are no old, bold mercs, <<= properTitle()>>, and I am sure as hell old. I'll be sure to grow even older under contract with you. Now, unless there's anything else, I've just bought a nice _girlU to add to the commander's suite, and _heU makes me feel a bit younger."
	<<set $mercenariesHelpCorp = 1>>
	<</replace>>
<</link>>


code:
:: P peacekeepers deficit [nobr]

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

General $peacekeepers.generalName's peacekeeping force has stabilized the neighboring region somewhat. True to his word, the general has indeed concentrated on his peacekeeping mandate, and hasn't done anything that might be construed as a move against the Free City or its interests. There are somewhat fewer refugees available from that area, and it's a less complete refuge for bad actors, but other than that, there hasn't been much reason for you to take notice. Until today, when General $peacekeepers.generalName gives you a call.

It's a video link, and the general is in the field somewhere, wearing scuffed armor with his insignia of rank on the neck protector. He looks tired, and stress worse than simple fatigue is etched on his face, but he looks at you directly and gets on with it. "<<= PlayerName()>>," he says, "to start, I'd like to assure you this is a secure line from my end. We rely on structural security more than you in the Free Cities, with your cutting-edge computing power, but it's effective." He's in what looks like a field command post, in what's almost certainly an improvised secure communications booth. "The situation is this," he explains. "I have two problems, and I hope you may be able to solve them both at once in a way that will be beneficial to you."

"First," he says sharply, "I'm not getting the support I need out here." It obviously pains him to admit this, and the muscles along his jaw tense as he does, as though he's chewing on the words. "And I'm not giving anything away by telling you that. It's obvious enough, if you compare what I'm being asked to do here with the resources the politicians back home are willing to provide." At this, $assistant.name displays a quick summary of the political developments in the general's home country. General $peacekeepers.generalName is right; the expensive peacekeeping force is unpopular, and its support is being reduced by opportunistic politicians. "It isn't bad yet," he says, "but if this keeps up, I'm going to be rationing the most modern medical supplies for my wounded men and women. That's hard."

"And second," he continues, "I'm having difficulty housing the prisoners we're taking. We're the only functioning law and order in this area, and in order to keep control I'm having to lock up everyone from armed bandits to petty looters. I don't have the resources to imprison them decently. I'm already getting flak about conditions in our main prison camp here." He arches an eyebrow. "Some people back home seem to care more about keeping prisoners comfortable than they care about getting my wounded men and women the best possible care. And I can't just reduce the prisoner population, either. There are too many of them. Word would get out, and there'd be hell to pay back home."

The singular solution to the two problems is obvious. It's equally obvious that General $peacekeepers.generalName isn't going to be the one to propose it. He's not stupid.

<<if $cash >= 100000>>
	<<link "Offer to assist">>
		<<replace "#result">>
			Understanding that the general needs to couch the situation in a way he can justify in public, and perhaps in a way he can justify to himself, you offer to house the prisoners on a contract basis, with immediate payment to the general so he can meet his forces' immediate needs. Naturally, the prisoners will be kept busy while you keep them; menial labor seems appropriate. It's unlikely that the situation will ever stabilize to the point where they can be released, so for safety, they should all be detained indefinitely. And of course, each prisoner's individual detention will be available for resale. Just like any other slave's.

			The general is unable to keep from smiling slightly when he hears that you understand perfectly and are willing and able to assist. There's some bitterness there, but not much. The two of you adjust the terms. The new menial slaves will be delivered immediately, several hundred of them; the general prefers to have this be a one-time transfer. After all, having an ongoing prisoner pipeline between his prisoner pens and the Free City might draw unwanted political attention. For now, he has the funds he needs, not to mention an empty prison camp.
			<<set $peacekeepers.attitude += 5, $menials += 200>>
			<<run cashX(-100000, "peacekeepers")>>
		<</replace>>
	<</link>> //This will cost <<print cashFormat(100000)>> and provide a number of menial slaves//
<<else>>
	//You lack the funds to buy the prisoners.//
<</if>>

<<link "Connect the general with Free Cities pharmaceutical sources">>
	<<replace "#result">>
		<<if $cash < 100000>>Unfortunately, you lack the funds to buy the prisoners.<</if>>
		It would be very expensive to provide the general with the kind of money necessary to make a difference in the medical supply situation of a military force sufficient to keep what used to be a small country pacified. You express your regrets at your inability to help directly. You offer to connect the general with Free Cities pharmaceutical resources that will probably be able to get him what his infirmaries need at a lower price. "Interesting," he says, considering the offer. "The usual providers at home will scream bloody murder when it gets out. But it's a good idea," he admits. "Though that does nothing for the prison camps." Part of his reluctance is probably due to an unspoken hesitation to do business with the Free Cities directly. But he's coming around.
		<<set $peacekeepers.attitude += 5>>
	<</replace>>
<</link>>

<<link "Tell him his situation is untenable">>
	<<replace "#result">>
		You decide to use this as an object lesson in the limits of old world power projection, and tell his situation is untenable and that he should withdraw. If he doesn't have the political firepower necessary to get proper support and supply, he's better off cutting his losses. "That's not for you to say," he responds bitterly. "And that's not for me to say, either. I still go where I'm told and do what I'm told. Thank you for your time." He ends the call brusquely. Word of your verbal defense of the Free City's sphere of influence gets around, @@.green;greatly improving your reputation.@@
		<<set $peacekeepers.attitude -= 10>>
		<<run repX(5000, "event")>>
	<</replace>>
<</link>>