diff --git a/src/js/DefaultRules.js b/src/js/DefaultRules.js index a90eedaa2ea5b01ad43881171f93f3cdab5a6e82..75ea237c1fc85b4157fba08aa86551721d8fbe31 100644 --- a/src/js/DefaultRules.js +++ b/src/js/DefaultRules.js @@ -1,5 +1,3 @@ -/* eslint-disable no-empty */ -/* eslint-disable no-undef */ // this code applies RA rules onto slaves window.DefaultRules = (function() { @@ -566,7 +564,7 @@ window.DefaultRules = (function() { ProcessAVirginDildos(slave, rule); } else if (slave.vagina > 0) { ProcessNonVirginDildos(slave, rule); - ProcessVaginalAttachments(slave, rule); + ProcessVaginalAttachments(slave, rule); } } @@ -753,7 +751,6 @@ window.DefaultRules = (function() { slave.vaginalAttachment = rule.vaginalAttachment; if (slave.vaginalAccessory !== "none") { switch (slave.vaginalAttachment) { - case "none": r += `<br>${slave.slaveName} has been instructed not to use an attachment for ${his} dildo.`; break; @@ -768,7 +765,6 @@ window.DefaultRules = (function() { } } else { switch (slave.vaginalAttachment) { - case "none": r += `<br>${slave.slaveName} has been instructed not to use any vaginal accessories.`; break; @@ -1290,8 +1286,9 @@ window.DefaultRules = (function() { return -1; } if (a.weight < b.weight) { - return 1; return 0; + return 1; } + return 0; }); if (slave.drugs !== _priorities[0].drug) { slave.drugs = _priorities[0].drug; @@ -1313,7 +1310,6 @@ window.DefaultRules = (function() { } r += "the targeted size."; } - return; } else if (_priorities.length > 0) { if (slave.drugs !== _priorities[0].drug) { slave.drugs = _priorities[0].drug; @@ -1326,11 +1322,9 @@ window.DefaultRules = (function() { } r += `that is the only part of ${his} body that does not meet the targeted size.`; } - return; } else if (growthDrugs.has(slave.drugs)) { slave.drugs = "no drugs"; r += `<br>${slave.slaveName}'s body has met all relevant growth targets, so ${his} pharmaceutical regime has been ended.`; - return; } } else { if (rule.growth_boobs !== "no default setting") { @@ -1428,7 +1422,6 @@ window.DefaultRules = (function() { if (growthDrugs.has(slave.drugs)) { slave.drugs = "no drugs"; r += `<br>${slave.slaveName} has met all relevant growth targets, so ${his} pharmaceutical regime has been ended.`; - return; } } }