Skip to content
Snippets Groups Projects
Commit 91b94155 authored by Pregmodder's avatar Pregmodder
Browse files

Critical fix.

parent b86973f4
No related branches found
No related tags found
No related merge requests found
......@@ -119,7 +119,7 @@ window.totalRelatives = function(slave) {
};
window.mutualChildren = function(slave1, slave2, slaves) {
return slaves.filter(function(s) { return s.ID != slave1.ID && s.ID != slave2.ID && ((s.mother == slave1.ID && s.father == slave2.ID) || (s.mother == slave2.ID && s.father == slave1.ID)); }).length;
return slaves.filter(function(s) { return s.ID != slave1.ID && s.ID != slave2.ID && s.mother > 0 && s.father > 0 && ((s.mother == slave1.ID && s.father == slave2.ID) || (s.mother == slave2.ID && s.father == slave1.ID)); }).length;
}
window.isSlaveAvailable = function(slave) {
......
......@@ -169,11 +169,11 @@
<<elseif mutualChildren(_SlaveI, _SlaveJ, $slaves) > 0>>
<<if (_SlaveI.releaseRules != "restrictive")>>
<<if _SlaveJ.relationshipRules == "permissive">>
_SlaveI.slaveName and _SlaveJ.slaveName have <<if mutualChildren(_SlaveI, _SlaveJ, $slaves) == 0>>a child<<else>>children<</if>> living in your penthouse, so it's not surprising that their offsrping brings them together. They have @@.lightgreen;become friends@@ for their child's sake.
_SlaveI.slaveName and _SlaveJ.slaveName have <<if mutualChildren(_SlaveI, _SlaveJ, $slaves) == 0>>a child<<else>>children<</if>> living in your penthouse, so it's not surprising that their offspring brings them together. They have @@.lightgreen;become friends@@ for their child's sake.
<<set _SlaveJ.relationship = 1, _SlaveJ.relationshipTarget = _SlaveI.ID, _SlaveI.relationship = 1, _SlaveI.relationshipTarget = _SlaveJ.ID>>
<<break>>
<<else>>
_SlaveI.slaveName tries to strike up a sexual relationship with _SlaveJ.slaveName and is @@.gold;punished@@ for breaking the rules against such things; she @@.mediumorchid;resents@@ being prevented from pursuing her.
_SlaveI.slaveName tries to renew her relationship relationship with _SlaveJ.slaveName and is @@.gold;punished@@ for breaking the rules against such things; she @@.mediumorchid;resents@@ being prevented from reuniting with her.
<<set _SlaveI.devotion -= 2, _SlaveI.trust -= 2>>
<</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