Skip to content
Snippets Groups Projects
Commit eec63a5d authored by pregmodfan's avatar pregmodfan
Browse files

limit for in case that hyperpregnancy turned off

parent 65563ef7
No related branches found
No related tags found
1 merge request!4624Better superfetation implanted ova count sim
...@@ -386,6 +386,8 @@ window.setPregType = function(actor) { ...@@ -386,6 +386,8 @@ window.setPregType = function(actor) {
let ftvol = FetusGetPrediction(actor, actor.pregData.normalBirth); let ftvol = FetusGetPrediction(actor, actor.pregData.normalBirth);
let cmvol = ftvol * actor.womb.length; let cmvol = ftvol * actor.womb.length;
let maxvol = actor.pregAdaptation*2000; let maxvol = actor.pregAdaptation*2000;
if (State.variables.seeHyperPreg == 0)
maxvol /= 10; //without hyperpreg enabled it's limited to be roughly ten times smaller.
let freevol = maxvol - cmvol; let freevol = maxvol - cmvol;
let coeff = ((maxvol/actor.womb.length) / (freevol/ftvol)) / 2; // more divide to 2 is to balance for ensured 1 ova even if overlimit. let coeff = ((maxvol/actor.womb.length) / (freevol/ftvol)) / 2; // more divide to 2 is to balance for ensured 1 ova even if overlimit.
//console.log("ftvol:", ftvol, " cmvol:", cmvol, " maxvol:", maxvol, " freevol:", freevol, " coeff:", coeff); //console.log("ftvol:", ftvol, " cmvol:", cmvol, " maxvol:", maxvol, " freevol:", freevol, " coeff:", coeff);
......
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