:: Pit [nobr]

<<set $nextButton = "Back to Main", $nextLink = "Main", $returnTo = "Pit", $showEncyclopedia = 1, $encyclopedia = "Pit", _DL = $fighterIDs.length, _SL = $slaves.length>>
<<showallAssignmentFilter>>
<<if $pitName != "the Pit">>
	<<set $pitNameCaps = $pitName.replace("the ", "The ")>>
<</if>>
<<if $pitBG == 1 && $fighterIDs.includes($Bodyguard.ID)>>
	<<set $fighterIDs.delete($Bodyguard.ID), _DL-->>
<</if>>

$pitNameCaps is clean and ready,
<<if _DL > 2>>
	with a pool of slaves assigned to fight in the week's bout.
<<elseif _DL == 1>>
	but only one slave is assigned to the week's bout.
<<elseif _DL > 0>>
	with slaves assigned to the week's bout.
<<else>>
	but no slaves are assigned to fight.
	<<link "Decommission the pit" "Main">>
		<<set $pit = 0>>
		<<set _pit = $sectors.findIndex(function(s) { return s.type == "Pit"; })>>
		<<if _pit != -1>>
			<<set $sectors[_pit].type = "Markets">>
		<</if>>
	<</link>>
<</if>>

//<<= properTitle()>>, slaves assigned here can continue their usual duties.//

<br><br>
<<if $pitAudience == "none">>
	Fights here are strictly private. [[Open them for free|Pit][$pitAudience = "free"]] | [[Open them and charge admission|Pit][$pitAudience = "paid"]]
<<elseif $pitAudience == "free">>
	Fights here are free and open to the public. [[Close them|Pit][$pitAudience = "none"]] | [[Charge admission|Pit][$pitAudience = "paid"]]
<<else>>
	Admission is charged to the fights here. [[Close them|Pit][$pitAudience = "none"]] | [[Stop charging|Pit][$pitAudience = "free"]]
<</if>>

<<if $Bodyguard != 0 || $farmyardKennels > 0 || $farmyardStable > 0 || $farmyardCages > 0>>
	<br>
	<<if $pitBG == 0>>
		<<if $pitAnimal == 0>>
			Two fighters will be selected from the pool at random. <<if $Bodyguard != 0>>[[Guarantee your Bodyguard a slot|Pit][$pitBG = 1, $pitAnimal = 0]]<</if>><<if $farmyardKennels > 0 || $farmyardStable > 0 || $farmyardCages > 0>> | [[Have a slave fight an animal|Pit][$pitBG = 0, $pitAnimal = 1]]<</if>>
		<<else>>
			A random slave will fight an animal. [[Have them fight another slave|Pit][$pitBG = 0, $pitAnimal = 0]]<<if $Bodyguard != 0>> | [[Have them fight your Bodyguard|Pit][$pitBG = 1, $pitAnimal = 0]]<</if>>
		<</if>>
	<<else>>
		Your Bodyguard will fight a slave selected from the pool at random. [[Make both slots random|Pit][$pitBG = 0, $pitAnimal = 0]]<<if $farmyardKennels > 0 || $farmyardStable > 0 || $farmyardCages > 0>> | [[Have a slave fight an animal|Pit][$pitBG = 0, $pitAnimal = 1]]<</if>>
	<</if>>
<</if>>

<br>
<<if $pitLethal == 1>>
	<<if $pitAnimal == 1>>
		The fighter will be armed with a sword and will fight to the death. [[Nonlethal|Pit][$pitLethal = 0]]
	<<else>>
		Fighters will be armed with swords, and fights will be to the death. [[Nonlethal|Pit][$pitLethal = 0]]
	<</if>>
<<else>>
	<<if $pitAnimal == 0>>
		Fighters will use their fists and feet, and fights will be to submission. [[Lethal|Pit][$pitLethal = 1]]
	
		<br>
		<<if $pitVirginities == 0>>
			''No'' virginities of the loser will be respected.
			[[Vaginal|Pit][$pitVirginities = 1]] |
			[[Anal|Pit][$pitVirginities = 2]] |
			[[All|Pit][$pitVirginities = 3]]
		<<elseif $pitVirginities == 1>>
			''Vaginal'' viriginity of the loser will be respected.
			[[Neither|Pit][$pitVirginities = 0]] |
			[[Anal|Pit][$pitVirginities = 2]] |
			[[All|Pit][$pitVirginities = 3]]
		<<elseif $pitVirginities == 2>>
			''Anal'' viriginity of the loser will be respected.
			[[Neither|Pit][$pitVirginities = 0]] |
			[[Vaginal|Pit][$pitVirginities = 1]] |
			[[All|Pit][$pitVirginities = 3]]
		<<elseif $pitVirginities == 3>>
			''All'' virginities of the loser will be respected.
			[[Neither|Pit][$pitVirginities = 0]] |
			[[Vaginal|Pit][$pitVirginities = 1]] |
			[[Anal|Pit][$pitVirginities = 2]]
		<</if>>

	<<else>>
		The slave will be restrained in the middle of $pitName for the animal to use. [[Lethal|Pit][$pitLethal = 1]]
	<</if>>
<</if>>

