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

syntax fix, and warnings not called errors anymore. They really not true errors.

parent 20f4b612
No related branches found
No related tags found
No related merge requests found
...@@ -78,7 +78,7 @@ window.WombImpregnate = function(actor, fCount, fatherID, age) ...@@ -78,7 +78,7 @@ window.WombImpregnate = function(actor, fCount, fatherID, age)
}catch(err){ }catch(err){
WombInit(actor); WombInit(actor);
actor.womb.push(tf); actor.womb.push(tf);
alert("WombImpregnate error" + actor.slaveName+" "+err); alert("WombImpregnate warning - " + actor.slaveName+" "+err);
} }
} }
...@@ -96,7 +96,7 @@ window.WombProgress = function(actor, ageToAdd) ...@@ -96,7 +96,7 @@ window.WombProgress = function(actor, ageToAdd)
} }
}catch(err){ }catch(err){
WombInit(actor); WombInit(actor);
alert("WombProgress error - " + actor.slaveName+" "+err); alert("WombProgress warning - " + actor.slaveName+" "+err);
} }
} }
...@@ -106,7 +106,7 @@ window.WombBirth = function(actor, readyAge) ...@@ -106,7 +106,7 @@ window.WombBirth = function(actor, readyAge)
actor.womb.sort(function (a, b){return b.age - a.age}); //For normal processing fetuses that more old should be first. Now - they are. actor.womb.sort(function (a, b){return b.age - a.age}); //For normal processing fetuses that more old should be first. Now - they are.
}catch(err){ }catch(err){
WombInit(actor); WombInit(actor);
alert("WombBirth error"); alert("WombBirth warning - " + actor.slaveName+" "+err);
} }
var birthed = []; var birthed = [];
...@@ -141,7 +141,8 @@ window.WombBirthReady = function(actor, readyAge) ...@@ -141,7 +141,8 @@ window.WombBirthReady = function(actor, readyAge)
} }
}catch(err){ }catch(err){
WombInit(actor); WombInit(actor);
alert("WombBirthReady error"); alert("WombBirthReady warning - " + actor.slaveName+" "+err);
return 0; return 0;
} }
...@@ -182,7 +183,7 @@ window.WombGetVolume = function(actor) //most code from pregJS.tw with minor ada ...@@ -182,7 +183,7 @@ window.WombGetVolume = function(actor) //most code from pregJS.tw with minor ada
} }
}catch(err){ }catch(err){
WombInit(actor); WombInit(actor);
alert("WombGetVolume error" + actor.slaveName + " " + err); alert("WombGetVolume warning - " + actor.slaveName + " " + err);
} }
if (wombSize < 0) //catch for strange cases, to avoid messing with outside code. if (wombSize < 0) //catch for strange cases, to avoid messing with outside code.
...@@ -193,7 +194,7 @@ window.WombGetVolume = function(actor) //most code from pregJS.tw with minor ada ...@@ -193,7 +194,7 @@ window.WombGetVolume = function(actor) //most code from pregJS.tw with minor ada
window.WombUpdatePregVars = function(actor) { window.WombUpdatePregVars = function(actor) {
actor.womb.sort(function (a, b){return b.age - a.age}) actor.womb.sort(function (a, b){return b.age - a.age});
if (actor.womb.length > 0) if (actor.womb.length > 0)
{ {
if (actor.preg > 0 && actor.womb[0].age > 0) if (actor.preg > 0 && actor.womb[0].age > 0)
...@@ -211,14 +212,14 @@ window.WombUpdatePregVars = function(actor) { ...@@ -211,14 +212,14 @@ window.WombUpdatePregVars = function(actor) {
window.WombMinPreg = function(actor) window.WombMinPreg = function(actor)
{ {
actor.womb.sort(function (a, b){return b.age - a.age}) actor.womb.sort(function (a, b){return b.age - a.age});
return actor.womb[actor.womb.length-1].age; return actor.womb[actor.womb.length-1].age;
} }
window.WombMaxPreg = function(actor) window.WombMaxPreg = function(actor)
{ {
actor.womb.sort(function (a, b){return b.age - a.age}) actor.womb.sort(function (a, b){return b.age - a.age});
return actor.womb[0].age; return actor.womb[0].age;
} }
......
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