code:
:: SE nonlethal pit

<<nobr>>

<<set $nextButton to "Continue">>
<<set $nextLink to "Scheduled Event">>
<<set $returnTo to "Scheduled Event">>
<<set $pitFought to 1>>

<<set $fighterOne to 0>>
<<set $fighterTwo to 0>>
<<if $pitBG == 0>>
	<<set $fighterOne to $fighterIDs.random()>>
	<<for $i to 0; $i < $slaves.length; $i++>>
	<<if ($slaves[$i].ID == $fighterOne)>>
		<<set $fighterOne to $slaves[$i]>>
		<<break>>
	<</if>>
	<</for>>
<<else>>
	<<for $i to 0; $i < $slaves.length; $i++>>
	<<if ($slaves[$i].ID == $Bodyguard.ID)>>
		<<set $fighterOne to $slaves[$i]>>
		<<break>>
	<</if>>
	<</for>>
<</if>>
<<set $fighterIDs to $fighterIDs.shuffle()>>
<<for $i to 0; $i < $fighterIDs.length; $i++>>
	<<if ($fighterIDs[$i] != $fighterOne.ID)>>
		<<set $fighterTwo to $fighterIDs[$i]>>
		<<break>>
	<</if>>
<</for>>
<<for $i to 0; $i < $slaves.length; $i++>>
	<<if ($slaves[$i].ID == $fighterTwo)>>
		<<set $fighterTwo to $slaves[$i]>>
		<<break>>
	<</if>>
<</for>>
<<if ($fighterOne == 0) || ($fighterTwo == 0)>>
	<<goto "Nonrandom Event">>
<</if>>

<</nobr>>\
\
<<nobr>>

This week's pit fight is between $fighterOne.slaveName and $fighterTwo.slaveName. <<if $pitAudience is "none">>You are alone above $pitName, left to watch them square off in private.<<elseif $pitAudience is "free">>Your guests line the rim of $pitName, joking and betting.<<else>>The attendees line the rim of $pitName, betting and arguing.<</if>>

<<if $arcologies[0].FSRomanRevivalist != "unset">>
	They @@color:green;strongly approve@@ of your hosting combat between slaves; this advances ideas from antiquity about what public events should be.
	<<set $rep += 10*$FSSingleSlaveRep*($arcologies[0].FSRomanRevivalist/$FSLockinLevel)>>
	<<set $arcologies[0].FSRomanRevivalist += 0.2*$FSSingleSlaveRep>>
<</if>>

You review the rules - the combatants are wearing light gloves, and the fight will be nonlethal, with you as the judge. The winner will have the right to do anything she wishes to the loser, and earn two complete days of rest. You take a moment to look over your girls before giving the word.

<</nobr>>

<<nobr>>

<<Deadliness $fighterOne>>
<<set $fighterOneDeadliness to $deadliness>>

<<if $fighterOneDeadliness > 5>>
	$fighterOne.slaveName seems very confident, even eager to win a break.
<<elseif $fighterOneDeadliness > 3>>
	$fighterOne.slaveName seems nervous, but steels herself to fight for time off.
<<elseif $fighterOneDeadliness > 1>>
	$fighterOne.slaveName seems hesitant and unsure.
<<else>>
	$fighterOne.slaveName is obviously terrified, and might flee if there were a way out of the pit.
<</if>>

<<if $fighterOne.combatSkill > 0>>
	Her stance is obviously well-practiced.
<</if>>

<<if $fighterOne.muscles > 95 && $fighterOne.height >= 185>>
	Her huge muscles are an intimidating sight and, despite their massive size, she is tall enough to not be hindered by them.
<<elseif $fighterOne.muscles > 95>>
	Her huge muscles are an intimidating sight, but may hinder her flexibility.
<<elseif $fighterOne.muscles > 30>>
	Her muscles are a trim and powerful sight.
<<elseif $fighterOne.muscles < -95>>
	She can barely stand, let alone defend herself.
<<elseif $fighterOne.muscles < -30>>
	She is very weak, a single punch will likely floor her.
<<elseif $fighterOne.muscles < -5>>
	She is rather unfit, she will likely be outmatched by near any real opponent.
<</if>>

<<if $fighterOne.height >= 170>>
	Her height gives her a reach advantage with her fists and feet.
<</if>>

<<if $fighterOne.health > 50>>
	Her shining health makes her a better fighter.
<</if>>

<<if $fighterOne.weight > 30>>
	Her heavy weight is an impediment as a pit fighter.
<</if>>

<<if $fighterOne.weight < -10>>
	Her light weight is an impediment as a pit fighter.
<</if>>

<<if $fighterOne.health < -50>>
	Her poor health makes her a weaker combatant.
<</if>>

<<if $fighterOne.inflation == 3>>
	Her hugely bloated, <<print $fighterOne.inflationType>>-filled belly is taut and painful, hindering her ability to fight.
<<elseif $fighterOne.inflation == 2>>
	Her bloated, <<print $fighterOne.inflationType>>-stuffed belly is constantly jiggling and moving, distracting her and throwing off her weight.
<<elseif $fighterOne.inflation == 1>>
	Her distended, <<print $fighterOne.inflationType>>-belly is uncomfortable and heavy, distracting her.
<</if>>

<<if $fighterOne.bellyImplant >= 32000>>
	Her immense, <<print $fighterOne.bellyImplant>>cc implant filled belly is extremely heavy, unwieldy and an easy target, practically damning her in combat.
<<elseif $fighterOne.bellyImplant >= 16000>>
	Her massive, <<print $fighterOne.bellyImplant>>cc implant filled belly is extremely heavy, unwieldy and an easy target, practically damning her in combat.
<<elseif $fighterOne.bellyImplant >= 8000>>
	Her huge, <<print $fighterOne.bellyImplant>>cc implant filled belly is very heavy and unwieldy, throwing off her weight and making her far less effective.
<<elseif $fighterOne.bellyImplant >= 4000>>
	Her large, <<print $fighterOne.bellyImplant>>cc implant filled belly is heavy and unwieldy, rendering her less effective.
<<elseif $fighterOne.bellyImplant >= 2000>>
	Her swollen, <<print $fighterOne.bellyImplant>>cc implant filled belly is heavy and makes her less effective.
<</if>>

<<if $fighterOne.preg > 10>>
	<<if $fighterOne.pregType >= 20>>
		Her massive belly is nearly a guaranteed loss, she can barely stand let alone fight.
	<<elseif $fighterOne.pregType >= 10>>
		Her huge belly is unwieldy and hinders her efforts.
	<<else>>
		Her advanced pregnancy makes her much less effective.
	<</if>>
<</if>>

<<if not canSee($fighterOne)>>
	Her lack of eyesight means certain defeat.
<<elseif ($fighterOne.eyes is -1 and ($fighterOne.eyewear != "corrective glasses" or $fighterOne.eyewear != "corrective contacts")) || ($fighterOne.eyes == 1 and ($fighterOne.eyewear is "blurring glasses" or $fighterOne.eyewear is "blurring contacts"))>>
	Her poor eyesight makes her a weaker fighter.
<</if>>

<<if $fighterOne.amp < 0>>
	The pit lights gleam on her P-Limbs.
	<<if $fighterOne.amp == -4>>
		Though their integral weapons are disabled, her upgraded prosthetics are almost as fast as natural limbs, and they can hit much, much harder.
	<<elseif $fighterOne.amp == -5>>
		Her advanced cybernetic limbs are faster than natural limbs, and their force is amplified, so that they can become potent weapons.
	<</if>>
<</if>>

<<if $fighterOne.devotion <= 20>>
<<if $fighterOne.trust < -20>>
	She is unwilling to fight, but she knows the punishment for refusing to do so will be even worse.
<</if>>
<</if>>

<</nobr>>

<<nobr>>

<<Deadliness $fighterTwo>>
<<set $fighterTwoDeadliness to $deadliness>>

<<if $fighterTwoDeadliness > 5>>
	$fighterTwo.slaveName seems very confident, even eager to win a break.
<<elseif $fighterTwoDeadliness > 3>>
	$fighterTwo.slaveName seems nervous, but steels herself to fight for time off.
<<elseif $fighterTwoDeadliness > 1>>
	$fighterTwo.slaveName seems hesitant and unsure.
<<else>>
	$fighterTwo.slaveName is obviously terrified, and might flee if there were a way out of the pit.
<</if>>

<<if $fighterTwo.combatSkill > 0>>
	Her stance is obviously well-practiced.
<</if>>

<<if $fighterTwo.muscles > 95 && $fighterTwo.height >= 185>>
	Her huge muscles are an intimidating sight and, despite their massive size, she is tall enough to not be hindered by them.
<<elseif $fighterTwo.muscles > 95>>
	Her huge muscles are an intimidating sight, but may hinder her flexibility.
<<elseif $fighterTwo.muscles > 30>>
	Her muscles are a trim and powerful sight.
<<elseif $fighterTwo.muscles < -95>>
	She can barely stand, let alone defend herself.
<<elseif $fighterTwo.muscles < -30>>
	She is very weak, a single punch will likely floor her.
<<elseif $fighterTwo.muscles < -5>>
	She is rather unfit, she will likely be outmatched by near any real opponent.
<</if>>

<<if $fighterTwo.height >= 170>>
	Her height gives her a reach advantage with her fists and feet.
<</if>>

<<if $fighterTwo.health > 50>>
	Her shining health makes her a better fighter.
<</if>>

