From 299d8f9bb9583a28a476c25423f7fbdf3c55a526 Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Sat, 26 Jun 2021 22:00:25 -0400
Subject: [PATCH] pit fight

---
 src/events/PE/pePitFight.js     | 257 ++++++++++++++++++++++++++++++++
 src/events/nonRandomEvent.js    |   4 +-
 src/uncategorized/pePitFight.tw | 233 -----------------------------
 3 files changed, 259 insertions(+), 235 deletions(-)
 create mode 100644 src/events/PE/pePitFight.js
 delete mode 100644 src/uncategorized/pePitFight.tw

diff --git a/src/events/PE/pePitFight.js b/src/events/PE/pePitFight.js
new file mode 100644
index 00000000000..dc9728bb99e
--- /dev/null
+++ b/src/events/PE/pePitFight.js
@@ -0,0 +1,257 @@
+App.Events.PEPitFight = class PEPitFight extends App.Events.BaseEvent {
+	eventPrerequisites() {
+		return [
+			() => V.eventResults.pit === 1,
+			() => V.BodyguardID !== 0,
+
+		];
+	}
+
+	actorPrerequisites() {
+		return [];
+	}
+
+	execute(node) {
+		let r = [];
+		V.nextButton = "Continue";
+		V.nextLink = "RIE Eligibility Check";
+		const slave = S.Bodyguard;
+		const {
+			He, His,
+			he, him, his, himself
+		} = getPronouns(slave);
+
+		V.nextButton = "Continue";
+		V.nextLink = "Random Nonindividual Event";
+
+		const deadliness = deadliness(slave);
+
+		V.eventResults.pit = 0;
+
+		App.Events.drawEventArt(node, slave, "no clothing");
+
+		r.push(`It's time for the private fight you entered your Bodyguard in. It will take place in a back room of a well respected club. There is a ring set into the floor, and space for a handful of spectators, but the setup is quite spartan. The sport is just getting off the ground.`);
+		App.UI.DOM.slaveDescriptionDialog(slave);
+		r.push(`is first to walk into the ring. ${He}'s stark naked and is carrying a simple single-edged straight sword, identical to the one ${his} opponent will be using. The fight will be fair.`);
+
+		App.Events.addParagraph(node, r);
+		r = [];
+
+		r.push(`Across the ring, ${his} opponent's owner nods civilly to you and examines slave.slaveName.`);
+
+		if (slave.skill.combat > 0) {
+			r.push(`${His} combat skills greatly increase ${his} deadliness.`);
+		}
+
+		if (V.AgePenalty !== 0) {
+			if (slave.physicalAge >= 100) {
+				r.push(`${He} seems prepared for death, in a way.`);
+			} else if ((slave.physicalAge >= 85)) {
+				r.push(`${He} tries not to waste ${his} strength before the fight, knowing that ${his} extreme age won't allow ${him} a second wind.`);
+			} else if ((slave.physicalAge >= 70)) {
+				r.push(`${He} steadies ${himself} as well as ${he} can in ${his} advanced age.`);
+			}
+		}
+
+		if (slave.muscles > 95 && slave.height >= 185) {
+			r.push(`${His} huge muscles are an intimidating sight and, despite their massive size, ${he} is tall enough to not be hindered by them.`);
+		} else if (slave.muscles > 95) {
+			r.push(`${His} huge muscles are an intimidating sight, but may hinder ${his} flexibility.`);
+		} else if (slave.muscles > 30) {
+			r.push(`${His} muscles are a trim and powerful sight.`);
+		} else if (slave.muscles < -95) {
+			r.push(`${He} can barely stand, let alone ready ${his} weapon. ${His} feeble attempts elicit a roar of laughter from the spectators.`);
+		} else if (slave.muscles < -30) {
+			r.push(`${He} struggles to raise ${his} weapon. ${His} feeble attempts elicit a roar of laughter from the spectators.`);
+		} else if (slave.muscles < -5) {
+			r.push(`${He} is rather unfit; ${he} will likely be outmatched by near any real opponent.`);
+		}
+
+		if (slave.height >= 170) {
+			r.push(`${His} height gives ${him} a reach advantage with ${his} sword.`);
+		}
+
+		if (slave.health.condition > 50) {
+			r.push(`${His} shining health makes ${him} a better combatant.`);
+		}
+
+		if (slave.weight > 190) {
+			r.push(`${His} extreme weight nearly immobilizes ${him}. ${He} struggles to move let alone fight.`);
+		} else if (slave.weight > 160) {
+			r.push(`${His} extreme weight limits ${his} mobility and range of motion, making ${him} an easy target.`);
+		} else if (slave.weight > 130) {
+			r.push(`${His} extreme weight holds ${him} back as a pit fighter.`);
+		} else if (slave.weight > 30) {
+			r.push(`${His} heavy weight is an impediment as a pit fighter.`);
+		} else if (slave.weight < -10) {
+			r.push(`${His} light weight is an impediment as a pit fighter.`);
+		}
+
+		if (slave.health.condition < -50) {
+			r.push(`${His} poor health makes ${him} a weaker combatant.`);
+		}
+
+		if (slave.health.tired > 90) {
+			r.push(`${He} is exhausted and can barely stay awake; ${he} won't put up a fight.`);
+		} else if (slave.health.tired > 60) {
+			r.push(`${He} is fatigued and will most likely never see it coming.`);
+		} else if (slave.health.tired > 30) {
+			r.push(`${He} is tired and more likely to take a hit then to give one.`);
+		}
+
+		if (slave.pregKnown === 1 || slave.bellyPreg >= 1500) {
+			if (slave.bellyPreg >= 750000) {
+				r.push(`${His} monolithic pregnancy guarantees ${his} loss; not only is ${he} on the verge of splitting open, but it is an unmissable, indefensible target that threatens to drag ${him} to the ground. ${He} has no hope of attacking around the straining mass, let alone stopping ${his} opponent.`);
+			} else if (slave.bellyPreg >= 600000) {
+				r.push(`${His} titanic pregnancy is practically a guaranteed loss; ${he} can barely stand let alone fight.`);
+			} else if (slave.bellyPreg >= 450000) {
+				r.push(`${His} gigantic pregnancy is nearly a guaranteed loss; it presents an unmissable, indefensible target for ${his} adversary.`);
+			} else if (slave.bellyPreg >= 300000) {
+				r.push(`${His} massive pregnancy obstructs ${his} movement and greatly hinders ${him}. ${He} struggles to think of how ${he} could even begin to defend ${his} bulk.`);
+			} else if (slave.bellyPreg >= 150000) {
+				r.push(`${His} giant pregnancy obstructs ${his} movement and greatly slows ${him} down.`);
+			} else if (slave.bellyPreg >= 100000) {
+				r.push(`${His} giant belly gets in ${his} way and weighs ${him} down.`);
+			} else if (slave.bellyPreg >= 10000) {
+				r.push(`${His} huge belly is unwieldy and hinders ${his} efforts.`);
+			} else if (slave.bellyPreg >= 5000) {
+				r.push(`${His} advanced pregnancy makes ${him} much less effective.`);
+			} else if (slave.bellyPreg >= 1500) {
+				r.push(`${His} growing pregnancy distracts ${him} from the fight.`);
+			} else {
+				r.push(`The life just beginning to grow inside ${him} distracts ${him} from the fight.`);
+			}
+		} else if (slave.bellyImplant >= 1500) {
+			if (slave.bellyImplant >= 750000) {
+				r.push(`${His} monolithic, ${slave.bellyImplant}cc implant filled belly guarantees ${his} loss; not only is ${he} on the verge of splitting open, but it is an unmissable, indefensible target that threatens to drag ${him} to the ground. ${He} has no hope of attacking around the straining mass, let alone stopping ${his} opponent.`);
+			} else if (slave.bellyImplant >= 600000) {
+				r.push(`${His} titanic, ${slave.bellyImplant}cc implant filled belly is practically a guaranteed loss; ${he} can barely stand let alone fight. Not only is it cripplingly heavy, unwieldy and an easy target, but ${he} can feel it straining to hold the sheer amount of filler forced into it.`);
+			} else if (slave.bellyImplant >= 450000) {
+				r.push(`${His} gigantic, ${slave.bellyImplant}cc implant filled belly is nearly a guaranteed loss; it presents an unmissable, indefensible target for ${his} adversary.`);
+			} else if (slave.bellyImplant >= 300000) {
+				r.push(`${His} massive, ${slave.bellyImplant}cc implant filled belly is extremely heavy, unwieldy and an easy target, practically damning ${him} in combat.`);
+			} else if (slave.bellyImplant >= 150000) {
+				r.push(`${His} giant, ${slave.bellyImplant}cc implant filled belly obstructs ${his} movement and greatly slows ${him} down.`);
+			} else if (slave.bellyImplant >= 100000) {
+				r.push(`${His} giant, ${slave.bellyImplant}cc implant filled belly is very heavy and unwieldy, throwing off ${his} weight and making ${him} far less effective.`);
+			} else if (slave.bellyImplant >= 10000) {
+				r.push(`${His} huge, ${slave.bellyImplant}cc implant filled belly is very heavy and unwieldy, throwing off ${his} weight and making ${him} far less effective.`);
+			} else if (slave.bellyImplant >= 5000) {
+				r.push(`${His} large, ${slave.bellyImplant}cc implant filled belly is heavy and unwieldy, rendering ${him} less effective.`);
+			} else if (slave.bellyImplant >= 1500) {
+				r.push(`${His} swollen, ${slave.bellyImplant}cc implant filled belly is heavy and makes ${him} less effective.`);
+			}
+		}
+		if (isInLabor(slave)) {
+			r.push(`${He}'s feeling labor pains. ${His} ${slave.pregType > 1 ? "children" : "child"} ready to be born.`);
+		} else if (slave.preg >= slave.pregData.normalBirth && slave.pregControl !== "labor suppressors") {
+			r.push(`${He}'ll be going into labor any time now and ${he} knows it.`);
+		}
+
+		if (slave.bellyFluid >= 10000) {
+			r.push(`${His} hugely bloated, ${slave.inflationType}-filled belly is taut and painful, hindering ${his} ability to fight.`);
+		} else if (slave.bellyFluid >= 5000) {
+			r.push(`${His} bloated, ${slave.inflationType}-stuffed belly is constantly jiggling and moving, distracting ${him} and throwing off ${his} weight.`);
+		} else if (slave.bellyFluid >= 2000) {
+			r.push(`${His} distended, ${slave.inflationType}-belly is uncomfortable and heavy, distracting ${him}.`);
+		}
+
+		if (slave.teeth === "pointy") {
+			r.push(`${His} sharp teeth add nothing to ${his} actual effectiveness, but they're certainly intimidating.`);
+		}
+
+		if (!canSee(slave)) {
+			r.push(`${His} lack of eyesight means certain death.`);
+		} else if (!canSeePerfectly(slave)) {
+			r.push(`${His} poor eyesight makes ${him} a weaker fighter.`);
+		}
+
+		if (!canHear(slave)) {
+			r.push(`${His} lack of hearing is a major detriment.`);
+		} else if (((slave.hears === -1) && (slave.earwear !== "hearing aids")) || (slave.hears === 0 && (slave.earwear === "muffling ear plugs"))) {
+			r.push(`${His} lack of hearing is a minor detriment.`);
+		}
+
+		if (deadliness > 5) {
+			r.push(`${slave.slaveName} seems supremely confident, even eager to please you.`);
+		} else if (deadliness > 3) {
+			r.push(`${slave.slaveName} seems nervous, but steels ${himself} to fight for you.`);
+		} else if (deadliness > 1) {
+			r.push(`${slave.slaveName} seems terrified, and barely controls ${himself}.`);
+		} else {
+			r.push(`${slave.slaveName} is obviously terrified, and might flee if there were a way out of the pit.`);
+		}
+
+		r.push(`Finally, ${his} opponent enters as well.`);
+
+		const randomOpponent = random(1, 120);
+		const {
+			HeU,
+			himU, hisU, heU, womanU, girlU
+		} = getNonlocalPronouns(V.seeDicks).appendSuffix("U");
+		let opponent;
+		if (randomOpponent > 100) {
+			r.push(`${HeU} is a hulking, musclebound ${girlU} with a wasp waist and immense rear. ${HeU} seems nothing short of excited.`);
+			opponent = 6;
+		} else if (randomOpponent > 80) {
+			r.push(`${HeU} is a huge, muscular Amazon filled with confidence.`);
+			opponent = 5;
+		} else if (randomOpponent > 60) {
+			r.push(`${HeU} is a short but muscular ${girlU}, trying ${hisU} best to look confident.`);
+			opponent = 4;
+		} else if (randomOpponent > 40) {
+			r.push(`${HeU} is a tall, thin ${womanU} covered in ropy muscle, trying to hide ${hisU} terror.`);
+			opponent = 3;
+		} else if (randomOpponent > 20) {
+			r.push(`${HeU} is a decent-looking slave, physically fit but obviously scared.`);
+			opponent = 2;
+		} else {
+			r.push(`${HeU} is an average looking slave, so frightened `);
+			if (V.seePee === 1) {
+				r.push(`there's urine running down ${hisU} leg.`);
+			} else {
+				r.push(`${hisU} teeth are audibly chattering.`);
+			}
+			r.push(`${HeU} must have really annoyed ${hisU} master to earn this.`);
+			opponent = 1;
+		}
+
+		r.push(`The umpire announces gravely that the fight is to the death and rings a bell.`);
+
+		App.Events.addParagraph(node, r);
+		r = [];
+
+		if (deadliness > (opponent + 1)) {
+			r.push(`${slave.slaveName} senses that ${he} is greatly superior, and decides to make a quick end before ${his} opponent can try something foolish. ${He} feints high and stabs low; ${his} enemy just manages to parry the low stab, but is so much weaker that ${slave.slaveName} simply overpowers ${himU}, so that ${heU} falls onto ${hisU} back with the force of the clash. ${slave.slaveName} takes one step forward and runs ${his} sword through the prostrate slave's heart. This victory has <span class="reputation inc">won you some renown</span> and <span class="cash inc">a sum of money</span> from each of the spectators.`);
+			repX(500, "pit", slave);
+			cashX(5000, "pit", slave);
+			slave.counter.pitWins += 1;
+			slave.counter.pitKills += 1;
+			V.pitKillsTotal += 1;
+		} else if (deadliness > (opponent)) {
+			r.push(`The combat is long and exhausting. ${slave.slaveName} and ${his} opponent are closely matched in terms of skill, so neither takes foolish risks and a protracted, bloody fight results as both slaves take horrible but non-life-threatening cuts. Finally, slave.slaveName's superior physical condition wins out and ${his} opponent falls from exhaustion and blood loss. slave.slaveName stumbles over to open${hisU} throat. This victory has <span class="reputation inc">won you some renown</span> and <span class="cash inc">a sum of money</span> from each of the spectators, though ${slave.slaveName} is <span class="health dec">badly hurt.</span>`);
+			repX(500, "pit", slave);
+			cashX(5000, "pit", slave);
+			healthDamage(slave, 50);
+			slave.counter.pitWins += 1;
+			slave.counter.pitKills += 1;
+			V.pitKillsTotal += 1;
+		} else if (deadliness > (opponent-1)) {
+			r.push(`The combat is long and exhausting. ${slave.slaveName} and ${his} opponent are closely matched in terms of skill, so neither takes foolish risks and a protracted, bloody fight results as both slaves take horrible but non-life-threatening cuts. Finally, slave.slaveName's inferior physical condition fails ${him} and ${he} falls from exhaustion and blood loss. As ${he} slumps ${he} catches your eye with a look of apology. ${His} opponent stumbles over to open ${his} throat. ${slave.slaveName} <span class="health dec">has been killed.</span>`);
+			healthDamage(slave, 1000);
+		} else {
+			r.push(`${slave.slaveName} is outmatched from the start. In the first pass, ${his} opponent moves beyond ${him}, opening a long gash in ${his} thigh as ${heU} goes. Thus injured, ${slave.slaveName} fails to block a slash that severs ${his} Achilles tendon on the other side. On ${his} knees, ${he} barely manages to ward off one more blow before the second one opens ${his} belly. ${slave.slaveName} <span class="health dec">has been killed.</span>`);
+			healthDamage(slave, 1000);
+		}
+
+		if (slave.health.health < -90) {
+			removeSlave(slave);
+			V.nextLink = "Random Nonindividual Event";
+			App.Utils.updateUserButton();
+		}
+
+		V.pitFightsTotal++;
+		App.Events.addParagraph(node, r);
+	}
+};
+
diff --git a/src/events/nonRandomEvent.js b/src/events/nonRandomEvent.js
index de185703f36..aa82783f01c 100644
--- a/src/events/nonRandomEvent.js
+++ b/src/events/nonRandomEvent.js
@@ -98,6 +98,8 @@ App.Events.getNonrandomEvents = function() {
 		new App.Events.secExpSmilingMan1(),
 		new App.Events.secExpSmilingMan2(),
 		new App.Events.secExpSmilingMan3(),
+
+		new App.Events.PEPitFight(),
 	];
 };
 
