Skip to content
Snippets Groups Projects
Commit c14f4bb5 authored by kopareigns's avatar kopareigns
Browse files

Possible fix

parent 725847dc
Branches
Tags
2 merge requests!3001Final push before merge,!2997Possible fix
...@@ -636,6 +636,8 @@ You look up the _relationType. She costs <<print cashFormat($slaveCost)>>, a bar ...@@ -636,6 +636,8 @@ You look up the _relationType. She costs <<print cashFormat($slaveCost)>>, a bar
<</if>> <</if>>
<</for>> <</for>>
<<set $eventSlave.mother = $activeSlave.ID>> <<set $eventSlave.mother = $activeSlave.ID>>
<<set $activeSlave.father = 0>>
<<set $activeSlave.mother = 0>>
<<case "father">> <<case "father">>
<<for $j = 0; $j < $slaves.length; $j++>> <<for $j = 0; $j < $slaves.length; $j++>>
<<if sameMom($eventSlave, $slaves[$j]) && $slaves[$j].father == 0>> <<if sameMom($eventSlave, $slaves[$j]) && $slaves[$j].father == 0>>
...@@ -643,6 +645,8 @@ You look up the _relationType. She costs <<print cashFormat($slaveCost)>>, a bar ...@@ -643,6 +645,8 @@ You look up the _relationType. She costs <<print cashFormat($slaveCost)>>, a bar
<</if>> <</if>>
<</for>> <</for>>
<<set $eventSlave.father = $activeSlave.ID>> <<set $eventSlave.father = $activeSlave.ID>>
<<set $activeSlave.father = 0>>
<<set $activeSlave.mother = 0>>
<<case "older sister">> <<case "older sister">>
<<if $eventSlave.father == 0 && $eventSlave.mother == 0>> <<if $eventSlave.father == 0 && $eventSlave.mother == 0>>
<<set $eventSlave.mother = $missingParentID>> <<set $eventSlave.mother = $missingParentID>>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment