From 364df1efd418c9a78eb88a480bd4b058bd34d2c3 Mon Sep 17 00:00:00 2001 From: pregmodfan <pregmodfan@cock.li> Date: Wed, 21 Feb 2018 00:07:50 +0200 Subject: [PATCH] syntax fix, and warnings not called errors anymore. They really not true errors. --- src/js/wombJS.tw | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/js/wombJS.tw b/src/js/wombJS.tw index c48bbbc5153..fb718ad0153 100644 --- a/src/js/wombJS.tw +++ b/src/js/wombJS.tw @@ -78,7 +78,7 @@ window.WombImpregnate = function(actor, fCount, fatherID, age) }catch(err){ WombInit(actor); 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) } }catch(err){ WombInit(actor); - alert("WombProgress error - " + actor.slaveName+" "+err); + alert("WombProgress warning - " + actor.slaveName+" "+err); } } @@ -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. }catch(err){ WombInit(actor); - alert("WombBirth error"); + alert("WombBirth warning - " + actor.slaveName+" "+err); } var birthed = []; @@ -141,7 +141,8 @@ window.WombBirthReady = function(actor, readyAge) } }catch(err){ WombInit(actor); - alert("WombBirthReady error"); + alert("WombBirthReady warning - " + actor.slaveName+" "+err); + return 0; } @@ -182,7 +183,7 @@ window.WombGetVolume = function(actor) //most code from pregJS.tw with minor ada } }catch(err){ 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. @@ -193,7 +194,7 @@ window.WombGetVolume = function(actor) //most code from pregJS.tw with minor ada 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.preg > 0 && actor.womb[0].age > 0) @@ -211,14 +212,14 @@ window.WombUpdatePregVars = 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; } 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; } -- GitLab