Skip to content
Snippets Groups Projects
Commit d920b116 authored by kopareigns's avatar kopareigns
Browse files

isSlaveAvailable fix

parent 2389097d
Branches
Tags
1 merge request!2695Fix
...@@ -6685,7 +6685,8 @@ $He cranes her neck, glancing over her shoulder to give you a pleading look. ...@@ -6685,7 +6685,8 @@ $He cranes her neck, glancing over her shoulder to give you a pleading look.
<</if>> <</if>>
<</replace>> <</replace>>
<</link>><<if ($activeSlave.anus == 0 && canDoAnal($activeSlave)) || ($activeSlave.vagina == 0 && canDoVaginal($activeSlave))>> //This option will take virginity//<</if>> <</link>><<if ($activeSlave.anus == 0 && canDoAnal($activeSlave)) || ($activeSlave.vagina == 0 && canDoVaginal($activeSlave))>> //This option will take virginity//<</if>>
<<if ($cumSlaves >= 5)>> <<set _cumSlaves = $slaves.filter(function(s) { return s.assignment == "work in the dairy" && s.balls > 0 && isSlaveAvailable(s) && canPenetrate(s); })>>
<<if _cumSlaves.length >= 5>>
<br><<link "Replace the machines with cockmilkees from the Dairy">> <br><<link "Replace the machines with cockmilkees from the Dairy">>
<<EventNameDelink $activeSlave>> <<EventNameDelink $activeSlave>>
<<replace "#result">> <<replace "#result">>
...@@ -6700,18 +6701,17 @@ $He cranes her neck, glancing over her shoulder to give you a pleading look. ...@@ -6700,18 +6701,17 @@ $He cranes her neck, glancing over her shoulder to give you a pleading look.
<</if>> <</if>>
<<set $activeSlave.devotion += 4>> <<set $activeSlave.devotion += 4>>
<<set _totalFuckers = 0>> <<set _totalFuckers = 0>>
<<for _RESS = 0; _RESS < $slaves.length; _RESS++>> <<for _ress = 0; _ress < _cumSlaves.length; _ress++>>
<<if $slaves[_RESS].assignment == "work in the dairy" && $slaves[_RESS].balls != 0 && canPenetrate($slaves[_RESS])>> <<set _RESS = $slaveIndices[_cumSlaves[_ress].ID]>>
<<set $slaves[_RESS].devotion += 4, $slaves[_RESS].penetrativeCount++>> <<set $slaves[_RESS].devotion += 4, $slaves[_RESS].penetrativeCount++>>
<<set $penetrativeTotal++, _totalFuckers++>> <<set $penetrativeTotal++, _totalFuckers++>>
<<if canImpreg($activeSlave, $slaves[_RESS])>> <<if canImpreg($activeSlave, $slaves[_RESS])>>
<<if canDoAnal($activeSlave) && canDoVaginal($activeSlave)>> <<if canDoAnal($activeSlave) && canDoVaginal($activeSlave)>>
<<= knockMeUp($activeSlave, 5, 2, $slaves[_RESS].ID)>> <<= knockMeUp($activeSlave, 5, 2, $slaves[_RESS].ID)>>
<<elseif canDoVaginal($activeSlave)>> <<elseif canDoVaginal($activeSlave)>>
<<= knockMeUp($activeSlave, 5, 0, $slaves[_RESS].ID)>> <<= knockMeUp($activeSlave, 5, 0, $slaves[_RESS].ID)>>
<<elseif canDoAnal($activeSlave)>> <<elseif canDoAnal($activeSlave)>>
<<= knockMeUp($activeSlave, 5, 1, $slaves[_RESS].ID)>> <<= knockMeUp($activeSlave, 5, 1, $slaves[_RESS].ID)>>
<</if>>
<</if>> <</if>>
<</if>> <</if>>
<</for>> <</for>>
...@@ -86,6 +86,13 @@ ...@@ -86,6 +86,13 @@
<</if>> <</if>>
<</if>> <</if>>
<</if>> <</if>>
<<if $slaves[$i].anus > 0 && canDoAnal($slaves[$i])>>
<<if $slaves[$i].devotion > 50>>
<<if $slaves[$i].amp == 0>>
<<set $RERepressedAnalVirginSubIDs.push($slaves[$i].ID)>>
<</if>>
<</if>>
<</if>>
<</if>> <</if>>
<<if $slaves[$i].assignmentVisible == 1>> <<if $slaves[$i].assignmentVisible == 1>>
<<if $slaves[$i].livingRules == "luxurious">> <<if $slaves[$i].livingRules == "luxurious">>
...@@ -96,13 +103,6 @@ ...@@ -96,13 +103,6 @@
<</if>> <</if>>
<</if>> <</if>>
<</if>> <</if>>
<<if $slaves[$i].anus > 0 && canDoAnal($slaves[$i])>>
<<if $slaves[$i].devotion > 50>>
<<if $slaves[$i].amp == 0>>
<<set $RERepressedAnalVirginSubIDs.push($slaves[$i].ID)>>
<</if>>
<</if>>
<</if>>
<</if>> <</if>>
<</if>> <</if>>
<<if $slaves[$i].assignment == "work in the dairy" || $slaves[$i].assignment == "get milked">> <<if $slaves[$i].assignment == "work in the dairy" || $slaves[$i].assignment == "get milked">>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment