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

Salvaging broken genetics

parent 2bd57b21
No related branches found
No related tags found
No related merge requests found
...@@ -123,6 +123,11 @@ ...@@ -123,6 +123,11 @@
<<if ndef $args[0].lactationRules>> <<if ndef $args[0].lactationRules>>
<<set $args[0].lactationRules = "none">> <<set $args[0].lactationRules = "none">>
<</if>> <</if>>
<<for _pmw = 0; _pmw < $args[0].womb.length; _pmw++>>
<<if $args[0].womb[_pmw].genetics.mother !== $args[0].ID || $args[0].womb[_pmw].genetics.father !== $args[0].womb[_pmw].fatherID>>
<<set $args[0].womb[_pmw].genetics = generateGenetics($args[0], $args[0].womb[_pmw].fatherID, _pmw)>>
<</if>>
<</for>>
<</widget>> <</widget>>
......
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