diff --git a/devNotes/twine JS.txt b/devNotes/twine JS.txt index 2edd894c164a16a3e6a54dec2642fe86c309bfb8..052784a3132cf48aefe9be13af1c39d6f0f1c01b 100644 --- a/devNotes/twine JS.txt +++ b/devNotes/twine JS.txt @@ -1683,7 +1683,7 @@ window.setPregType = function(actor) { /* IMHO rework is posssible. Can be more interesting to play, if this code will take in account more body conditions - age, fat, food, hormone levels, etc. */ var ovum = 1; - var fertilityStack = 0; // adds an increasing bonus roll for stacked fertility drugs + var fertilityStack = 0; // adds an increasing bonus roll for stacked fertility drugs if(actor.broodmother < 1) { // Broodmothers should be not processed here. Necessary now. if(typeof actor.readyOva == "number" && actor.readyOva != 0) { @@ -1728,7 +1728,7 @@ window.setPregType = function(actor) { } ovum = Math.clamp(ovum, 0, 8); } else if(actor.pregType == 0) { - ovum += jsEither([0, 0, 0, 0, 0, 0, 0, 0, 0, 1]); //base chance for twins + ovum += jsEither([0, 0, 0, 0, 0, 0, 0, 0, 0, 1]); //base chance for twins if(actor.hormones == 2) { ovum += jsEither([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2]); fertilityStack++; @@ -7657,7 +7657,7 @@ window.newSlave = function newSlave(slave) { window.newChild = function newChild(child) { const V = State.variables; - child.age = 0; /* not sure if this is the correct way to do this or if more is required */ + child.age = 0; /* not sure if this is the correct way to do this or if more is required */ child.birthWeek = 0; /* Child comes out at 0,0. That's all that's needed. The specifics are defined later.*/ if (child.override_Eye_Color != 1) { @@ -11467,7 +11467,7 @@ window.WombSetGenericReserve = function(actor, type, count) if ((ft.reserve == "" || ft.reserve == type) && count > 0) { //console.log ("!trigger"); - ft.reserve = type; + ft.reserve = type; count--; } @@ -11489,7 +11489,7 @@ window.WombChangeReserveType = function(actor, oldType, newType) actor.womb.forEach(function(ft){ if (ft.reserve == oldType) { - ft.reserve = newType; + ft.reserve = newType; count++; } }); @@ -11504,7 +11504,7 @@ window.WombCleanGenericReserve = function(actor, type, count) if (ft.reserve == type && count > 0) { - ft.reserve = ""; + ft.reserve = ""; count--; } @@ -11539,7 +11539,7 @@ window.WombGetReservedFetuses = function(actor, type) reserved.push(ft); } - }); + }); return reserved; } @@ -11571,7 +11571,7 @@ window.WombCleanAllReserve = function(actor) { actor.womb.forEach(function(ft){ - ft.reserve = ""; + ft.reserve = ""; }); } @@ -33078,7 +33078,7 @@ window.generatePronouns = function generatePronouns(slave) { slave.possessive = "her"; slave.object = "her"; slave.objectReflexive = "herself"; - slave.noun = "girl"; + slave.noun = "girl"; } }; @@ -34530,7 +34530,7 @@ window.Count = function() { T.AVU = 10,S.AV = C(S.AV, 0, T.AVU); T.TVU = 10,S.TV = C(S.TV, 0, T.TVU); T.AAU = 10,S.AA = C(S.AA, 0, T.AAU); - T.TAU = 10,S.TA = C(S.TA, 0, T.TAU); + T.TAU = 10,S.TA = C(S.TA, 0, T.TAU); if (V.PC.warfare >= 75) {T.PGTU = 10,T.SPU = 10,T.GunSU = 10,T.SatU = 10,T.GRU = 10,T.MSU = 10,T.ACU = 10,T.SubU = 10,T.HATU = 10;} else if (V.PC.warfare >= 50) {T.PGTU = 9,T.SPU = 9,T.GunSU = 9,T.SatU = 9,T.GRU = 9,T.MSU = 9,T.ACU = 9,T.SubU = 9,T.HATU = 9;} else {T.PGTU = 8,T.SPU = 8,T.GunSU = 8,T.SatU = 8,T.GRU = 8,T.MSU = 8,T.ACU = 8,T.SubU = 8,T.HATU = 8;} @@ -35869,7 +35869,7 @@ window.slavePregnancyDatatypeCleanup = function slavePregnancyDatatypeCleanup(sl slave.labor = Math.clamp(+slave.labor, 0, 1) || 0; slave.cSec = Math.clamp(+slave.cSec, 0, 1) || 0; slave.prematureBirth = Math.clamp(+slave.prematureBirth, 0, 1) || 0; - slave.ovaries = Math.clamp(+slave.ovaries, 0, 1) || 0; + slave.ovaries = Math.clamp(+slave.ovaries, 0, 1) || 0; slave.vasectomy = Math.clamp(+slave.vasectomy, 0, 1) || 0; slave.mpreg = Math.clamp(+slave.mpreg, 0, 1) || 0; slave.reservedChildren = WombReserveCount(slave, "incubator") || 0; @@ -35934,7 +35934,7 @@ window.slaveImplantsDatatypeCleanup = function slaveImplantsDatatypeCleanup(slav slave.buttImplant = Math.clamp(+slave.buttImplant, 0, 3) || 0; slave.buttImplantType = Math.clamp(+slave.buttImplantType, 0, 1) || 0; slave.heightImplant = Math.clamp(+slave.heightImplant, -1, 1) || 0; - slave.earImplant = Math.clamp(+slave.earImplant, 0, 1) || 0; + slave.earImplant = Math.clamp(+slave.earImplant, 0, 1) || 0; slave.shouldersImplant = Math.clamp(+slave.shouldersImplant, -1, 1) || 0; slave.hipsImplant = Math.clamp(+slave.hipsImplant, -1, 1) || 0; }; @@ -36241,14 +36241,14 @@ window.slaveMiscellaneousDatatypeCleanup = function slaveMiscellaneousDatatypeCl slave.indenture = Math.max(+slave.indenture, -1) || -1; } slave.indentureRestrictions = Math.clamp(+slave.indentureRestriction, 0, 2) || 0; - slave.tired = Math.clamp(+slave.tired, 0, 1) || 0; + slave.tired = Math.clamp(+slave.tired, 0, 1) || 0; slave.hears = Math.clamp(+slave.hears, -2, 0) || 0; if (typeof slave.earwear !== "string") { slave.earwear = "none"; } slave.heels = Math.clamp(+slave.heels, 0, 1) || 0; slave.amp = Math.clamp(+slave.amp, -5, 1) || 0; - slave.PLimb = Math.clamp(+slave.PLimb, 0, 1) || 0; + slave.PLimb = Math.clamp(+slave.PLimb, 0, 1) || 0; if (slave.voice !== 0) { slave.voice = Math.clamp(+slave.voice, 0, 3) || 1; } diff --git a/src/js/assayJS.tw b/src/js/assayJS.tw index a85e7803da8002f5425c644c00fc01604bd35d58..b69dc65a39a063512952e64cfd48ecafe4912ea3 100644 --- a/src/js/assayJS.tw +++ b/src/js/assayJS.tw @@ -361,7 +361,7 @@ window.newSlave = function newSlave(slave) { window.newChild = function newChild(child) { const V = State.variables; - child.age = 0; /* not sure if this is the correct way to do this or if more is required */ + child.age = 0; /* not sure if this is the correct way to do this or if more is required */ child.birthWeek = 0; /* Child comes out at 0,0. That's all that's needed. The specifics are defined later.*/ if (child.override_Eye_Color != 1) { diff --git a/src/js/datatypeCleanupJS.tw b/src/js/datatypeCleanupJS.tw index 1eb8cad636a2fa699ec3b31b96f53c01b1e2e99e..e297f4ec0d462a7a2abe2bb3796a4d1857cd0945 100644 --- a/src/js/datatypeCleanupJS.tw +++ b/src/js/datatypeCleanupJS.tw @@ -193,7 +193,7 @@ window.slavePregnancyDatatypeCleanup = function slavePregnancyDatatypeCleanup(sl slave.labor = Math.clamp(+slave.labor, 0, 1) || 0; slave.cSec = Math.clamp(+slave.cSec, 0, 1) || 0; slave.prematureBirth = Math.clamp(+slave.prematureBirth, 0, 1) || 0; - slave.ovaries = Math.clamp(+slave.ovaries, 0, 1) || 0; + slave.ovaries = Math.clamp(+slave.ovaries, 0, 1) || 0; slave.vasectomy = Math.clamp(+slave.vasectomy, 0, 1) || 0; slave.mpreg = Math.clamp(+slave.mpreg, 0, 1) || 0; slave.reservedChildren = WombReserveCount(slave, "incubator") || 0; @@ -258,7 +258,7 @@ window.slaveImplantsDatatypeCleanup = function slaveImplantsDatatypeCleanup(slav slave.buttImplant = Math.clamp(+slave.buttImplant, 0, 3) || 0; slave.buttImplantType = Math.clamp(+slave.buttImplantType, 0, 1) || 0; slave.heightImplant = Math.clamp(+slave.heightImplant, -1, 1) || 0; - slave.earImplant = Math.clamp(+slave.earImplant, 0, 1) || 0; + slave.earImplant = Math.clamp(+slave.earImplant, 0, 1) || 0; slave.shouldersImplant = Math.clamp(+slave.shouldersImplant, -1, 1) || 0; slave.hipsImplant = Math.clamp(+slave.hipsImplant, -1, 1) || 0; }; @@ -565,14 +565,14 @@ window.slaveMiscellaneousDatatypeCleanup = function slaveMiscellaneousDatatypeCl slave.indenture = Math.max(+slave.indenture, -1) || -1; } slave.indentureRestrictions = Math.clamp(+slave.indentureRestriction, 0, 2) || 0; - slave.tired = Math.clamp(+slave.tired, 0, 1) || 0; + slave.tired = Math.clamp(+slave.tired, 0, 1) || 0; slave.hears = Math.clamp(+slave.hears, -2, 0) || 0; if (typeof slave.earwear !== "string") { slave.earwear = "none"; } slave.heels = Math.clamp(+slave.heels, 0, 1) || 0; slave.amp = Math.clamp(+slave.amp, -5, 1) || 0; - slave.PLimb = Math.clamp(+slave.PLimb, 0, 1) || 0; + slave.PLimb = Math.clamp(+slave.PLimb, 0, 1) || 0; if (slave.voice !== 0) { slave.voice = Math.clamp(+slave.voice, 0, 3) || 1; } diff --git a/src/js/pregJS.tw b/src/js/pregJS.tw index 3786283c8e608551f66305af5f3b39ef75b131cf..08d85e8d346de0affbdd51a993aff99d958864df 100644 --- a/src/js/pregJS.tw +++ b/src/js/pregJS.tw @@ -66,7 +66,7 @@ window.setPregType = function(actor) { /* IMHO rework is posssible. Can be more interesting to play, if this code will take in account more body conditions - age, fat, food, hormone levels, etc. */ var ovum = 1; - var fertilityStack = 0; // adds an increasing bonus roll for stacked fertility drugs + var fertilityStack = 0; // adds an increasing bonus roll for stacked fertility drugs if(actor.broodmother < 1) { // Broodmothers should be not processed here. Necessary now. if(typeof actor.readyOva == "number" && actor.readyOva != 0) { @@ -111,7 +111,7 @@ window.setPregType = function(actor) { } ovum = Math.clamp(ovum, 0, 8); } else if(actor.pregType == 0) { - ovum += jsEither([0, 0, 0, 0, 0, 0, 0, 0, 0, 1]); //base chance for twins + ovum += jsEither([0, 0, 0, 0, 0, 0, 0, 0, 0, 1]); //base chance for twins if(actor.hormones == 2) { ovum += jsEither([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2]); fertilityStack++; diff --git a/src/js/slaveGenerationJS.tw b/src/js/slaveGenerationJS.tw index c5584eabde0f1f9c194b0bf449d7259e3a5a1479..9fd39a732a677365563f69360b41e85400bfbc82 100644 --- a/src/js/slaveGenerationJS.tw +++ b/src/js/slaveGenerationJS.tw @@ -1743,6 +1743,6 @@ window.generatePronouns = function generatePronouns(slave) { slave.possessive = "her"; slave.object = "her"; slave.objectReflexive = "herself"; - slave.noun = "girl"; + slave.noun = "girl"; } }; \ No newline at end of file diff --git a/src/js/wombJS.tw b/src/js/wombJS.tw index 0da9d2ca7d306d4f95ca424fec9b822996b8160e..d63cce3ce6ec7c82f56f9b24ea632f81ee76e451 100644 --- a/src/js/wombJS.tw +++ b/src/js/wombJS.tw @@ -489,7 +489,7 @@ window.WombSetGenericReserve = function(actor, type, count) if ((ft.reserve == "" || ft.reserve == type) && count > 0) { //console.log ("!trigger"); - ft.reserve = type; + ft.reserve = type; count--; } @@ -511,7 +511,7 @@ window.WombChangeReserveType = function(actor, oldType, newType) actor.womb.forEach(function(ft){ if (ft.reserve == oldType) { - ft.reserve = newType; + ft.reserve = newType; count++; } }); @@ -526,7 +526,7 @@ window.WombCleanGenericReserve = function(actor, type, count) if (ft.reserve == type && count > 0) { - ft.reserve = ""; + ft.reserve = ""; count--; } @@ -561,7 +561,7 @@ window.WombGetReservedFetuses = function(actor, type) reserved.push(ft); } - }); + }); return reserved; }