diff --git a/src/npc/interaction/killSlave.js b/src/npc/interaction/killSlave.js index 44b97df6d444779c8f48cdfb400880cd34ce2453..882588e78c5ae3f70af1fb5c8bc9366ec22e11f6 100644 --- a/src/npc/interaction/killSlave.js +++ b/src/npc/interaction/killSlave.js @@ -64,8 +64,7 @@ App.UI.SlaveInteract.killSlave = function(slave) { return `, at which point abject fear fills ${his} face. ${He} immediately ${hasBothLegs(slave) ? `drops to ${his} knees and ` : ``}begins openly begging for you to show mercy.`; } - /** @param {App.Entity.SlaveState} slave */ - function introReaction(slave) { + function introReaction() { if (oneWeek.includes(slave.ID)) { return introReactionOneWeek(); } @@ -141,7 +140,7 @@ App.UI.SlaveInteract.killSlave = function(slave) { text.push(`${He} just nods dumbly and continues to watch you with a vacant expression, even as`); } - text.push(`${canHear(slave) ? `quietly ` : ``}reach behind your desk and pull out your trusty ${weapon}${introReaction(slave)}`); + text.push(`${canHear(slave) ? `quietly ` : ``}reach behind your desk and pull out your trusty ${weapon}${introReaction()}`); return text.join(' '); } @@ -297,8 +296,7 @@ App.UI.SlaveInteract.killSlave = function(slave) { return mercyReactionOther(); } - /** @param {App.Entity.SlaveState} slave */ - function mercyEffectsOneWeek(slave) { + function mercyEffectsOneWeek() { if (isDevoted) { slave.devotion -= 5; slave.trust -= 10; @@ -314,8 +312,7 @@ App.UI.SlaveInteract.killSlave = function(slave) { } } - /** @param {App.Entity.SlaveState} slave */ - function mercyEffectsTwoWeeks(slave) { + function mercyEffectsTwoWeeks() { if (isDevoted) { slave.devotion -= 3; slave.trust -= 7; @@ -331,8 +328,7 @@ App.UI.SlaveInteract.killSlave = function(slave) { } } - /** @param {App.Entity.SlaveState} slave */ - function mercyEffectsThreeWeeks(slave) { + function mercyEffectsThreeWeeks() { if (isDevoted) { slave.devotion -= 2; slave.trust -= 5; @@ -348,8 +344,7 @@ App.UI.SlaveInteract.killSlave = function(slave) { } } - /** @param {App.Entity.SlaveState} slave */ - function mercyEffectsFourWeeks(slave) { + function mercyEffectsFourWeeks() { if (isDevoted) { slave.devotion--; slave.trust -= 3; @@ -365,8 +360,7 @@ App.UI.SlaveInteract.killSlave = function(slave) { } } - /** @param {App.Entity.SlaveState} slave */ - function mercyEffectsOther(slave) { + function mercyEffectsOther() { if (isDevoted) { slave.devotion += 10; slave.trust -= 30; @@ -382,22 +376,21 @@ App.UI.SlaveInteract.killSlave = function(slave) { } } - /** @param {App.Entity.SlaveState} slave */ - function mercyEffects(slave) { + function mercyEffects() { if (oneWeek.includes(slave.ID)) { - return mercyEffectsOneWeek(slave); + return mercyEffectsOneWeek(); } if (twoWeeks.includes(slave.ID)) { - return mercyEffectsTwoWeeks(slave); + return mercyEffectsTwoWeeks(); } if (threeWeeks.includes(slave.ID)) { - return mercyEffectsThreeWeeks(slave); + return mercyEffectsThreeWeeks(); } if (fourWeeks.includes(slave.ID)) { - return mercyEffectsFourWeeks(slave); + return mercyEffectsFourWeeks(); } - return mercyEffectsOther(slave); + return mercyEffectsOther(); } function mercy() { @@ -409,7 +402,7 @@ App.UI.SlaveInteract.killSlave = function(slave) { mercyDiv.append(`You change your mind, and with a wave of your hand, send ${slave.slaveName} back to ${his} duties. Maybe some other time.`); } - mercyEffects(slave); + mercyEffects(); oneWeek.push(slave.ID);