diff --git a/src/js/wombJS.js b/src/js/wombJS.js index b7b80ef50774fd69ce89f8091533b2dcd5f67144..d93f3e54adee0b16846f4df00e05ebc1053cf661 100644 --- a/src/js/wombJS.js +++ b/src/js/wombJS.js @@ -374,15 +374,19 @@ window.WombGetVolume = function(actor) { // most legacy code from pregJS.tw with }; window.FetusGetPrediction = function (actor, age) { + let vol = 0.1; if (actor.pregData.sizeType === 0) { - return getVolByLen(actor, age); + vol = getVolByLen(actor, age); } else if (actor.pregData.sizeType === 1) { - return getVolByWeight(actor, age); + vol = getVolByWeight(actor, age); } else if (actor.pregData.sizeType === 2) { - return getVolByRaw(actor, age); - } else { - return 0; - } + vol = getVolByRaw(actor, age); + } + + if (vol === 0) + vol = 0.1; + + return vol; function getCurData(actor, age) { let i = 0;