<<if $fighterTwo.weight > 30>>
	Her heavy weight is an impediment as a pit fighter.
<</if>>

<<if $fighterTwo.weight < -10>>
	Her light weight is an impediment as a pit fighter.
<</if>>

<<if $fighterTwo.health < -50>>
	Her poor health makes her a weaker combatant.
<</if>>

<<if $fighterTwo.inflation == 3>>
	Her hugely bloated, <<print $fighterTwo.inflationType>>-filled belly is taut and painful, hindering her ability to fight.
<<elseif $fighterTwo.inflation == 2>>
	Her bloated, <<print $fighterTwo.inflationType>>-stuffed belly is constantly jiggling and moving, distracting her and throwing off her weight.
<<elseif $fighterTwo.inflation == 1>>
	Her distended, <<print $fighterTwo.inflationType>>-belly is uncomfortable and heavy, distracting her.
<</if>>

<<if $fighterTwo.bellyImplant >= 32000>>
	Her immense, <<print $fighterTwo.bellyImplant>>cc implant filled belly is extremely heavy, unwieldy and an easy target, practically damning her in combat.
<<elseif $fighterTwo.bellyImplant >= 16000>>
	Her massive, <<print $fighterTwo.bellyImplant>>cc implant filled belly is extremely heavy, unwieldy and an easy target, practically damning her in combat.
<<elseif $fighterTwo.bellyImplant >= 8000>>
	Her huge, <<print $fighterTwo.bellyImplant>>cc implant filled belly is very heavy and unwieldy, throwing off her weight and making her far less effective.
<<elseif $fighterTwo.bellyImplant >= 4000>>
	Her large, <<print $fighterTwo.bellyImplant>>cc implant filled belly is heavy and unwieldy, rendering her less effective.
<<elseif $fighterTwo.bellyImplant >= 2000>>
	Her swollen, <<print $fighterTwo.bellyImplant>>cc implant filled belly is heavy and makes her less effective.
<</if>>

<<if $fighterTwo.preg > 10>>
	<<if $fighterTwo.pregType >= 20>>
		Her massive belly is nearly a guaranteed loss, she can barely stand let alone fight.
	<<elseif $fighterTwo.pregType >= 10>>
		Her huge belly is unwieldy and hinders her efforts.
	<<else>>
		Her advanced pregnancy makes her much less effective.
	<</if>>
<</if>>

<<if not canSee($fighterTwo)>>
	Her lack of eyesight means certain defeat.
<<elseif ($fighterTwo.eyes is -1 and ($fighterTwo.eyewear != "corrective glasses" or $fighterTwo.eyewear != "corrective contacts")) || ($fighterTwo.eyes == 1 and ($fighterTwo.eyewear is "blurring glasses" or $fighterTwo.eyewear is "blurring contacts"))>>
	Her poor eyesight makes her a weaker fighter.
<</if>>

<<if $fighterTwo.amp < 0>>
	The pit lights gleam on her P-Limbs.
	<<if $fighterTwo.amp == -4>>
		Though their integral weapons are disabled, her upgraded prosthetics are almost as fast as natural limbs, and they can hit much, much harder.
	<<elseif $fighterTwo.amp == -5>>
		Her advanced cybernetic limbs are faster than natural limbs, and their force is amplified, so that they can become potent weapons.
	<</if>>
<</if>>

<<if $fighterTwo.devotion <= 20>>
<<if $fighterTwo.trust < -20>>
	She is unwilling to fight, but she knows the punishment for refusing to do so will be even worse.
<</if>>
<</if>>

<</nobr>>

<<nobr>>

<<if $fighterTwoDeadliness > $fighterOneDeadliness>>
	<<set _winner to $fighterTwo>>
	<<set _winnerDeadliness to $fighterTwoDeadliness>>
	<<set _loser to $fighterOne>>
	<<set _loserDeadliness to $fighterOneDeadliness>>
<<elseif $fighterTwoDeadliness < $fighterOneDeadliness>>
	<<set _loser to $fighterTwo>>
	<<set _loserDeadliness to $fighterTwoDeadliness>>
	<<set _winner to $fighterOne>>
	<<set _winnerDeadliness to $fighterOneDeadliness>>
<<elseif random(1,100) > 50>>
	<<set _winner to $fighterTwo>>
	<<set _winnerDeadliness to $fighterTwoDeadliness>>
	<<set _loser to $fighterOne>>
	<<set _loserDeadliness to $fighterOneDeadliness>>
<<else>>
	<<set _loser to $fighterTwo>>
	<<set _loserDeadliness to $fighterTwoDeadliness>>
	<<set _winner to $fighterOne>>
	<<set _winnerDeadliness to $fighterOneDeadliness>>
<</if>>

<<if !canSee(_winner) and !canSee(_loser)>>
	_winner.slaveName and _loser.slaveName are both blind making the fight a staredown. Neither slave wants to make the first move, especially with the drowning cacophony coming from the jeering crowd. Slowly, _winner.slaveName moves forward, waving feeling for her opponent before she herself gets found. _loser.slaveName's hand meets _winner.slaveName's and the two move to grab eachother in a headlock. The two slaves violently thrash against each other, suffering more and more strikes as the struggle goes on. Eventually, _loser.slaveName can take no more and releases her grip on _winner.slaveName neck. It takes a moment for _winner.slaveName to stop wrestling the submitting _loser.slaveName and accepting her victory.
	<<if $pitAudience is "paid">>
		The audience is surprised by the sudden wrestling match, and your @@color:yellowgreen;cut of the betting@@ is modest.
		<<set $cash += 500>>
	<<elseif $pitAudience is "free">>
		The audience is @@color:green;surprised@@ by the impromptu wrestling match.
		<<set $rep += 50>>
	<</if>>
<<elseif (_winnerDeadliness > _loserDeadliness+1) && (_winner.amp == -4)>>
	Upon your word the two combatants approach each other. _winner.slaveName keeps her artificial limbs up in a protective position. _loser.slaveName probes her with some light blows, puzzled by this ironclad defense. Gradually, she hits harder and harder, her opponent grunting under the impacts but holding steady. Finally, _loser.slaveName overcommits to a body blow, and _winner.slaveName grips her forearm. That is the end. The augmented grip is effectively unbreakable, and _winner.slaveName uses it to pull her opponent in and grab her neck with the other hand, using it to exert just the right amount of pressure to choke her out harmlessly. Though the fight was short,
	<<if $pitAudience is "paid">>
		the audience is quite impressed by the display, and your @@color:yellowgreen;cut of the betting@@ is quite good.
		<<set $cash += 2000>>
	<<elseif $pitAudience is "free">>
		the audience is @@color:green;very impressed@@ by the display.
		<<set $rep += 100>>
	<<else>>
		it was a good test of the slave's enhancements.
	<</if>>
<<elseif (_winnerDeadliness > _loserDeadliness+1) && (_winner.amp == -5)>>
	Upon your word the two combatants approach each other. _winner.slaveName keeps her advanced cybernetic limbs up in a protective position. _loser.slaveName probes her with some light blows, puzzled by this ironclad defense. Gradually, she hits harder and harder, her opponent grunting under the impacts but holding steady. Finally, _loser.slaveName tires, gets off balance, and _winner.slaveName manages to grab her forearm. _winner.slaveName's limbs emit an electric shock that temporarily incapacitates her opponent. _winner.slaveName uses her grip to pull her stunned opponent in and grab her neck with the other hand, using it to exert just the right amount of pressure to choke her out harmlessly. Though the fight was short,
	<<if $pitAudience is "paid">>
		the audience is quite impressed by the display, and your @@color:yellowgreen;cut of the betting@@ is quite good.
		<<set $cash += 2000>>
	<<elseif $pitAudience is "free">>
		the audience is @@color:green;very impressed@@ by the display.
		<<set $rep += 100>>
	<<else>>
		it was a good test of the slave's enhancements.
	<</if>>
<<elseif !canSee(_winner)>>
	_winner.slaveName centers herself and hones in on _loser.slaveName's rapid breath. She readies herself, knowing she has a single chance to win. With heavy steps, _loser.slaveName rushes her, fully prepared to tackle the helpless combatant. _winner.slaveName gambles everything on a single high punch, a strike that slams _loser.slaveName's undefended neck. _loser.slaveName falls to the ground before the panicking _winner.slaveName, who quickly pins the coughing loser.
	<<if $pitAudience is "paid">>
		The audience is awestruck by the blind girl's triumph, and your @@color:yellowgreen;cut of the betting@@ is enormous.
		<<set $cash += 4000>>
	<<elseif $pitAudience is "free">>
		The audience is @@color:green;awestruck@@ by the blind girl's triumph.
		<<set $rep += 200>>
	<</if>>
<<elseif !canSee(_loser)>>
	_winner.slaveName grins at _loser.slaveName's random swings and poor form. She centers in on her favorite part of _loser.slaveName's body before rushing between her strikes and tackling her to the ground. _loser.slaveName lays there, helpless to stop _winner.slaveName from molesting her.
	<<if $pitAudience is "paid">>
		The audience found the fight embarrassing, and your @@color:yellowgreen;cut of the betting@@ is pitiful.
		<<set $cash += 40>>
	<<elseif $pitAudience is "free">>
		The audience is @@color:red;annoyed@@ by this lack of a fight.
		<<set $rep -= 20>>
	<</if>>
<<elseif (_winnerDeadliness > _loserDeadliness+3)>>
	<<if (_winner.combatSkill > 0)>>
		_winner.slaveName wants to win, and she opens the fight with a furious attack. _loser.slaveName manages to get her forearms up, blocking a few blows, but by doing so leaves her abdomen open and obscures her vision enough that she is unprepared for the following kidney strike, which brings her gasping to one knee. _winner.slaveName lets her rise just a little before delivering a calculated hard right that sends _loser.slaveName to the mat.
		<<if $pitAudience is "paid">>
			The audience is not very impressed by this execution, and your @@color:yellowgreen;cut of the betting@@ is unimpressive.
			<<set $cash += 500>>
		<<elseif $pitAudience is "free">>
			The audience is @@color:green;not very impressed@@ by this execution.
			<<set $rep += 25>>
		<</if>>
	<<else>>
		_winner.slaveName wants to win and is confident she will, but she isn't particularly sure about how to do so. She fights cautiously, mostly hitting _loser.slaveName from afar. Slowly, the rain of blows begins to tell, opening _loser.slaveName's lip, giving her a bloody nose, and bruising her face. Realizing she has to do something, _loser.slaveName makes a desperate counterattack, @@color:red;dripping blood@@ as she goes. As she does she manages to get her face in the way of another of _winner.slaveName's inexpert strikes and goes down hard. She makes to rise, but _winner.slaveName decides the fight by the simple expedient of kicking her in the crotch.
		<<set _loser.health -= 10>>
		<<if $pitAudience is "paid">>
			The audience is reasonably impressed by the beating, and your @@color:yellowgreen;cut of the betting@@ is reasonable.
			<<set $cash += 100>>
		<<elseif $pitAudience is "free">>
			The audience is @@color:green;reasonably impressed@@ by the beating.
			<<set $rep += 50>>
		<</if>>
	<</if>>
<<elseif (_winner.preg > 30) && (_winner.pregType >= 30) && (_loser.preg > 30) && (_loser.pregType >= 30)>>
	_winner.slaveName and _loser.slaveName stare each other down and both come to a realization.  Neither can reach the other around their massive pregnancies.  Instead, they choose to ram their bulk into each other in hopes of toppling the weaker.  After a drawn out struggle, both slaves' bellies are @@color:red;dark red and shuddering@@, ready to burst open.  Rather than continue, _loser.slaveName lets the next strike down her hoping that the outcome of this fight isn't fatal.
	<<set _winner.health -= 50>>
	<<set _loser.health -= 50>>
	<<if $pitAudience is "paid">>
		The audience is very impressed by the showdown, and your @@color:yellowgreen;cut of the betting@@ is good.
		<<set $cash += 1500>>
	<<elseif $pitAudience is "free">>
		The audience is @@color:green;very impressed@@ by the showdown.
		<<set $rep += 75>>
	<</if>>
<<elseif (_winner.preg > 30) && (_winner.pregType >= 20) && (_loser.preg < 10)>>
	_loser.slaveName spies an easy win against her massively bloated opponent and rushes in to topple _winner.slaveName. In an effort to defend herself, _winner.slaveName hoists her belly and turns suddenly, accidentally impacting _loser.slaveName with her massive pregnancy and knocking her to the ground.  Seeing an oppertunity, _winner.slaveName releases her grip and slams her weighty womb down on _loser.slaveName bashing the wind out of her.  _loser.slaveName struggles to slip out of her squirming prison but the wight is too great and she passes out.
	<<if $pitAudience is "paid">>
		The audience is impressed by this absurd win, and your @@color:yellowgreen;cut of the betting@@ is reasonably.
		<<set $cash += 1000>>
	<<elseif $pitAudience is "free">>
		The audience is @@color:green;impressed@@ by this absurd win.
		<<set $rep += 50>>
	<</if>>
<<elseif (_winner.combatSkill > 0) && (_loser.combatSkill > 0)>>
	Upon your word the two combatants approach each other warily, both knowing the other is reasonably competent. Before long they are trading expert blows. _winner.slaveName is getting the worst of it, so she decides to change the nature of the fight. After three tries she manages to bring _loser.slaveName to the ground, suffering a @@color:red;broken nose@@ as she does. _loser.slaveName tries to break the imperfect hold but only earns herself an elbow to the face. She's furious and _winner.slaveName is obliged to wrench her arm @@color:red;to the point of damage@@ before she allows herself to go limp.
	<<set _loser.health -= 10>>
	<<set _winner.health -= 10>>
	<<if $pitAudience is "paid">>
		The audience is quite impressed by the expert fight, and your @@color:yellowgreen;cut of the betting@@ is quite good.
		<<set $cash += 2000>>
	<<elseif $pitAudience is "free">>
		The audience is @@color:green;very impressed@@ by the expert fight.
		<<set $rep += 100>>
	<</if>>
<<elseif (_winner.height-_loser.height >= 10)>>
	_winner.slaveName realizes that _loser.slaveName's wingspan gives her a huge reach advantage. She bores straight in, taking a hit or two but coming on regardless. _loser.slaveName understands her opponent's intention and backs off, but the pit is small and there isn't much room to retreat. When her back hits a padded wall, _winner.slaveName manages to land a light hit to her stomach that leaves _loser.slaveName winded enough that a hard kick to the side of her knee goes undefended. It causes @@color:red;considerable damage,@@ dropping her and ending the fight.
	<<set _loser.health -= 10>>
	<<if $pitAudience is "paid">>
		The audience is reasonably impressed by the takedown, and your @@color:yellowgreen;cut of the betting@@ is reasonable.
		<<set $cash += 1000>>
	<<elseif $pitAudience is "free">>
		The audience is @@color:green;reasonably impressed@@ by the takedown.
		<<set $rep += 50>>
	<</if>>
<<elseif (_loser.eyebrowPiercing > 0)>>
	The fight starts slowly, with the girls trading jabs. Just as the spectators are getting bored, _loser.slaveName takes a glancing blow to the eyebrow. Her piercing catches on _winner.slaveName's glove and tears out. _loser.slaveName goes after her tormentor in fury, streaming blood, the piercing forgotten on the mat. Any tendency _winner.slaveName might have had to feel badly about this is extinguished by the assault, and soon _winner.slaveName is even willing to follow up on the success by targeting pierced body parts. The fight ends with poor _loser.slaveName writhing in pain on the mat, @@color:red;leaking blood@@ from several terribly shredded areas.
	<<set _loser.health -= 10>>
	<<if $pitAudience is "paid">>
		The audience is reasonably impressed by the gory spectacle, and your @@color:yellowgreen;cut of the betting@@ is reasonable.
		<<set $cash += 1000>>
	<<elseif $pitAudience is "free">>
		The audience is @@color:green;reasonably impressed@@ by the gory spectacle.
		<<set $rep += 50>>
	<</if>>
<<elseif (_winner.muscles > 30)>>
	_winner.slaveName is so massively muscular that she's actually impeded by her size. _loser.slaveName is properly afraid of her strength, though, so she tries to stay away as much as she can. The pit isn't large, however, and eventually _winner.slaveName manages to lay a hand on her. She pulls her down, and then it's all over but the beating. _loser.slaveName rains blows on her huge oppressor, but all _winner.slaveName has to do is hold on with one arm and deliver damage with the other. By the time she gives up and goes limp, _loser.slaveName has collected @@color:red;many minor injuries.@@
	<<set _loser.health -= 10>>
	<<if $pitAudience is "paid">>
		The audience is reasonably impressed by the show of strength, and your @@color:yellowgreen;cut of the betting@@ is reasonable.
		<<set $cash += 1000>>
	<<elseif $pitAudience is "free">>
		The audience is @@color:green;reasonably impressed@@ by the show of strength.
		<<set $rep += 50>>
	<</if>>
<<elseif (_loser.preg > 10) && (_loser.pregType >= 10)>>
	_winner.slaveName wants to win badly enough that she takes and extremely brutal shortcut to victory.  The instant the fight starts, she quickly knees _loser.slaveName in the stomach.  The massively pregnant _loser.slaveName goes down with a loud thud and plenty of jiggling.  _winner.slaveName gloats over the struggling _loser.slaveName watching as she is unable to pull her bloated form off the ground.
	<<if $pitAudience is "paid">>
		The audience is not very impressed by this easy win, and your @@color:yellowgreen;cut of the betting@@ is unimpressive.
		<<set $cash += 500>>
	<<elseif $pitAudience is "free">>
		The audience is @@color:green;not very impressed@@ by this easy win.
		<<set $rep += 50>>
	<</if>>
<<elseif (_loser.boobs > 1200)>>
	_winner.slaveName wants to win badly enough that she takes an extremely simple shortcut to victory. The instant the fight starts, she hits _loser.slaveName right in her huge tits, as hard as she can. This is a sucker punch of the worst kind; _loser.slaveName's boobs are so big that she has no real chance of defending them. She gasps with pain and wraps her arms around her aching bosom, giving _winner.slaveName a clear opening to deliver a free and easy blow to the jaw that sends the poor top-heavy slave to the mat. Any chance of _loser.slaveName rising is extinguished by her breasts; it takes her so long to muster an attempt to get up that _winner.slaveName can rain hits on her while she does.
	<<if $pitAudience is "paid">>
		The audience is not very impressed by this easy win, and your @@color:yellowgreen;cut of the betting@@ is unimpressive.
		<<set $cash += 500>>
	<<elseif $pitAudience is "free">>
		The audience is @@color:green;not very impressed@@ by this easy win.
		<<set $rep += 25>>
	<</if>>
<<elseif (_loser.dick > 0)>>
	_winner.slaveName wants to win badly enough that she takes an extremely brutal shortcut to victory. The instant the fight starts, she furiously goes for _loser.slaveName's face. _loser.slaveName defends herself with her arms, at which point _winner.slaveName delivers a mighty kick to the dick. _loser.slaveName goes down like a marionette with cut strings, her mouth soundlessly opening and closing and tears leaking from her closed eyes. _winner.slaveName winds up to kick her again but hesitates, wondering whether it's even necessary.
	<<if $pitAudience is "paid">>
		The audience is not very impressed by this easy win, and your @@color:yellowgreen;cut of the betting@@ is unimpressive.
		<<set $cash += 500>>
	<<elseif $pitAudience is "free">>
		The audience is @@color:green;not very impressed@@ by this easy win.
		<<set $rep += 25>>
	<</if>>
<<else>>
	_winner.slaveName wants to win badly enough that she takes an extremely unpleasant shortcut to victory. The instant the fight starts, she furiously goes for _loser.slaveName's eyes, hands forming claws. _loser.slaveName defends herself with her arms, at which point _winner.slaveName delivers a mighty cunt punt. _loser.slaveName goes straight down, her mouth soundlessly opening and closing and tears leaking from her closed eyes while her hands desperately shield her outraged pussy. _winner.slaveName follows her down and puts the unresisting girl's head in a simple lock.
	<<if $pitAudience is "paid">>
		The audience is not very impressed by this easy win, and your @@color:yellowgreen;cut of the betting@@ is unimpressive.
		<<set $cash += 500>>
	<<elseif $pitAudience is "free">>
		The audience is @@color:green;not very impressed@@ by this easy win.
		<<set $rep += 25>>
	<</if>>
<</if>>

<</nobr>>

<<nobr>>

You throw the victor's strap-on down to _winner.slaveName.

<<if (_winner.dick > 0) && canAchieveErection(_winner)>>
	She has no need of it, only taking a moment to pump her dick a few times to get it to rock hardness.
<<elseif (_winner.dick > 0)>>
	She needs it, since her soft dick won't be raping anything.
<</if>>

<<set _winner.penetrativeCount += 1>>
<<set $penetrativeTotal += 1>>

<<if (_loser.vagina < 0) && (_loser.anus == 0)>>
	She respects _loser.slaveName's anal virginity, and hauls the loser to her knees for a facefuck.
	<<set _loser.oralCount += 1>>
	<<set $oralTotal += 1>>
<<elseif (_loser.vagina < 0)>>
	She shoves _loser.slaveName's face into the mat, spreads her buttocks, and spits on her asshole before penetrating it roughly.
	<<set _loser.analCount += 1>>
	<<set $analTotal += 1>>
<<elseif (_loser.vagina == 0) && (_loser.anus == 0)>>
	She respects _loser.slaveName's virgin holes, and hauls the loser to her knees for a facefuck.
	<<set _loser.oralCount += 1>>
	<<set $oralTotal += 1>>
<<elseif (_loser.vagina == 0)>>
	She shoves _loser.slaveName's face into the mat, spreads her buttocks, and spits on her asshole before penetrating it roughly.
	<<set _loser.analCount += 1>>
	<<set $analTotal += 1>>
<<else>>
	She pushes _loser.slaveName's back down onto the mat, forces her legs apart, and penetrates the loser's cunt.
	<<set _loser.vaginalCount += 1>>
	<<set $vaginalTotal += 1>>
	<<if (_winner.dick > 0) && (_winner.balls > 0) && (_winner.hormones < 1)>>
		<<if isFertile(_loser)>>
		<<if canTalk(_loser) == false>>_loser.slaveName tries to gesture a protest before _winner.slaveName fills her fertile pussy with cum, but _winner.slaveName grabs her hands and pins them to keep her from complaining.<<else>>_loser.slaveName starts to scream a protest to stop _winner.slaveName raping her pregnant, but _winner.slaveName grinds her face into the mat to shut her up.<</if>>
		<<if random(1,100) > 50>>
			<<set (_loser.preg to 1)>>
			<<set (_loser.pregSource to _winner.ID)>>
		<</if>>
		<</if>>
	<</if>>
<</if>>

<<if (_winner.energy > 95)>>
	_winner.slaveName doesn't have to feign willingness to rape a slave girl. She uses _loser.slaveName for her @@color:hotpink;pleasure@@, groping her, kissing her unwilling mouth, and showing off for the spectators. The audience @@color:green;greatly enjoys@@ the depraved spectacle.
	<<set _winner.devotion += 1>>
	<<set $rep += 50>>
<<elseif (_winner.fetish is "sadist") && (_winner.fetishStrength > 60)>>
	_winner.slaveName doesn't have to feign willingness abuse and violate a slave girl. She uses _loser.slaveName for her @@color:hotpink;pleasure@@, slapping her cruelly, pinching her until she draws blood, and showing off for the spectators. The audience @@color:green;greatly enjoys@@ the depraved spectacle.
	<<set _winner.devotion += 1>>
	<<set $rep += 50>>
<<elseif (_winner.devotion > 75)>>
	_winner.slaveName is so broken to slavery that she @@color:hotpink;enjoys@@ winning the fight and raping _loser.slaveName. The audience @@color:green;greatly enjoys@@ the depraved spectacle.
	<<set _winner.devotion += 1>>
	<<set $rep += 50>>
<<elseif (_winner.devotion > 20)>>
	_winner.slaveName understands her role and thoroughly rapes _loser.slaveName. The audience @@color:green;enjoys@@ the spectacle.
	<<set $rep += 25>>
<<else>>
	_winner.slaveName is unenthusiastic and just thrusts mechanically, to avoid being punished. She @@color:mediumorchid;resents@@ having to fight and fuck. The audience barely pays attention.
	<<set _winner.devotion -= 2>>
<</if>>
<<if (_winner.rivalry > 0) && (_loser.ID is _winner.rivalryTarget)>>
	She @@color:hotpink;relishes@@ the chance to abuse _loser.slaveName, who she dislikes.
	<<set _winner.devotion += 5>>
<<elseif (_winner.relationship >= 0) && (_loser.ID is _winner.relationshipTarget) && (_winner.devotion >= 20)>>
	She accepts having to abuse _loser.slaveName, and plans to make it up to her later.
<<elseif (_winner.relationship >= 0) && (_loser.ID is _winner.relationshipTarget)>>
	She @@color:mediumorchid;hates@@ having to abuse _loser.slaveName.
	<<set _winner.devotion -= 10>>
<<elseif _winner.mother == _loser.ID>>
	<<if _winner.devotion >= 20>>
		She accepts having to abuse her mother, _loser.slaveName, and plans to make it up to her later.
	<<else>>
		She @@color:mediumorchid;hates@@ having to abuse her mother, _loser.slaveName.
		<<set _winner.devotion -= 10>>
	<</if>>
<<elseif _winner.father == _loser.ID>>
	<<if _winner.devotion >= 20>>
		She accepts having to abuse her father, _loser.slaveName, and plans to make it up to her later.
	<<else>>
		She @@color:mediumorchid;hates@@ having to abuse her father, _loser.slaveName.
		<<set _winner.devotion -= 10>>
	<</if>>
<<elseif _loser.mother == _winner.ID || _loser.father == _winner.ID>>
	<<if _winner.devotion >= 20>>
		She accepts having to abuse her daughter, _loser.slaveName, and plans to make it up to her later.
	<<else>>
		She @@color:mediumorchid;hates@@ having to abuse her daughter, _loser.slaveName.
		<<set _winner.devotion -= 10>>
	<</if>>
<<elseif _winner.sisters > 0>>
	<<if areSisters(_winner, _loser) == 1>>
		<<if _winner.devotion >= 20>>
			She accepts having to abuse her twin sister, _loser.slaveName, and plans to make it up to her later.
		<<else>>
			She @@color:mediumorchid;hates@@ having to abuse her twin sister, _loser.slaveName.
			<<set _winner.devotion -= 10>>
		<</if>>
	<<elseif areSisters(_winner, _loser) == 2>>
		<<if _winner.devotion >= 20>>
			She accepts having to abuse her sister, _loser.slaveName, and plans to make it up to her later.
		<<else>>
			She @@color:mediumorchid;hates@@ having to abuse her sister, _loser.slaveName.
			<<set _winner.devotion -= 10>>
		<</if>>
	<<elseif areSisters(_winner, _loser) == 3>>
		<<if _winner.devotion >= 20>>
			She accepts having to abuse her half-sister, _loser.slaveName, and plans to make it up to her later.
		<<else>>
			She @@color:mediumorchid;hates@@ having to abuse her half-sister, _loser.slaveName.
			<<set _winner.devotion -= 10>>
		<</if>>
	<</if>>
<<elseif (_winner.relation != 0) && (_loser.ID is _winner.relationTarget) && (_winner.devotion >= 20)>>
	She accepts having to abuse _loser.slaveName, and plans to make it up to her later.
<<elseif (_winner.relation != 0) && (_loser.ID is _winner.relationTarget)>>
	She @@color:mediumorchid;hates@@ having to abuse _loser.slaveName.
	<<set _winner.devotion -= 10>>
<</if>>

<<if (_loser.fetish is "masochist") && (_loser.fetishKnown == 1) && (_loser.fetishStrength > 60)>>
	_loser.slaveName @@color:hotpink;gets off@@ on being beaten and molested.
	<<set _loser.devotion += 5>>