@@ -307,8 +309,6 @@ globalThis.nonRandomEvent = function() {
 			setTimeout(() => Engine.play("P raid result"), Engine.minDomActionDelay);
 		} else if (V.eventResults.slaveMedic > 0) {
 			setTimeout(() => Engine.play("P slave medic"), Engine.minDomActionDelay);
-		} else if (V.eventResults.pit === 1 && V.BodyguardID !== 0) {
-			setTimeout(() => Engine.play("PE pit fight"), Engine.minDomActionDelay);
 		} else if ((effectiveWeek >= 37) && (V.arcologies[0].FSNeoImperialistLaw1 === 1) && (V.arcologies[0].FSNeoImperialistLaw2 === 1) && V.poorKnight !== 1 && effectiveWeek >= V.imperialEventWeek + 3) {
 			V.poorKnight = 1;
 			V.imperialEventWeek = effectiveWeek;
diff --git a/src/uncategorized/pePitFight.tw b/src/uncategorized/pePitFight.tw
deleted file mode 100644
index a5e223caa0d..00000000000
--- a/src/uncategorized/pePitFight.tw
+++ /dev/null
@@ -1,233 +0,0 @@
-:: PE pit fight [nobr]
-
-<<set $nextButton = "Continue", $nextLink = "AS Dump", $returnTo = "Random Nonindividual Event">>
-
-<<set $activeSlave = _S.Bodyguard>>
-<<run App.Utils.setLocalPronouns($activeSlave)>>
-
-<<set _deadliness = deadliness($activeSlave)>>
-
-<<set $eventResults.pit = 0>>
-
-<span id="art-frame">
-/* 000-250-006 */
-<<set _clothesTemp = $activeSlave.clothes, $activeSlave.clothes = "no clothing">>
-<<if $seeImages == 1>>
-	<<if $imageChoice == 1>>
-		<div class="imageRef lrgVector"><div class="mask">&nbsp;</div><<SlaveArt $activeSlave 3 0>></div>
-	<<else>>
-		<div class="imageRef lrgRender"><div class="mask">&nbsp;</div><<SlaveArt $activeSlave 3 0>></div>
-	<</if>>
-<</if>>
-<<set $activeSlave.clothes = _clothesTemp>>
-/* 000-250-006 */
-</span>
-
-It's time for the private fight you entered your Bodyguard in. It will take place in a back room of a well respected club. There is a ring set into the floor, and space for a handful of spectators, but the setup is quite spartan. The sport is just getting off the ground. <<= App.UI.slaveDescriptionDialog($activeSlave)>> is first to walk into the ring. $He's stark naked and is carrying a simple single-edged straight sword, identical to the one $his opponent will be using. The fight will be fair.
-
-<br><br>
-
-Across the ring, $his opponent's owner nods civilly to you and examines $activeSlave.slaveName.
-
-<<if $activeSlave.skill.combat > 0>>
-	$His combat skills greatly increase $his deadliness.
-<</if>>
-
-<<if ($AgePenalty != 0)>>
-	<<if ($activeSlave.physicalAge >= 100)>>
-		$He seems prepared for death, in a way.
-	<<elseif ($activeSlave.physicalAge >= 85)>>
-		$He tries not to waste $his strength before the fight, knowing that $his extreme age won't allow $him a second wind.
-	<<elseif ($activeSlave.physicalAge >= 70)>>
-		$He steadies $himself as well as $he can in $his advanced age.
-	<</if>>
-<</if>>
-
-<<if $activeSlave.muscles > 95 && $activeSlave.height >= 185>>
-	$His huge muscles are an intimidating sight and, despite their massive size, $he is tall enough to not be hindered by them.
-<<elseif $activeSlave.muscles > 95>>
-	$His huge muscles are an intimidating sight, but may hinder $his flexibility.
-<<elseif $activeSlave.muscles > 30>>
-	$His muscles are a trim and powerful sight.
-<<elseif $activeSlave.muscles < -95>>
-	$He can barely stand, let alone ready $his weapon. $His feeble attempts elicit a roar of laughter from the spectators.
-<<elseif $activeSlave.muscles < -30>>
-	$He struggles to raise $his weapon. $His feeble attempts elicit a roar of laughter from the spectators.
-<<elseif $activeSlave.muscles < -5>>
-	$He is rather unfit; $he will likely be outmatched by near any real opponent.
-<</if>>
-
-<<if $activeSlave.height >= 170>>
-	$His height gives $him a reach advantage with $his sword.
-<</if>>
-
-<<if $activeSlave.health.condition > 50>>
-	$His shining health makes $him a better combatant.
-<</if>>
-
-<<if $activeSlave.weight > 190>>
-	$His extreme weight nearly immobilizes $him. $He struggles to move let alone fight.
-<<elseif $activeSlave.weight > 160>>
-	$His extreme weight limits $his mobility and range of motion, making $him an easy target.
-<<elseif $activeSlave.weight > 130>>
-	$His extreme weight holds $him back as a pit fighter.
-<<elseif $activeSlave.weight > 30>>
-	$His heavy weight is an impediment as a pit fighter.
-<<elseif $activeSlave.weight < -10>>
-	$His light weight is an impediment as a pit fighter.
-<</if>>
-
-<<if $activeSlave.health.condition < -50>>
-	$His poor health makes $him a weaker combatant.
-<</if>>
-
-<<if $activeSlave.health.tired > 90>>
-	$He is exhausted and can barely stay awake; $he won't put up a fight.
-<<elseif $activeSlave.health.tired > 60>>
-	$He is fatigued and will most likely never see it coming.
-<<elseif $activeSlave.health.tired > 30>>
-	$He is tired and more likely to take a hit then to give one.
-<</if>>
-
-<<if $activeSlave.pregKnown == 1 || $activeSlave.bellyPreg >= 1500>>
-	<<if $activeSlave.bellyPreg >= 750000>>
-		$His monolithic pregnancy guarantees $his loss; not only is $he on the verge of splitting open, but it is an unmissable, indefensible target that threatens to drag $him to the ground. $He has no hope of attacking around the straining mass, let alone stopping $his opponent.
-	<<elseif $activeSlave.bellyPreg >= 600000>>
-		$His titanic pregnancy is practically a guaranteed loss; $he can barely stand let alone fight.
-	<<elseif $activeSlave.bellyPreg >= 450000>>
-		$His gigantic pregnancy is nearly a guaranteed loss; it presents an unmissable, indefensible target for $his adversary.
-	<<elseif $activeSlave.bellyPreg >= 300000>>
-		$His massive pregnancy obstructs $his movement and greatly hinders $him. $He struggles to think of how $he could even begin to defend $his bulk.
-	<<elseif $activeSlave.bellyPreg >= 150000>>
-		$His giant pregnancy obstructs $his movement and greatly slows $him down.
-	<<elseif $activeSlave.bellyPreg >= 100000>>
-		$His giant belly gets in $his way and weighs $him down.
-	<<elseif $activeSlave.bellyPreg >= 10000>>
-		$His huge belly is unwieldy and hinders $his efforts.
-	<<elseif $activeSlave.bellyPreg >= 5000>>
-		$His advanced pregnancy makes $him much less effective.
-	<<elseif $activeSlave.bellyPreg >= 1500>>
-		$His growing pregnancy distracts $him from the fight.
-	<<else>>
-		The life just beginning to grow inside $him distracts $him from the fight.
-	<</if>>
-<<elseif $activeSlave.bellyImplant >= 1500>>
-	<<if $activeSlave.bellyImplant >= 750000>>
-		$His monolithic, <<print $activeSlave.bellyImplant>>cc implant filled belly guarantees $his loss; not only is $he on the verge of splitting open, but it is an unmissable, indefensible target that threatens to drag $him to the ground. $He has no hope of attacking around the straining mass, let alone stopping $his opponent.
-	<<elseif $activeSlave.bellyImplant >= 600000>>
-		$His titanic, <<print $activeSlave.bellyImplant>>cc implant filled belly is practically a guaranteed loss; $he can barely stand let alone fight. Not only is it cripplingly heavy, unwieldy and an easy target, but $he can feel it straining to hold the sheer amount of filler forced into it.
-	<<elseif $activeSlave.bellyImplant >= 450000>>
-		$His gigantic, <<print $activeSlave.bellyImplant>>cc implant filled belly is nearly a guaranteed loss; it presents an unmissable, indefensible target for $his adversary.
-	<<elseif $activeSlave.bellyImplant >= 300000>>
-		$His massive, <<print $activeSlave.bellyImplant>>cc implant filled belly is extremely heavy, unwieldy and an easy target, practically damning $him in combat.
-	<<elseif $activeSlave.bellyImplant >= 150000>>
-		$His giant, <<print $activeSlave.bellyImplant>>cc implant filled belly obstructs $his movement and greatly slows $him down.
-	<<elseif $activeSlave.bellyImplant >= 100000>>
-		$His giant, <<print $activeSlave.bellyImplant>>cc implant filled belly is very heavy and unwieldy, throwing off $his weight and making $him far less effective.
-	<<elseif $activeSlave.bellyImplant >= 10000>>
-		$His huge, <<print $activeSlave.bellyImplant>>cc implant filled belly is very heavy and unwieldy, throwing off $his weight and making $him far less effective.
-	<<elseif $activeSlave.bellyImplant >= 5000>>
-		$His large, <<print $activeSlave.bellyImplant>>cc implant filled belly is heavy and unwieldy, rendering $him less effective.
-	<<elseif $activeSlave.bellyImplant >= 1500>>
-		$His swollen, <<print $activeSlave.bellyImplant>>cc implant filled belly is heavy and makes $him less effective.
-	<</if>>
-<</if>>
-<<if isInLabor($activeSlave)>>
-	$He's feeling labor pains. $His child<<if $activeSlave.pregType > 1>>ren are<<else>> is<</if>> ready to be born.
-<<elseif $activeSlave.preg >= $activeSlave.pregData.normalBirth && $activeSlave.pregControl != "labor suppressors">>
-	$He'll be going into labor any time now and $he knows it.
-<</if>>
-
-<<if $activeSlave.bellyFluid >= 10000>>
-	$His hugely bloated, <<print $activeSlave.inflationType>>-filled belly is taut and painful, hindering $his ability to fight.
-<<elseif $activeSlave.bellyFluid >= 5000>>
-	$His bloated, <<print $activeSlave.inflationType>>-stuffed belly is constantly jiggling and moving, distracting $him and throwing off $his weight.
-<<elseif $activeSlave.bellyFluid >= 2000>>
-	$His distended, <<print $activeSlave.inflationType>>-belly is uncomfortable and heavy, distracting $him.
-<</if>>
-
-<<if $activeSlave.teeth == "pointy">>
-	$His sharp teeth add nothing to $his actual effectiveness, but they're certainly intimidating.
-<</if>>
-
-<<if !canSee($activeSlave)>>
-	$His lack of eyesight means certain death.
-<<elseif !canSeePerfectly($activeSlave)>>
-	$His poor eyesight makes $him a weaker fighter.
-<</if>>
-
-<<if !canHear($activeSlave)>>
-	$His lack of hearing is a major detriment.
-<<elseif (($activeSlave.hears == -1) && ($activeSlave.earwear != "hearing aids")) || ($activeSlave.hears == 0 && ($activeSlave.earwear == "muffling ear plugs"))>>
-	$His lack of hearing is a minor detriment.
-<</if>>
-
-
-<<if _deadliness > 5>>
-	$activeSlave.slaveName seems supremely confident, even eager to please you.
-<<elseif _deadliness > 3>>
-	$activeSlave.slaveName seems nervous, but steels $himself to fight for you.
-<<elseif _deadliness > 1>>
-	$activeSlave.slaveName seems terrified, and barely controls $himself.
-<<else>>
-	$activeSlave.slaveName is obviously terrified, and might flee if there were a way out of the pit.
-<</if>>
-
-Finally, $his opponent enters as well.
-
-<<set _randomOpponent = random(1,120)>>
-<<setNonlocalPronouns $seeDicks>>
-<<if _randomOpponent > 100>>
-	_HeU is a hulking, musclebound _girlU with a wasp waist and immense rear. _HeU seems nothing short of excited.
-	<<set _opponent = 6>>
-<<elseif _randomOpponent > 80>>
-	_HeU is a huge, muscular Amazon filled with confidence.
-	<<set _opponent = 5>>
-<<elseif _randomOpponent > 60>>
-	_HeU is a short but muscular _girlU, trying _hisU best to look confident.
-	<<set _opponent = 4>>
-<<elseif _randomOpponent > 40>>
-	_HeU is a tall, thin _womanU covered in ropy muscle, trying to hide _hisU terror.
-	<<set _opponent = 3>>
-<<elseif _randomOpponent > 20>>
-	_HeU is a decent-looking slave, physically fit but obviously scared.
-	<<set _opponent = 2>>
-<<else>>
-	_HeU is an average looking slave, so frightened <<if $seePee == 1>>there's urine running down _hisU leg<<else>>_hisU teeth are audibly chattering<</if>>. _HeU must have really annoyed _hisU master to earn this.
-	<<set _opponent = 1>>
-<</if>>
-
-The umpire announces gravely that the fight is to the death and rings a bell.
-
-<br><br>
-
-<<if _deadliness > (_opponent + 1)>>
-	$activeSlave.slaveName senses that $he is greatly superior, and decides to make a quick end before $his opponent can try something foolish. $He feints high and stabs low; $his enemy just manages to parry the low stab, but is so much weaker that $activeSlave.slaveName simply overpowers _himU, so that _heU falls onto _hisU back with the force of the clash. $activeSlave.slaveName takes one step forward and runs $his sword through the prostrate slave's heart. This victory has @@.green;won you some renown@@ and @@.yellowgreen;a sum of money@@ from each of the spectators.
-	<<run repX(500, "pit", $activeSlave)>>
-	<<run cashX(5000, "pit", $activeSlave)>>
-	<<set $activeSlave.counter.pitWins += 1>>
-	<<set $activeSlave.counter.pitKills += 1>>
-	<<set $pitKillsTotal += 1>>
-<<elseif _deadliness > (_opponent)>>
-	The combat is long and exhausting. $activeSlave.slaveName and $his opponent are closely matched in terms of skill, so neither takes foolish risks and a protracted, bloody fight results as both slaves take horrible but non-life-threatening cuts. Finally, $activeSlave.slaveName's superior physical condition wins out and $his opponent falls from exhaustion and blood loss. $activeSlave.slaveName stumbles over to open _hisU throat. This victory has @@.green;won you some renown@@ and @@.yellowgreen;a sum of money@@ from each of the spectators, though $activeSlave.slaveName is @@.health.dec;badly hurt.@@
-	<<run repX(500, "pit", $activeSlave)>>
-	<<run cashX(5000, "pit", $activeSlave)>>
-	<<run healthDamage($activeSlave, 50)>>
-	<<set $activeSlave.counter.pitWins += 1>>
-	<<set $activeSlave.counter.pitKills += 1>>
-	<<set $pitKillsTotal += 1>>
-<<elseif _deadliness > (_opponent-1)>>
-	The combat is long and exhausting. $activeSlave.slaveName and $his opponent are closely matched in terms of skill, so neither takes foolish risks and a protracted, bloody fight results as both slaves take horrible but non-life-threatening cuts. Finally, $activeSlave.slaveName's inferior physical condition fails $him and $he falls from exhaustion and blood loss. As $he slumps $he catches your eye with a look of apology. $His opponent stumbles over to open $his throat. $activeSlave.slaveName @@.health.dec;has been killed.@@
-	<<run healthDamage($activeSlave, 1000)>>
-<<else>>
-	$activeSlave.slaveName is outmatched from the start. In the first pass, $his opponent moves beyond $him, opening a long gash in $his thigh as _heU goes. Thus injured, $activeSlave.slaveName fails to block a slash that severs $his Achilles tendon on the other side. On $his knees, $he barely manages to ward off one more blow before the second one opens $his belly. $activeSlave.slaveName @@.health.dec;has been killed.@@
-	<<run healthDamage($activeSlave, 1000)>>
-<</if>>
-
-<<if $activeSlave.health.health < -90>>
-	<<run removeSlave($activeSlave)>>
-	<<set $nextLink = "Random Nonindividual Event">>
-	<<run App.Utils.updateUserButton()>>
-<</if>>
-
-<<set $pitFightsTotal++>>
-- 
GitLab