:: SlaveOnSlaveFeedingWorkAround [nobr]

<<set $nextButton = "Back", $nextLink = "Slave Interact">>

<<set $milkTap = 0, _descM = "milk", _descC = "cum", _eligibilityMilk2 = 0, _eligibilityMilk4 = 0, _eligibilityMilk8 = 0, _eligibilityCum2 = 0, _eligibilityCum4 = 0, _eligibilityCum8 = 0>>

<<for _i = 0; _i < $slaves.length; _i++>> /* milk output */
<<if $slaves[_i].lactation > 0>>
	<<set $slaves[_i].milkOutput = 0>>
	<<set _milk = milkAmount($slaves[_i])>>
	<<set _milk = (_milk/14)>>
	<<set _milk = Math.trunc(_milk)>>
	<<set $slaves[_i].milkOutput = _milk>>
<<else>>
	<<set _milk = 0>>
<</if>>
<</for>>
<<for _i = 0; _i < $slaves.length; _i++>> /* cum output */
<<if $slaves[_i].balls > 0 && $slaves[_i].dick > 0 && ($slaves[_i].dickAccessory != "chastity" || $slaves[_i].dickAccessory != "combined chastity")>>
	<<set $slaves[_i].cumOutput = 0>>
	<<set _cum = cumAmount($slaves[_i])>>
	<<set _cum = (_cum/7)>>
	<<set _cum = (_cum/10)>>
	<<set _cum = Math.trunc(_cum)>>
	<<set $slaves[_i].cumOutput = _cum>>
<<else>>
	<<set _cum = 0>>
<</if>>
<</for>>

//$activeSlave.slaveName is preped to drink her fill; now you must select a slave capable of producing the required amount of milk or ejaculate.//

<br><br><br>

__Select an eligible slave to serve as the tap:__
<br><br>
__Milk Slaves__
<br><br>
__2 Liters__
<br>
<<for _i = 0; _i < $slaves.length; _i++>>
	<<if $slaves[_i].milkOutput >= 2>>
		<<if ($slaves[_i].ID != $activeSlave.ID)>>
		<<print "[[$slaves[_i].slaveName|FSlaveFeed][$milkTap = $slaves[" + _i + "], $activeSlave.inflation = 1, $activeSlave.inflationType = _descM, $activeSlave.inflationMethod = 3]]">>
		<<set _eligibilityMilk2 = 1>>
		<br>
		<</if>>
	<</if>>
<</for>>
<<if (_eligibilityMilk2 == 0)>>
	//You have no slaves capable of producing two liters of milk.//
<</if>>
<br><br>
__4 Liters__
<br>
<<for _i = 0; _i < $slaves.length; _i++>>
	<<if $slaves[_i].milkOutput >= 4>>
		<<if ($slaves[_i].ID != $activeSlave.ID)>>
		<<print "[[$slaves[_i].slaveName|FSlaveFeed][$milkTap = $slaves[" + _i + "], $activeSlave.inflation = 2, $activeSlave.inflationType = _descM, $activeSlave.inflationMethod = 3]]">>
		<<set _eligibilityMilk4 = 1>>
		<br>
		<</if>>
	<</if>>
<</for>>
<<if (_eligibilityMilk4 == 0)>>
	//You have no slaves capable of producing four liters of milk.//
<</if>>
<br><br>
__8 Liters__
<br>
<<for _i = 0; _i < $slaves.length; _i++>>
	<<if $slaves[_i].milkOutput >= 8>>
		<<if ($slaves[_i].ID != $activeSlave.ID)>>\
		<<print "[[$slaves[_i].slaveName|FSlaveFeed][$milkTap = $slaves[" + _i + "], $activeSlave.inflation = 3, $activeSlave.inflationType = _descM, $activeSlave.inflationMethod = 3]]">>
		<<set _eligibilityMilk8 = 1>>
		<br>
		<</if>>
	<</if>>
<</for>>
<<if (_eligibilityMilk8 == 0)>>
	//You have no slaves capable of producing eight liters of milk.//
<</if>>
<br><br><br><br>

__Cum Slaves__
<br><br>
__2 Liters__
<br>
<<for _i = 0; _i < $slaves.length; _i++>>
	<<if $slaves[_i].cumOutput >= 2>>
		<<if ($slaves[_i].ID != $activeSlave.ID)>>
		<<print "[[$slaves[_i].slaveName|FSlaveFeed][$milkTap = $slaves[" + _i + "], $activeSlave.inflation = 1, $activeSlave.inflationType = _descC, $activeSlave.inflationMethod = 3]]">>
		<<set _eligibilityCum2 = 1>>
		<br>
		<</if>>
	<</if>>
<</for>>
<<if (_eligibilityCum2 == 0)>>
	//You have no slaves capable of producing two liters of cum.//
<</if>>
<br><br>
__4 Liters__
<br>
<<for _i = 0; _i < $slaves.length; _i++>>
	<<if $slaves[_i].cumOutput >= 4>>
		<<if ($slaves[_i].ID != $activeSlave.ID)>>
		<<print "[[$slaves[_i].slaveName|FSlaveFeed][$milkTap = $slaves[" + _i + "], $activeSlave.inflation = 2, $activeSlave.inflationType = _descC, $activeSlave.inflationMethod = 3]]">>
		<<set _eligibilityCum4 = 1>>
		<br>
		<</if>>
	<</if>>
<</for>>
<<if (_eligibilityCum4 == 0)>>
	//You have no slaves capable of producing four liters of cum.//
<</if>>
<br><br>
__8 Liters__
<br>
<<for _i = 0; _i < $slaves.length; _i++>>
	<<if $slaves[_i].cumOutput >= 8>>
		<<if ($slaves[_i].ID != $activeSlave.ID)>>
		<<print "[[$slaves[_i].slaveName|FSlaveFeed][$milkTap = $slaves[" + _i + "], $activeSlave.inflation = 3, $activeSlave.inflationType = _descC, $activeSlave.inflationMethod = 3]]">>
		<<set _eligibilityCum8 = 1>>
		<br>
		<</if>>
	<</if>>
<</for>>
<<if (_eligibilityCum8 == 0)>>
	//You have no slaves capable of producing eight liters of cum.//
<</if>>
