Skip to content
Snippets Groups Projects
Commit 84445bcf authored by Pregmodder's avatar Pregmodder
Browse files

Merge branch 'analyze-pregnancy-ibc' into 'pregmod-master'

adding inbreed coeff calculation to analyzePregnancy

See merge request !11084
parents 6ac0b66d e7897731
No related branches found
No related tags found
1 merge request!11084adding inbreed coeff calculation to analyzePregnancy
Pipeline #52419 passed
...@@ -108,6 +108,13 @@ globalThis.analyzePregnancies = function(mother, cheat) { ...@@ -108,6 +108,13 @@ globalThis.analyzePregnancies = function(mother, cheat) {
} else { } else {
el.append(fetusAbnormalities()); el.append(fetusAbnormalities());
} }
if(V.inbreeding && genes.inbreedingCoeff!==undefined)
{
option = options.addOption(`Inbreeding coefficient: ${genes.inbreedingCoeff}`, "inbreedingCoeff", genes);
if (cheat) {
option.showTextBox();
}
}
} else { } else {
if (fetus.age > 13) { if (fetus.age > 13) {
App.UI.DOM.appendNewElement("div", el, `Gender: ${genes.gender}`); App.UI.DOM.appendNewElement("div", el, `Gender: ${genes.gender}`);
......
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