From 12c9c2814d5a00855872825b6c4f694e16fc311b Mon Sep 17 00:00:00 2001 From: Svornost <11434-svornost@users.noreply.gitgud.io> Date: Wed, 5 Oct 2022 17:43:49 -0400 Subject: [PATCH] Fix some surgery reactions that were testing the wrong object --- js/medicine/surgery/exotic/race.js | 8 ++++---- js/medicine/surgery/teeth/braces.js | 4 ++-- js/medicine/surgery/voice/voiceLower.js | 14 +++++++------- js/medicine/surgery/voice/voiceRaise.js | 10 +++++----- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/js/medicine/surgery/exotic/race.js b/js/medicine/surgery/exotic/race.js index 9f0b2b01327..282e39be855 100644 --- a/js/medicine/surgery/exotic/race.js +++ b/js/medicine/surgery/exotic/race.js @@ -21,7 +21,7 @@ App.Medicine.Surgery.Reactions.Race = class extends App.Medicine.Surgery.SimpleR r.push(`gets a feel for the changes to ${his} body`); } r.push(`with approval.`); - if (slave.race === slave.origRace) { + if (diff.race === slave.origRace) { r.push(`${He} recognizes ${himself} as ${he} was, and`); } else { r.push(`${He} doesn't recognize ${himself} quite yet, but`); @@ -38,7 +38,7 @@ App.Medicine.Surgery.Reactions.Race = class extends App.Medicine.Surgery.SimpleR r.push(`gets a feel for the changes to ${his} body`); } r.push(`with hesitation.`); - if (slave.race === slave.origRace) { + if (diff.race === slave.origRace) { r.push(`${He} recognizes ${himself} as ${he} was, and`); } else { r.push(`${He} doesn't recognize ${himself} quite yet, but`); @@ -55,13 +55,13 @@ App.Medicine.Surgery.Reactions.Race = class extends App.Medicine.Surgery.SimpleR r.push(`gets a feel for the changes to ${his} body`); } r.push(`with revulsion.`); - if (slave.race === slave.origRace) { + if (diff.race === slave.origRace) { r.push(`${He} recognizes ${himself} as ${he} was, which ${he} loves, and`); } else { r.push(`${He} doesn't recognize ${himself} quite yet, which ${he} hates, though`); } r.push(`${he} hopes you'll like ${his} new appearance better and punish ${him} less cruelly as a result. For now, <span class="devotion dec">${he} seems to view this`); - if (slave.race !== slave.origRace) { + if (diff.race !== slave.origRace) { r.push(`fake`); } r.push(`racial appearance as a cruel imposition.</span> As with all invasive surgery <span class="health dec">${his} health has been affected.</span> ${He} is <span class="trust dec">terribly afraid</span> of your total power over ${his} body.`); diff --git a/js/medicine/surgery/teeth/braces.js b/js/medicine/surgery/teeth/braces.js index ed3dd85ade4..f8c3dfc57ae 100644 --- a/js/medicine/surgery/teeth/braces.js +++ b/js/medicine/surgery/teeth/braces.js @@ -14,7 +14,7 @@ App.Medicine.Surgery.Reactions.Braces = class extends App.Medicine.Surgery.Simpl if (slave.fetish === Fetish.MINDBROKEN) { r.push(`${He} is quite quick to realize ${his} teeth now have something on them. What its purpose is is beyond ${him}, though.`); - } else if (slave.teeth === "straightening braces") { + } else if (diff.teeth === "straightening braces") { r.push(`Quite aware that ${his} crooked, aching teeth are now in braces,`); if (slave.devotion > 50) { r.push(`${He} smiles tentatively at`); @@ -43,7 +43,7 @@ App.Medicine.Surgery.Reactions.Braces = class extends App.Medicine.Surgery.Simpl } r.push(`${He}'s experiencing considerable discomfort, and ${his} feelings are mixed. ${He} knows that straightening teeth is expensive, and in different circumstances ${he} would probably be glad to be given free braces. However, ${he}'s very aware that ${he}'s being beautified because ${he}'s a sex slave.`); } - } else if (slave.teeth === "cosmetic braces") { + } else if (diff.teeth === "cosmetic braces") { r.push(`Quite aware that ${his} aching teeth are now in braces,`); if (slave.devotion > 50) { r.push(`${he} smiles tentatively at`); diff --git a/js/medicine/surgery/voice/voiceLower.js b/js/medicine/surgery/voice/voiceLower.js index b4b0280d9ed..ee6c97e9a45 100644 --- a/js/medicine/surgery/voice/voiceLower.js +++ b/js/medicine/surgery/voice/voiceLower.js @@ -8,32 +8,32 @@ App.Medicine.Surgery.Reactions.VoiceLower = class extends App.Medicine.Surgery.S r.push(`The autosurgery instructed ${him} in no uncertain terms not to speak during recovery, but ${he} fails to recall that. ${He} doesn't notice anything different. As with all surgery <span class="health dec">${his} health has been slightly affected.</span>`); } else if (slave.devotion > 50) { r.push(`Before surgery, ${he} was warned repeatedly not to try talking for a while, and ${he} obeys. When ${he} finally does, ${his} voice is raspy and weak, but it gains strength gradually. It comes out`); - if (slave.voice === 1) { + if (diff.voice === 1) { r.push(`far`); } r.push(`lower and more manly than it was before, and ${he} laughs at ${himself} as ${he} gets used to it. <span class="devotion inc">${He} has become more dominant,</span> since this allows ${him} to think of ${himself} as`); - if (slave.voice === 1) { + if (diff.voice === 1) { r.push(`an action movie hero.`); - } else if (slave.voice === 2) { + } else if (diff.voice === 2) { r.push(`a mature career woman.`); } r.push(`As with all surgery <span class="health dec">${his} health has been slightly affected.</span>`); reaction.devotion += 4; } else if (slave.devotion > 20) { r.push(`Before surgery, ${he} was warned repeatedly not to try talking for a while, and ${he} obeys. When ${he} finally does, ${his} voice is raspy and weak, but it gains strength gradually. It comes out`); - if (slave.voice === 1) { + if (diff.voice === 1) { r.push(`far`); } r.push(`lower and more manly than it was before, and ${he} laughs grimly at ${himself} as ${he} gets used to it. ${He} carries on regardless, accepting it as one more thing to learn to accept. As with all surgery <span class="health dec">${his} health has been slightly affected.</span>`); } else { r.push(`Before surgery, ${he} was warned repeatedly not to try talking for a while, and ${he} obeys. When ${he} finally does, ${his} voice is raspy and weak, but it gains strength gradually. It comes out`); - if (slave.voice === 1) { + if (diff.voice === 1) { r.push(`far`); } r.push(`lower and more manly than it was before. For now, <span class="devotion dec">${he} feels this`); - if (slave.voice === 1) { + if (diff.voice === 1) { r.push(`gravelly`); - } else if (slave.voice === 2) { + } else if (diff.voice === 2) { r.push(`subdued`); } r.push(`voice is not ${hers}, a cruel mockery.</span> As with all surgery <span class="health dec">${his} health has been slightly affected.</span> ${He} is now <span class="trust dec">terribly afraid</span> of your total power over ${his} body.`); diff --git a/js/medicine/surgery/voice/voiceRaise.js b/js/medicine/surgery/voice/voiceRaise.js index e8251b4c99b..550d7359eac 100644 --- a/js/medicine/surgery/voice/voiceRaise.js +++ b/js/medicine/surgery/voice/voiceRaise.js @@ -8,11 +8,11 @@ App.Medicine.Surgery.Reactions.VoiceRaise = class extends App.Medicine.Surgery.S r.push(`The autosurgery instructed ${him} in no uncertain terms not to speak during recovery, but ${he} fails to recall that. ${He} doesn't notice anything different. As with all surgery <span class="health dec">${his} health has been slightly affected.</span>`); } else if (slave.devotion > 50) { r.push(`Before surgery, ${he} was warned repeatedly not to try talking for a while, and ${he} obeys. When ${he} finally does, ${his} voice is raspy and weak, but it gains strength gradually. It comes out`); - if (slave.voice === 3) { + if (diff.voice === 3) { r.push(`far`); } r.push(`higher and more girly than it was before, and ${he} laughs at ${himself} as ${he} gets used to it. <span class="devotion inc">${He} has become more submissive,</span> since this helps ${him} to think of ${himself} as a`); - if (slave.voice === 3) { + if (diff.voice === 3) { r.push(`bimbo slut.`); } else { r.push(`real woman.`); @@ -21,17 +21,17 @@ App.Medicine.Surgery.Reactions.VoiceRaise = class extends App.Medicine.Surgery.S reaction.devotion += 4; } else if (slave.devotion > 20) { r.push(`Before surgery, ${he} was warned repeatedly not to try talking for a while, and ${he} obeys. When ${he} finally does, ${his} voice is raspy and weak, but it gains strength gradually. It comes out`); - if (slave.voice === 3) { + if (diff.voice === 3) { r.push(`far`); } r.push(`higher and more girly than it was before, and ${he} laughs grimly at ${himself} as ${he} gets used to it. ${He} carries on regardless, accepting it as one more thing to learn to accept. As with all surgery <span class="health dec">${his} health has been slightly affected.</span>`); } else { r.push(`Before surgery, ${he} was warned repeatedly not to try talking for a while, and ${he} obeys. When ${he} finally does, ${his} voice is raspy and weak, but it gains strength gradually. It comes out`); - if (slave.voice === 3) { + if (diff.voice === 3) { r.push(`far`); } r.push(`higher and more girly than it was before. For now, <span class="devotion dec">${he} feels this`); - if (slave.voice === 3) { + if (diff.voice === 3) { r.push(`bimbo`); } else { r.push(`feminine`); -- GitLab