<<elseif (_loser.fetish is "humiliation") && (_loser.fetishKnown == 1) && (_loser.fetishStrength > 60)>>
	_loser.slaveName @@color:hotpink;enjoys@@ the humiliation of being openly beaten and raped.
	<<set _loser.devotion += 5>>
<<elseif (_loser.devotion <= 50)>>
	_loser.slaveName @@color:mediumorchid;resents@@ being beaten and molested and @@color:gold;fears@@ that it will happen again.
	<<set _loser.devotion -= 10>>
	<<set _loser.trust -= 10>>
<</if>>
<<if (_loser.rivalry > 0) && (_winner.ID is _loser.rivalryTarget)>>
	She is @@color:mediumorchid;embarrassed@@ by losing to and being raped by _winner.slaveName, who she dislikes, and @@color:gold;fears@@ that it will happen again.
	<<set _loser.devotion -= 10>>
	<<set _loser.trust -= 10>>
<<elseif (_loser.relationship >= 0) && (_winner.ID is _loser.relationshipTarget) && (_loser.devotion >= 20)>>
	She accepts _winner.slaveName having to rape her.
<<elseif (_loser.relationship >= 0) && (_winner.ID is _loser.relationshipTarget)>>
	She @@color:mediumorchid;hates@@ having to accept rape from _winner.slaveName, and @@color:gold;fears@@ that it will happen again.
	<<set _loser.trust -= 10>>
	<<set _loser.devotion -= 10>>
<<elseif _loser.mother == _winner.ID>>
	<<if _loser.devotion >= 20>>
		She accepts her mother, _winner.slaveName, having to rape her, but she @@color:gold;fears@@ that it will happen again.
		<<set _loser.trust -= 10>>
	<<else>>
		She @@color:mediumorchid;hates@@ having to accept rape from her own mother, _winner.slaveName, and @@color:gold;fears@@ that it will happen again.
		<<set _loser.devotion -= 10>>
		<<set _loser.trust -= 10>>
	<</if>>
<<elseif _loser.father == _winner.ID>>
	<<if _loser.devotion >= 20>>
		She accepts her father, _winner.slaveName, having to rape her, but she @@color:gold;fears@@ that it will happen again.
		<<set _loser.trust -= 10>>
	<<else>>
		She @@color:mediumorchid;hates@@ having to accept rape from her own father, _winner.slaveName, and @@color:gold;fears@@ that it will happen again.
		<<set _loser.devotion -= 10>>
		<<set _loser.trust -= 10>>
	<</if>>
<<elseif _winner.mother == _loser.ID || _winner.father == _loser.ID>>
	<<if _loser.devotion >= 20>>
		She accepts her daughter, _winner.slaveName, having to rape her, but she @@color:gold;fears@@ that it will happen again.
		<<set _loser.trust -= 10>>
	<<else>>
		She @@color:mediumorchid;hates@@ having to accept rape from her own daughter, _winner.slaveName, and @@color:gold;fears@@ that it will happen again.
		<<set _loser.devotion -= 10>>
		<<set _loser.trust -= 10>>
	<</if>>
<<elseif _loser.sisters > 0>>
	<<if areSisters(_winner, _loser) == 1>>
		<<if _loser.devotion >= 20>>
			She accepts her twin sister, _winner.slaveName, having to rape her, but she @@color:gold;fears@@ that it will happen again.
			<<set _loser.trust -= 10>>
		<<else>>
			She @@color:mediumorchid;hates@@ having to accept rape from her own twin, _winner.slaveName, and @@color:gold;fears@@ that it will happen again.
			<<set _loser.devotion -= 10>>
			<<set _loser.trust -= 10>>
		<</if>>
	<<elseif areSisters(_winner, _loser) == 2>>
		<<if _loser.devotion >= 20>>
			She accepts her sister, _winner.slaveName, having to rape her, but she @@color:gold;fears@@ that it will happen again.
			<<set _loser.trust -= 10>>
		<<else>>
			She @@color:mediumorchid;hates@@ having to accept rape from her own sister, _winner.slaveName, and @@color:gold;fears@@ that it will happen again.
			<<set _loser.devotion -= 10>>
			<<set _loser.trust -= 10>>
		<</if>>
	<<elseif areSisters(_winner, _loser) == 3>>
		<<if _loser.devotion >= 20>>
			She accepts her half-sister, _winner.slaveName, having to rape her, but she @@color:gold;fears@@ that it will happen again.
			<<set _loser.trust -= 10>>
		<<else>>
			She @@color:mediumorchid;hates@@ having to accept rape from her own half-sister, _winner.slaveName, and @@color:gold;fears@@ that it will happen again.
			<<set _loser.devotion -= 10>>
			<<set _loser.trust -= 10>>
		<</if>>
	<</if>>
<<elseif (_loser.relation != 0) && (_winner.ID is _loser.relationTarget) && (_loser.devotion >= 20)>>
	She accepts _winner.slaveName having to rape her, but she @@color:gold;fears@@ that it will happen again.
	<<set _loser.trust -= 10>>
<<elseif (_loser.relation != 0) && (_winner.ID is _loser.relationTarget)>>
	She @@color:mediumorchid;hates@@ having to accept rape from _winner.slaveName, and @@color:gold;fears@@ that it will happen again.
	<<set _loser.devotion -= 10>>
	<<set _loser.trust -= 10>>
<</if>>

<<if (_loser.relationship != 0)>>
<<if (_loser.relationship <= 4)>>
<<if (_loser.relationshipTarget is _winner.ID)>>
	Fighting and rape have @@color:lightsalmon;damaged@@ the relationship between the slaves.
	<<set _loser.relationship -= 1>>
	<<set _winner.relationship -= 1>>
<</if>>
<</if>>
<</if>>

<<if (_winner.combatSkill == 0)>>
<<if random(1,100) < (20+_winner.devotion)>>
	With experience in $pitName, _winner.slaveName has @@color:green;learned basic combat skills.@@
	<<set _winner.combatSkill += 1>>
<</if>>
<</if>>

<<for $i to 0; $i < $slaves.length; $i++>>
<<if _winner.ID == $slaves[$i].ID>>
<<set $slaves[$i] to _winner>>
<</if>>
<</for>>
<<for $i to 0; $i < $slaves.length; $i++>>
<<if _loser.ID == $slaves[$i].ID>>
<<set $slaves[$i] to _loser>>
<</if>>
<</for>>

<</nobr>>\


code:
:: SE recruiter success

<<nobr>>

<<set $nextButton to "Continue">>
<<set $nextLink to "Scheduled Event">>
<<set $returnTo to "Scheduled Event">>
<<set $showEncyclopedia to 1>><<set $encyclopedia to "Enslaving People">>
<<set $recruiterProgress to 0>>

<<set $applyLaw to 0>>

<<if $recruiterTarget is "young migrants">>

<<set $activeSlaveOneTimeMaxAge to 22>>
<<include "Generate New Slave">>
<<set $activeSlave.origin to "She submitted to enslavement for a better chance at survival than she had as a migrant.">>
<<set $activeSlave.devotion = random(-15,5)>>
<<set $activeSlave.trust = random(-10,10)>>
<<set $activeSlave.health = random(-80,20)>>
<<set $activeSlave.anus to 0>>
<<if $activeSlave.vagina > 0>>
	<<set $activeSlave.vagina to random(1,3)>>
	<<set $activeSlave.vaginalSkill to random(15,40)>>
<</if>>
<<set $activeSlave.analSkill = 0>>
<<set $activeSlave.earPiercing to random(0,1)>>

Your recruiter $Recruiter.slaveName has succeeded; she's convinced a starving young migrant from the old world that she'll have a better chance at survival as one of your slaves.

<<elseif $recruiterTarget is "reassignment candidates">>

<<include "Generate XY Slave">>
<<set $activeSlave.origin to "She submitted to enslavement as her only way to obtain surgery to transform her into a woman.">>
<<set $activeSlave.devotion = random(-15,5)>>
<<set $activeSlave.trust = random(-10,10)>>
<<set $activeSlave.health = random(-40,20)>>
<<if $activeSlave.balls == 0>>
	<<set $activeSlave.balls to random(1,3)>>
<</if>>
<<set $activeSlave.tonguePiercing to random(0,1)>>
<<set $activeSlave.earPiercing to random(0,1)>>
<<set $activeSlave.nosePiercing to random(0,1)>>
<<set $activeSlave.sexualFlaw to "hates women">>

Your recruiter $Recruiter.slaveName has succeeded; she's convinced an old world person desperate for modern reassignment surgery that you'll provide it if she agrees to be a sex slave after she's recreated as a female.

<<elseif $recruiterTarget is "dissolute sissies">>

<<include "Generate XY Slave">>
<<set $activeSlave.origin to "She submitted to enslavement out of a misguided desire to join a sexually libertine society.">>
<<set $activeSlave.devotion = random(-15,5)>>
<<set $activeSlave.trust = random(-10,10)>>
<<set $activeSlave.health = random(-40,20)>>
<<set $activeSlave.anus to random(1,3)>>
<<if $activeSlave.balls == 0>>
	<<set $activeSlave.balls to random(1,3)>>
