:: Pit
 
<<nobr>>
<<set $nextButton to "Back to Main">>
<<set $nextLink to "Main">>
<<set $returnTo to "Pit">>

<<if $pitName != "the Pit">>
	<<set $pitNameCaps to $pitName.replace("the ", "The ")>>
<</if>>

<<set $pitSlaves to 0>>
<<set $notPitSlaves to 0>>
<<for _i to 0; _i < $slaves.length; _i++>>
	<<if $fighterIDs.contains($slaves[_i].ID)>>
		<<set $pitSlaves += 1>>
	<<else>>
		<<set $notPitSlaves += 1>>
	<</if>>
<</for>>

<<if $pitSlaves > 2>>
	$pitNameCaps is clean and ready, with a pool of slaves assigned to fight in the week's bout.
<<elseif $pitSlaves > 0>>
	$pitNameCaps is clean and ready, with slaves assigned to the week's bout.
<<elseif $pitSlaves > 0>>
	$pitNameCaps is clean and ready, but only one slave is assigned to the week's bout.
<<else>>
	$pitNameCaps is clean and ready, but no slaves are assigned fight.
<</if>>

//<<if def $PC.customTitle>>$PC.customTitle<<elseif $PC.title != 0>>Sir<<else>>Ma'am<</if>>, slaves assigned here can continue their usual duties.//

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

<<if $dojo != 0>>
<<if $pitBG == 0>>
	Two fighters will be selected from the pool at random. [[Guarantee your Bodyguard a slot|Pit][$pitBG to 1]]
<<else>>
	Your Bodyguard will fight a slave selected from the pool at random. [[Make both slots random|Pit][$pitBG to 0]]
<</if>>
<</if>>

<br>
<<if $pitLethal == 1>>
	Fighters will be armed with swords, and fights will be to the death. [[Nonlethal|Pit][$pitLethal to 0]]
<<else>>
	Fighters will use their fists and feet, and fights will be to submission. [[Lethal|Pit][$pitLethal to 1]]
<</if>>

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

<<if ($notPitSlaves > 1)>>
	<br><br>''Select a slave to fight:''
	<<set $Flag to 0>>
	<<include "Slave Summary">>
<</if>>
<<unset $Flag>>

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

src/uncategorized/pit.tw