diff --git a/src/art/assistantArt.js b/src/art/assistantArt.js index 1b8b1175ce1d15172092b0c9335f72a6bf931862..9588a5dcfdb7330c280e0a90acc7373966577683 100644 --- a/src/art/assistantArt.js +++ b/src/art/assistantArt.js @@ -8,7 +8,7 @@ window.assistantArt = function assistantArt(sizePlacement) { const V = State.variables; let fileName = ""; - if (V.seeAvatar !== 1) {return;} + if (V.seeAvatar !== 1) { return; } if (V.imageChoice === 0 || V.imageChoice === 1) { if (V.imageChoice === 1) { diff --git a/src/endWeek/saServeThePublic.js b/src/endWeek/saServeThePublic.js index 1bc85472b47026ea2386a96533f92c9ca35f1870..51482125667352efccb6996ed5e778e0a7bd9056 100644 --- a/src/endWeek/saServeThePublic.js +++ b/src/endWeek/saServeThePublic.js @@ -999,19 +999,19 @@ window.saServeThePublic = (function saServeThePublic() { slave.need -= slave.sexAmount; } else if (slave.energy > 80) { r += ` With ${his} powerful sex drive ${he} rarely has to fake an orgasm.`; - slave.need -= (slave.sexAmount * .9); + slave.need -= (slave.sexAmount * 0.9); } else if (slave.aphrodisiacs > 0 || slave.inflationType === "aphrodisiac") { r += ` With ${his} aphrodisiac boosted libido, it's barely possible to discern ${him} from a natural nymphomaniac.`; - slave.need -= (slave.sexAmount * .9); + slave.need -= (slave.sexAmount * 0.9); } else if (slave.energy > 60) { r += ` With ${his} good sex drive ${he} often orgasms with citizens.`; - slave.need -= (slave.sexAmount * .8); + slave.need -= (slave.sexAmount * 0.8); } else if (slave.energy > 40) { r += ` With ${his} average sex drive ${he} occasionally orgasms with citizens.`; - slave.need -= (slave.sexAmount * .5); + slave.need -= (slave.sexAmount * 0.5); } else if (slave.energy > 20) { r += ` With ${his} poor sex drive ${he} almost never orgasms with citizens.`; - slave.need -= (slave.sexAmount * .1); + slave.need -= (slave.sexAmount * 0.1); } else { r += ` Since ${he}'s frigid, ${he} rarely experiences authentic arousal with citizens.`; } diff --git a/src/endWeek/saWhore.js b/src/endWeek/saWhore.js index e06de99988a3c4b88a01ba70b27ab853449f6b74..4e1c1f70eaf6ae538e25be637f4d0b6aa402a2c6 100644 --- a/src/endWeek/saWhore.js +++ b/src/endWeek/saWhore.js @@ -227,9 +227,9 @@ window.saWhore = (function saWhore() { beauty = Math.trunc(beauty * beautyMultiplier); if ((slave.hears === -1 && slave.earwear !== "hearing aids") || (slave.hears === 0 && slave.earwear === "muffling ear plugs") ||(slave.hears === -2)) { if (!canHear(slave)) { - beauty *= .75; + beauty *= 0.75; } else { - beauty *= .90; + beauty *= 0.90; } } if (beauty > 210) { @@ -1164,19 +1164,19 @@ window.saWhore = (function saWhore() { slave.need -= beauty; } else if (slave.energy > 80) { r += ` With ${his} powerful sex drive ${he} rarely has to fake an orgasm.`; - slave.need -= (beauty * .9); + slave.need -= (beauty * 0.9); } else if (slave.aphrodisiacs > 0 || slave.inflationType === "aphrodisiac") { r += ` With ${his} aphrodisiac boosted libido, it's barely possible to discern ${him} from a natural nymphomaniac.`; - slave.need -= (beauty * .9); + slave.need -= (beauty * 0.9); } else if (slave.energy > 60) { r += ` With ${his} good sex drive ${he} often orgasms with customers.`; - slave.need -= (beauty * .8); + slave.need -= (beauty * 0.8); } else if (slave.energy > 40) { r += ` With ${his} average sex drive ${he} occasionally orgasms with customers.`; - slave.need -= (beauty * .5); + slave.need -= (beauty * 0.5); } else if (slave.energy > 20) { r += ` With ${his} poor sex drive ${he} almost never orgasms with customers.`; - slave.need -= (beauty * .1); + slave.need -= (beauty * 0.1); } else { r += ` Since ${he}'s frigid, ${he} rarely experiences authentic arousal at work.`; } diff --git a/src/js/familyTreeJS.js b/src/js/familyTreeJS.js index 86fd4260f54d20ff3ff63cf9b7071aea879f49fc..e6cc775d6bbd8e31139499d44c3e0e72056e3de5 100644 --- a/src/js/familyTreeJS.js +++ b/src/js/familyTreeJS.js @@ -153,7 +153,7 @@ window.renderFamilyTree = function(slaves, filterID) { } else { ssym = '?'; } - return `${d.name }(${ssym})`; + return `${d.name}(${ssym})`; }) .attr('dy', 4) .attr('dx', function(d) { @@ -179,13 +179,13 @@ window.renderFamilyTree = function(slaves, filterID) { let ticked = function() { link - .attr('x1', function(d) {return d.source.x;}) - .attr('y1', function(d) {return d.source.y;}) - .attr('x2', function(d) {return d.target.x;}) - .attr('y2', function(d) {return d.target.y;}); + .attr('x1', function(d) { return d.source.x; }) + .attr('y1', function(d) { return d.source.y; }) + .attr('x2', function(d) { return d.target.x; }) + .attr('y2', function(d) { return d.target.y; }); node - .attr("transform", function(d) {return `translate(${ d.x }, ${ d.y })`;}); + .attr("transform", function(d) { return `translate(${d.x}, ${d.y})`; }); }; simulation.nodes(data.nodes) @@ -229,7 +229,7 @@ window.buildFamilyTree = function(slaves = State.variables.slaves, filterID) { let kids = {}; let fake_pc = { - slaveName: `${State.variables.PC.name }(You)`, + slaveName: `${State.variables.PC.name}(You)`, mother: State.variables.PC.mother, father: State.variables.PC.father, dick: State.variables.PC.dick, @@ -548,8 +548,13 @@ window.updateFamilyTree = function(activeSlave = lastActiveSlave, slaves = lastS function getSlave(id, expectedGenes) { if (id === -1) { return { -"slaveName": "YOU", "ID": id, "physicalAge": PC.physicalAge, "genes": PC.genes, "father": PC.father, "mother": PC.mother -}; + "slaveName": "YOU", + "ID": id, + "physicalAge": PC.physicalAge, + "genes": PC.genes, + "father": PC.father, + "mother": PC.mother + }; } if (id === 0) { return {"slaveName": "-", "ID": id, "genes": expectedGenes}; @@ -641,14 +646,14 @@ window.updateFamilyTree = function(activeSlave = lastActiveSlave, slaves = lastS 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 })`):""); + if (spouse.ID !== slave.ID) { + spouseName = spouse.slaveName + (spouse.physicalAge?(` (${spouse.physicalAge})`):""); } else { spouseName = (spouse.ID === -1) ? "(yourself)" : "(themselves)"; } let marriage = { "spouse": {"name": spouseName, "class": spouse.genes}, - "children": children.map(function(x) {return slaveInfo_(x, activeSlaveId, slavesAdded, depth + 1);}), + "children": children.map(function(x) { return slaveInfo_(x, activeSlaveId, slavesAdded, depth + 1); }), }; data.marriages.push(marriage); }