diff --git a/src/endWeek/minorInjuryResponse.js b/src/endWeek/minorInjuryResponse.js index 0a3c400e7d949136f20c8be5a9782091f8baf3f1..0b65a1ba1d14e95b0432d5cfd0c09cc5eb00c3a8 100644 --- a/src/endWeek/minorInjuryResponse.js +++ b/src/endWeek/minorInjuryResponse.js @@ -1,22 +1,21 @@ -/* eslint-disable no-undef */ /* eslint-disable no-unused-vars */ window.minorInjuryResponse = /** @param {App.Entity.SlaveState} slave */ function minorInjuryResponse(slave) { const arcology = State.variables.arcologies[0]; const arcologyUpgrade = State.variables.arcologyUpgrade; - let pronouns = getPronouns(slave); + const pronouns = getPronouns(slave); const he = pronouns.pronoun; const himself = pronouns.objectReflexive; const He = capFirstChar(he); let r = ""; - + if (arcology.FSDegradationist > 20) { r += ` ${He} carries on, knowing that in your degradationist arcology, this is accepted behavior.`; } else if (arcology.FSPaternalist > 20) { if (arcologyUpgrade.drones === 1 && jsRandom(1, 100) > 50) { - r += ` The security drones successfully detain him and oblige him to pay significant <span class="yellowgreen">compensation,</span> since abusing slaves is discouraged here.`; + r += " The security drones successfully detain him and oblige him to pay significant <span class=\"yellowgreen\">compensation,</span> since abusing slaves is discouraged here."; cashX(50, "slaveUpkeep", slave); } else if (arcologyUpgrade.grid === 1 && jsRandom(1, 100) > 50) { - r += ` The computer systems successfully detain him and require him to pay significant <span class="yellowgreen">compensation,</span> since abusing slaves is discouraged here.`; + r += " The computer systems successfully detain him and require him to pay significant <span class=\"yellowgreen\">compensation,</span> since abusing slaves is discouraged here."; cashX(50, "slaveUpkeep", slave); } else if (slave.whoreSkill > jsRandom(1, 100)) { r += ` ${slave.slaveName} is used to this sort of thing, and convinces him to pay significant <span class="yellowgreen">compensation,</span> since abusing slaves is discouraged here.`; @@ -27,10 +26,10 @@ window.minorInjuryResponse = /** @param {App.Entity.SlaveState} slave */ functio } } else { if (arcologyUpgrade.drones === 1 && jsRandom(1, 100) > 50) { - r += ` The security drones successfully detain him and oblige him to pay minor <span class="yellowgreen">compensation.</span>`; + r += " The security drones successfully detain him and oblige him to pay minor <span class=\"yellowgreen\">compensation.</span>"; cashX(10, "slaveUpkeep", slave); } else if (arcologyUpgrade.grid === 1 && jsRandom(1, 100) > 50) { - r += ` The computer systems successfully detain him and require him to pay minor <span class="yellowgreen">compensation.</span>`; + r += " The computer systems successfully detain him and require him to pay minor <span class=\"yellowgreen\">compensation.</span>"; cashX(10, "slaveUpkeep", slave); } else if (slave.whoreSkill > jsRandom(1, 100)) { r += ` ${slave.slaveName} is used to this sort of thing, and convinces him to pay minor <span class="yellowgreen">compensation.</span>`; @@ -40,6 +39,6 @@ window.minorInjuryResponse = /** @param {App.Entity.SlaveState} slave */ functio cashX(10, "slaveUpkeep", slave); } } - + return r; -} +};