<</if>>
<<set $activeSlave.oralSkill to random(15,40)>>
<<set $activeSlave.analSkill to random(15,40)>>
<<set $activeSlave.faceImplant to random(0,1)>>
<<set $activeSlave.face += $activeSlave.faceImplant>>
<<set $activeSlave.lipsPiercing to random(0,1)>>
<<set $activeSlave.tonguePiercing to random(0,1)>>
<<set $activeSlave.earPiercing to random(0,1)>>
<<set $activeSlave.nosePiercing to random(0,1)>>
<<set $activeSlave.eyebrowPiercing to random(0,1)>>
<<set $activeSlave.navelPiercing to random(0,1)>>
<<set $activeSlave.nipplesPiercing to random(0,1)>>
<<set $activeSlave.clitPiercing to random(0,1)>>
<<set $activeSlave.sexualFlaw to "hates women">>

Your recruiter $Recruiter.slaveName has succeeded; she's convinced an old world sissy that she'd be better off as a slave in a society that is so totally sexually libertine as to accept as female and respectable anyone who takes cock.

<<elseif $recruiterTarget is "expectant mothers">>

<<set $activeSlaveOneTimeMinAge to Math.max($fertilityAge, $minimumSlaveAge)>>
<<set $one_time_age_overrides_pedo_mode to 1>> /% Old enough to be pregnant. %/
<<include "Generate XX Slave">>
<<set $activeSlave.origin to "She submitted to enslavement to get access to modern prenatal care.">>
<<set $activeSlave.devotion = random(-15,5)>>
<<set $activeSlave.trust = random(-10,10)>>
<<set $activeSlave.health = random(-80,-20)>>
<<set $activeSlave.vagina to random(1,3)>>
<<set $activeSlave.preg to random(10,30)>>
<<set $activeSlave.boobs += 50*random(0,6)>>
<<set $activeSlave.lactation to random(0,1)>>
<<set $activeSlave.weight = random(0,50)>>

Your recruiter $Recruiter.slaveName has succeeded; she's convinced an unhealthy expectant mother that you'll provide her with modern medicine in return for her enslavement.

<<else>>

<<set $activeSlaveOneTimeMinAge to 11>>
<<set $activeSlaveOneTimeMaxAge to 22>>
<<include "Generate New Slave">>
<<set $activeSlave.origin to "She submitted to enslavement to escape the hard life of an Old World whore.">>
<<set $activeSlave.career to "a prostitute">>
<<set $activeSlave.devotion = random(-15,5)>>
<<set $activeSlave.trust = random(-10,10)>>
<<set $activeSlave.health = random(-80,20)>>
<<set $activeSlave.anus to random(1,3)>>
<<if $activeSlave.balls > 0>>
	<<set $activeSlave.vagina to random(1,3)>>
	<<set $activeSlave.vaginalSkill to random(15,40)>>
<</if>>
<<set $activeSlave.oralSkill to random(15,40)>>
<<set $activeSlave.analSkill to random(15,40)>>
<<set $activeSlave.whoreSkill to random(15,40)>>
<<set $activeSlave.boobsImplant to random(0,3)*200>>
<<set $activeSlave.boobs += $activeSlave.boobsImplant>>
<<set $activeSlave.buttImplant to random(0,2)>>
<<set $activeSlave.butt to $activeSlave.buttImplant>>
<<set $activeSlave.lipsImplant to either(0,10)>>
<<set $activeSlave.lips += $activeSlave.lipsImplant>>
<<set $activeSlave.lipsPiercing to random(0,1)>>
<<set $activeSlave.tonguePiercing to random(0,1)>>
<<set $activeSlave.earPiercing to random(0,1)>>
<<set $activeSlave.nosePiercing to random(0,1)>>
<<set $activeSlave.eyebrowPiercing to random(0,1)>>
<<set $activeSlave.navelPiercing to random(0,1)>>
<<set $activeSlave.nipplesPiercing to random(0,1)>>
<<set $activeSlave.clitPiercing to random(0,1)>>

Your recruiter $Recruiter.slaveName has succeeded; she's convinced a desperate old world whore that she'd be better off as a slave in $arcologies[0].name than as a free prostitute on the rough streets of a traditional city.

<</if>>

<<set $contractCost = 1000>>
<<slaveCost $activeSlave>>
<<set $slaveCost -= $contractCost>>

<</nobr>>\
\

<<set $saleDescription to 1>>\
<<include "Long Slave Description">>\
<<set $saleDescription to 0>>\

<span id="result">
<<if $cash >= $contractCost>>\
<<link "Enslave her">>
	<<AddSlave $activeSlave>>
	<<set $cash -= $contractCost>>
	<<replace "#result">>
	<<set $nextLink to "AS Dump">>\
	<<set $returnTo to "Nonrandom Event">>\
	<<include "New Slave Intro">>
	<</replace>>
<</link>> //This will cost ¤$contractCost//
<<link "Sell her immediately">>
	<<set $cash += $slaveCost>>
	<<include "Remove activeSlave">>
	<<replace "#result">>
	$activeSlave.slaveName accepts being resold without much fuss. She's merely exchanged one unknown owner for another. For all she knows her new buyer will be less abusive than you would have been. She would be less complacent if she knew who her buyers are; she'll be immured in an arcade within the hour.
	<</replace>>
<</link>> //This will bring in ¤$slaveCost//
<<else>>\
	//You lack the necessary funds to enslave her.//
	<<set $recruiterProgress to 7>>
<</if>>\
</span>

repo_name: anonymousey/fc


code:
:: SE retirement [nobr]

<<set $nextButton to "Continue">>
<<set $nextLink to "Scheduled Event">>

<<set $retired to 1>>

<<for $i to 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].ID is $retiree.ID>>
	<<set $activeSlave to $slaves[$i]>>
	<<break>>
	<</if>>
<</for>>

$activeSlave.slaveName is retiring from sexual slavery this week,

<<if $CitizenRetirement == 1>>

in a way that will fill the rest of your property with envy and @@color:mediumaquamarine;trust.@@
<<for $i to 0; $i < $slaves.length; $i++>>
	<<set $slaves[$i].trust += 3>>
<</for>>
<<if $activeSlave.relationship > 3>>
<<for $i to 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].ID is $activeSlave.relationshipTarget>>
	($slaves[$i].slaveName, for her part, is @@color:hotpink;overjoyed,@@ though also a bit sad. She looks forward to joining $activeSlave.slaveName one day.)
	<<set $slaves[$i].devotion += 10>>
	<</if>>
<</for>>
<</if>>

She is retiring into citizenship, with a substantial annuity that will provide her with a secure if not luxurious life.
<<if $activeSlave.fetish is "mindbroken">>
	Sadly, she is not mentally equipped to look after herself, but the arcology hosts several fine institutions capable of caring for her. They'll have someone check in on her daily.
<<elseif $activeSlave.relationship is -3>>
	She wishes she could continue to be your slave wife, but she understands that marriages between slaves and slave owners are predicated on the slave relationship. She knows that her retirement has come, meaning that her slave relationship to you is ending. She's had a long time to get used to the idea, and gets through the process with dignity, doing her best to avoid embarrassing you.
<<elseif $activeSlave.devotion > 95>>
	She desperately wishes she could continue to be your sex slave, but she understands that her retirement has come. More importantly, she's had a long time to get used to the idea, and gets through the process with resolution, doing her best to avoid embarrassing herself or you.
<<elseif $activeSlave.devotion > 20>>
	She is very happy to be a free person again, though she does her best to do you the favor of not being too ostentatious about this.
<<else>>
	It is with an ill-disguised triumphalism that she leaves sexual slavery behind her, and enters into a life in which she can decline to have things inserted into her body.
<</if>>
She's certainly going to have some adjustments to make.
<<if $activeSlave.energy > 90>>
	Notably, dealing with her formidable sex drive is now her business. You suspect the arcology's clubs are about to receive a fanatical new regular, and the arcology's whores may not know what hit them when she realizes that she's now quite capable of buying whatever she wants on a semi-regular basis.
	<<if $activeSlave.analSkill+$activeSlave.oralSkill >= 120>>
	She's so sexually skilled, though, that she probably won't have much trouble. She'll probably have more than a few eager lovers within days.
	<</if>>
	<<if $activeSlave.face > 1>>
	She's certainly attractive enough that she'll have no trouble finding as many casual hookups as she likes.
	<</if>>
<</if>>

<<if $activeSlave.prestigeDesc == 0>>
  <<set $toSearch to "null">>
<<else>>
<<set $toSearch to $activeSlave.prestigeDesc>>
<</if>>
<<if ($toSearch.indexOf("Head Girl") != -1) || ($HeadGirl.ID is $activeSlave.ID)>>

	She has a reputation from her long service as your Head Girl. To her bemusement, and considerable satisfaction, she has multiple job offers from slaving operations without even having to circulate her resume.
	<<if $activeSlave.fetish is "sadist">>
	The prospect of a virtually unlimited field for abuse and rape is something she'd pay for, now that she has her own money. She's excited beyond description to find that there are people interested in paying her to exercise her exquisitely horrible skills.
	<<elseif $activeSlave.fetish is "dom">>
	Dominance is second nature to her. Though she doesn't have to work, her slaving skills are valuable enough that she'd probably be tempted by the pay she can expect, even if she didn't derive real pleasure from exercising them.
	<<else>>
	Her annuity means that she doesn't have to work, but she's inclined to do so. Her skills command reasonable wages in the slave training field, and between those prospects and her annuity, she stands to become wealthy.
	<</if>>
<<elseif ($toSearch.indexOf("is world famous for") != -1)>>

	<<set $seed to $activeSlave.prestigeDesc>>
	<<set $seed to $seed.replace("She is famous for her recurring role in slave pornography. Her many fans relish", "enjoy")>>
	In addition to her annuity, you've laid the groundwork for her to become wealthy by the way you publicized pornography of her. Many thousands of people across the world are willing to pay to $seed, and they enjoy it in part because she doesn't mind it, either. She's in a position to make great money for doing on camera what she would probably do anyway.
