Skip to content
Snippets Groups Projects
Commit 068f964b authored by Pregmodder's avatar Pregmodder
Browse files

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

Set text correctly for links to incest scenes where exactly one daughter or sister is available

See merge request pregmodfan/fc-pregmod!5997
parents 65d86dde 2ed24d01
No related branches found
No related tags found
No related merge requests found
...@@ -375,7 +375,7 @@ window.randomAvailableParent = function(slave) { ...@@ -375,7 +375,7 @@ window.randomAvailableParent = function(slave) {
*/ */
window.availableRelatives = function(slave) { window.availableRelatives = function(slave) {
let avail = { let avail = {
mother: false, motherName: null, father: false, fatherName: null, sisters: 0, daughters: 0 mother: false, motherName: null, father: false, fatherName: null, sisters: 0, daughters: 0, oneSisterRel: null, oneDaughterRel: null
}; };
V.slaves.forEach((other) => { V.slaves.forEach((other) => {
...@@ -394,9 +394,15 @@ window.availableRelatives = function(slave) { ...@@ -394,9 +394,15 @@ window.availableRelatives = function(slave) {
} }
if (slave.ID === other.mother || slave.ID === other.father) { if (slave.ID === other.mother || slave.ID === other.father) {
avail.daughters++; avail.daughters++;
if (avail.daughters === 1) {
avail.oneDaughterRel = relativeTerm(slave, other);
}
} }
if (areSisters(slave, other) > 0) { if (areSisters(slave, other) > 0) {
avail.sisters++; avail.sisters++;
if (avail.sisters === 1) {
avail.oneSisterRel = relativeTerm(slave, other);
}
} }
} }
}); });
......
...@@ -259,13 +259,13 @@ ...@@ -259,13 +259,13 @@
<<if $activeSlave.daughters > 0>> <<if $activeSlave.daughters > 0>>
<<if _availRelatives.daughters == 0>> <<if _availRelatives.daughters == 0>>
<<if $activeSlave.daughters == 1>> <<if $activeSlave.daughters == 1>>
//$His _daughter2 is unavailable// //$His _availRelatives.oneDaughterRel is unavailable//
<<else>> <<else>>
//$His daughters are unavailable// //$His daughters are unavailable//
<</if>> <</if>>
<<else>> <<else>>
<<if $activeSlave.daughters == 1>> <<if $activeSlave.daughters == 1>>
| <<link "Fuck $him with $his _daughter2">><<replace "#miniscene">><<set $partner = "daughter">><<include "FRelation">><br>&nbsp;&nbsp;&nbsp;&nbsp;<</replace>><</link>> | <<link "Fuck $him with $his _availRelatives.oneDaughterRel">><<replace "#miniscene">><<set $partner = "daughter">><<include "FRelation">><br>&nbsp;&nbsp;&nbsp;&nbsp;<</replace>><</link>>
<<else>> <<else>>
| <<link "Fuck $him with one of $his daughters">><<replace "#miniscene">><<set $partner = "daughter">><<include "FRelation">><br>&nbsp;&nbsp;&nbsp;&nbsp;<</replace>><</link>> | <<link "Fuck $him with one of $his daughters">><<replace "#miniscene">><<set $partner = "daughter">><<include "FRelation">><br>&nbsp;&nbsp;&nbsp;&nbsp;<</replace>><</link>>
<</if>> <</if>>
...@@ -279,13 +279,13 @@ ...@@ -279,13 +279,13 @@
<<if $activeSlave.sisters > 0>> <<if $activeSlave.sisters > 0>>
<<if _availRelatives.sisters == 0>> <<if _availRelatives.sisters == 0>>
<<if $activeSlave.sisters == 1>> <<if $activeSlave.sisters == 1>>
//$His _sister2 is unavailable// //$His _availRelatives.oneSisterRel is unavailable//
<<else>> <<else>>
//$His sisters are unavailable// //$His sisters are unavailable//
<</if>> <</if>>
<<else>> <<else>>
<<if $activeSlave.sisters == 1>> <<if $activeSlave.sisters == 1>>
| <<link "Fuck $him with $his _sister2">><<replace "#miniscene">><<set $partner = "sister">><<include "FRelation">><br>&nbsp;&nbsp;&nbsp;&nbsp;<</replace>><</link>> | <<link "Fuck $him with $his _availRelatives.oneSisterRel">><<replace "#miniscene">><<set $partner = "sister">><<include "FRelation">><br>&nbsp;&nbsp;&nbsp;&nbsp;<</replace>><</link>>
<<else>> <<else>>
| <<link "Fuck $him with one of $his sisters">><<replace "#miniscene">><<set $partner = "sister">><<include "FRelation">><br>&nbsp;&nbsp;&nbsp;&nbsp;<</replace>><</link>> | <<link "Fuck $him with one of $his sisters">><<replace "#miniscene">><<set $partner = "sister">><<include "FRelation">><br>&nbsp;&nbsp;&nbsp;&nbsp;<</replace>><</link>>
<</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