:: Subordinate Targeting [nobr]

<<set $nextButton = "Back", $nextLink = "AS Dump">>

<<setLocalPronouns $activeSlave>>

<<if $activeSlave.subTarget == $activeSlave.ID>>
	<<set $activeSlave.subTarget = 0>>
<<elseif $activeSlave.subTarget == -1>>
	<<if $universalRulesImpregnation != "Stud" || $activeSlave.ID != $StudID>>
		<<set $activeSlave.subTarget = 0>>
	<</if>>
<</if>>
<<if $activeSlave.assignment !== "be a subordinate slave">>
	<<= assignJob($activeSlave, "be a subordinate slave")>>
<</if>>
<<set _st = $slaveIndices[$activeSlave.subTarget]>>
<<if def _st>>
	$activeSlave.slaveName will submit to <span class='slave-name'>$slaves[_st].slaveName</span> this week.
<<elseif $activeSlave.subTarget == -1>>
	$activeSlave.slaveName is acting as your Stud and is tasked with keeping your chattel pregnant.
<<else>>
	$activeSlave.slaveName has not been given to any particular slave, so $he will have to offer $himself to everyone this week.
	<<set $activeSlave.subTarget = 0>>
<</if>>

<<if $activeSlave.subTarget == -1>>
	<br><br><<link "Reign $him in" "Subordinate Targeting">><<set $activeSlave.subTarget = 0, $StudID = 0>><</link>>
<<else>>
	<br><br>__Select a slave for $him to submit to, sexually:__
	<<= App.UI.SlaveList.slaveSelectionList(
			s => s.devotion >= -20 && s.fuckdoll === 0 && State.variables.activeSlave.ID !== s.ID &&
				(!isAmputee(State.variables.activeSlave) || !isAmputee(s)),
			(s) => App.UI.DOM.passageLink(SlaveFullName(s), 'Subordinate Targeting', () => { V.activeSlave.subTarget = s.ID; }),
		)>>
	<<if $universalRulesImpregnation == "Stud" && $StudID == 0>>
		<br><br>[[Stud|Subordinate Targeting][$activeSlave.subTarget = -1, $StudID = $activeSlave.ID]]
	<</if>>
	<br><br>[[None|Subordinate Targeting][$activeSlave.subTarget = 0]]
<</if>>

src/uncategorized/subordinateTargeting.tw