<<elseif ($activeSlave.intelligence >= -1) && ($activeSlave.muscles > 5) && ($activeSlave.combatSkill >= 1) && ($activeSlave.amp != 1) && ($activeSlave.face > 0)>>

	She's pretty and deadly. If she feels she prefers wealth and danger to living on her annuity, she'll have no trouble finding work. In fact, she'll likely have trouble sifting through all the mercenary organizations, businesses in need of attractive and competent guards for public spaces, and citizens looking for effective bodyguards willing to hire her.
<<elseif ($activeSlave.intelligence >= 2) && ($activeSlave.intelligenceImplant >= 1)>>

	She has no skills extraordinary enough to bring prospective employers in search of her, in this new, slaveowning economy, but she is highly intelligent, educated, and has a small income. As you know from your own abundant personal experience, her intelligence is a lever, her annuity is a fulcrum, and with the two, she may move the world someday. You have no doubt that, at the very least, she will be far from the poorest of your citizens.
<</if>>

As she takes her leave, heading the short distance down to her modest little apartment, she presents a strange appearance. She's wearing cheap but not unattractive clothing, and you are struck by a crystal-clear mental image of what she looks like nude.
<<if $activeSlave.fetish != "mindbroken">>
<<if $activeSlave.devotion > 20>>
	<<if $activeSlave.devotion > 95>>
	She's doing her absolute best not to sob, but her lips are quivering.
	<<else>>
	She looks like she might cry.
	<</if>>
	<<if $activeSlave.relationship is -3>>
	The ring she wore when she was your slave wife is nowhere to be seen; she's either taken it with her as a souvenir, or left it back in her sleeping area. If it's the former, no matter: you can always get more.
	<</if>>
	<<if (canTalk($activeSlave) == false)>>
	She gestures her thanks, and ironically indicates that she'll see you around.
	<<elseif SlaveStatsChecker.checkForLisp($activeSlave)>>
	"Well, thankth, <<if def $PC.customTitleLisp>>$PC.customTitleLisp<<elseif $PC.title != 0>>Mathter<<else>>Mithtreth<</if>>, um, I mean $PCName. I g-gueth I'll thee you around. I mean, the arcology. Anyway. Bye."
	<<else>>
	"Well, thanks, <<if def $PC.customTitle>>$PC.customTitle<<elseif $PC.title != 0>>Master<<else>>Mistress<</if>>, um, I mean $PCName. I g-guess I'll see you around. I mean, the arcology. Anyway. Bye."
	<</if>>
	<<if $activeSlave.devotion > 95>>
	She turns resolutely away and flees, trying to choke back her tears.
	<<else>>
	She turns resolutely away.
	<</if>>
<</if>>
<</if>>

<<if $activeSlave.energy > 50>>
<<if $activeSlave.devotion > 20>>

<<link "See her around">>
	<<replace "#result">>
	Later that week, <<if $club > 0>>as you take an evening to enjoy $clubName in person<<else>>out in one of $arcologies[0].name's better clubs<</if>>, you run into $activeSlave.slaveName. She looks good, and happy, and is not at all displeased to see you. She sidles up to you and makes it clear without a
	<<if (canTalk($activeSlave) == false)>>
		gesture
	<<else>>
		word
	<</if>>
	that she's quite eager to fuck you as a free woman.
	<<if $activeSlave.relationship is -3>>
		When she knows she has your attention, she produces the steel ring that she wore when she was your slave wife. She doesn't put it on, but she kisses it suggestively before putting it back in her purse.
	<</if>>
	<<if ($activeSlave.fetish is "submissive") && ($activeSlave.fetishKnown == 1)>>
		Taking the lead as you know she prefers, you lead her to a private booth and make love to her, holding her down with the gentle but firm grip that never fails to bring her through a long and gasping climax.
	<<elseif ($activeSlave.fetish is "cumslut") && ($activeSlave.fetishKnown == 1)>>
		She <<if $PC.dick == 1>>sucks your dick<<if $PC.vagina == 1>> and <</if>><</if>><<if $PC.vagina == 1>>eats you out<</if>> right there, eagerly <<if $activeSlave.vagina > -1>>jilling off<<else>>jacking off<</if>> as she enjoys your infinitely familiar taste and scent.
	<<elseif ($activeSlave.fetish is "humiliation") && ($activeSlave.fetishKnown == 1)>>
		You take her right there, the humiliation slut getting what she came to the club to get: an opportunity to orgasm in public with many eyes enjoying the sight of her pleasure.
	<<elseif ($activeSlave.fetish is "buttslut") && ($activeSlave.fetishKnown == 1)>>
		Your <<if $PC.dick == 1>>dick is<<else>>fingers are<</if>> up her ass in no time, and she's so primed for anal that she climaxes with indecent speed. She begs you to keep fucking her butt, and you do.
	<<elseif ($activeSlave.fetish is "boobs") && ($activeSlave.fetishKnown == 1)>>
		She grinds shamelessly against you, your hands holding her breasts just the way you know she loves them held. Your <<if $PC.boobs == 1>>own tits press softly<<else>>manly chest presses<</if>> against her back as she cranes back to kiss you.
	<<elseif ($activeSlave.fetish is "pregnancy") && ($activeSlave.fetishKnown == 1)>>
		She begs shamelessly for your seed, right here and right now, and <<if $PC.dick == 1>>you give it to her, producing the usual perverted orgasm as she feels it inside her.<<else>>as usual, she doesn't care that the phallus you fuck her with is actually a strap-on. She manages to pretend it's a cock knocking her up.<</if>>
	<<elseif ($activeSlave.fetish is "dom") && ($activeSlave.fetishKnown == 1)>>
		After some mutually aggressive dancing that leaves you both panting and sweaty, you work together to attract another free dancer, a girl who $activeSlave.slaveName had her eye on already. Before long, the poor girl is screaming with orgasm in a private booth as you take her together.
	<<elseif ($activeSlave.fetish is "sadist") && ($activeSlave.fetishKnown == 1)>>
		After some mutually aggressive dancing that leaves you both panting and sweaty, you mutually select one of the club's slaves, and drag her back to a private booth. Before long, her screams for mercy are audible on the floor.
	<<elseif ($activeSlave.fetish is "masochist") && ($activeSlave.fetishKnown == 1)>>
		You don't have the setup for really elaborate pain, so you fuck her hard and fast, to give her that edge of discomfort that she now requires to get off. She gasps as she gets what she needs, not free of her perversions despite her status as a citizen.
	<<else>>
		You remember her uncomplicated tastes well, though the total confidence that her willingness and pleasure are unfeigned is novel. You dance, you laugh, and you make love to her, all through the night.
	<</if>>
	<</replace>>
<</link>>

<<if $activeSlave.relationship >= 4>>
<<link "Send her girl into retirement with her">>
	<<replace "#result">>
	<<for $i to 0; $i < $slaves.length; $i++>>
		<<if $slaves[$i].ID is $activeSlave.relationshipTarget>>
		She doesn't get far before she hears a desperate pursuit behind her. It's her <<if $activeSlave.relationship >= 5>>wife<<else>>lover<</if>>, $slaves[$i].slaveName, hurrying to catch up. Watching on the monitors, you see $activeSlave.slaveName's mixed pleasure and pain at seeing her again so soon, followed by a tearful explanation and an embrace so heartfelt that the pair of ex-slaves collapse to the floor together, sobbing.
		<<set $activeSlave to $slaves[$i]>>
		<<include "Remove activeSlave">>
		<<break>>
		<</if>>
	<</for>>

	<<if $arcologies[0].FSPaternalist != "unset">>
		Of course, your paternalistic arcology thinks this @@color:green;almost too romantic,@@ and there are jesting suggestions that outcomes this adorable ought to be illegal. The pair become celebrated citizens immediately.
		<<set $rep += 10*$FSSingleSlaveRep*($arcologies[0].FSPaternalist/$FSLockinLevel)>>
		<<set $arcologies[0].FSPaternalist += 0.1*$FSSingleSlaveRep>>
	<<else>>
		Though it is not ordinarily paternalistic, even your society thinks this is @@color:green;pretty romantic.@@
		<<set $rep += 5*$FSSingleSlaveRep>>
	<</if>>
	<</replace>>
<</link>>
<</if>>

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

Your arcology has gained a citizen.
<<set $ACitizens += 1>>

<<elseif $BioreactorRetirement == 1>>

in a way that will inevitably fill the rest of your property with @@color:gold;fear.@@
<<for $i to 0; $i < $slaves.length; $i++>>
	<<set $slaves[$i].trust -= 3>>
<</for>>
<<if $activeSlave.relationship > 3>>
<<for $i to 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].ID is $activeSlave.relationshipTarget>>
	($slaves[$i].slaveName, for her part, is @@color:mediumorchid;horrified.@@)
	<<set $slaves[$i].devotion -= 20>>
	<</if>>
<</for>>
<</if>>

She is retiring into a featureless existence where the only realities are the phalli ejaculating food, fluid, and drugs into her <<if $activeSlave.vagina > -1>> vagina,<</if>> anus, and throat,<<if $activeSlave.balls > 0>> the relentless sodomy forcing semen out of her distended balls,<</if>> and the milk flowing into the milkers tugging at  her painfully engorged nipples.
<<if $activeSlave.fetish is "mindbroken">>
	She's already broken in spirit, and she complies with her installation into a milking machine with the dumb obedience of the animal she has become.
<<elseif $activeSlave.devotion > 20>>
	She complies with her installation into a milking machine with the dumb obedience of someone whose mind will not allow them to understand their true situation out of simple immediate self-preservation.
<<elseif $activeSlave.trust < 50>>
	She is so terrified of punishment that she complies with her installation into a milking machine to avoid pain. She knows that if she does not obey, there will be pain, and if she obeys, there may be pain but it will come later.
<<else>>
	She resists, of course, giving the compliance systems an excuse to unload quite a few volts of electricity into her. This disobedience is one of her more abortive attempts to resist your will, and it is her last.
<</if>>

It will take her some time to reach full production, a state that she'll be kept in until it becomes impossible for the most reckless drug regime to keep her there. Near the end of the week, you check in on her idly. Her breasts are already swelling under the hormonal treatments that can only be applied when the sole priority is production. The rhythm of the milkers gives them a slight pulsing heave, first one, then the other. Her milk whitens the lines running away from her udders.

<<link "Have a taste">>
	<<replace "#result">>
	You tug one of the milkers off a nipple, producing a lewd sucking noise as the wet flesh pops free of the machinery. It must have been quite painful, but the feeding apparatus that covers much of the slave's face affords no indication of her reaction, if any. You heft the boob with both hands and take the nipple into your mouth, sucking gently. A rich jet of cream hits your tongue, the milkfat luscious with hints of vanilla. The warm breastflesh fills your hands, and you fancy that you can feel the prosperity under your fingers as her body desperately hurries to make more.
	<</replace>>
<</link>>

You have @@color:yellowgreen;gained a standard bioreactor.@@
<<set $menialBioreactors += 1>>

<<elseif $ArcadeRetirement == 1>>

in a way that will inevitably fill the rest of your property with @@color:gold;fear.@@
<<for $i to 0; $i < $slaves.length; $i++>>
	<<set $slaves[$i].trust -= 3>>
<</for>>
<<if $activeSlave.relationship > 3>>
<<for $i to 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].ID is $activeSlave.relationshipTarget>>
	($slaves[$i].slaveName, for her part, is @@color:mediumorchid;horrified.@@)
	<<set $slaves[$i].devotion -= 20>>
	<</if>>
<</for>>
<</if>>

She is retiring into a dark, featureless eternity in which the only realities are phalli intruding into her<<if $activeSlave.vagina > -1>> vagina,<</if>> anus, and throat, and the drug-induced haze that will leave her no choice but to orgasm when she is penetrated.
<<if $activeSlave.fetish is "mindbroken">>
	She's already broken in spirit, and she complies with the conversion process with the dumb obedience of the animal she has become.
<<elseif $activeSlave.devotion > 20>>
	She complies with the conversion process with the dumb obedience of someone whose mind will not allow them to understand their true situation out of simple immediate self-preservation.
<<elseif $activeSlave.trust < 50>>
	She is so terrified of punishment that she complies with the conversion process to avoid pain. She knows that if she does not obey, there will be pain, and if she obeys, there may be pain but it will come later.
<<else>>
	She resists, of course, giving the compliance systems an excuse to unload quite a few volts of electricity into her. This disobedience is one of her more abortive attempts to resist your will, and it is her last.
<</if>>

She is brought down to
<<if $arcade != 0>>
	$arcadeName,
<<else>>
	the autosurgery,
<</if>>
and, a disturbingly short time later, there is a new Fuckdoll, a humanoid figure encased in a tough black bodysuit, in your office.
<<if $activeSlave.amp == 1>>
	Its limbless form is not obviously human. It's a sex toy, with several interesting holes and nothing else worth noticing.
<<else>>
	It stands immobile, the hydraulic system hidden within the suit stiffened to make voluntary movement impossible.
<</if>>
<<if $activeSlave.boobs > 2000>>
	The suit has a pair of gaps for its monstrous breasts, bare expanses of $activeSlave.skin skin.
<</if>>
<<if $activeSlave.lips > 40>>
	Its upper hole is surrounded by a ludicrous set of swollen lips.
<</if>>
<<if $activeSlave.labia > 0>>
	The conversion process left its labia permanently engorged.
<</if>>
<<if $activeSlave.vaginaLube > 0>>
	Its front hole is dripping streams of natural lubrication.
<</if>>
<<if $activeSlave.anus > 2>>
	The gap in the suit over its rear hole opens into the Fuckdoll's interior, since it's the same size as the Fuckdoll's loose sphincter.
<</if>>

<<link "Fuck it">>
	<<replace "#result">>
	<<if $PC.dick == 1>>
		You enter a command, and the Fuckdoll instantly <<if $activeSlave.amp == 1>>presents its upper hole<<else>>collapses to its knees<</if>>. You tug the plug clear of its upper hole, and insert your cock. The Fuckdoll's nose ports open when it needs to breathe, but periodically close without warning to force its throat to spasm. When you're bored of this, you pull your dick clear and haul the Fuckdoll over to the couch, entering the command that forces it to present its rear hole. Your saliva-slicked shaft slides readily inside the sex toy's warm interior. After a while, you enter the tightening command, and the Fuckdoll's sphincter obediently cinches down, encouraging you to shoot your load inside it. A low moaning sound issues from its upper hole.
	<<else>>
		You shove the Fuckdoll backward onto the couch, and enter a command that forces it into a bridged position. <<if $activeSlave.vagina > -1>>Its clit is brought to full hardness, and its front hole becomes wet and flushed. You ride this until you orgasm, the Fuckdoll's copious juices adding lewd noises to each grinding motion.<<else>>Its dick is forced to perfect hardness. Its tubes have been tied to prevent any unseemly contamination, allowing you to ride it until you are satisfied. When you're done, the Fuckdoll is allowed to go soft. It did not climax.<</if>>
	<</if>>
	You leave it where it is, your personal assistant directing a slave to perform maintenance on it when she has the time.
	<</replace>>
<</link>>

You have @@color:yellowgreen;gained a fuckdoll.@@
<<set $fuckdolls += 1>>

<<else>>

into a life of menial drudgery. This has little impact on your other human property.
<<if $activeSlave.relationship > 3>>
<<for $i to 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].ID is $activeSlave.relationshipTarget>>
	($slaves[$i].slaveName, for her part, is @@color:mediumorchid;saddened,@@ but not seriously affected. She knew this was coming.)
	<<set $slaves[$i].devotion -= 5>>
	<</if>>
<</for>>
<</if>>
There are a thousand things a slave like her can usefully do around the arcology, and she'll do them. But she's reached the age where it's time for you and the arcology's citizens to fuck younger girls.

You have @@color:yellowgreen;gained a menial slave.@@
<<set $helots += 1>>

<</if>>


code:
:: Security Force Proposal

<<nobr>>
<<set $nextLink to "Next Week">>
<<set $nextButton to "Continue">>

<</nobr>>\
\
The Free Cities were founded on the principles of unrestrained anarcho-capitalism. To those with such beliefs, the very idea of possessing an armed force, a key tool of government control, or weapons at all, was anathema.

In the period since, however, your citizens have seen the value in weaponry. They watched on their news-feed as some Free Cities were sacked by the armies and mobs of the Old World, driven by their hatred of the citizens' luxurious lifestyles. They've seen other Cities toppled from within, by slave conspiracies or infighting among citizen groupings with differing beliefs. They've witnessed the distressingly rapid rise of fanatical anti-slavery organizations, who would like nothing more than to see them slowly bled by their own chattel. They are learned people, and they know what happens to slaveowners who lose their power.

They've also seen the results of your policies. Your actions towards the arming of both yourself and the arcology proved critical, and ensured their safety when the Old World came for them. And your victory over the Daughters of Liberty, who the citizens know would have executed every single one of them, has created an opportunity. If you insisted upon the creation of a standing 'security' force for the arcology, many would support you and, more importantly, nobody of note would object.

Such a force would solve many problems. More soldiers would mean more control, which is very good for you. More soldiers would mean more security for the arcology and the approaches to it, which is very good for business. More soldiers would mean more obedience from rebellious slaves who can see how powerless they truly are, which is very good for everybody. The force would be tiny compared to the Old World militaries that still exist, but money and technology can, of course, overcome massive numerical inferiority. This being the Free Cities, they would have other uses besides security. Perhaps, in time, you could exert some manner of influence on the Old World itself.

''This is a unique and very important opportunity'', and is possible only because of your recent victory over the Daughters. If you do not seize it, the memories and fears of your citizens will fade, and you will not be able to raise the matter again.
--------------------
<<set $securityForceEventSeen to 1>>
<span id="result">
<<link "Prepare for an announcement">>
	<<replace "#result">>
	You instruct $assistantName to announce to the arcology's citizenry that you will be making an important announcement in the near future regarding the security situation. Given the damage still present from the Daughters' attack, everyone will be turning in. You also instruct your assistant to begin quietly investigating potential leadership figures for the force itself.
	<<set $securityForceCreate to 1>>
	<<set $cash -= 20000>>
	<<set $nextButton to "Continue">>
	<</replace>>
<</link>> //Initial costs are ¤20000, and upon establishment force will have significant support costs until it is self-sufficient.//
<<link "The mercenaries are enough">>
	<<replace "#result">>
	On second thought, such a force is not needed. Your methods have served well so far - why should there be any change going forward?
	<<set $nextButton to "Continue">>
	<</replace>>
<</link>>
</span>