diff --git a/src/endWeek/healthFunctions.js b/src/endWeek/healthFunctions.js index cc4742869967f046644f0b34dd1f98564e5f5e46..ce11266bc87fd7257fcb4dbfe5cb6cfeffb1b233 100644 --- a/src/endWeek/healthFunctions.js +++ b/src/endWeek/healthFunctions.js @@ -62,8 +62,10 @@ window.illness = function illness(slave) { let r = ``; let assignBonus = 0; // bonus for healthy assignments + // eslint-disable-next-line no-unused-vars let he, him, his, hers, himself, girl, loli, He, His; ({ + // eslint-disable-next-line no-unused-vars he, him, his, hers, himself, girl, He, His, loli } = getPronouns(slave)); let sicknessDegree = ["fine", "minor illness", "illness", "bad illness", "severe illness", "life-threatening illness"]; @@ -325,7 +327,7 @@ window.endWeekHealthDamage = function endWeekHealthDamage(slave) { }; /** - * Tells if a slave will try to work to death due to mental hangups + * Tells if a slave will willingly work to death * @param {App.Entity.SlaveState} slave * @returns {boolean} */ @@ -344,14 +346,14 @@ window.willWorkToDeath = function willWorkToDeath(slave) { }; /** - * Tells if a slave will try to work to death due to mental hangups + * Tells if a slave is taking the week off to rest * @param {App.Entity.SlaveState} slave * @returns {boolean} */ window.slaveResting = function slaveResting(slave) { if (slave.rules.rest === "cruel" && slave.health.tired > 90) { return true; - if (slave.rules.rest === "restrictive" && slave.health.tired > 60) { + } else if (slave.rules.rest === "restrictive" && slave.health.tired > 60) { return true; } else if (slave.rules.rest === "permissive" && slave.health.tired > 30) { return true;