diff --git a/src/js/SetBellySize.js b/src/js/SetBellySize.js index 963e39484853c09f46297a41a58772c36f1af06c..657bd987bd790568386715dd8e0b09ab6cc8e16e 100644 --- a/src/js/SetBellySize.js +++ b/src/js/SetBellySize.js @@ -1,23 +1,23 @@ -/* eslint-disable no-undef */ /** @param {App.Entity.SlaveState} slave */ window.SetBellySize = function SetBellySize(slave) { - let _implantSize; WombNormalizePreg(slave); /* now with support for legacy code that advances pregnancy by setting .preg++ */ - if (slave.bellyImplant > 0) + if (slave.bellyImplant > 0) { _implantSize = slave.bellyImplant; - else + } else { _implantSize = 0; + } - if (slave.inflation === 3) + if (slave.inflation === 3) { slave.bellyFluid = 10000; - else if (slave.inflation === 2) + } else if (slave.inflation === 2) { slave.bellyFluid = 5000; - else if (slave.inflation === 1) + } else if (slave.inflation === 1) { slave.bellyFluid = 2000; - else + } else { slave.bellyFluid = 0; + } slave.belly = slave.bellyPreg+slave.bellyFluid+_implantSize; }; diff --git a/src/js/removeActiveSlave.js b/src/js/removeActiveSlave.js index 4b20f23fe4568dadc53f1965ab9df19c448f2366..dc63e0ae2747168cae69d31c9ac4cdc077e21df8 100644 --- a/src/js/removeActiveSlave.js +++ b/src/js/removeActiveSlave.js @@ -1,4 +1,3 @@ -/* eslint-disable no-undef */ window.removeActiveSlave = function removeActiveSlave() { "use strict"; const V = State.variables; @@ -215,7 +214,7 @@ window.removeActiveSlave = function removeActiveSlave() { if (!keep) { /* avoid going through this loop if possible */ keep = V.slaves.some(slave => { /* have we impregnated a slave that is not ourselves? */ - return (slave.ID !== AS_ID && isImpregnatedBy(slave, V.activeSlave)) + return (slave.ID !== AS_ID && isImpregnatedBy(slave, V.activeSlave)); }); } if (!keep) { @@ -227,9 +226,9 @@ window.removeActiveSlave = function removeActiveSlave() { slaveName: V.activeSlave.slaveName, slaveSurname: V.activeSlave.slaveSurname, fullName: SlaveFullName(V.activeSlave), - dick : V.activeSlave.dick, - vagina : V.activeSlave.vagina, - ID : V.missingParentID + dick: V.activeSlave.dick, + vagina: V.activeSlave.vagina, + ID: V.missingParentID }; if (V.traitor.ID === V.activeSlave.ID) { /* To link developing fetuses to their parent */ V.traitor.missingParentTag = V.missingParentID; @@ -337,7 +336,7 @@ window.removeNonNGPSlave = function removeNonNGPSlave(removedSlave) { if (!keep) { /* avoid going through this loop if possible */ keep = V.slaves.some(slave => { /* have we impregnated a slave that is not ourselves? */ - return (slave.ID !== ID && isImpregnatedBy(slave, removedSlave)) + return (slave.ID !== ID && isImpregnatedBy(slave, removedSlave)); }); } if (!keep) { @@ -349,9 +348,9 @@ window.removeNonNGPSlave = function removeNonNGPSlave(removedSlave) { slaveName: removedSlave.slaveName, slaveSurname: removedSlave.slaveSurname, fullName: SlaveFullName(removedSlave), - dick : removedSlave.dick, - vagina : removedSlave.vagina, - ID : V.missingParentID + dick: removedSlave.dick, + vagina: removedSlave.vagina, + ID: V.missingParentID }; V.missingParentID--; } diff --git a/src/js/rulesAssistant.js b/src/js/rulesAssistant.js index 5d6c2d3ca92433d4f9850394b7f6798c2c4aba5f..9a3d5fc2088be7cdb1593a848d65e360201436e1 100644 --- a/src/js/rulesAssistant.js +++ b/src/js/rulesAssistant.js @@ -1,4 +1,3 @@ -/* eslint-disable no-undef */ /** @param {App.Entity.SlaveState} slave */ window.hasSurgeryRule = function (slave, rules) { return rules.some( @@ -62,7 +61,7 @@ window.RAFacilityRemove = function RAFacilityRemove(slave, rule) { const V = State.variables; let r = ""; if (!rule.facilityRemove) return r; - switch(rule.setAssignment) { + switch (rule.setAssignment) { case "be confined in the arcade": if (slave.assignment === rule.setAssignment) { r += `<br>${slave.slaveName} has been removed from ${V.arcadeName} and has been assigned to ${rule.removalAssignment}.`; diff --git a/src/js/slaveStatsChecker.js b/src/js/slaveStatsChecker.js index f1893d1ae125c776592a215d186e397bf7d26b23..b88a492d73a69d0a67d0dbe0fb368e908656f06d 100644 --- a/src/js/slaveStatsChecker.js +++ b/src/js/slaveStatsChecker.js @@ -153,11 +153,10 @@ window.isPure = /** @param {App.Entity.SlaveState} slave */ function(slave) { window.isFullyPotent = /** @param {App.Entity.SlaveState} slave */ function(slave) { if (!slave) { return null; - } else if (slave.dick > 0 && slave.balls > 0 && slave.ballType !== 'sterile' && slave.hormoneBalance < 100 && slave.drugs !== 'hormone blockers') { + } else if (slave.dick > 0 && slave.balls > 0 && slave.ballType !== "sterile" && slave.hormoneBalance < 100 && slave.drugs !== "hormone blockers") { return true; - } else { - return false; } + return false; }; window.canGetPregnant = /** @param {App.Entity.SlaveState} slave */ function(slave) { @@ -171,9 +170,8 @@ window.canGetPregnant = /** @param {App.Entity.SlaveState} slave */ function(sla return true; } else if ((slave.mpreg === 1) && (canDoAnal(slave))) { /* pregmod */ return true; - } else { - return false; } + return false; }; /** contraceptives (.preg === -1) do not negate this function @@ -205,19 +203,17 @@ window.isFertile = function(slave) { return true; /* pregmod end */ } else if (slave.ovaries === 1) { return true; - } else { - return false; } + return false; }; window.canAchieveErection = /** @param {App.Entity.SlaveState} slave */ function(slave) { if (!slave) { return null; - } else if (slave.dick < 7 && slave.dick > 0 && slave.drugs !== 'hormone blockers' && (slave.balls > 0 ? slave.hormoneBalance < 100 : slave.hormoneBalance <= -100) && slave.ballType !== 'sterile') { + } else if (slave.dick < 7 && slave.dick > 0 && slave.drugs !== "hormone blockers" && (slave.balls > 0 ? slave.hormoneBalance < 100 : slave.hormoneBalance <= -100) && slave.ballType !== "sterile") { return true; - } else { - return false; } + return false; }; window.canPenetrate = /** @param {App.Entity.SlaveState} slave */ function(slave) { @@ -238,9 +234,8 @@ window.canSee = /** @param {App.Entity.SlaveState} slave */ function(slave) { return null; } else if (slave.eyes > -2) { return true; - } else { - return false; } + return false; }; window.canHear = /** @param {App.Entity.SlaveState} slave */ function(slave) { @@ -248,9 +243,8 @@ window.canHear = /** @param {App.Entity.SlaveState} slave */ function(slave) { return null; } else if ((slave.hears > -2) && (slave.earwear !== "deafening ear plugs")) { return true; - } else { - return false; } + return false; }; window.canSmell = /** @param {App.Entity.SlaveState} slave */ function(slave) { @@ -258,9 +252,8 @@ window.canSmell = /** @param {App.Entity.SlaveState} slave */ function(slave) { return null; } else if (slave.smells > -1) { return true; - } else { - return false; } + return false; }; window.canTaste = /** @param {App.Entity.SlaveState} slave */ function(slave) { @@ -268,9 +261,8 @@ window.canTaste = /** @param {App.Entity.SlaveState} slave */ function(slave) { return null; } else if (slave.tastes > -1) { return true; - } else { - return false; } + return false; }; window.canWalk = /** @param {App.Entity.SlaveState} slave */ function(slave) { @@ -298,9 +290,8 @@ window.canWalk = /** @param {App.Entity.SlaveState} slave */ function(slave) { return true; } else if (slave.shoes === "boots") { return true; - } else { - return false; } + return false; }; window.canTalk = /** @param {App.Entity.SlaveState} slave */ function(slave) { @@ -320,9 +311,8 @@ window.canTalk = /** @param {App.Entity.SlaveState} slave */ function(slave) { return false; } else if (slave.collar === "bit gag") { return false; - } else { - return true; } + return true; }; window.canDoAnal = /** @param {App.Entity.SlaveState} slave */ function(slave) { @@ -356,9 +346,8 @@ window.tooFatSlave = /** @param {App.Entity.SlaveState} slave */ function(slave) return true; } else if (slave.weight > 185+(slave.muscles/10) && slave.physicalAge < 18) { return true; - } else { - return false; } + return false; }; window.tooBigBreasts = /** @param {App.Entity.SlaveState} slave */ function(slave) { @@ -372,9 +361,8 @@ window.tooBigBreasts = /** @param {App.Entity.SlaveState} slave */ function(slav return true; } else if (slave.boobs > 20000+(slave.muscles*50) && slave.physicalAge < 18) { return true; - } else { - return false; } + return false; }; window.tooBigBelly = /** @param {App.Entity.SlaveState} slave */ function(slave) { @@ -388,9 +376,8 @@ window.tooBigBelly = /** @param {App.Entity.SlaveState} slave */ function(slave) return true; } else if (slave.belly >= 150000+(slave.muscles*800) && slave.physicalAge <= 12) { return true; - } else { - return false; } + return false; }; window.tooBigBalls = /** @param {App.Entity.SlaveState} slave */ function(slave) { @@ -402,9 +389,8 @@ window.tooBigBalls = /** @param {App.Entity.SlaveState} slave */ function(slave) return true; } else if (slave.balls >= 90+(slave.muscles*.7)) { return true; - } else { - return false; } + return false; }; window.tooBigDick = /** @param {App.Entity.SlaveState} slave */ function(slave) { @@ -416,9 +402,8 @@ window.tooBigDick = /** @param {App.Entity.SlaveState} slave */ function(slave) return true; } else if (slave.dick >= 68+(slave.muscles*.4)) { return true; - } else { - return false; } + return false; }; window.tooBigButt = /** @param {App.Entity.SlaveState} slave */ function(slave) { @@ -428,13 +413,12 @@ window.tooBigButt = /** @param {App.Entity.SlaveState} slave */ function(slave) return true; } else if (slave.butt > 14 && slave.physicalAge <= 12) { return true; - } else { - return false; } + return false; }; window.isVegetable = /** @param {App.Entity.SlaveState} slave */ function(slave) { slave = slave || State.variables.activeSlave; - if(!slave) { return false; } - return (slave.fetish === 'mindbroken'); + if (!slave) { return false; } + return (slave.fetish === "mindbroken"); };