Skip to content
Snippets Groups Projects
Commit 3f872050 authored by Pregmodder's avatar Pregmodder
Browse files

Bugfix

parent 557ca793
No related branches found
No related tags found
1 merge request!47Pregmod 0.9.9.3 v7.
...@@ -494,23 +494,23 @@ ...@@ -494,23 +494,23 @@
/*testtest PC sibling passages - determines how many siblings you have*/ /*testtest PC sibling passages - determines how many siblings you have*/
<<set $children = []>> <<set $children = []>>
<<set $rel_num to areSisters($activeSlave, $PC)>> <<set _rel_num to areSisters($activeSlave, $PC)>>
<<if($rel_num gt 0)>> <<if(_rel_num > 0)>>
<<if($activeSlave.vagina > -1)>> <<if ($activeSlave.vagina > -1)>>
<<set $rel_type to "sister">> <<set _rel_type to "sister">>
<<else>> <<else>>
<<set $rel_type to "brother">> <<set _rel_type to "brother">>
<</if>> <</if>>
<<if($rel_num == 1)>> <<if (_rel_num == 1)>>
<<set $rel_desc to "your twin">> <<set _rel_desc to "your twin">>
<<elseif $rel_num == 2>> <<elseif _rel_num == 2>>
<<set $rel_desc to "your ">> <<set _rel_desc to "your ">>
<<elseif $rel_num == 3>> <<elseif _rel_num == 3>>
<<set $rel_desc to "your half-">> <<set _rel_desc to "your half-">>
<</if>> <</if>>
<<for $i to 0; $i < $slaves.length; $i++>> <<for $i to 0; $i < $slaves.length; $i++>>
<<if $slaves[$i].ID != $activeSlave.ID>> <<if $slaves[$i].ID != $activeSlave.ID>>
<<if $rel_num == areSisters($activeSlave, $slaves[$i]) &amp;&amp; ($activeSlave.vagina > -1) == ($slaves[$i].vagina > -1)>> <<if _rel_num == areSisters($activeSlave, $slaves[$i]) && ($activeSlave.vagina > -1) == ($slaves[$i].vagina > -1)>>
<<set console.log('sisters', $slaves[$i].birthName)>> <<set console.log('sisters', $slaves[$i].birthName)>>
<<set $children.push($slaves[$i])>> <<set $children.push($slaves[$i])>>
<</if>> <</if>>
...@@ -518,7 +518,7 @@ ...@@ -518,7 +518,7 @@
<</for>> <</for>>
$pronounCap $pronounCap
<<if $children.length > 1>> <<if $children.length > 1>>
@@color:lightgreen;is your $rel_desc $rel_type along with @@color:lightgreen;is _rel_desc _rel_type along with
<<for $j to 0; $j < $children.length; $j++>> <<for $j to 0; $j < $children.length; $j++>>
<<if $j < $children.length-1>> <<if $j < $children.length-1>>
$children[$j].slaveName, $children[$j].slaveName,
...@@ -527,9 +527,9 @@ ...@@ -527,9 +527,9 @@
<</if>> <</if>>
<</for>> <</for>>
<<elseif $children.length > 0>> <<elseif $children.length > 0>>
is @@color:lightgreen;your $rel_desc $rel_type with $children[0].slaveName.@@ is @@color:lightgreen;_rel_desc _rel_type with $children[0].slaveName.@@
<<else>> <<else>>
is @@color:lightgreen;your $rel_desc $rel_type.@@ is @@color:lightgreen;_rel_desc _rel_type.@@
<</if>> <</if>>
<</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