Skip to content
Snippets Groups Projects
Commit 729ec28b authored by corncobman21's avatar corncobman21
Browse files

Use already existing JS function

parent a96d3ae4
No related branches found
No related tags found
1 merge request!1216Random relation in WalkPast as JS function
......@@ -3,7 +3,7 @@
//
<<set $target = "">>
<<if $familyTesting == 1 && totalRelatives($activeSlave) > 0 && random(1,100) > 80>>
<<set $relation = getRandomRelation($activeSlave)>>
<<set $relation = randomRelatedSlave($activeSlave)>>
<<if $relation.mother == $activeSlave.ID || $relation.father == $activeSlave.ID>>
<<set $relationType = "daughter">>
<<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