Skip to content
Snippets Groups Projects
Commit 62af069e authored by Pregmodder's avatar Pregmodder
Browse files

beta BC code

parent 56dd860b
No related branches found
No related tags found
No related merge requests found
...@@ -10458,7 +10458,12 @@ window.WombInit = function(actor) { ...@@ -10458,7 +10458,12 @@ window.WombInit = function(actor) {
} }
   
//backward compatibility setup. Fully accurate for normal pregnancy only. //backward compatibility setup. Fully accurate for normal pregnancy only.
if (actor.womb.length == 0 && actor.pregType != 0 && actor.broodmother == 0) { if (actor.womb.length > 0 && actor.broodmother == 0 && actor.womb[0].genetics == undefined) {
var i;
for (i=0; i<actor.womb.length; i++) {
ft.genetics = generateGenetics(actor.ID, ft.fatherID, i+1);
}
} else if (actor.womb.length == 0 && actor.pregType != 0 && actor.broodmother == 0) {
WombImpregnate(actor, actor.pregType, actor.pregSource, actor.preg); WombImpregnate(actor, actor.pregType, actor.pregSource, actor.preg);
} else if (actor.womb.length == 0 && actor.pregType != 0 && actor.broodmother > 0 && actor.broodmotherOnHold < 1) { } else if (actor.womb.length == 0 && actor.pregType != 0 && actor.broodmother > 0 && actor.broodmotherOnHold < 1) {
//sorry but for already present broodmothers it's impossible to calculate fully, aproximation used. //sorry but for already present broodmothers it's impossible to calculate fully, aproximation used.
...@@ -45,7 +45,12 @@ window.WombInit = function(actor) { ...@@ -45,7 +45,12 @@ window.WombInit = function(actor) {
} }
//backward compatibility setup. Fully accurate for normal pregnancy only. //backward compatibility setup. Fully accurate for normal pregnancy only.
if (actor.womb.length == 0 && actor.pregType != 0 && actor.broodmother == 0) { if (actor.womb.length > 0 && actor.broodmother == 0 && actor.womb[0].genetics == undefined) {
var i;
for (i=0; i<actor.womb.length; i++) {
ft.genetics = generateGenetics(actor.ID, ft.fatherID, i+1);
}
} else if (actor.womb.length == 0 && actor.pregType != 0 && actor.broodmother == 0) {
WombImpregnate(actor, actor.pregType, actor.pregSource, actor.preg); WombImpregnate(actor, actor.pregType, actor.pregSource, actor.preg);
} else if (actor.womb.length == 0 && actor.pregType != 0 && actor.broodmother > 0 && actor.broodmotherOnHold < 1) { } else if (actor.womb.length == 0 && actor.pregType != 0 && actor.broodmother > 0 && actor.broodmotherOnHold < 1) {
//sorry but for already present broodmothers it's impossible to calculate fully, aproximation used. //sorry but for already present broodmothers it's impossible to calculate fully, aproximation used.
......
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