diff --git a/src/js/generateGenetics.js b/src/js/generateGenetics.js index eb868fbb2e200cecd8f5a8978a6c2d74d5b953ce..4ee8d25917ac61582d297bbf1725c28e8abd78bb 100644 --- a/src/js/generateGenetics.js +++ b/src/js/generateGenetics.js @@ -730,8 +730,6 @@ window.generateGenetics = (function() { // fertility if (father !== 0) { fathergenes = father.geneticQuirks.fertility; - } else { - fathergenes = 0; } genetarget = Math.pow(4, mother.geneticQuirks.fertility + fathergenes); if (genetarget >= 4) { @@ -755,8 +753,6 @@ window.generateGenetics = (function() { // hyper fertility if (father !== 0) { fathergenes = father.geneticQuirks.hyperFertility; - } else { - fathergenes = 0; } genetarget = Math.pow(4, mother.geneticQuirks.hyperFertility + fathergenes); if (genetarget >= 4) { @@ -780,8 +776,6 @@ window.generateGenetics = (function() { // superfetation if (father !== 0) { fathergenes = father.geneticQuirks.superfetation; - } else { - fathergenes = 0; } genetarget = Math.pow(4, mother.geneticQuirks.superfetation + fathergenes); if (genetarget >= 4) { @@ -805,8 +799,6 @@ window.generateGenetics = (function() { // well hung if (father !== 0) { fathergenes = father.geneticQuirks.wellHung; - } else { - fathergenes = 0; } genetarget = Math.pow(4, mother.geneticQuirks.wellHung + fathergenes); if (genetarget >= 4) { @@ -830,8 +822,6 @@ window.generateGenetics = (function() { // perfect face if (father !== 0) { fathergenes = father.geneticQuirks.pFace; - } else { - fathergenes = 0; } genetarget = Math.pow(2,mother.geneticQuirks.pFace + fathergenes); if (genetarget >= 2) { @@ -846,8 +836,6 @@ window.generateGenetics = (function() { // ugly face if (father !== 0) { fathergenes = father.geneticQuirks.uFace; - } else { - fathergenes = 0; } genetarget = Math.pow(2,mother.geneticQuirks.uFace + fathergenes); if (genetarget >= 2) { @@ -862,8 +850,6 @@ window.generateGenetics = (function() { // gigantism if (father !== 0) { fathergenes = father.geneticQuirks.gigantism; - } else { - fathergenes = 0; } genetarget = Math.pow(2,mother.geneticQuirks.gigantism + fathergenes); if (genetarget >= 2) { @@ -878,8 +864,6 @@ window.generateGenetics = (function() { // dwarfism if (father !== 0) { fathergenes = father.geneticQuirks.dwarfism; - } else { - fathergenes = 0; } genetarget = Math.pow(2,mother.geneticQuirks.dwarfism + fathergenes); if (genetarget >= 2) { @@ -894,8 +878,6 @@ window.generateGenetics = (function() { // albinism if (father !== 0) { fathergenes = father.geneticQuirks.albinism; - } else { - fathergenes = 0; } genetarget = Math.pow(2,mother.geneticQuirks.albinism + fathergenes); if (genetarget >= 2) { @@ -910,8 +892,6 @@ window.generateGenetics = (function() { // heterochromia if (father !== 0) { fathergenes = father.geneticQuirks.heterochromia; - } else { - fathergenes = 0; } genetarget = Math.pow(2,mother.geneticQuirks.heterochromia + fathergenes); if (genetarget >= 2) { @@ -926,8 +906,6 @@ window.generateGenetics = (function() { // rear lipedema if (father !== 0) { fathergenes = father.geneticQuirks.rearLipedema; - } else { - fathergenes = 0; } genetarget = Math.pow(2,mother.geneticQuirks.rearLipedema + fathergenes); if (genetarget >= 2) { @@ -942,8 +920,6 @@ window.generateGenetics = (function() { // Gigantomastia if (father !== 0) { fathergenes = father.geneticQuirks.gigantomastia; - } else { - fathergenes = 0; } genetarget = Math.pow(2,mother.geneticQuirks.gigantomastia + fathergenes); if (genetarget >= 2) { @@ -958,8 +934,6 @@ window.generateGenetics = (function() { // Macromastia if (father !== 0) { fathergenes = father.geneticQuirks.macromastia; - } else { - fathergenes = 0; } genetarget = Math.pow(2,mother.geneticQuirks.macromastia + fathergenes); if (genetarget >= 2) { @@ -974,8 +948,6 @@ window.generateGenetics = (function() { // myotonic hypertrophy if (father !== 0) { fathergenes = father.geneticQuirks.mGain; - } else { - fathergenes = 0; } genetarget = Math.pow(2,mother.geneticQuirks.mGain + fathergenes); if (genetarget >= 2) { @@ -990,8 +962,6 @@ window.generateGenetics = (function() { // myotonic dystrophy if (father !== 0) { fathergenes = father.geneticQuirks.mLoss; - } else { - fathergenes = 0; } genetarget = Math.pow(2,mother.geneticQuirks.mLoss + fathergenes); if (genetarget >= 2) { @@ -1006,8 +976,6 @@ window.generateGenetics = (function() { // hyperleptinemia if (father !== 0) { fathergenes = father.geneticQuirks.wGain; - } else { - fathergenes = 0; } genetarget = Math.pow(2,mother.geneticQuirks.wGain + fathergenes); if (genetarget >= 2) { @@ -1022,8 +990,6 @@ window.generateGenetics = (function() { // hypoleptinemia if (father !== 0) { fathergenes = father.geneticQuirks.wLoss; - } else { - fathergenes = 0; } genetarget = Math.pow(2,mother.geneticQuirks.wLoss + fathergenes); if (genetarget >= 2) { @@ -1038,8 +1004,6 @@ window.generateGenetics = (function() { // androgyny if (father !== 0) { fathergenes = father.geneticQuirks.androgyny; - } else { - fathergenes = 0; } genetarget = Math.pow(2,mother.geneticQuirks.androgyny + fathergenes); if (genetarget >= 2) {