<<if $pitAnimal == 1>>
	<br>
	<<if $pitLethal == 1>>
		<<if $pitAnimalType == $activeCanine.species>>
			Your slave will fight a ''$activeCanine.species''. $activeCanine.speciesCap<<if $farmyardStable > 0>> | [["" + $activeHooved.speciesCap + ""|Pit][$pitAnimalType = $activeHooved.species]]<</if>><<if $farmyardCages > 0>> | [["" + $activeFeline.speciesCap + ""|Pit][$pitAnimalType = $activeFeline.species]]<</if>>
		<<elseif $pitAnimalType == $activeHooved.species>>
			Your slave will fight a ''$activeHooved.species''. <<if $farmyardKennels > 0>>[["" + $activeCanine.speciesCap + ""|Pit][$pitAnimalType = $activeCanine.species]] | <</if>>$activeHooved.speciesCap<<if $farmyardCages > 0>> | [["" + $activeFeline.speciesCap + ""|Pit][$pitAnimalType = $activeFeline.species]]<</if>>
		<<elseif $pitAnimalType == $activeFeline.species>>
			Your slave will fight a ''$activeFeline.species''. <<if $farmyardKennels > 0>>[["" + $activeCanine.speciesCap + ""|Pit][$pitAnimalType = $activeCanine.species]]<</if>><<if $farmyardStable > 0>> | [["" + $activeHooved.speciesCap + ""|Pit][$pitAnimalType = $activeHooved.species]] | <</if>>$activeFeline.speciesCap
		<<else>>
			Select an animal for your slave to fight. <<if $farmyardKennels > 0>>[["" + $activeCanine.speciesCap + ""|Pit][$pitAnimalType = $activeCanine.species]]<</if>><<if ($farmyardCages > 0 && $farmyardStable > 0) || ($farmyardCages > 0 && $farmyardKennels > 0) || ($farmyardStable > 0 && $farmyardKennels > 0)>> | <</if>><<if $farmyardStable > 0>>[["" + $activeHooved.speciesCap + ""|Pit][$pitAnimalType = $activeHooved.species]]<</if>><<if ($farmyardStable > 0 && $farmyardCages > 0)>> | <</if>><<if $farmyardCages > 0>>[["" + $activeFeline.speciesCap + ""|Pit][$pitAnimalType = $activeFeline.species]]<</if>>
		<</if>>
	<<elseif $pitLethal == 0>>
		<<if $pitAnimalType == $activeCanine.species>>
			Your slave will try to avoid being used by a ''$activeCanine.species''. $activeCanine.speciesCap<<if $farmyardStable > 0>> | [["" + $activeHooved.speciesCap + ""|Pit][$pitAnimalType = $activeHooved.species]]<</if>><<if $farmyardCages > 0>> | [["" + $activeFeline.speciesCap + ""|Pit][$pitAnimalType = $activeFeline.species]]<</if>>
		<<elseif $pitAnimalType == $activeHooved.species>>
			Your slave will try to avoid being used by a ''$activeHooved.species''. 
			<<if $farmyardKennels > 0>>[["" + $activeCanine.speciesCap + ""|Pit][$pitAnimalType = $activeCanine.species]] | <</if>>$activeHooved.speciesCap<<if $farmyardCages > 0>> | [["" + $activeFeline.speciesCap + ""|Pit][$pitAnimalType = $activeFeline.species]]<</if>>
		<<elseif $pitAnimalType == $activeFeline.species>>
			Your slave will try to avoid being used by a ''$activeFeline.species''. <<if $farmyardKennels > 0>>[["" + $activeCanine.speciesCap + ""|Pit][$pitAnimalType = $activeCanine.species]]<</if>><<if $farmyardStable > 0>> | [["" + $activeHooved.speciesCap + ""|Pit][$pitAnimalType = $activeHooved.species]] | <</if>>$activeFeline.speciesCap
		<<else>>
			Select an animal for your slave to try to avoid. <<if $farmyardKennels > 0>>[["" + $activeCanine.speciesCap + ""|Pit][$pitAnimalType = $activeCanine.species]]<</if>><<if ($farmyardCages > 0 && $farmyardStable > 0) || ($farmyardCages > 0 && $farmyardKennels > 0) || ($farmyardStable > 0 && $farmyardKennels > 0)>> | <</if>><<if $farmyardStable > 0>>[["" + $activeHooved.speciesCap + ""|Pit][$pitAnimalType = $activeHooved.species]]<</if>><<if ($farmyardStable > 0 && $farmyardCages > 0)>> | <</if>><<if $farmyardCages > 0>>[["" + $activeFeline.speciesCap + ""|Pit][$pitAnimalType = $activeFeline.species]]<</if>>
		<</if>>
	<</if>>
<<else>>
	<<set $pitAnimalType = 0>>
<</if>>

<<if _DL > 0>>
	<br><br>''Cancel a slave's fight:''
	<<set $Flag = 1>>
	<<include "Slave Summary">>
<</if>>

<<if (_SL > _DL)>>
	<br><br>''Select a slave to fight:''
	<<set $Flag = 0>>
	<br><br>
	<<assignmentFilter>>
	<span id="ComingGoing">
		<<showallAssignmentFilter>>
		<<set $Flag = 0>>
		<<include "Slave Summary">>
		<<resetAssignmentFilter>>
	</span>
<</if>>

<br><br>Rename $pitName: <<textbox "$pitName" $pitName "Pit">> //Use a noun or similar short phrase//
