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

Added headgirlSuiteAssignmentFilter

parent ed4c7842
No related branches found
No related tags found
No related merge requests found
...@@ -43,6 +43,10 @@ ...@@ -43,6 +43,10 @@
<<set $slaves.map(function(y){y.assignmentVisible = 0})>><<set $slaves.filter(function(x){return x.assignment == "work in the dairy" || x.assignment == "be the Milkmaid"}).map(function(y){y.assignmentVisible = 1})>> <<set $slaves.map(function(y){y.assignmentVisible = 0})>><<set $slaves.filter(function(x){return x.assignment == "work in the dairy" || x.assignment == "be the Milkmaid"}).map(function(y){y.assignmentVisible = 1})>>
<</widget>> <</widget>>
<<widget "headgirlSuiteAssignmentFilter">>
<<set $slaves.map(function(y){y.assignmentVisible = 0})>><<set $slaves.filter(function(x){return x.assignment == "live with your Head Girl"}).map(function(y){y.assignmentVisible = 1})>>
<</widget>>
<<widget "penthouseAssignmentFilter">> <<widget "penthouseAssignmentFilter">>
<<set $slaves.map(function(y){y.assignmentVisible = 0})>><<set $slaves.filter(function(x){return x.assignment == "rest" || x.assignment == "be a subordinate slave" || x.assignment == "whore" || x.assignment == "serve the public" || x.assignment == "work a glory hole" || x.assignment == "get milked" || x.assignment == "be a servant" || x.assignment == "please you"|| x.assignment == "stay confined" || x.assignment == "take classes" || x.assignment == "choose her own job" || x.assignment == "live with your Head Girl"}).map(function(y){y.assignmentVisible = 1})>> <<set $slaves.map(function(y){y.assignmentVisible = 0})>><<set $slaves.filter(function(x){return x.assignment == "rest" || x.assignment == "be a subordinate slave" || x.assignment == "whore" || x.assignment == "serve the public" || x.assignment == "work a glory hole" || x.assignment == "get milked" || x.assignment == "be a servant" || x.assignment == "please you"|| x.assignment == "stay confined" || x.assignment == "take classes" || x.assignment == "choose her own job" || x.assignment == "live with your Head Girl"}).map(function(y){y.assignmentVisible = 1})>>
<</widget>> <</widget>>
......
:: Head Girl Suite [nobr] :: Head Girl Suite [nobr]
<<set $nextButton = "Back to Main", $nextLink = "Main", $returnTo = "Head Girl Suite", $showEncyclopedia = 1, $encyclopedia = "Head Girl Suite", $HGSuiteSlaves = $HGSuiteiIDs.length, _SL = $slaves.length>> <<set $nextButton = "Back to Main", $nextLink = "Main", $returnTo = "Head Girl Suite", $showEncyclopedia = 1, $encyclopedia = "Head Girl Suite", $HGSuiteSlaves = $HGSuiteiIDs.length, _SL = $slaves.length>>
<<showallAssignmentFilter>>
<<if $HGSuiteName != "the Head Girl Suite">> <<if $HGSuiteName != "the Head Girl Suite">>
<<set $HGSuiteNameCaps = $HGSuiteName.replace("the ", "The ")>> <<set $HGSuiteNameCaps = $HGSuiteName.replace("the ", "The ")>>
<</if>> <</if>>
<<headgirlSuiteAssignmentFilter>>
<<set _i = $slaves.findIndex(function(s) { return s.assignment == "live with your Head Girl"; })>> <<set _i = $slaves.findIndex(function(s) { return s.assignment == "live with your Head Girl"; })>>
<<if $HeadGirl == 0>> <<if $HeadGirl == 0>>
...@@ -45,8 +45,10 @@ ...@@ -45,8 +45,10 @@
<<if $HGSuiteSlaves > 0>> <<if $HGSuiteSlaves > 0>>
<br><br>''Bring the Head Girl's girl out of $HGSuiteName:'' <br><br>''Bring the Head Girl's girl out of $HGSuiteName:''
<<headgirlSuiteAssignmentFilter>>
<<set $Flag = 1>> <<set $Flag = 1>>
<<include "Slave Summary">> <<include "Slave Summary">>
<<resetAssignmentFilter>>
<</if>> <</if>>
<<if ($slaves.length > $HGSuiteSlaves) && ($HGSuiteSlaves < 1)>> <<if ($slaves.length > $HGSuiteSlaves) && ($HGSuiteSlaves < 1)>>
...@@ -54,10 +56,9 @@ ...@@ -54,10 +56,9 @@
<br><br> <br><br>
<<assignmentFilter>> <<assignmentFilter>>
<span id="ComingGoing"> <span id="ComingGoing">
<<showallAssignmentFilter>> <<resetAssignmentFilter>>
<<set $Flag = 0>> <<set $Flag = 0>>
<<include "Slave Summary">> <<include "Slave Summary">>
<<resetAssignmentFilter>>
</span> </span>
<</if>> <</if>>
......
:: Schoolroom [nobr] :: Schoolroom [nobr]
<<set $nextButton = "Back to Main", $nextLink = "Main", $returnTo = "Schoolroom", $showEncyclopedia = 1, $encyclopedia = "Schoolroom", $schoolroomSlaves = $SchlRiIDs.length>> <<set $nextButton = "Back to Main", $nextLink = "Main", $returnTo = "Schoolroom", $showEncyclopedia = 1, $encyclopedia = "Schoolroom", $schoolroomSlaves = $SchlRiIDs.length>>
<<showallAssignmentFilter>>
<<if $schoolroomName != "the Schoolroom">> <<if $schoolroomName != "the Schoolroom">>
<<set $schoolroomNameCaps = $schoolroomName.replace("the ", "The ")>> <<set $schoolroomNameCaps = $schoolroomName.replace("the ", "The ")>>
<</if>> <</if>>
......
:: Servants' Quarters [nobr] :: Servants' Quarters [nobr]
<<set $nextButton = "Back to Main", $nextLink = "Main", $returnTo = "Servants' Quarters", $showEncyclopedia = 1, $encyclopedia = "Servants' Quarters", $servantsQuartersSlaves = $ServQiIDs.length>> <<set $nextButton = "Back to Main", $nextLink = "Main", $returnTo = "Servants' Quarters", $showEncyclopedia = 1, $encyclopedia = "Servants' Quarters", $servantsQuartersSlaves = $ServQiIDs.length>>
<<showallAssignmentFilter>>
<<if $servantsQuartersName != "the Servants' Quarters">> <<if $servantsQuartersName != "the Servants' Quarters">>
<<set $servantsQuartersNameCaps = $servantsQuartersName.replace("the ", "The ")>> <<set $servantsQuartersNameCaps = $servantsQuartersName.replace("the ", "The ")>>
<</if>> <</if>>
......
:: Spa [nobr] :: Spa [nobr]
<<set $nextButton = "Back to Main", $nextLink = "Main", $returnTo = "Spa", $showEncyclopedia = 1, $encyclopedia = "Spa", $spaSlaves = $SpaiIDs.length>> <<set $nextButton = "Back to Main", $nextLink = "Main", $returnTo = "Spa", $showEncyclopedia = 1, $encyclopedia = "Spa", $spaSlaves = $SpaiIDs.length>>
<<showallAssignmentFilter>>
<<if $spaName != "the Spa">> <<if $spaName != "the Spa">>
<<set $spaNameCaps = $spaName.replace("the ", "The ")>> <<set $spaNameCaps = $spaName.replace("the ", "The ")>>
<</if>> <</if>>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment