Skip to content
Snippets Groups Projects
Commit 07ef038d authored by Pregmodder's avatar Pregmodder
Browse files

Merge branch 'pregmod-master' into 'pregmod-master'

reverted check.

See merge request pregmodfan/fc-pregmod!1588
parents c6e2972e ab7a9f35
No related branches found
No related tags found
1 merge request!1588reverted check.
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
.map((s, idx) => ({ID: s.ID, idx: idx, name: s.slaveName, assignment: s.assignment})) .map((s, idx) => ({ID: s.ID, idx: idx, name: s.slaveName, assignment: s.assignment}))
.filter(s => s.ID === _i).map(s => s.idx + ' - ' + s.name + ' (' + s.assignment + ')').join(', ')>>@@ .filter(s => s.ID === _i).map(s => s.idx + ' - ' + s.name + ' (' + s.assignment + ')').join(', ')>>@@
<</foreach>> <</foreach>>
<<set _visibleSlaves = $slaves.filter(s => (s.assignmentVisible == 1 && s.assignment != "be your Head Girl" && s.assignment != "guard you") || (s.assignment == "be your Head Girl" && $HGSuite != 1) || (s.assignment == "guard you" && $dojo <= 1)), <<set _visibleSlaves = $slaves.filter(s => s.assignmentVisible == 1 && (s.assignment != "be your Head Girl" || $HGSuite != 1) && (s.assignment != "guard you" || $dojo <= 1)),
$slavesVisible = _visibleSlaves.length, $slavesVisible = _visibleSlaves.length,
$dormitoryPopulation = _visibleSlaves.filter(s => s.livingRules != "luxurious").length, $dormitoryPopulation = _visibleSlaves.filter(s => s.livingRules != "luxurious").length,
$roomsPopulation = $slavesVisible - $dormitoryPopulation - _visibleSlaves.filter(s => s.livingRules == "luxurious" && s.relationship >= 4).length * 0.5, $roomsPopulation = $slavesVisible - $dormitoryPopulation - _visibleSlaves.filter(s => s.livingRules == "luxurious" && s.relationship >= 4).length * 0.5,
......
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