Skip to content
Snippets Groups Projects
Commit 71a4d7d2 authored by Pregmodder's avatar Pregmodder
Browse files

Merge remote-tracking branch 'upstream/pregmod-master' into pregmod-master

parents 76b87bf3 d4f3af15
No related branches found
No related tags found
No related merge requests found
...@@ -3,8 +3,7 @@ ...@@ -3,8 +3,7 @@
// //
<<set $target = "">> <<set $target = "">>
<<if $familyTesting == 1 && totalRelatives($activeSlave) > 0 && random(1,100) > 80>> <<if $familyTesting == 1 && totalRelatives($activeSlave) > 0 && random(1,100) > 80>>
<<set $relations = $slaves.filter(function(s) { return areSisters($activeSlave, s) > 0 || s.mother == $activeSlave.ID || s.father == $activeSlave.ID || s.ID == $activeSlave.mother || s.ID == $activeSlave.father; })>> <<set $relation = randomRelatedSlave($activeSlave)>>
<<set $relation = $relations.random()>>
<<if $relation.mother == $activeSlave.ID || $relation.father == $activeSlave.ID>> <<if $relation.mother == $activeSlave.ID || $relation.father == $activeSlave.ID>>
<<set $relationType = "daughter">> <<set $relationType = "daughter">>
<<elseif $activeSlave.mother == $relation.ID>> <<elseif $activeSlave.mother == $relation.ID>>
......
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