diff --git a/src/art/artJS.js b/src/art/artJS.js index eaca8de72fb390397cc48db611a6bc90ac711eb6..4a7ddd52be1eda63239a9871a9f73cb3c2136b94 100644 --- a/src/art/artJS.js +++ b/src/art/artJS.js @@ -119,8 +119,10 @@ window.CustomArt = function(slave, imageSize) { return `<${displayTypeStart} src=${fileName} style='float:right; border:3px hidden' width='300' height='300'>${displayTypeEnd}`; } else if (imageSize === 1) { return `<${displayTypeStart} src=${fileName} style='float:right; border:3px hidden' width='150' height='150'>${displayTypeEnd}`; - } else { return `<${displayTypeStart} src=${fileName} style='float:right; border:3px hidden' width='120' height='120'>${displayTypeEnd}`; } - }; + } else { + return `<${displayTypeStart} src=${fileName} style='float:right; border:3px hidden' width='120' height='120'>${displayTypeEnd}`; + } +}; /* This takes a textual hair color description and tries to guess the appropriate HTML compliant color code. @@ -214,7 +216,9 @@ window.extractColor = function(color, eyes) { console.log("Art Color Tools JS: Unable to determine HTML compliant color code for color string '" + color + "'."); if (eyes) { colorCode = "#89b7ff"; - } else { colorCode = "fuchsia"; } /* use fuchsia as error marker */ + } else { + colorCode = "fuchsia"; /* use fuchsia as error marker */ + } } return colorCode; }; diff --git a/src/art/vector_revamp/vectorRevampedArtControl.js b/src/art/vector_revamp/vectorRevampedArtControl.js index 8f2034c3491625e53a2521adde66e560055cb252..7248715d8a47b44eba3024a57b1d09159c312fe0 100644 --- a/src/art/vector_revamp/vectorRevampedArtControl.js +++ b/src/art/vector_revamp/vectorRevampedArtControl.js @@ -6,7 +6,9 @@ window.RevampedVectorArt = function(slave) { if (T.art_display_id > 0) { T.art_display_id++; - } else { T.art_display_id = 1; } + } else { + T.art_display_id = 1; + } T.art_display_class = `ad${T.art_display_id}`; /* Using JS from vectorRevampedArtControl.tw*/ @@ -701,7 +703,9 @@ class RevampedArtControl { result = "Long"; } else if (this.artSlave.hLength >= 40) { result = "Medium"; - } else { result = "Short"; } + } else { + result = "Short"; + } return result; } @@ -776,7 +780,9 @@ class RevampedArtControl { bellyLevel = 2; } else if (this.artSlave.belly >= 500) { bellyLevel = 1; - } else { bellyLevel = 0; } + } else { + bellyLevel = 0; + } return bellyLevel; } @@ -872,7 +878,9 @@ class RevampedArtControl { buttSize = 2; } else if (this.artSlave.butt > 2) { buttSize = 1; - } else { buttSize = 0; } + } else { + buttSize = 0; + } result.push(`Art_Vector_Revamp_Butt_${buttSize}`); @@ -1070,7 +1078,9 @@ class RevampedArtControl { ballsSize = 2; } else if (this.artSlave.scrotum >= 2) { ballsSize = 1; - } else { ballsSize = 0; } + } else { + ballsSize = 0; + } result.push(`Art_Vector_Revamp_Balls_${ballsSize}`); @@ -1120,7 +1130,9 @@ class RevampedArtControl { penisSize = 1; } else if (this.artSlave.dick >= 1) { penisSize = 0; - } else { penisSize = -1; } + } else { + penisSize = -1; + } if (!this.showPenis || penisSize < 0) { return result; } @@ -1268,21 +1280,29 @@ class RevampedArtControl { if (this.artSlave.nipplesPiercing === 1) { if (this.artSlave.boobs < 300) { result.push("Art_Vector_Revamp_Boob_None_Piercing"); - } else { result.push(`Art_Vector_Revamp_Boob_${size}_Piercing`); } + } else { + result.push(`Art_Vector_Revamp_Boob_${size}_Piercing`); + } } else if (this.artSlave.nipplesPiercing === 2) { if (this.artSlave.boobs < 300) { result.push("Art_Vector_Revamp_Boob_None_Piercing_Heavy"); - } else { result.push(`Art_Vector_Revamp_Boob_${size}_Piercing_Heavy`); } + } else { + result.push(`Art_Vector_Revamp_Boob_${size}_Piercing_Heavy`); + } } if (this.artSlave.areolaePiercing === 1) { if (this.artSlave.boobs < 300) { result.push("Art_Vector_Revamp_Boob_None_Areola_Piercing"); - } else { result.push(`Art_Vector_Revamp_Boob_${size}_Areola_Piercing`); } + } else { + result.push(`Art_Vector_Revamp_Boob_${size}_Areola_Piercing`); + } } else if (this.artSlave.areolaePiercing === 2) { if (this.artSlave.boobs < 300) { result.push("Art_Vector_Revamp_Boob_None_Areola_Piercing_Heavy"); - } else { result.push(`Art_Vector_Revamp_Boob_${size}_Areola_Piercing_Heavy`); } + } else { + result.push(`Art_Vector_Revamp_Boob_${size}_Areola_Piercing_Heavy`); + } } } @@ -1456,7 +1476,9 @@ class RevampedArtControl { lipsSize = "Plush"; } else if (this.artSlave.lips > 10) { lipsSize = "Normal"; - } else { lipsSize = "Thin"; } + } else { + lipsSize = "Thin"; + } if (this.artSlave.trust > 20) { result.push(`Art_Vector_Revamp_Makeup_Mouth_Happy_${lipsSize}`); diff --git a/src/js/assayJS.js b/src/js/assayJS.js index 2dc7b93fbd178da22da40df6e70131d3d6af5d8f..0952538a0f4cc77b32cf875d5d8b685bdaa2ecfc 100644 --- a/src/js/assayJS.js +++ b/src/js/assayJS.js @@ -57,7 +57,9 @@ window.properTitle = function properTitle() { return PC.customTitle; } else if (PC.title !== 0) { return "Sir"; - } else { return "Ma'am"; } + } else { + return "Ma'am"; + } }; // helper function returning slave's title for PC in situations where WrittenMaster() is inappropriate @@ -67,7 +69,9 @@ window.properMaster = function properMaster() { return PC.customTitle; } else if (PC.title !== 0) { return "Master"; - } else { return "Mistress"; } + } else { + return "Mistress"; + } }; /** @@ -432,20 +436,26 @@ window.Enunciate = function Enunciate(slave) { V.titleEnunciate = V.PC.customTitleLisp; } else if (V.PC.title !== 0) { V.titleEnunciate = "Mathter"; - } else { V.titleEnunciate = "Mithtreth"; } + } else { + V.titleEnunciate = "Mithtreth"; + } if (V.allowFamilyTitles === 1) { if (slave.father === -1) { if (slave.actualAge < 4 && slave.physicalAge < 4) { V.titleEnunciate = "Dadda"; } else if (slave.actualAge < 9) { V.titleEnunciate = "Daddy"; - } else { V.titleEnunciate = "Dad"; } + } else { + V.titleEnunciate = "Dad"; + } } else if (slave.mother === -1) { if (slave.actualAge < 4 && slave.physicalAge < 4) { V.titleEnunciate = "Mama"; } else if (slave.actualAge < 9) { V.titleEnunciate = "Mommy"; - } else { V.titleEnunciate = "Mom"; } + } else { + V.titleEnunciate = "Mom"; + } } else if (V.PC.mother === slave.ID || V.PC.father === slave.ID) { if (V.PC.title === 1) { V.titleEnunciate = "Thon"; @@ -454,11 +464,15 @@ window.Enunciate = function Enunciate(slave) { if (V.PC.title === 1) { if (slave.actualAge < 18) { V.titleEnunciate = "Bro"; - } else { V.titleEnunciate = "Brother"; } + } else { + V.titleEnunciate = "Brother"; + } } else if (V.PC.title === 0) { if (slave.actualAge < 18) { V.titleEnunciate = "Thith"; - } else { V.titleEnunciate = "Thithter"; } + } else { + V.titleEnunciate = "Thithter"; + } } } } @@ -489,20 +503,26 @@ window.Enunciate = function Enunciate(slave) { V.titleEnunciate = V.PC.customTitle; } else if (V.PC.title !== 0) { V.titleEnunciate = "Master"; - } else { V.titleEnunciate = "Mistress"; } + } else { + V.titleEnunciate = "Mistress"; + } if (V.allowFamilyTitles === 1) { if (slave.father === -1) { if (slave.actualAge < 4 && slave.physicalAge < 4) { V.titleEnunciate = "Dadda"; } else if (slave.actualAge < 9) { V.titleEnunciate = "Daddy"; - } else { V.titleEnunciate = "Dad"; } + } else { + V.titleEnunciate = "Dad"; + } } else if (slave.mother === -1) { if (slave.actualAge < 4 && slave.physicalAge < 4) { V.titleEnunciate = "Mama"; } else if (slave.actualAge < 9) { V.titleEnunciate = "Mommy"; - } else { V.titleEnunciate = "Mom"; } + } else { + V.titleEnunciate = "Mom"; + } } else if (V.PC.mother === slave.ID || V.PC.father === slave.ID) { if (V.PC.title === 1) { V.titleEnunciate = "Son"; @@ -511,11 +531,15 @@ window.Enunciate = function Enunciate(slave) { if (V.PC.title === 1) { if (slave.actualAge < 18) { V.titleEnunciate = "Bro"; - } else { V.titleEnunciate = "Brother"; } + } else { + V.titleEnunciate = "Brother"; + } } else if (V.PC.title === 0) { if (slave.actualAge < 18) { V.titleEnunciate = "Sis"; - } else { V.titleEnunciate = "Sister"; } + } else { + V.titleEnunciate = "Sister"; + } } } } @@ -524,7 +548,9 @@ window.Enunciate = function Enunciate(slave) { V.writtenTitle = V.PC.customTitle; } else if (V.PC.title !== 0) { V.writtenTitle = "Master"; - } else { V.writtenTitle = "Mistress"; } + } else { + V.writtenTitle = "Mistress"; + } if (slave.custom.title !== undefined && slave.custom.title !== "" && slave.rudeTitle === 0) { V.writtenTitle = slave.custom.title; } V.sayEnunciate = "say"; V.sEnunciate = "s"; diff --git a/src/js/assignJS.js b/src/js/assignJS.js index 742e21f1776c8a33d91c12ae347cbb9c3efd15bd..3908b176f450a48122075593a5aadc30db943655 100644 --- a/src/js/assignJS.js +++ b/src/js/assignJS.js @@ -171,7 +171,9 @@ window.assignJob = function assignJob(slave, job) { V.MastSiIDs.push(slave.ID); if (V.masterSuiteUpgradeLuxury > 0) { slave.livingRules = "luxurious"; - } else { slave.livingRules = "spare"; } + } else { + slave.livingRules = "spare"; + } break; case "learn in the schoolroom": @@ -258,7 +260,9 @@ window.assignJob = function assignJob(slave, job) { slave.assignmentVisible = 0; /* non-visible leadership roles */ if (V.masterSuiteUpgradeLuxury > 0) { slave.livingRules = "luxurious"; - } else { slave.livingRules = "normal"; } + } else { + slave.livingRules = "normal"; + } break; case "be your head girl": @@ -307,9 +311,13 @@ window.assignJob = function assignJob(slave, job) { V.personalAttention = "whoring"; } else if (V.PC.career === "servant") { V.personalAttention = "upkeep"; - } else { V.personalAttention = "business"; } + } else { + V.personalAttention = "business"; + } r += `${slave.slaveName} no longer has your personal attention; you plan to focus on ${V.personalAttention}.`; - } else { r += `${slave.slaveName} no longer has your personal attention.`; } + } else { + r += `${slave.slaveName} no longer has your personal attention.`; + } } } V.JobIDArray = resetJobIDArray(); @@ -469,7 +477,9 @@ window.removeJob = function removeJob(slave, assignment) { V.personalAttention = "whoring"; } else if (V.PC.career === "servant") { V.personalAttention = "upkeep"; - } else { V.personalAttention = "business"; } + } else { + V.personalAttention = "business"; + } r += `You no longer have a slave assigned to be your Head Girl, so you turn your personal attention to focus on ${V.personalAttention}.`; } diff --git a/src/js/familyTreeJS.js b/src/js/familyTreeJS.js index 1626ba8faf516c0d4615a0f972c74a78777e1869..0db995ff25bd49a7054ea6786548e148fdefedee 100644 --- a/src/js/familyTreeJS.js +++ b/src/js/familyTreeJS.js @@ -48,7 +48,10 @@ window.renderFamilyTree = function(slaves, filterID) { } margin = { - top: 0, left: 0, bottom: 0, right: 0 + top: 0, + left: 0, + bottom: 0, + right: 0 }; @@ -536,7 +539,9 @@ window.updateFamilyTree = function(activeSlave = lastActiveSlave, slaves = lastS let numTreeNodes = 0; let graphElement = document.getElementById("graph"); - if (!graphElement) { return; } + if (!graphElement) { + return; + } graphElement.innerHTML = ""; /* The way this code works is that we start with the activeSlave then we call @@ -613,7 +618,9 @@ window.updateFamilyTree = function(activeSlave = lastActiveSlave, slaves = lastS let spouseToChild = {}; function maybeAddSpouseToChild(child) { - if (child.ID === slave.ID) { return; } + if (child.ID === slave.ID) { + return; + } if (child.father === slave.ID) { if (!spouseToChild[child.mother]) { spouseToChild[child.mother] = []; @@ -641,11 +648,11 @@ window.updateFamilyTree = function(activeSlave = lastActiveSlave, slaves = lastS for (let key in spouseToChild) { if (spouseToChild.hasOwnProperty(key)) { - let children = shouldAddChildren?spouseToChild[key]:[]; + let children = shouldAddChildren ? spouseToChild[key] : []; let spouse = getSlave(key, (slaves.genes === "XX") ? "unknownXY" : (slaves.genes === "XY") ? "unknownXX" : "unknown"); let spouseName; if (spouse.ID !== slave.ID) { - spouseName = spouse.slaveName + (spouse.physicalAge?(` (${spouse.physicalAge})`):""); + spouseName = spouse.slaveName + (spouse.physicalAge ? (` (${spouse.physicalAge})`) : ""); } else { spouseName = (spouse.ID === -1) ? "(yourself)" : "(themselves)"; } diff --git a/src/js/futureSocietyJS.js b/src/js/futureSocietyJS.js index 03dc2cdece4d59e73b6cfd65b988ab89aa830a1f..2351c02c0bc5d0ec4705e97052e21de49be73100 100644 --- a/src/js/futureSocietyJS.js +++ b/src/js/futureSocietyJS.js @@ -136,7 +136,9 @@ window.FutureSocieties = (function() { activeFS += arcology.FSNull / 17; } else if (V.FSCreditCount === 7) { activeFS += arcology.FSNull / 15; - } else { activeFS += arcology.FSNull / 20; } + } else { + activeFS += arcology.FSNull / 20; + } } V.FSCredits = Math.max(Math.trunc(V.FSGotRepCredits - activeFS), 0); } diff --git a/src/js/physicalDevelopment.js b/src/js/physicalDevelopment.js index 31207d9dad07337d2bba0e8cf04b8011dcf07502..bda4e15f788572986f865b1a805ed76594218ce3 100644 --- a/src/js/physicalDevelopment.js +++ b/src/js/physicalDevelopment.js @@ -9,8 +9,8 @@ window.physicalDevelopment = (function physicalDevelopment() { return physicalDevelopment; /** - * @param {App.Entity.SlaveState} slave - */ + * @param {App.Entity.SlaveState} slave + */ function physicalDevelopment(slave) { if (slave.geneMods.NCS !== 1) { /* NCS completely blocks all natural physical growth: no height increases. It also blocks all hormonal secondary sexual * characteristics. So, on the female side: no boobs, no butt, no hips, and no labia. And on the male side: no dick, no clit, no balls, no scrotum, no shoulders. */ @@ -37,7 +37,8 @@ window.physicalDevelopment = (function physicalDevelopment() { increaseHipsXX(slave); increaseButtXX(slave); increasePregAdpatationXX(slave); - } else { /* shota becoming a man */ + } else { + /* shota becoming a man */ if (slave.geneticFlaws.dwarfism === 2 && slave.geneticFlaws.gigantism !== 2) { increaseHeightDwarf(slave); } else if (slave.geneticFlaws.gigantism === 2) { @@ -67,8 +68,8 @@ window.physicalDevelopment = (function physicalDevelopment() { } /** - * @param {App.Entity.SlaveState} slave - */ + * @param {App.Entity.SlaveState} slave + */ function increaseHeightXX(slave) { if (slave.hormoneBalance >= 200) { if (slave.physicalAge === 3) { @@ -524,8 +525,8 @@ window.physicalDevelopment = (function physicalDevelopment() { } /** - * @param {App.Entity.SlaveState} slave - */ + * @param {App.Entity.SlaveState} slave + */ function increaseHeightXY(slave) { if (slave.hormoneBalance >= 200) { if (slave.physicalAge === 3) { @@ -991,8 +992,8 @@ window.physicalDevelopment = (function physicalDevelopment() { } /** - * @param {App.Entity.SlaveState} slave - */ + * @param {App.Entity.SlaveState} slave + */ function increaseHeightDwarf(slave) { if (slave.hormoneBalance >= 200) { if (slave.physicalAge === 3) { @@ -1458,8 +1459,8 @@ window.physicalDevelopment = (function physicalDevelopment() { } /** - * @param {App.Entity.SlaveState} slave - */ + * @param {App.Entity.SlaveState} slave + */ function increaseHeightGiant(slave) { if (slave.hormoneBalance >= 200) { if (slave.physicalAge < 16) { @@ -1515,8 +1516,8 @@ window.physicalDevelopment = (function physicalDevelopment() { } /** - * @param {App.Entity.SlaveState} slave - */ + * @param {App.Entity.SlaveState} slave + */ function increaseBoobsXX(slave) { if (slave.geneticQuirks.gigantomastia === 2 && slave.geneticQuirks.macromastia === 2) { gigantomastiaMod = 3; @@ -1725,8 +1726,8 @@ window.physicalDevelopment = (function physicalDevelopment() { } /** - * @param {App.Entity.SlaveState} slave - */ + * @param {App.Entity.SlaveState} slave + */ function increaseBoobsXY(slave) { if (slave.geneticQuirks.gigantomastia === 2 && slave.geneticQuirks.macromastia === 2) { gigantomastiaMod = 3; @@ -1865,8 +1866,8 @@ window.physicalDevelopment = (function physicalDevelopment() { } /** - * @param {App.Entity.SlaveState} slave - */ + * @param {App.Entity.SlaveState} slave + */ function increaseHipsXX(slave) { if (slave.hormoneBalance >= 200) { if (slave.physicalAge === 8) { @@ -2092,8 +2093,8 @@ window.physicalDevelopment = (function physicalDevelopment() { } /** - * @param {App.Entity.SlaveState} slave - */ + * @param {App.Entity.SlaveState} slave + */ function increaseHipsXY(slave) { if (slave.hormoneBalance >= 200) { if (slave.physicalAge === 8) { @@ -2259,8 +2260,8 @@ window.physicalDevelopment = (function physicalDevelopment() { } /** - * @param {App.Entity.SlaveState} slave - */ + * @param {App.Entity.SlaveState} slave + */ function increaseButtXX(slave) { rearQuirk = slave.geneticQuirks.rearLipedema === 2 ? 2 : 0; rearQuirkDivider = rearQuirk === 0 ? 1 : rearQuirk; @@ -2423,8 +2424,8 @@ window.physicalDevelopment = (function physicalDevelopment() { } /** - * @param {App.Entity.SlaveState} slave - */ + * @param {App.Entity.SlaveState} slave + */ function increaseButtXY(slave) { rearQuirk = slave.geneticQuirks.rearLipedema === 2 ? 2 : 0; rearQuirkDivider = rearQuirk === 0 ? 1 : rearQuirk; @@ -2518,8 +2519,8 @@ window.physicalDevelopment = (function physicalDevelopment() { } /** - * @param {App.Entity.SlaveState} slave - */ + * @param {App.Entity.SlaveState} slave + */ function increaseDick(slave) { dickMod = (slave.geneticQuirks.wellHung === 2 ? 2 : 1); @@ -2798,8 +2799,8 @@ window.physicalDevelopment = (function physicalDevelopment() { } /** - * @param {App.Entity.SlaveState} slave - */ + * @param {App.Entity.SlaveState} slave + */ function increaseBalls(slave) { if (slave.hormoneBalance >= 200) { // @@ -3031,8 +3032,8 @@ window.physicalDevelopment = (function physicalDevelopment() { } /** - * @param {App.Entity.SlaveState} slave - */ + * @param {App.Entity.SlaveState} slave + */ function increaseClit(slave) { if (slave.hormoneBalance <= -200) { if (slave.physicalAge === 8) { @@ -3177,8 +3178,8 @@ window.physicalDevelopment = (function physicalDevelopment() { } /** - * @param {App.Entity.SlaveState} slave - */ + * @param {App.Entity.SlaveState} slave + */ function increaseWaistXX(slave) { if (slave.hormoneBalance >= 200) { if (slave.physicalAge >= 12) { @@ -3224,8 +3225,8 @@ window.physicalDevelopment = (function physicalDevelopment() { } /** - * @param {App.Entity.SlaveState} slave - */ + * @param {App.Entity.SlaveState} slave + */ function increaseWaistXY(slave) { if (slave.hormoneBalance >= 200) { if (slave.physicalAge >= 12) { @@ -3271,8 +3272,8 @@ window.physicalDevelopment = (function physicalDevelopment() { } /** - * @param {App.Entity.SlaveState} slave - */ + * @param {App.Entity.SlaveState} slave + */ function increaseFaceXX(slave) { if (slave.hormoneBalance >= 200) { if (slave.face > 60) { @@ -3320,8 +3321,8 @@ window.physicalDevelopment = (function physicalDevelopment() { } /** - * @param {App.Entity.SlaveState} slave - */ + * @param {App.Entity.SlaveState} slave + */ function increaseFaceXY(slave) { if (slave.hormoneBalance >= 200) { if (slave.face > 60) { @@ -3343,8 +3344,8 @@ window.physicalDevelopment = (function physicalDevelopment() { } /** - * @param {App.Entity.SlaveState} slave - */ + * @param {App.Entity.SlaveState} slave + */ function increaseVoiceXX(slave) { if (slave.hormoneBalance >= 200) { if (slave.voice === 3) { @@ -3380,8 +3381,8 @@ window.physicalDevelopment = (function physicalDevelopment() { } /** - * @param {App.Entity.SlaveState} slave - */ + * @param {App.Entity.SlaveState} slave + */ function increaseVoiceXY(slave) { if (slave.hormoneBalance >= 200) { if (slave.voice < 2) { @@ -3417,8 +3418,8 @@ window.physicalDevelopment = (function physicalDevelopment() { } /** - * @param {App.Entity.SlaveState} slave - */ + * @param {App.Entity.SlaveState} slave + */ function increasePregAdpatationXX(slave) { if (slave.physicalAge === 3) { if (slave.pregAdaptation < 5) { @@ -3488,8 +3489,8 @@ window.physicalDevelopment = (function physicalDevelopment() { } /** - * @param {App.Entity.SlaveState} slave - */ + * @param {App.Entity.SlaveState} slave + */ function increasePregAdpatationXY(slave) { if (slave.physicalAge === 3) { if (slave.pregAdaptation < 5) { diff --git a/src/js/rulesAssistantOptions.js b/src/js/rulesAssistantOptions.js index 0c594685f783456ded3e3624d5a396f454180a37..96c390b135f8e42119969562f9f8fae3e9e8d7a4 100644 --- a/src/js/rulesAssistantOptions.js +++ b/src/js/rulesAssistantOptions.js @@ -20,7 +20,9 @@ window.rulesAssistantOptions = (function() { const idx = V.defaultRules.findIndex(rule => rule.ID === V.currentRule); if (idx === -1) { current_rule = V.defaultRules[0]; - } else { current_rule = V.defaultRules[idx]; } + } else { + current_rule = V.defaultRules[idx]; + } } const root = new Root(element); } @@ -40,7 +42,9 @@ window.rulesAssistantOptions = (function() { if (V.defaultRules.length > 0) { const new_idx = idx < V.defaultRules.length ? idx : V.defaultRules.length - 1; V.currentRule = V.defaultRules[new_idx].ID; - } else { V.currentRule = null; } + } else { + V.currentRule = null; + } reload(root); } @@ -199,7 +203,9 @@ window.rulesAssistantOptions = (function() { setValue(what) { if (this.value.tagName === "INPUT") { this.value.value = `${what}`; - } else { this.value.innerHTML = `${what}`; } + } else { + this.value.innerHTML = `${what}`; + } } getData(what) { @@ -427,7 +433,9 @@ window.rulesAssistantOptions = (function() { const rule = JSON.parse(text); if (rule instanceof Array) { rule.forEach(r => V.defaultRules.push(r)); - } else { V.defaultRules.push(rule); } + } else { + V.defaultRules.push(rule); + } reload(this.root); } catch (e) { alert(`Couldn't import that rule:\n${e.message}`); @@ -1288,7 +1296,9 @@ window.rulesAssistantOptions = (function() { return; } else if (item.rs === "buyGag" && V.toysBoughtGags !== 1) { return; - } else { hcollars.push([item.name, item.value]); } + } else { + hcollars.push([item.name, item.value]); + } }); const harsh = new ListSubSection(this, "Harsh", hcollars); this.appendChild(harsh); @@ -2248,7 +2258,9 @@ window.rulesAssistantOptions = (function() { if (this.shapelist.value !== "no default setting") { lst.push(this.shapelist.value); } if (lst.length === 0) { return "no default setting"; - } else { return lst.join(" "); } + } else { + return lst.join(" "); + } } setValue(val) { diff --git a/src/js/rulesAutosurgery.js b/src/js/rulesAutosurgery.js index e49c7b7bacada7d3a42da442372a5df6d5f99ac7..6be658d7a683bc0ad06df62102050af5bc30acf3 100644 --- a/src/js/rulesAutosurgery.js +++ b/src/js/rulesAutosurgery.js @@ -156,56 +156,72 @@ window.rulesAutosurgery = (function() { cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } else if (slave.eyes === 1 && thisSurgery.surgery_eyes === -1) { surgeries.push("surgery to blur her vision"); slave.eyes = -1; cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } else if (slave.hears === -1 && thisSurgery.surgery_hears === 0) { surgeries.push("surgery to correct her hearing"); slave.hears = 0; cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } else if (slave.hears === 0 && thisSurgery.surgery_hears === -1) { surgeries.push("surgery to muffle her hearing"); slave.hears = -1; cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } else if (slave.smells === -1 && thisSurgery.surgery_smells === 0) { surgeries.push("surgery to correct her sense of smell"); slave.smells = 0; cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } else if (slave.smells === 0 && thisSurgery.surgery_smells === -1) { surgeries.push("surgery to muffle her sense of smell"); slave.smells = -1; cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } else if (slave.tastes === -1 && thisSurgery.surgery_tastes === 0) { surgeries.push("surgery to correct her sense of taste"); slave.tastes = 0; cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } else if (slave.tastes === 0 && thisSurgery.surgery_tastes === -1) { surgeries.push("surgery to muffle her sense of taste"); slave.tastes = -1; cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } } if (slave.health > 20 && surgeries.length < 3) { @@ -215,21 +231,27 @@ window.rulesAutosurgery = (function() { cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } else if (slave.lactation !== 2 && (thisSurgery.surgery_lactation === 1)) { surgeries.push("lactation inducing implanted drugs"); slave.lactation = 2; cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } else if ((slave.boobShape === "saggy" || slave.boobShape === "downward-facing") && thisSurgery.surgery_cosmetic > 0 && slave.breastMesh !== 1) { surgeries.push("a breast lift"); slave.boobShape = "normal"; cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } else if ((slave.boobShape === "normal" || slave.boobShape === "wide-set") && thisSurgery.surgery_cosmetic > 0 && slave.breastMesh !== 1) { if (slave.boobs > 800) { slave.boobShape = "torpedo-shaped"; @@ -240,7 +262,9 @@ window.rulesAutosurgery = (function() { cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } else if (thisSurgery.surgery_boobs === 0 && slave.boobsImplant > 0) { surgeries.push("surgery to remove her boob implants"); slave.boobs -= slave.boobsImplant; @@ -249,7 +273,9 @@ window.rulesAutosurgery = (function() { cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } else if (slave.boobs <= 600 && slave.lactation < 2 && (slave.boobs + 400 <= thisSurgery.surgery_boobs)) { surgeries.push("bigger boobs"); slave.boobsImplant += 400; @@ -257,7 +283,9 @@ window.rulesAutosurgery = (function() { cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } else if (slave.boobs <= 600 && slave.lactation < 2 && (slave.boobs + 200 <= thisSurgery.surgery_boobs)) { surgeries.push("modestly bigger boobs"); slave.boobsImplant += 200; @@ -265,7 +293,9 @@ window.rulesAutosurgery = (function() { cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } else if (slave.boobs <= 2000 && slave.lactation < 2 && (slave.boobs + 400 < thisSurgery.surgery_boobs)) { surgeries.push("bigger boobs"); slave.boobsImplant += 400; @@ -273,7 +303,9 @@ window.rulesAutosurgery = (function() { cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } else if (slave.boobs <= 9000 && slave.lactation < 2 && (slave.boobs < thisSurgery.surgery_boobs)) { surgeries.push("bigger boobs"); slave.boobsImplant += 200; @@ -281,7 +313,9 @@ window.rulesAutosurgery = (function() { cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } } if (slave.health > 20 && surgeries.length < 3) { @@ -293,7 +327,9 @@ window.rulesAutosurgery = (function() { cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } else if (slave.butt <= 3 && (slave.butt < thisSurgery.surgery_butt)) { surgeries.push("a bigger butt"); slave.buttImplant = 1; @@ -301,7 +337,9 @@ window.rulesAutosurgery = (function() { cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } else if (slave.butt <= 5 && (slave.butt < thisSurgery.surgery_butt)) { surgeries.push("a bigger butt"); slave.buttImplant = 1; @@ -309,7 +347,9 @@ window.rulesAutosurgery = (function() { cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } else if (slave.butt <= 8 && (slave.butt < thisSurgery.surgery_butt)) { surgeries.push("a bigger butt"); slave.buttImplant = 1; @@ -317,7 +357,9 @@ window.rulesAutosurgery = (function() { cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } } if (slave.health > 20 && surgeries.length < 3) { @@ -330,7 +372,9 @@ window.rulesAutosurgery = (function() { cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } else if (slave.vagina > 3 && thisSurgery.surgery_cosmetic > 0) { surgeries.push("a restored pussy"); slave.vagina = 3; @@ -340,7 +384,9 @@ window.rulesAutosurgery = (function() { cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } else if (slave.anus > 0 && V.surgeryUpgrade === 1 && thisSurgery.surgery_holes === 2) { surgeries.push("a virgin anus"); slave.anus = 0; @@ -350,7 +396,9 @@ window.rulesAutosurgery = (function() { cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } else if (slave.vagina > 0 && V.surgeryUpgrade === 1 && thisSurgery.surgery_holes === 2) { surgeries.push("a virgin pussy"); slave.vagina = 0; @@ -360,7 +408,9 @@ window.rulesAutosurgery = (function() { cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } else if (slave.anus > 1 && thisSurgery.surgery_holes === 1) { surgeries.push("a tighter anus"); slave.anus = 1; @@ -370,7 +420,9 @@ window.rulesAutosurgery = (function() { cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } else if (slave.vagina > 1 && thisSurgery.surgery_holes === 1) { surgeries.push("a tighter pussy"); slave.vagina = 1; @@ -380,7 +432,9 @@ window.rulesAutosurgery = (function() { cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } } if (slave.health > 20 && surgeries.length < 3) { @@ -390,14 +444,18 @@ window.rulesAutosurgery = (function() { cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } else if (slave.prostate === 1 && thisSurgery.surgery_prostate === 1) { surgeries.push("a precum production enhancing drug implant"); slave.prostate = 2; cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } else if (slave.balls > 0 && slave.vasectomy === 0 && thisSurgery.surgery_vasectomy === true) { surgeries.push("vasectomy"); V.surgeryType = "vasectomy"; @@ -429,7 +487,9 @@ window.rulesAutosurgery = (function() { cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } else if (slave.faceImplant <= 15 && slave.ageImplant !== 1 && slave.visualAge >= 25 && thisSurgery.surgery_cosmetic > 0) { surgeries.push("an age lift"); slave.ageImplant = 1; @@ -442,11 +502,15 @@ window.rulesAutosurgery = (function() { slave.visualAge -= 20; } else if (slave.visualAge > 36) { slave.visualAge -= 10; - } else { slave.visualAge -= 5; } + } else { + slave.visualAge -= 5; + } cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } else if (((slave.underArmHStyle !== "bald" && slave.underArmHStyle !== "hairless") || (slave.pubicHStyle !== "bald" && slave.pubicHStyle !== "hairless")) && thisSurgery.surgery_bodyhair === 2) { surgeries.push("body hair removal"); if (slave.underArmHStyle !== "hairless") { slave.underArmHStyle = "bald"; } @@ -464,7 +528,9 @@ window.rulesAutosurgery = (function() { cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } else if ((slave.bellySagPreg > 0 || slave.bellySag > 0) && (thisSurgery.surgery_cosmetic > 0 || thisSurgery.surgery_tummy > 0)) { surgeries.push("a tummy tuck"); slave.bellySag = 0; @@ -472,7 +538,9 @@ window.rulesAutosurgery = (function() { cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 10; - } else { slave.health -= 20; } + } else { + slave.health -= 20; + } } else if (slave.voice === 1 && slave.voiceImplant === 0 && thisSurgery.surgery_cosmetic > 0) { surgeries.push("a feminine voice"); slave.voice += 1; @@ -480,7 +548,9 @@ window.rulesAutosurgery = (function() { cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } else if (thisSurgery.surgery_lips === 0 && slave.lipsImplant > 0) { surgeries.push("surgery to remove her lip implants"); slave.lips -= slave.lipsImplant; @@ -491,7 +561,9 @@ window.rulesAutosurgery = (function() { cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } else if (slave.lips <= 95 && (slave.lips < thisSurgery.surgery_lips)) { surgeries.push("bigger lips"); slave.lipsImplant += 10; @@ -502,14 +574,18 @@ window.rulesAutosurgery = (function() { cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } else if (slave.cSec === 1 && thisSurgery.surgery_cosmetic > 0) { surgeries.push("surgery to remove a c-section scar"); slave.cSec = 0; cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } else if (slave.faceImplant <= 45 && slave.face <= 95 && thisSurgery.surgery_cosmetic === 2) { surgeries.push("a nicer face"); if (slave.faceShape === "masculine") { slave.faceShape = "androgynous"; } @@ -518,7 +594,9 @@ window.rulesAutosurgery = (function() { cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } else if (slave.faceImplant <= 45 && slave.ageImplant !== 1 && slave.visualAge >= 25 && thisSurgery.surgery_cosmetic === 2) { surgeries.push("an age lift"); slave.ageImplant = 1; @@ -537,7 +615,9 @@ window.rulesAutosurgery = (function() { cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } else if (slave.voice < 3 && slave.voiceImplant === 0 && thisSurgery.surgery_cosmetic === 2) { surgeries.push("a bimbo's voice"); slave.voice += 1; @@ -545,7 +625,9 @@ window.rulesAutosurgery = (function() { cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } } if (slave.health > 20 && surgeries.length < 3) { @@ -555,7 +637,9 @@ window.rulesAutosurgery = (function() { cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } else if (slave.hips < 1 && V.surgeryUpgrade === 1 && (slave.hips < thisSurgery.surgery_hips)) { surgeries.push("wider hips"); slave.hips++; @@ -563,14 +647,18 @@ window.rulesAutosurgery = (function() { cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } else if (slave.waist >= -95 && V.seeExtreme === 1 && thisSurgery.surgery_cosmetic === 2) { surgeries.push("a narrower waist"); slave.waist = Math.clamp(slave.waist - 20, -100, 100); cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } else if (slave.hips < 2 && V.surgeryUpgrade === 1 && (slave.hips < thisSurgery.surgery_hips)) { surgeries.push("wider hips"); slave.hips++; @@ -578,7 +666,9 @@ window.rulesAutosurgery = (function() { cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } else if (slave.hips < 3 && V.surgeryUpgrade === 1 && (slave.hips < thisSurgery.surgery_hips)) { surgeries.push("wider hips"); slave.hips++; @@ -586,7 +676,9 @@ window.rulesAutosurgery = (function() { cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } } if (slave.health > 20 && surgeries.length < 3) { @@ -599,13 +691,17 @@ window.rulesAutosurgery = (function() { V.surgeryType = "bellyIn"; if (V.PC.medicine >= 100) { slave.health -= 5; - } else { slave.health -= 10; } + } else { + slave.health -= 10; + } } else { surgeries.push("male belly implant"); V.surgeryType = "bellyInMale"; if (V.PC.medicine >= 100) { slave.health -= 25; - } else { slave.health -= 50; } + } else { + slave.health -= 50; + } } bellyIn(slave); } else if (slave.bellyImplant >= 0 && thisSurgery.surgery_bellyImplant === "remove") { diff --git a/src/js/slaveCostJS.js b/src/js/slaveCostJS.js index 5721fec4900f91d9ef1ce67a87b221e435008811..73466285f3ceb69c7935718e58fdfce4a9f38f6c 100644 --- a/src/js/slaveCostJS.js +++ b/src/js/slaveCostJS.js @@ -1590,7 +1590,9 @@ window.FResult = (function() { if (V.arcologies[0].FSRepopulationFocus > 20) { if (slave.belly >= 1500) { result += 2; - } else { result -= 2; } + } else { + result -= 2; + } } else if (V.arcologies[0].FSRepopulationFocusPregPolicy === 1) { if (slave.bellyPreg >= 1500) { result += 1; diff --git a/src/js/utilJS.js b/src/js/utilJS.js index 0d561f892452980f438d6cf55921c8b380b503f0..ffce2d69b0d2f06289879a348514b17e90958bbb 100644 --- a/src/js/utilJS.js +++ b/src/js/utilJS.js @@ -1348,7 +1348,9 @@ window.hashPush = function hashPush(obj, ...rest) { rest.forEach((item) => { if (obj[item] === undefined) { obj[item] = 1; - } else { obj[item] += 1; } + } else { + obj[item] += 1; + } }); }; @@ -1357,7 +1359,9 @@ window.weightedArray2HashMap = function weightedArray2HashMap(arr) { arr.forEach((item) => { if (obj[item] === undefined) { obj[item] = 1; - } else { obj[item] += 1; } + } else { + obj[item] += 1; + } }); return obj; }; @@ -1493,15 +1497,21 @@ window.getSlaveTrustClass = function(slave) { } else if (slave.trust <= 50) { if (slave.devotion < -20) { return "hate-careful"; - } else { return "careful"; } + } else { + return "careful"; + } } else if (slave.trust <= 95) { if (slave.devotion < -20) { return "bold"; - } else { return "trusting"; } + } else { + return "trusting"; + } } else { if (slave.devotion < -20) { return "defiant"; - } else { return "profoundly-trusting"; } + } else { + return "profoundly-trusting"; + } } }; diff --git a/src/js/walkPastJS.js b/src/js/walkPastJS.js index 3440f661efe9b6eaea093add5b1175be2f72ebc7..1faadffa84ac81a0f192eb7f462db3056390000d 100644 --- a/src/js/walkPastJS.js +++ b/src/js/walkPastJS.js @@ -72,7 +72,9 @@ window.loverSlave = function(activeSlave) { let race; if (V.seeRace === 1) { race = activeSlave.race; - } else { race = ""; } + } else { + race = ""; + } let name = activeSlave.slaveName; const pronouns = getPronouns(activeSlave); const he = pronouns.pronoun, @@ -102,7 +104,9 @@ window.loverSlave = function(activeSlave) { let race2; if (V.seeRace === 1) { race2 = _partnerSlave.race; - } else { race2 = ""; } + } else { + race2 = ""; + } let partnerName = _partnerSlave.slaveName; let activeSlaveRel; if (activeSlave.relationship <= 3) { diff --git a/src/js/wombJS.js b/src/js/wombJS.js index ea4191d54d1d483ce1d1e5455624514380552169..ab56d6921de04e148ec907ece24981729544c2c9 100644 --- a/src/js/wombJS.js +++ b/src/js/wombJS.js @@ -244,7 +244,9 @@ window.WombGetVolume = function(actor) { // most legacy code from pregJS.tw with return getVolByWeight(actor); } else if (actor.pregData.sizeType === 2) { return getVolByRaw(actor); - } else { return 0; } + } else { + return 0; + } function getCurData(actor, age) { let i = 0; @@ -384,14 +386,18 @@ window.WombMinPreg = function(actor) { WombSort(actor); if (actor.womb.length > 0) { return actor.womb[actor.womb.length - 1].age; - } else { return 0; } + } else { + return 0; + } }; window.WombMaxPreg = function(actor) { WombSort(actor); if (actor.womb.length > 0) { return actor.womb[0].age; - } else { return 0; } + } else { + return 0; + } }; window.WombNormalizePreg = function(actor) { @@ -521,7 +527,9 @@ window.WombGetFetus = function(actor, fetusNum) { WombInit(actor); if (actor.womb.length >= fetusNum) { return actor.womb[fetusNum]; - } else { return null; } + } else { + return null; + } }; // give reference to fetus object, and remove it form the womb. @@ -533,7 +541,9 @@ window.WombRemoveFetus = function(actor, fetusNum) { WombSort(actor); actor.pregType = actor.womb.length; return ft; - } else { return null; } + } else { + return null; + } }; /* to add fetus object in the womb. Be warned - you can add one single fetus to many wombs, or even add it many times to one womb. It will not show error, but behavior becomes strange, as fetus object will be the same - it's reference, not full copies. If this is not desired - use clone() on fetus before adding.*/