From 4b7f9a02f0e61d0d1e03d35588035ad987d864b3 Mon Sep 17 00:00:00 2001 From: Anomie <courtlyape@gmail.com> Date: Mon, 25 Sep 2023 15:33:29 -0500 Subject: [PATCH] Swap js/surgery folder strings to constants where applicable --- js/medicine/surgery/addGenitals/addOvaries.js | 4 +- .../surgery/addGenitals/addProstate.js | 4 +- .../addGenitals/asexualReproOvaries.js | 2 +- .../surgery/addGenitals/freshOvaries.js | 2 +- .../surgery/addGenitals/immortalOvaries.js | 2 +- js/medicine/surgery/addGenitals/mpreg.js | 2 +- js/medicine/surgery/assets/boobs.js | 58 +++++++++---------- js/medicine/surgery/assets/breastLift.js | 4 +- .../surgery/assets/breastReconstruction.js | 8 +-- .../surgery/assets/breastShapePreservation.js | 26 ++++----- js/medicine/surgery/assets/butt.js | 2 +- js/medicine/surgery/assets/fatGraft.js | 10 ++-- js/medicine/surgery/assets/mastectomy.js | 32 +++++----- js/medicine/surgery/face/face.js | 4 +- js/medicine/surgery/face/lips.js | 2 +- js/medicine/surgery/genitals/anus.js | 2 +- js/medicine/surgery/genitals/chop.js | 6 +- js/medicine/surgery/genitals/fertility.js | 2 +- js/medicine/surgery/genitals/geld.js | 8 +-- js/medicine/surgery/genitals/insemination.js | 2 +- js/medicine/surgery/genitals/maleToFemale.js | 8 +-- js/medicine/surgery/genitals/mpregRemoved.js | 2 +- js/medicine/surgery/genitals/noneToFemale.js | 6 +- .../surgery/genitals/ovaImplantChanged.js | 6 +- js/medicine/surgery/genitals/preg.js | 2 +- js/medicine/surgery/genitals/preg1hack.js | 2 +- js/medicine/surgery/genitals/pregRemove.js | 2 +- js/medicine/surgery/genitals/prostate.js | 4 +- js/medicine/surgery/genitals/sterilize.js | 4 +- .../surgery/genitals/vaginalRemoval.js | 6 +- js/medicine/surgery/hair/hairRemoval.js | 4 +- .../surgery/liposuction/liposuction.js | 2 +- js/medicine/surgery/liposuction/ribs.js | 2 +- js/medicine/surgery/liposuction/waist.js | 2 +- js/medicine/surgery/nipples/areolae.js | 4 +- js/medicine/surgery/nipples/nippleCunts.js | 4 +- js/medicine/surgery/structural/amputation.js | 4 +- js/medicine/surgery/voice/mute.js | 4 +- 38 files changed, 125 insertions(+), 125 deletions(-) diff --git a/js/medicine/surgery/addGenitals/addOvaries.js b/js/medicine/surgery/addGenitals/addOvaries.js index 21bd232e743..c76d1eae8bc 100644 --- a/js/medicine/surgery/addGenitals/addOvaries.js +++ b/js/medicine/surgery/addGenitals/addOvaries.js @@ -6,7 +6,7 @@ App.Medicine.Surgery.Reactions.AddOvaries = class extends App.Medicine.Surgery.S if (slave.fetish === Fetish.MINDBROKEN) { r.push(`${He} leaves the surgery with nothing but a nonspecific ache in ${his} lower abdomen, but lacks the mental faculties to realize that ${he} now has a chance to get pregnant. As with all surgery <span class="health dec">${his} health has been slightly affected.</span>`); - } else if (this._strongKnownFetish(slave, "pregnancy") || slave.origin === "$He sold $himself to you in the hope of someday bearing children.") { + } else if (this._strongKnownFetish(slave, Fetish.PREGNANCY) || slave.origin === "$He sold $himself to you in the hope of someday bearing children.") { r.push(`${He} leaves the surgery with nothing but a nonspecific ache in ${his} lower abdomen, but ${he} has managed to catch enough slave rumors about what the organ farm can do to know that it means ${he} now has a chance to get pregnant. ${He} is filled with joy whenever ${he} thinks about the fact that feeling a life growing within ${him} is now, at last, a possibility. ${He} now places <span class="trust inc">total faith</span> in your plans for ${his} body and <span class="devotion inc">adores you</span> for giving ${him} a gift ${he} once thought impossible. As with all surgery <span class="health dec">${his} health has been slightly affected.</span>`); reaction.trust += 10; reaction.devotion += 10; @@ -36,7 +36,7 @@ App.Medicine.Surgery.Reactions.AddAnimalOvaries = class extends App.Medicine.Sur if (slave.fetish === Fetish.MINDBROKEN) { r.push(`${He} leaves the surgery with nothing but a nonspecific ache in ${his} lower abdomen, but lacks the mental faculties to realize that ${he} now has a chance of carrying an animal baby to term. As with all surgery <span class="health dec">${his} health has been slightly affected.</span>`); - } else if (this._strongKnownFetish(slave, "pregnancy") || slave.origin === "$He sold $himself to you in the hope of someday bearing children.") { + } else if (this._strongKnownFetish(slave, Fetish.PREGNANCY) || slave.origin === "$He sold $himself to you in the hope of someday bearing children.") { r.push(`${He} leaves the surgery with nothing but a nonspecific ache in ${his} lower abdomen, but ${he} has managed to catch enough slave rumors about what the organ farm can do to know that it means ${he} now has a chance to get pregnant. ${He} is filled with joy whenever ${he} thinks about the fact that feeling a life growing within ${him} is now, at last, a possibility. ${He} now places <span class="trust inc">total faith</span> in your plans for ${his} body and <span class="devotion inc">adores you</span> for giving ${him} a gift ${he} once thought impossible. ${He} doesn't realize exactly what the surgery entailed, however — the happiness ${he} felt at first will most likely be replaced with horror once ${he} realizes the babies in ${his} womb are not human. As with all surgery <span class="health dec">${his} health has been slightly affected.</span>`); reaction.trust += 10; reaction.devotion += 10; diff --git a/js/medicine/surgery/addGenitals/addProstate.js b/js/medicine/surgery/addGenitals/addProstate.js index 431b4f1800b..529ec0fccc1 100644 --- a/js/medicine/surgery/addGenitals/addProstate.js +++ b/js/medicine/surgery/addGenitals/addProstate.js @@ -21,7 +21,7 @@ App.Medicine.Surgery.Reactions.AddProstate = class extends App.Medicine.Surgery. r.push(`squirting female`); } r.push(`ejaculation, since ${his} new organ is of course hooked into ${his} urethra and does its duty whenever ${he} climaxes${(slave.balls === 0) ? ` despite ${his} lack of testicles to add actual semen to ${his} copious emissions` : ``}.`); - if (slave.fetishKnown === 1 && slave.fetish === "buttslut") { + if (slave.fetishKnown === 1 && slave.fetish === Fetish.BUTTSLUT) { r.push(`${He} was already an anal slut, but ${he} can now experience anal pleasure along an entirely new dimension. ${He}'s <span class="devotion inc">extremely grateful,</span> and <span class="fetish inc">a more eager buttslut than ever.</span>`); reaction.devotion += 5; slave.fetishStrength = Math.clamp(slave.fetishStrength + 20, 0, 100); @@ -33,7 +33,7 @@ App.Medicine.Surgery.Reactions.AddProstate = class extends App.Medicine.Surgery. r.push(`is of course familiar with`); } r.push(`the pleasure of prostate stimulation,`); - if (slave.genes === "XY") { + if (slave.genes === GenderGenes.MALE) { r.push(`not to mention having once had one ${himself},`); } r.push(`and ${he}'s <span class="devotion inc">duly grateful</span> that you've altered ${him} in a way that will make sexual duties more enjoyable.`); diff --git a/js/medicine/surgery/addGenitals/asexualReproOvaries.js b/js/medicine/surgery/addGenitals/asexualReproOvaries.js index 8822dd22f24..5aa1ae8c86b 100644 --- a/js/medicine/surgery/addGenitals/asexualReproOvaries.js +++ b/js/medicine/surgery/addGenitals/asexualReproOvaries.js @@ -67,7 +67,7 @@ App.Medicine.Surgery.Procedures.OFAsexualReproOvaries = class extends App.Medici this._slave.pubertyXX = 1; } } - this._slave.ovaImplant = "asexual"; + this._slave.ovaImplant = OvaryImplantType.ASEXUAL; return this._assemble(new App.Medicine.Surgery.Reactions.AsexualReproOvaries()); } }; diff --git a/js/medicine/surgery/addGenitals/freshOvaries.js b/js/medicine/surgery/addGenitals/freshOvaries.js index efe53de4c9f..e7cc9916a7d 100644 --- a/js/medicine/surgery/addGenitals/freshOvaries.js +++ b/js/medicine/surgery/addGenitals/freshOvaries.js @@ -5,7 +5,7 @@ App.Medicine.Surgery.Reactions.FreshOvaries = class extends App.Medicine.Surgery const r = []; if (slave.ovaryAge >= 45 && this._hasEmotion(slave)) { - if (this._strongKnownFetish(slave, "pregnancy") || slave.origin === "$He sold $himself to you in the hope of someday bearing children.") { + if (this._strongKnownFetish(slave, Fetish.PREGNANCY) || slave.origin === "$He sold $himself to you in the hope of someday bearing children.") { r.push(`${He} leaves the surgery with nothing but a nonspecific ache, yet a familiar warmth, in ${his} lower abdomen, but ${he} knows enough about surgery and sex slaves to know that it means ${he} now has a chance to get pregnant once more. ${He} is <span class="devotion inc">filled with joy</span> whenever ${he} thinks about the fact that ${he}'ll have the chance to feel a life growing within ${him} again. ${He}'s so pleased that ${he} now <span class="trust inc">trusts</span> your plans for ${his} body. As with all surgery <span class="health dec">${his} health has been slightly affected.</span>`); reaction.trust += 4; reaction.devotion += 5; diff --git a/js/medicine/surgery/addGenitals/immortalOvaries.js b/js/medicine/surgery/addGenitals/immortalOvaries.js index aa0d887bb54..8ded0916df6 100644 --- a/js/medicine/surgery/addGenitals/immortalOvaries.js +++ b/js/medicine/surgery/addGenitals/immortalOvaries.js @@ -5,7 +5,7 @@ App.Medicine.Surgery.Reactions.ImmortalOvaries = class extends App.Medicine.Surg const r = []; if (slave.ovaryAge >= 45 && this._hasEmotion(slave)) { // use same reactions as freshOvaries - slave doesn't know the difference - if (this._strongKnownFetish(slave, "pregnancy") || slave.origin === "$He sold $himself to you in the hope of someday bearing children.") { + if (this._strongKnownFetish(slave, Fetish.PREGNANCY) || slave.origin === "$He sold $himself to you in the hope of someday bearing children.") { r.push(`${He} leaves the surgery with nothing but a nonspecific ache, yet a familiar warmth, in ${his} lower abdomen, but ${he} knows enough about surgery and sex slaves to know that it means ${he} now has a chance to get pregnant once more. ${He} is <span class="devotion inc">filled with joy</span> whenever ${he} thinks about the fact that ${he}'ll have the chance to feel a life growing within ${him} again. ${He}'s so pleased that ${he} now <span class="trust inc">trusts</span> your plans for ${his} body. As with all surgery <span class="health dec">${his} health has been slightly affected.</span>`); reaction.trust += 4; reaction.devotion += 5; diff --git a/js/medicine/surgery/addGenitals/mpreg.js b/js/medicine/surgery/addGenitals/mpreg.js index e21ed5e80ad..e5121696c25 100644 --- a/js/medicine/surgery/addGenitals/mpreg.js +++ b/js/medicine/surgery/addGenitals/mpreg.js @@ -7,7 +7,7 @@ App.Medicine.Surgery.Reactions.AddMPreg = class extends App.Medicine.Surgery.Sim r.push(`${He} leaves the surgery with a certain fullness in ${his} lower abdomen, ${he} knows that, despite lacking female reproductive organs, ${he} can now become pregnant.`); if (slave.fetish === Fetish.MINDBROKEN) { r.push(`As with all surgery <span class="health dec">${his} health has been slightly affected.</span>`); - } else if (this._strongKnownFetish(slave, "pregnancy")) { + } else if (this._strongKnownFetish(slave, Fetish.PREGNANCY)) { r.push(`${He} is <span class="devotion inc"> filled with joy</span> about the possibility of becoming pregnant and gleefully rubs ${his} softer belly. ${He}'s so pleased that ${he} now <span class="trust inc">trusts</span> your plans for ${his} body. As with all surgery <span class="health dec">${his} health has been slightly affected.</span>`); reaction.trust += 4; reaction.devotion += 10; diff --git a/js/medicine/surgery/assets/boobs.js b/js/medicine/surgery/assets/boobs.js index 6dfa0e16b0a..6501e40926b 100644 --- a/js/medicine/surgery/assets/boobs.js +++ b/js/medicine/surgery/assets/boobs.js @@ -8,24 +8,24 @@ App.Medicine.Surgery.Reactions.BoobsGain = class extends App.Medicine.Surgery.Si if (diff.areolae > slave.areolae) { r.push(`The increase in breast size <span class="lime">stretches and broadens ${his} areolae.</span>`); } - if (diff.nipples === "cute" && slave.nipples === "puffy") { + if (diff.nipples === NippleShape.CUTE && slave.nipples === NippleShape.PUFFY) { r.push(`The breast surgery is invasive, and when ${his} nipples heal, <span class="orange">they're a bit more normal.</span>`); - } else if (diff.nipples === "puffy" && slave.nipples === "huge") { + } else if (diff.nipples === NippleShape.PUFFY && slave.nipples === NippleShape.HUGE) { r.push(`The breast surgery is invasive, and when ${his} nipples heal, <span class="orange">they're a bit smaller.</span>`); - } else if (diff.nipples === "flat" && (slave.nipples === "cute" || slave.nipples === "tiny")) { + } else if (diff.nipples === NippleShape.FLAT && (slave.nipples === NippleShape.CUTE || slave.nipples === NippleShape.TINY)) { r.push(`The sudden increase in breast size has <span class="orange">stretched ${his} already small nipples flat.</span>`); } - if (slave.boobShape !== "spherical") { - if (diff.boobShape === "spherical") { + if (slave.boobShape !== BreastShape.SPHERICAL) { + if (diff.boobShape === BreastShape.SPHERICAL) { r.push(`With so little actual flesh left, the shape of ${his} breasts are now entirely dictated by the implants within, <span class="lime">rendering them comically spherical.</span>`); - } else if (diff.boobShape === "normal" && slave.boobShape !== "normal") { + } else if (diff.boobShape === BreastShape.NORMAL && slave.boobShape !== BreastShape.NORMAL) { r.push(`The natural shape of ${his} breasts has been eliminated by the cosmetic surgery, <span class="lime">rendering ${his} boobs pretty and rounded.</span>`); } } if (slave.fetish === Fetish.MINDBROKEN) { r.push(`${He} shows little reaction to the new weight on ${his} chest. As with all surgery <span class="health dec">${his} health has been slightly affected.</span>`); - } else if (slave.devotion > 20 && this._strongKnownFetish(slave, "boobs")) { + } else if (slave.devotion > 20 && this._strongKnownFetish(slave, Fetish.BOOBS)) { if (hasAnyArms(slave)) { r.push(`${He}'s barely out of the surgery before ${he}'s playing with ${his} new assets.`); } else { @@ -87,14 +87,14 @@ App.Medicine.Surgery.Reactions.BoobsLoss = class extends App.Medicine.Surgery.Si if (diff.areolae < slave.areolae) { r.push(`The breast reduction surgery also <span class="orange">slightly reduces ${his} massive areolae.</span>`); } - if (slave.nipples === "huge") { + if (slave.nipples === NippleShape.HUGE) { r.push(`The breast reduction surgery also <span class="orange">slightly reduces ${his} massive nipples.</span>`); - } else if (slave.nipples === "fuckable" && diff.boobs < 500) { + } else if (slave.nipples === NippleShape.FUCKABLE && diff.boobs < 500) { r.push(`Without the tissue needed to support their unusual shape, ${his} fuckable nipples have reverted <span class="orange">to being huge and protruding.</span>`); - } else if (slave.nipples === "flat") { + } else if (slave.nipples === NippleShape.FLAT) { r.push(`Without the ${his} massive implants forcing them flat, ${his} nipples have reverted <span class="lime">to being huge and protruding.</span>`); } - if (slave.boobShape === "spherical") { + if (slave.boobShape === BreastShape.SPHERICAL) { r.push(`With the removal of ${his} load bearing implants, <span class="orange">${his} breasts are left deflated and sagging.</span>`); } @@ -154,22 +154,22 @@ App.Medicine.Surgery.Procedures.boobImplantsProcedure = function() { if (slave.areolae < 2 && Math.random() > 0.7) { slave.areolae += 1; } - if (slave.nipples === "puffy") { + if (slave.nipples === NippleShape.PUFFY) { if (Math.random() > 0.7) { - slave.nipples = "cute"; + slave.nipples = NippleShape.CUTE; } - } else if (slave.nipples === "huge") { + } else if (slave.nipples === NippleShape.HUGE) { if (Math.random() > 0.9) { - slave.nipples = "puffy"; + slave.nipples = NippleShape.PUFFY; } - } else if ((slave.nipples === "cute" || slave.nipples === "tiny") && (slave.boobsImplant / slave.boobs >= 0.75)) { - slave.nipples = "flat"; + } else if ((slave.nipples === NippleShape.CUTE || slave.nipples === NippleShape.TINY) && (slave.boobsImplant / slave.boobs >= 0.75)) { + slave.nipples = NippleShape.FLAT; } - if (slave.boobShape !== "spherical") { + if (slave.boobShape !== BreastShape.SPHERICAL) { if (slave.boobsImplant / slave.boobs >= 0.90) { - slave.boobShape = "spherical"; - } else if (slave.boobShape !== "normal" && Math.random() > 0.5) { - slave.boobShape = "normal"; + slave.boobShape = BreastShape.SPHERICAL; + } else if (slave.boobShape !== BreastShape.NORMAL && Math.random() > 0.5) { + slave.boobShape = BreastShape.NORMAL; } } }; @@ -181,15 +181,15 @@ App.Medicine.Surgery.Procedures.boobImplantsProcedure = function() { if (slave.areolae > 2) { slave.areolae -= 1; } - if (slave.nipples === "huge") { - slave.nipples = "puffy"; - } else if (slave.nipples === "fuckable" && slave.boobs < 500) { - slave.nipples = "huge"; - } else if (slave.nipples === "flat") { - slave.nipples = "huge"; + if (slave.nipples === NippleShape.HUGE) { + slave.nipples = NippleShape.PUFFY; + } else if (slave.nipples === NippleShape.FUCKABLE && slave.boobs < 500) { + slave.nipples = NippleShape.HUGE; + } else if (slave.nipples === NippleShape.FLAT) { + slave.nipples = NippleShape.HUGE; } - if (slave.boobShape === "spherical") { - slave.boobShape = "saggy"; + if (slave.boobShape === BreastShape.SPHERICAL) { + slave.boobShape = BreastShape.SAGGY; } }; diff --git a/js/medicine/surgery/assets/breastLift.js b/js/medicine/surgery/assets/breastLift.js index ad01b89da8d..3e1f452ab38 100644 --- a/js/medicine/surgery/assets/breastLift.js +++ b/js/medicine/surgery/assets/breastLift.js @@ -6,7 +6,7 @@ App.Medicine.Surgery.Reactions.BreastLift = class extends App.Medicine.Surgery.S if (slave.fetish === Fetish.MINDBROKEN) { r.push(`The changes to ${his} breasts are lost on ${him}. As with all surgery <span class="health dec">${his} health has been slightly affected.</span>`); - } else if (slave.devotion > 20 && this._strongKnownFetish(slave, "boobs")) { + } else if (slave.devotion > 20 && this._strongKnownFetish(slave, Fetish.BOOBS)) { if (hasAnyArms(slave)) { r.push(`${He}'s barely out of the surgery before ${he}'s playing with ${his} new, perkier breasts despite the pain.`); } else { @@ -76,7 +76,7 @@ App.Medicine.Surgery.Procedures.BreastLift = class extends App.Medicine.Surgery. } apply(cheat) { - this._slave.boobShape = "normal"; + this._slave.boobShape = BreastShape.NORMAL; return this._assemble(new App.Medicine.Surgery.Reactions.BreastLift()); } }; diff --git a/js/medicine/surgery/assets/breastReconstruction.js b/js/medicine/surgery/assets/breastReconstruction.js index fb4462a50ec..f02f0be2133 100644 --- a/js/medicine/surgery/assets/breastReconstruction.js +++ b/js/medicine/surgery/assets/breastReconstruction.js @@ -6,7 +6,7 @@ App.Medicine.Surgery.Reactions.BreastReconstruction = class extends App.Medicine if (slave.fetish === Fetish.MINDBROKEN) { r.push(`The changes to ${his} breasts are lost on ${him}. As with all surgery <span class="health dec">${his} health has been slightly affected.</span>`); - } else if (slave.devotion > 20 && this._strongKnownFetish(slave, "boobs")) { + } else if (slave.devotion > 20 && this._strongKnownFetish(slave, Fetish.BOOBS)) { if (hasAnyArms(slave)) { r.push(`${He}'s barely out of the surgery before ${he}'s playing with ${his} new, ${slave.boobShape} breasts despite the pain.`); } else { @@ -77,11 +77,11 @@ App.Medicine.Surgery.Procedures.BreastReconstruction = class extends App.Medicin get name() { switch (this._boobShape) { - case "torpedo-shaped": + case BreastShape.TORPEDO: return "Make them torpedo-shaped"; - case "perky": + case BreastShape.PERKY: return "Reshape them to be perkier"; - case "normal": + case BreastShape.NORMAL: return "Reshape them to be more normal"; } return "Invalid boobShape: " + this._boobShape; diff --git a/js/medicine/surgery/assets/breastShapePreservation.js b/js/medicine/surgery/assets/breastShapePreservation.js index e8f2ba66e04..94bdb46806a 100644 --- a/js/medicine/surgery/assets/breastShapePreservation.js +++ b/js/medicine/surgery/assets/breastShapePreservation.js @@ -26,11 +26,11 @@ App.Medicine.Surgery.Reactions.BreastShapePreservationFailure = class extends Ap if (slave.areolae > 2) { r.push(`The emergency mastectomy also <span class="change negative">slightly reduces ${his} massive areolae.</span>`); } - if (slave.nipples === "huge") { + if (slave.nipples === NippleShape.HUGE) { r.push(`The emergency mastectomy also <span class="change negative">slightly reduces ${his} massive nipples.</span>`); - } else if (slave.nipples === "fuckable") { + } else if (slave.nipples === NippleShape.FUCKABLE) { r.push(`Without the tissue needed to support their unusual shape, ${his} fuckable nipples have reverted <span class="change negative">to being huge and protruding.</span>`); - } else if (slave.nipples === "flat") { + } else if (slave.nipples === NippleShape.FLAT) { r.push(`Without the ${his} massive implants forcing them flat, ${his} nipples have reverted <span class="change positive">to being huge and protruding.</span>`); } } @@ -62,7 +62,7 @@ App.Medicine.Surgery.Reactions.BreastShapePreservationFailure = class extends Ap areolaeAndNipples(); if (slave.fetish === Fetish.MINDBROKEN) { r.push(`As with all invasive surgery <span class="health dec">${his} health has been affected.</span>`); - } else if (slave.sexualFlaw === "breast growth") { + } else if (slave.sexualFlaw === SexualFlaw.BREASTEXP) { if (canSee(slave)) { r.push(`${He} can hardly believe what ${he} is seeing. The immense bust ${he} managed to grow has been all but stripped from ${him}. ${His} face fills with disbelief as ${his} flatness dawns on ${him}.`); } else { @@ -72,7 +72,7 @@ App.Medicine.Surgery.Reactions.BreastShapePreservationFailure = class extends Ap r.push(`${He} loved ${his} enormous breasts, and now that they are gone, ${he} has nothing to live for. <span class="mindbreak">Your apparent theft of ${his} obsession has broken ${his} mind.</span> As with all invasive surgery <span class="health dec">${his} health has been affected.</span>`); applyMindbroken(slave); reaction.shortReaction.push(`It broke ${his} mind.`); - } else if (this._strongKnownFetish(slave, "boobs") && slave.devotion <= 20) { + } else if (this._strongKnownFetish(slave, Fetish.BOOBS) && slave.devotion <= 20) { if (canSee(slave)) { r.push(`${He} can hardly believe what ${he} is seeing. ${His} once magnificent, immense bust has been all but stripped from ${him}. ${His} face fills with resentment as ${his} flatness dawns on ${him}.`); } else { @@ -127,7 +127,7 @@ App.Medicine.Surgery.Reactions.BreastShapePreservationFailure = class extends Ap areolaeAndNipples(); if (slave.fetish === Fetish.MINDBROKEN) { r.push(`As with all invasive surgery <span class="health dec">${his} health has been affected.</span>`); - } else if (slave.sexualFlaw === "breast growth") { + } else if (slave.sexualFlaw === SexualFlaw.BREASTEXP) { if (canSee(slave)) { r.push(`${He} can hardly believe what ${he} is seeing. ${His} once glorious bust has been all but stripped from ${him}. ${His} face fills with disbelief as ${his} flatness dawns on ${him}.`); } else { @@ -137,7 +137,7 @@ App.Medicine.Surgery.Reactions.BreastShapePreservationFailure = class extends Ap r.push(`${He} loved ${his} huge breasts, and now that they are gone, ${he} has nothing to live for. <span class="mindbreak">Your theft of ${his} obsession has broken ${his} mind.</span> As with all invasive surgery <span class="health dec">${his} health has been affected.</span>`); applyMindbroken(slave); reaction.shortReaction.push(`It broke ${his} mind.`); - } else if (this._strongKnownFetish(slave, "boobs") && slave.devotion <= 20) { + } else if (this._strongKnownFetish(slave, Fetish.BOOBS) && slave.devotion <= 20) { if (canSee(slave)) { r.push(`${He} can hardly believe what ${he} is seeing. ${His} once magnificent bust has been all but stripped from ${him}. ${His} face fills with resentment as ${his} flatness dawns on ${him}.`); } else { @@ -225,12 +225,12 @@ App.Medicine.Surgery.Procedures.BreastShapePreservation = class extends App.Medi if (this._slave.areolae > 2) { this._slave.areolae -= 1; } - if (this._slave.nipples === "huge") { - this._slave.nipples = "puffy"; - } else if (this._slave.nipples === "fuckable") { - this._slave.nipples = "huge"; - } else if (this._slave.nipples === "flat") { - this._slave.nipples = "huge"; + if (this._slave.nipples === NippleShape.HUGE) { + this._slave.nipples = NippleShape.PUFFY; + } else if (this._slave.nipples === NippleShape.FUCKABLE) { + this._slave.nipples = NippleShape.HUGE; + } else if (this._slave.nipples === NippleShape.FLAT) { + this._slave.nipples = NippleShape.HUGE; } return this._assemble(new App.Medicine.Surgery.Reactions.BreastShapePreservationFailure()); } else { diff --git a/js/medicine/surgery/assets/butt.js b/js/medicine/surgery/assets/butt.js index 4fe495f21a4..719ad3c0c91 100644 --- a/js/medicine/surgery/assets/butt.js +++ b/js/medicine/surgery/assets/butt.js @@ -6,7 +6,7 @@ App.Medicine.Surgery.Reactions.ButtGain = class extends App.Medicine.Surgery.Sim if (slave.fetish === Fetish.MINDBROKEN) { r.push(`${He} doesn't notice that ${his} butt has gotten larger. As with all surgery <span class="health dec">${his} health has been slightly affected.</span>`); - } else if (slave.devotion > 20 && this._strongKnownFetish(slave, "buttslut")) { + } else if (slave.devotion > 20 && this._strongKnownFetish(slave, Fetish.BUTTSLUT)) { r.push(`${He} gently flexes ${his} sore buttocks with a sigh of pleasure. ${He}'s <span class="devotion inc">deliriously happy</span> to have a bigger butt, since ${he} confidently expects that this will mean more cocks being shoved up ${his} asshole. ${He}'s so pleased that ${he} now <span class="trust inc">trusts</span> your plans for ${his} body. As with all surgery <span class="health dec">${his} health has been slightly affected.</span>`); reaction.trust += 4; reaction.devotion += 4; diff --git a/js/medicine/surgery/assets/fatGraft.js b/js/medicine/surgery/assets/fatGraft.js index 0686c587788..3518597a655 100644 --- a/js/medicine/surgery/assets/fatGraft.js +++ b/js/medicine/surgery/assets/fatGraft.js @@ -16,7 +16,7 @@ App.Medicine.Surgery.Reactions.FatGraft = class extends App.Medicine.Surgery.Sim if (slave.fetish === Fetish.MINDBROKEN) { r.push(`${He} notices that ${his} weight is slightly off, almost as if it were someplace else. As with all surgeries, <span class="health dec">${his} health has been affected.</span>`); - } else if (slave.behavioralFlaw === "anorexic") { + } else if (slave.behavioralFlaw === BehavioralFlaw.ANOREXIC) { if (canSee(slave)) { r.push(`${He} looks over ${his} new thin figure experimentally`); } else { @@ -30,7 +30,7 @@ App.Medicine.Surgery.Reactions.FatGraft = class extends App.Medicine.Surgery.Sim slave.areolae += 1; } } - if (slave.devotion > 20 && this._strongKnownFetish(slave, "boobs")) { + if (slave.devotion > 20 && this._strongKnownFetish(slave, Fetish.BOOBS)) { if (hasAnyArms(slave)) { r.push(`${He}'s barely out of the surgery before ${he}'s playing with ${his} new assets.`); } else { @@ -49,7 +49,7 @@ App.Medicine.Surgery.Reactions.FatGraft = class extends App.Medicine.Surgery.Sim } } if (this.buttFat > 0) { - if (slave.devotion > 20 && this._strongKnownFetish(slave, "buttslut")) { + if (slave.devotion > 20 && this._strongKnownFetish(slave, Fetish.BUTTSLUT)) { r.push(`${He} gently flexes ${his} sore buttocks with a sigh of pleasure. ${He}'s <span class="devotion inc">deliriously happy</span> to have a bigger butt, since ${he} confidently expects that this will mean more cocks being shoved up ${his} asshole. ${He}'s so pleased that ${he} now <span class="trust inc">trusts</span> your plans for ${his} body.`); reaction.trust += 4; reaction.devotion += 4; @@ -73,7 +73,7 @@ App.Medicine.Surgery.Reactions.FatGraft = class extends App.Medicine.Surgery.Sim slave.areolae += 1; } } - if (slave.devotion > 20 && this._strongKnownFetish(slave, "boobs")) { + if (slave.devotion > 20 && this._strongKnownFetish(slave, Fetish.BOOBS)) { if (hasAnyArms(slave)) { r.push(`${He}'s barely out of the surgery before ${he}'s playing with ${his} new assets.`); } else { @@ -91,7 +91,7 @@ App.Medicine.Surgery.Reactions.FatGraft = class extends App.Medicine.Surgery.Sim } } if (this.buttFat > 0) { - if (slave.devotion > 20 && this._strongKnownFetish(slave, "buttslut")) { + if (slave.devotion > 20 && this._strongKnownFetish(slave, Fetish.BUTTSLUT)) { r.push(`${He} gently flexes ${his} sore buttocks with a sigh of pleasure. ${He}'s <span class="devotion inc">deliriously happy</span> to have a bigger butt, since ${he} confidently expects that this will mean more cocks being shoved up ${his} asshole. ${He}'s so pleased that ${he} now <span class="trust inc">trusts</span> your plans for ${his} body.`); reaction.trust += 4; reaction.devotion += 4; diff --git a/js/medicine/surgery/assets/mastectomy.js b/js/medicine/surgery/assets/mastectomy.js index e0579208b06..d68255a23fa 100644 --- a/js/medicine/surgery/assets/mastectomy.js +++ b/js/medicine/surgery/assets/mastectomy.js @@ -4,17 +4,17 @@ App.Medicine.Surgery.Reactions.Mastectomy = class extends App.Medicine.Surgery.S const {his} = getPronouns(slave); const r = []; - if (slave.boobShape === "saggy") { + if (slave.boobShape === BreastShape.SAGGY) { r.push(`As excess skin and flesh was removed from ${his} breasts, care was taken to <span class="lime">reshape ${his} boobs to be nice and perky.</span>`); } if (slave.areolae > 2) { r.push(`The breast reduction surgery also <span class="orange">slightly reduces ${his} massive areolae.</span>`); } - if (slave.nipples === "huge") { + if (slave.nipples === NippleShape.HUGE) { r.push(`The breast reduction surgery also <span class="orange">slightly reduces ${his} massive nipples.</span>`); - } else if (slave.nipples === "flat") { + } else if (slave.nipples === NippleShape.FLAT) { r.push(`Without the ${his} massive implants forcing them flat, ${his} nipples have reverted <span class="lime">to being huge and protruding.</span>`); - } else if (slave.nipples === "fuckable") { + } else if (slave.nipples === NippleShape.FUCKABLE) { r.push(`Without the tissue needed to support their unusual shape, ${his} fuckable nipples have reverted <span class="orange">to being huge and protruding.</span>`); } @@ -38,7 +38,7 @@ App.Medicine.Surgery.Reactions.Mastectomy = class extends App.Medicine.Surgery.S if (slave.fetish === Fetish.MINDBROKEN) { r.push(`${He} shows little awareness that ${his} breasts are gone. As with all invasive surgery <span class="health dec">${his} health has been affected.</span>`); - } else if (slave.sexualFlaw === "breast growth") { + } else if (slave.sexualFlaw === SexualFlaw.BREASTEXP) { if (canSee(slave)) { r.push(`${He} can hardly believe what ${he} is seeing. ${His} once glorious bust has been all but stripped from ${him}. ${His} face fills with disbelief as ${his} flatness dawns on ${him}.`); } else { @@ -64,7 +64,7 @@ App.Medicine.Surgery.Reactions.Mastectomy = class extends App.Medicine.Surgery.S r.push(`${He} loved ${his} huge breasts, and now that they are gone, ${he} has nothing to live for. <span class="red">Your theft of ${his} obsession has broken ${his} mind.</span> As with all invasive surgery <span class="health dec">${his} health has been affected.</span>`); applyMindbroken(slave); reaction.shortReaction.push(`${His} mind <span class="mindbreak">broke.</span>`); - } else if (this._strongKnownFetish(slave, "boobs") && slave.devotion <= 20) { + } else if (this._strongKnownFetish(slave, Fetish.BOOBS) && slave.devotion <= 20) { if (canSee(slave)) { r.push(`${He} can hardly believe what ${he} is seeing. ${His} once magnificent bust has been all but stripped from ${him}. ${His} face fills with resentment as ${his} flatness dawns on ${him}.`); } else { @@ -130,7 +130,7 @@ App.Medicine.Surgery.Reactions.Mastectomy = class extends App.Medicine.Surgery.S if (slave.fetish === Fetish.MINDBROKEN) { r.push(`${He} shows little awareness that ${his} breasts are gone, despite such a massive change. As with all invasive surgery <span class="health dec">${his} health has been affected.</span>`); - } else if (slave.sexualFlaw === "breast growth") { + } else if (slave.sexualFlaw === SexualFlaw.BREASTEXP) { if (canSee(slave)) { r.push(`${He} can hardly believe what ${he} is seeing. The immense bust ${he} managed to grow has been all but stripped from ${him}. ${His} face fills with disbelief as ${his} flatness dawns on ${him}.`); } else { @@ -156,7 +156,7 @@ App.Medicine.Surgery.Reactions.Mastectomy = class extends App.Medicine.Surgery.S r.push(`${He} loved ${his} enormous breasts, and now that they are gone, ${he} has nothing to live for. <span class="red">Your theft of ${his} obsession has broken ${his} mind.</span> As with all invasive surgery <span class="health dec">${his} health has been affected.</span>`); applyMindbroken(slave); reaction.shortReaction.push(`${His} mind <span class="mindbreak">broke.</span>`); - } else if (this._strongKnownFetish(slave, "boobs") && slave.devotion <= 20) { + } else if (this._strongKnownFetish(slave, Fetish.BOOBS) && slave.devotion <= 20) { if (canSee(slave)) { r.push(`${He} can hardly believe what ${he} is seeing. ${His} once magnificent, immense bust has been all but stripped from ${him}. ${His} face fills with resentment as ${his} flatness dawns on ${him}.`); } else { @@ -227,18 +227,18 @@ App.Medicine.Surgery.Procedures.Mastectomy = class extends App.Medicine.Surgery. get changeValue() { return 300 - this._slave.boobs; } apply(cheat) { - if (this._slave.boobShape === "saggy") { - this._slave.boobShape = "perky"; + if (this._slave.boobShape === BreastShape.SAGGY) { + this._slave.boobShape = BreastShape.PERKY; } if (this._slave.areolae > 2) { this._slave.areolae -= 1; } - if (this._slave.nipples === "huge") { - this._slave.nipples = "puffy"; - } else if (this._slave.nipples === "flat") { - this._slave.nipples = "huge"; - } else if (this._slave.nipples === "fuckable") { - this._slave.nipples = "huge"; + if (this._slave.nipples === NippleShape.HUGE) { + this._slave.nipples = NippleShape.PUFFY; + } else if (this._slave.nipples === NippleShape.FLAT) { + this._slave.nipples = NippleShape.HUGE; + } else if (this._slave.nipples === NippleShape.FUCKABLE) { + this._slave.nipples = NippleShape.HUGE; } this._slave.boobs = 300; diff --git a/js/medicine/surgery/face/face.js b/js/medicine/surgery/face/face.js index b55a4a465e4..9d03fda5cdb 100644 --- a/js/medicine/surgery/face/face.js +++ b/js/medicine/surgery/face/face.js @@ -53,9 +53,9 @@ App.Medicine.Surgery.Procedures.FaceShape = class extends App.Medicine.Surgery.P } get name() { - if (this.targetShape === "androgynous" && this._slave.faceShape === "masculine") { + if (this.targetShape === FaceShape.ANDRO && this._slave.faceShape === FaceShape.MASC) { return `Soften to androgynous`; - } else if (this.targetShape === "normal") { + } else if (this.targetShape === FaceShape.NORMAL) { return `Make conventionally feminine`; } else { return capFirstChar(this.targetShape); diff --git a/js/medicine/surgery/face/lips.js b/js/medicine/surgery/face/lips.js index 2cb29c85885..68d48bed65f 100644 --- a/js/medicine/surgery/face/lips.js +++ b/js/medicine/surgery/face/lips.js @@ -6,7 +6,7 @@ App.Medicine.Surgery.Reactions.Lips = class extends App.Medicine.Surgery.SimpleR if (slave.fetish === Fetish.MINDBROKEN) { r.push(`${He} vaguely realizes ${his} mouth doesn't move as well as it used to. As with all surgery <span class="health dec">${his} health has been slightly affected.</span>`); - } else if (slave.devotion > 20 && this._strongKnownFetish(slave, "cumslut")) { + } else if (slave.devotion > 20 && this._strongKnownFetish(slave, Fetish.CUMSLUT)) { r.push(`${He} licks ${his} new lips experimentally but doesn't lose much time before turning to you with ${his} mouth open and ready. ${He}'s still sore, so ${he}'s careful, but ${he} runs ${his} wet tongue over ${his} lips, already panting at the thought of sucking dick. If ${he} had much in the way of oral skills, <span class="stat drop">they've likely suffered.</span> <span class="devotion inc">${He}'s happy with your changes to ${his} lips,</span> so much so that ${he} now <span class="trust inc">trusts</span> your plans for ${his} body. As with all surgery <span class="health dec">${his} health has been slightly affected.</span>`); reaction.trust += 4; reaction.devotion += 4; diff --git a/js/medicine/surgery/genitals/anus.js b/js/medicine/surgery/genitals/anus.js index ab7745dfe08..d7f13d0fa7a 100644 --- a/js/medicine/surgery/genitals/anus.js +++ b/js/medicine/surgery/genitals/anus.js @@ -7,7 +7,7 @@ App.Medicine.Surgery.Reactions.Anus = class extends App.Medicine.Surgery.SimpleR if (slave.fetish === Fetish.MINDBROKEN) { r.push(`${He} leaves the surgery with a terribly sore rear end and little desire to mess with it. As with all surgery <span class="health dec">${his} health has been slightly affected.</span>`); } else { - if (this._strongKnownFetish(slave, "buttslut")) { + if (this._strongKnownFetish(slave, Fetish.BUTTSLUT)) { r.push(`${He} leaves the surgery with a terribly sore rear end. ${He} is <span class="devotion inc">filled with joy</span> at the prospect of having a tight butt all over again, so much so that ${he} now <span class="trust inc">trusts</span> your plans for ${his} body. If ${he} had much in the way of anal skills, <span class="stat drop">they've likely suffered.</span> As with all surgery <span class="health dec">${his} health has been slightly affected.</span>`); reaction.trust += 4; reaction.devotion += 10; diff --git a/js/medicine/surgery/genitals/chop.js b/js/medicine/surgery/genitals/chop.js index bed9a07093a..faf50683fd1 100644 --- a/js/medicine/surgery/genitals/chop.js +++ b/js/medicine/surgery/genitals/chop.js @@ -8,14 +8,14 @@ App.Medicine.Surgery.Reactions.Chop = class extends App.Medicine.Surgery.SimpleR r.push(`Surprisingly, ${he} already realized while exiting that ${his} genitalia was completely reshaped. The reasons why are lost to ${him}, though.`); } else if (slave.vagina === -1) { r.push(`Of course, ${he} already realized while exiting that something very dear to ${him} has been taken away.`); - if (slave.devotion > 50 && slave.sexualFlaw === "self hating") { + if (slave.devotion > 50 && slave.sexualFlaw === SexualFlaw.SELFHATING) { r.push(`Strong emotions play out on ${his} face as ${he} experiences a watershed in ${his} life of sexual slavery, perhaps the most radical one ${he}'ll ever experience. ${He} loves you with all ${his} being, and truly hates ${himself}. ${He} finds ${himself} in an emotional place where ${he}'s willing to accept having had you cut ${his} dick off. ${He} knows ${he}'s a worthless piece of trash, and realizes that if you feel like trimming useless bits off ${him}, that's your prerogative. In moments, ${he}'s confirmed in <span class="devotion inc">total, final, fanatical submission to your will.</span> It's almost frightening.`); reaction.devotion += 50; - } else if (slave.devotion > 20 && slave.fetishKnown === 1 && slave.fetishStrength > 95 && slave.fetish === "buttslut") { + } else if (slave.devotion > 20 && slave.fetishKnown === 1 && slave.fetishStrength > 95 && slave.fetish === Fetish.BUTTSLUT) { r.push(`${He}'s such a complete buttslut, though, that ${he} finds ${he} doesn't really care. ${He} never really paid much attention to ${his} own dick; for ${him}, sex is about the phalli that get rammed up ${his} ass. And you didn't take that from ${him}. If anything, ${he}'s <span class="trust inc">reassured</span> by the implicit promise that ${he}'ll never be anything but a butthole slut, and of course is forced even further into <span class="devotion inc">submission to your will.</span>`); reaction.devotion += 8; reaction.trust += 8; - } else if (slave.devotion > 20 && slave.fetishKnown === 1 && slave.fetishStrength > 95 && slave.fetish === "cumslut") { + } else if (slave.devotion > 20 && slave.fetishKnown === 1 && slave.fetishStrength > 95 && slave.fetish === Fetish.CUMSLUT) { r.push(`${He}'s such an oral slut, though, that ${he} finds ${he} doesn't really care. ${He} never really paid much attention to ${his} dick; for ${him}, sex is about what ${he} gets to suck. As far as ${he}'s concerned, you've simply confirmed that ${his} most important hole is the one in ${his} face. If anything, ${he}'s <span class="trust inc">reassured</span> by the implicit promise that ${he}'ll never be anything more than a nice inviting facepussy, and of course, ${he}'s forced even further into <span class="devotion inc">submission to your will.</span>`); reaction.devotion += 8; reaction.trust += 8; diff --git a/js/medicine/surgery/genitals/fertility.js b/js/medicine/surgery/genitals/fertility.js index 6be9bebc6aa..e421107cee4 100644 --- a/js/medicine/surgery/genitals/fertility.js +++ b/js/medicine/surgery/genitals/fertility.js @@ -6,7 +6,7 @@ App.Medicine.Surgery.Reactions.Fertility = class extends App.Medicine.Surgery.Si if (slave.fetish === Fetish.MINDBROKEN) { r.push(`${He} leaves the surgery with nothing but a nonspecific ache in ${his} lower abdomen, but lacks the mental faculties to realize that ${he} now has a chance to get pregnant. As with all surgery <span class="health dec">${his} health has been slightly affected.</span>`); - } else if (this._strongKnownFetish(slave, "pregnancy") || slave.origin === "$He sold $himself to you in the hope of someday bearing children.") { + } else if (this._strongKnownFetish(slave, Fetish.PREGNANCY) || slave.origin === "$He sold $himself to you in the hope of someday bearing children.") { r.push(`${He} leaves the surgery with nothing but a nonspecific ache in ${his} lower abdomen, but ${he} knows enough about surgery and sex slaves to know that it means ${he} now has a chance to get pregnant. ${He} is <span class="devotion inc">filled with joy</span> whenever ${he} thinks about the fact that feeling a life growing within ${him} is now, at last, a possibility. ${He}'s so pleased that ${he} now <span class="trust inc">trusts</span> your plans for ${his} body. As with all surgery <span class="health dec">${his} health has been slightly affected.</span>`); reaction.trust += 4; reaction.devotion += 5; diff --git a/js/medicine/surgery/genitals/geld.js b/js/medicine/surgery/genitals/geld.js index 8b63437ce53..eb1c9bbee8a 100644 --- a/js/medicine/surgery/genitals/geld.js +++ b/js/medicine/surgery/genitals/geld.js @@ -47,10 +47,10 @@ App.Medicine.Surgery.Procedures.Geld = class extends App.Medicine.Surgery.Proced this._slave.ballType = "human"; this._slave.scrotum = 0; this._slave.vasectomy = 0; - if (this._slave.drugs === "testicle enhancement" || - this._slave.drugs === "hyper testicle enhancement" || - this._slave.drugs === "testicle atrophiers") { - this._slave.drugs = "no drugs"; + if (this._slave.drugs === Drug.GROWTESTICLE || + this._slave.drugs === Drug.HYPERTESTICLE || + this._slave.drugs === Drug.ATROPHYTESTICLE) { + this._slave.drugs = Drug.NONE; } return this._assemble(new App.Medicine.Surgery.Reactions.Geld()); } diff --git a/js/medicine/surgery/genitals/insemination.js b/js/medicine/surgery/genitals/insemination.js index 311eeb6691b..a021662315b 100644 --- a/js/medicine/surgery/genitals/insemination.js +++ b/js/medicine/surgery/genitals/insemination.js @@ -22,7 +22,7 @@ App.Medicine.Surgery.Reactions.Insemination = class extends App.Medicine.Surgery if (slave.fetish === Fetish.MINDBROKEN) { r.push(`${He} leaves the surgery with a certain warmth in ${his} lower abdomen, ${he} knows that ${he} has been impregnated.`); - } else if (this._strongKnownFetish(slave, "pregnancy")) { + } else if (this._strongKnownFetish(slave, Fetish.PREGNANCY)) { if (canSee(slave)) { r.push(`Since the surgery required only a local anesthetic, ${he} remained fully aware throughout the procedure. From the selection of the sperm, to its introduction to ${his} waiting ${(slave.pregType > 1) ? `eggs` : `egg`}, ${he} was eagerly watching.`); } else { diff --git a/js/medicine/surgery/genitals/maleToFemale.js b/js/medicine/surgery/genitals/maleToFemale.js index 3bf4129aabb..84dbf6366fb 100644 --- a/js/medicine/surgery/genitals/maleToFemale.js +++ b/js/medicine/surgery/genitals/maleToFemale.js @@ -58,10 +58,10 @@ App.Medicine.Surgery.Procedures.MaletoFemale = class extends App.Medicine.Surger this._slave.vasectomy = 0; this._slave.vagina = 0; this._slave.preg = -2; - if (this._slave.drugs === "testicle enhancement" || - this._slave.drugs === "hyper testicle enhancement" || - this._slave.drugs === "testicle atrophiers") { - this._slave.drugs = "no drugs"; + if (this._slave.drugs === Drug.GROWTESTICLE || + this._slave.drugs === Drug.HYPERTESTICLE || + this._slave.drugs === Drug.ATROPHYTESTICLE) { + this._slave.drugs = Drug.NONE; } return this._assemble(new App.Medicine.Surgery.Reactions.MaletoFemale()); } diff --git a/js/medicine/surgery/genitals/mpregRemoved.js b/js/medicine/surgery/genitals/mpregRemoved.js index 19ae2650acb..319dbf22562 100644 --- a/js/medicine/surgery/genitals/mpregRemoved.js +++ b/js/medicine/surgery/genitals/mpregRemoved.js @@ -22,7 +22,7 @@ App.Medicine.Surgery.Procedures.RemoveMPreg = class extends App.Medicine.Surgery apply(cheat) { this._slave.mpreg = 0; - this._slave.ovaImplant = 0; + this._slave.ovaImplant = OvaryImplantType.NONE; this._slave.wombImplant = "none"; return this._assemble(new App.Medicine.Surgery.Reactions.MPregRemoved()); } diff --git a/js/medicine/surgery/genitals/noneToFemale.js b/js/medicine/surgery/genitals/noneToFemale.js index 1ab3bd9e144..5d1373eaace 100644 --- a/js/medicine/surgery/genitals/noneToFemale.js +++ b/js/medicine/surgery/genitals/noneToFemale.js @@ -8,7 +8,7 @@ App.Medicine.Surgery.Reactions.NoneToFemale = class extends App.Medicine.Surgery r.push(`Surprisingly, ${he} already realized while exiting that ${his} genitalia was completely reshaped. The reasons why are lost to ${him}, though. Since the surgery was invasive, <span class="health dec">${his} health has been greatly affected.</span>`); } else if (slave.devotion > 50) { r.push(`Of course, ${he} already realized while exiting that ${his} genitalia was completely reshaped. ${He} can only be happy that ${he}`); - if (slave.genes === "XX") { + if (slave.genes === GenderGenes.FEMALE) { r.push(`once again has a vagina and now has a means of release again.`); } else { r.push(`now has a hole other than ${his} anus to pleasure ${himself} with.`); @@ -17,7 +17,7 @@ App.Medicine.Surgery.Reactions.NoneToFemale = class extends App.Medicine.Surgery reaction.devotion += 4; } else if (slave.devotion > 20) { r.push(`Of course, ${he} already realized while exiting that ${his} genitalia was completely reshaped. ${He} didn't expect`); - if (slave.genes === "XX") { + if (slave.genes === GenderGenes.FEMALE) { r.push(`to ever have a pussy again,`); } else { r.push(`to be given a hole other than ${his} anus,`); @@ -33,7 +33,7 @@ App.Medicine.Surgery.Reactions.NoneToFemale = class extends App.Medicine.Surgery reaction.devotion -= 5; } else { r.push(`Of course, ${he} already realized while exiting that ${his} genitalia was completely reshaped. ${He} didn't expect`); - if (slave.genes === "XX") { + if (slave.genes === GenderGenes.FEMALE) { r.push(`to ever have a pussy again,`); } else { r.push(`to be given a hole other than ${his} anus,`); diff --git a/js/medicine/surgery/genitals/ovaImplantChanged.js b/js/medicine/surgery/genitals/ovaImplantChanged.js index 68ce685b0e7..553f1eb2603 100644 --- a/js/medicine/surgery/genitals/ovaImplantChanged.js +++ b/js/medicine/surgery/genitals/ovaImplantChanged.js @@ -32,7 +32,7 @@ App.Medicine.Surgery.Procedures.RemoveOvaImplant = class extends App.Medicine.Su } apply(cheat) { - this._slave.ovaImplant = 0; + this._slave.ovaImplant = OvaryImplantType.NONE; return this._assemble(new App.Medicine.Surgery.Reactions.OvaImplantChanged()); } }; @@ -49,9 +49,9 @@ App.Medicine.Surgery.Procedures.InstallOvaImplant = class extends App.Medicine.S get name() { switch (this.type) { - case "fertility": + case OvaryImplantType.FERTILITY: return "Install fertility implants"; - case "sympathy": + case OvaryImplantType.SYMPATHY: return "Install sympathetic ovulation implants"; default: throw new Error("Invalid OvaryImplantType: " + this.type); diff --git a/js/medicine/surgery/genitals/preg.js b/js/medicine/surgery/genitals/preg.js index efbb4f4eac0..a1c108538d2 100644 --- a/js/medicine/surgery/genitals/preg.js +++ b/js/medicine/surgery/genitals/preg.js @@ -7,7 +7,7 @@ App.Medicine.Surgery.Reactions.Preg = class extends App.Medicine.Surgery.SimpleR r.push(`${He} leaves the surgery with a certain warmth in ${his} lower abdomen, ${he} knows that ${he} has been impregnated.`); if (slave.fetish === Fetish.MINDBROKEN) { r.push(`As with all surgery <span class="health dec">${his} health has been slightly affected.</span>`); - } else if (this._strongKnownFetish(slave, "pregnancy")) { + } else if (this._strongKnownFetish(slave, Fetish.PREGNANCY)) { r.push(`${He} is <span class="devotion inc"> filled with joy</span> about being swollen with life and gleefully rubs ${his} soon to be huge belly. ${He}'s so pleased that ${he} now <span class="trust inc">trusts</span> your plans for ${his} body. As with all surgery <span class="health dec">${his} health has been slightly affected.</span>`); reaction.trust += 4; reaction.devotion += 10; diff --git a/js/medicine/surgery/genitals/preg1hack.js b/js/medicine/surgery/genitals/preg1hack.js index aa51225f92c..49df5476329 100644 --- a/js/medicine/surgery/genitals/preg1hack.js +++ b/js/medicine/surgery/genitals/preg1hack.js @@ -11,7 +11,7 @@ App.Medicine.Surgery.Reactions.Preg1Hack = class extends App.Medicine.Surgery.Si if (slave.fetish === Fetish.MINDBROKEN) { /* nothing*/ - } else if (this._strongKnownFetish(slave, "pregnancy")) { + } else if (this._strongKnownFetish(slave, Fetish.PREGNANCY)) { r.push(`${He} is <span class="devotion inc">filled with joy</span> about being even more swollen with life and gleefully rubs ${his} soon-to-be-larger belly. ${He}'s so pleased that ${he} now <span class="trust inc">trusts</span> your plans for ${his} body. As with all surgery <span class="health dec">${his} health has been slightly affected.</span>`); reaction.trust += 4; reaction.devotion += 10; diff --git a/js/medicine/surgery/genitals/pregRemove.js b/js/medicine/surgery/genitals/pregRemove.js index 54ed79a884c..8ed5c2e3f45 100644 --- a/js/medicine/surgery/genitals/pregRemove.js +++ b/js/medicine/surgery/genitals/pregRemove.js @@ -7,7 +7,7 @@ App.Medicine.Surgery.Reactions.PregRemove = class extends App.Medicine.Surgery.S r.push(`${He} leaves the surgery with a certain soreness and minor pain in ${his} lower abdomen, ${he} knows that ${his} days as broodmother are finished.`); if (slave.fetish === Fetish.MINDBROKEN) { r.push(`As with all surgery <span class="health dec">${his} health has been slightly affected.</span>`); - } else if (this._strongKnownFetish(slave, "pregnancy")) { + } else if (this._strongKnownFetish(slave, Fetish.PREGNANCY)) { r.push(`${He} is <span class="trust dec">filled with despair</span> about missing being swollen with life and rubs ${his} flat belly with <span class="devotion dec">sorrow.</span> Only one fact slightly soothes ${him} and allows ${him} to remain sane — at least ${he} will not become infertile and still can get pregnant naturally. As with all surgery <span class="health dec">${his} health has been slightly affected.</span>`); reaction.trust -= 10; reaction.devotion -= 30; diff --git a/js/medicine/surgery/genitals/prostate.js b/js/medicine/surgery/genitals/prostate.js index 0e3a308733e..3bb4e140c5c 100644 --- a/js/medicine/surgery/genitals/prostate.js +++ b/js/medicine/surgery/genitals/prostate.js @@ -9,7 +9,7 @@ App.Medicine.Surgery.Reactions.Prostate = class extends App.Medicine.Surgery.Sim if (slave.devotion > 50) { if (slave.anus === 0) { r.push(`Since ${he}'s still an anal virgin, ${he} doesn't have any immediate way to discover what's been taken from ${him}. Thus, ${he} carries on, accepting what you did to ${him} out of simple ignorance.`); - } else if (this._strongKnownFetish(slave, "buttslut")) { + } else if (this._strongKnownFetish(slave, Fetish.BUTTSLUT)) { r.push(`${He} realizes that ${his} prostate's gone the first time ${he} takes it up the butt, though. The incorrigible buttslut is crushed, but ${he}'s devoted to you, so ${he} resolves to carry on regardless. If anything, ${he} does ${his} best to push ${himself} to <span class="fetish loss">consider other kinks,</span> now that a hard anal pounding isn't as fun for ${him} as it once was.`); slave.fetishStrength -= 40; } else { @@ -20,7 +20,7 @@ App.Medicine.Surgery.Reactions.Prostate = class extends App.Medicine.Surgery.Sim if (slave.anus === 0) { r.push(`Since ${he}'s still an anal virgin, ${he} doesn't have any immediate way to discover what's been taken from ${him}. Not knowing what you did, <span class="trust dec">${he}'s afraid,</span> realizing that you can toy with ${his} internal makeup at a whim.`); reaction.trust -= 5; - } else if (this._strongKnownFetish(slave, "buttslut")) { + } else if (this._strongKnownFetish(slave, Fetish.BUTTSLUT)) { r.push(`${He} realizes that ${his} prostate's gone the first time ${he} takes it up the butt, though. The buttslut is crushed, and <span class="devotion dec">infuriated,</span> because in effect you've taken ${his} favorite pastime away from ${him}. For now, ${he} defiantly does ${his} best to keep orgasming to anal, but it remains to be seen whether ${he} can maintain ${his} enthusiasm.`); reaction.devotion -= 10; } else { diff --git a/js/medicine/surgery/genitals/sterilize.js b/js/medicine/surgery/genitals/sterilize.js index 1c7f4984b2e..8e822bd5c09 100644 --- a/js/medicine/surgery/genitals/sterilize.js +++ b/js/medicine/surgery/genitals/sterilize.js @@ -6,7 +6,7 @@ App.Medicine.Surgery.Reactions.Sterilize = class extends App.Medicine.Surgery.Si if (slave.fetish === Fetish.MINDBROKEN) { r.push(`${He} leaves the surgery with nothing but a nonspecific ache in ${his} lower abdomen, but lacks the mental faculties to know that ${he}'ll never have a child now. As with all surgery <span class="health dec">${his} health has been slightly affected.</span>`); - } else if (this._strongKnownFetish(slave, "pregnancy")) { + } else if (this._strongKnownFetish(slave, Fetish.PREGNANCY)) { r.push(`${He} leaves the surgery with nothing but a nonspecific ache in ${his} lower abdomen, but ${he} knows enough about surgery and sex slaves to know that it means ${he}'ll never have a child. ${He} is <span class="devotion dec">filled with grief</span> whenever ${he} thinks about the fact that feeling a life growing within ${him} is now, finally and forever, beyond ${him}. As with all surgery <span class="health dec">${his} health has been slightly affected.</span> ${He} is <span class="trust dec">terribly afraid</span> of your total power over ${his} body.`); reaction.trust -= 10; reaction.devotion -= 20; @@ -56,7 +56,7 @@ App.Medicine.Surgery.Procedures.Oophorectomy = class extends App.Medicine.Surger apply(cheat) { this._slave.ovaries = 0; - this._slave.ovaImplant = 0; + this._slave.ovaImplant = OvaryImplantType.NONE; this._slave.wombImplant = "none"; return this._assemble(new App.Medicine.Surgery.Reactions.Sterilize()); } diff --git a/js/medicine/surgery/genitals/vaginalRemoval.js b/js/medicine/surgery/genitals/vaginalRemoval.js index 81305924440..1fab2e1833e 100644 --- a/js/medicine/surgery/genitals/vaginalRemoval.js +++ b/js/medicine/surgery/genitals/vaginalRemoval.js @@ -8,14 +8,14 @@ App.Medicine.Surgery.Reactions.VaginaRemoval = class extends App.Medicine.Surger r.push(`Surprisingly, ${he} already realized while exiting that ${his} genitalia was completely reshaped. The reasons why are lost to ${him}, though.`); } else if (slave.dick === 0) { r.push(`Of course, ${he} already realized while exiting that something very dear to ${him} has been taken away.`); - if (slave.devotion > 50 && slave.sexualFlaw === "self hating") { + if (slave.devotion > 50 && slave.sexualFlaw === SexualFlaw.SELFHATING) { r.push(`Strong emotions play out on ${his} face as ${he} experiences a watershed in ${his} life of sexual slavery, perhaps the most radical one ${he}'ll ever experience. ${He} loves you with all ${his} being, and truly hates ${himself}. ${He} finds ${himself} in an emotional place where ${he}'s willing to accept having ${his} womanhood torn out. ${He} knows ${he}'s a worthless piece of trash, and realizes that if you feel like removing the parts of ${his} body that can feel sexual pleasure, that's your prerogative. In moments, ${he}'s confirmed in <span class="devotion inc">total, final, fanatical submission to your will.</span> It's almost frightening.`); reaction.devotion += 50; - } else if (slave.devotion > 20 && slave.fetishKnown === 1 && slave.fetishStrength > 95 && slave.fetish === "buttslut") { + } else if (slave.devotion > 20 && slave.fetishKnown === 1 && slave.fetishStrength > 95 && slave.fetish === Fetish.BUTTSLUT) { r.push(`${He}'s such a complete buttslut, though, that ${he} finds ${he} doesn't really care. ${He} never really paid much attention to ${his} front hole; it got wet when ${he} got buttfucked, but that was mostly useful to provide a little lube for phalli that fucked it before switching to ${his} ass. If anything, ${he}'s <span class="trust inc">reassured</span> by the implication that ${his} asshole is all that matters about ${him}, and of course is forced even further into <span class="devotion inc">submission to your will.</span>`); reaction.devotion += 8; reaction.trust += 8; - } else if (slave.devotion > 20 && slave.fetishKnown === 1 && slave.fetishStrength > 95 && slave.fetish === "cumslut") { + } else if (slave.devotion > 20 && slave.fetishKnown === 1 && slave.fetishStrength > 95 && slave.fetish === Fetish.CUMSLUT) { r.push(`${He}'s such an oral slut, though, that ${he} finds ${he} doesn't really care. ${He} viewed ${his} pussy as a nice place for stimulation while ${he} licked, blew, and sucked; if ${he} has to learn to get off from throat stimulation ${he} will. As far as ${he}'s concerned, you've simply confirmed that ${his} most important hole is the one in ${his} face. If anything, ${he}'s <span class="trust inc">reassured</span> by the implication that ${his} real pussy has always been the one in the middle of ${his} face, and of course, ${he}'s forced even further into <span class="devotion inc">submission to your will.</span>`); reaction.devotion += 8; reaction.trust += 8; diff --git a/js/medicine/surgery/hair/hairRemoval.js b/js/medicine/surgery/hair/hairRemoval.js index 316ba4e6338..b6bfecdfc77 100644 --- a/js/medicine/surgery/hair/hairRemoval.js +++ b/js/medicine/surgery/hair/hairRemoval.js @@ -19,7 +19,7 @@ App.Medicine.Surgery.Reactions.HairRemoval = class extends App.Medicine.Surgery. reaction.longReaction.push(r); r = []; if (slave.devotion > 50) { - if (slave.fetish === "humiliation" && slave.fetishStrength > 50) { + if (slave.fetish === Fetish.HUMILIATION && slave.fetishStrength > 50) { r.push(`${He} is <span class="devotion inc">turned on</span> by how humiliating this is for ${him} and <span class="trust inc">can't wait</span> for the next time you decide to show ${him} off.`); reaction.trust += 5; reaction.devotion += 5; @@ -27,7 +27,7 @@ App.Medicine.Surgery.Reactions.HairRemoval = class extends App.Medicine.Surgery. r.push(`${He} is very devoted to you so ${his} new condition doesn't affect ${him} as much as it would other slaves.`); } } else if (slave.devotion >= -20) { - if (slave.fetish === "humiliation" && slave.fetishStrength > 50) { + if (slave.fetish === Fetish.HUMILIATION && slave.fetishStrength > 50) { r.push(`${He} is both <span class="devotion inc">turned on</span> and <span class="trust dec">horrified</span> by this humiliation.`); reaction.trust -= 5; reaction.devotion += 5; diff --git a/js/medicine/surgery/liposuction/liposuction.js b/js/medicine/surgery/liposuction/liposuction.js index dfc70daa6e9..b99928e2edb 100644 --- a/js/medicine/surgery/liposuction/liposuction.js +++ b/js/medicine/surgery/liposuction/liposuction.js @@ -6,7 +6,7 @@ App.Medicine.Surgery.Reactions.Liposuction = class extends App.Medicine.Surgery. if (slave.fetish === Fetish.MINDBROKEN) { r.push(`${He} notices that ${he} is quite lighter than ${he} used to be. As with all surgeries, <span class="health dec">${his} health has been affected.</span>`); - } else if (slave.behavioralFlaw === "anorexic") { + } else if (slave.behavioralFlaw === BehavioralFlaw.ANOREXIC) { if (canSee(slave)) { r.push(`${He} looks over ${his} new thin figure experimentally`); } else { diff --git a/js/medicine/surgery/liposuction/ribs.js b/js/medicine/surgery/liposuction/ribs.js index 15b69717fd2..e4c5c519fab 100644 --- a/js/medicine/surgery/liposuction/ribs.js +++ b/js/medicine/surgery/liposuction/ribs.js @@ -6,7 +6,7 @@ App.Medicine.Surgery.Reactions.Ribs = class extends App.Medicine.Surgery.SimpleR if (slave.fetish === Fetish.MINDBROKEN) { r.push(`${He}'s desperately stiff and sore. It takes a good while for ${him} to figure out what has happened, but eventually ${his} careful investigations discern that the cause is ${his} new extremely narrow waist. Since the surgery was invasive, <span class="health dec">${his} health has been greatly affected.</span>`); - } else if (slave.behavioralFlaw === "anorexic") { + } else if (slave.behavioralFlaw === BehavioralFlaw.ANOREXIC) { r.push(`${He}'s desperately stiff and sore. It takes a good while for ${him} to figure out what has happened, but eventually ${his} careful investigations discern that the cause of ${his} extremely narrow waist is that ${his} ribcage has been shortened. ${He} gasps with shock, and when ${he}`); if (canSee(slave)) { r.push(`looks at you, you see awe in ${his} eyes.`); diff --git a/js/medicine/surgery/liposuction/waist.js b/js/medicine/surgery/liposuction/waist.js index 84c4202e6c7..2d1cd59fc6d 100644 --- a/js/medicine/surgery/liposuction/waist.js +++ b/js/medicine/surgery/liposuction/waist.js @@ -6,7 +6,7 @@ App.Medicine.Surgery.Reactions.Waist = class extends App.Medicine.Surgery.Simple if (slave.fetish === Fetish.MINDBROKEN) { r.push(`While ${he} notices how sore ${his} waist is, ${he} fails to find the reason why. Since the surgery was invasive, <span class="health dec">${his} health has been greatly affected.</span>`); - } else if (slave.behavioralFlaw === "anorexic") { + } else if (slave.behavioralFlaw === BehavioralFlaw.ANOREXIC) { if (canSee(slave)) { r.push(`${He} looks over ${his} new waist experimentally`); } else { diff --git a/js/medicine/surgery/nipples/areolae.js b/js/medicine/surgery/nipples/areolae.js index 966fd7303a0..ff0d3d8f734 100644 --- a/js/medicine/surgery/nipples/areolae.js +++ b/js/medicine/surgery/nipples/areolae.js @@ -6,7 +6,7 @@ App.Medicine.Surgery.Reactions.Areolae = class extends App.Medicine.Surgery.Simp if (slave.fetish === Fetish.MINDBROKEN) { r.push(`${He} shows little reaction to ${his} altered nipples. As with all surgery <span class="health dec">${his} health has been slightly affected.</span>`); - } else if (slave.devotion > 20 && this._strongKnownFetish(slave, "boobs")) { + } else if (slave.devotion > 20 && this._strongKnownFetish(slave, Fetish.BOOBS)) { if (hasAnyArms(slave)) { r.push(`${He}'s barely out of the surgery before ${he}'s playing with ${his} new nipples despite the pain.`); } else { @@ -69,7 +69,7 @@ App.Medicine.Surgery.Procedures.RestoreNipples = class extends App.Medicine.Surg } apply(cheat) { - this._slave.nipples = "huge"; + this._slave.nipples = NippleShape.HUGE; return this._assemble(new App.Medicine.Surgery.Reactions.Areolae()); } }; diff --git a/js/medicine/surgery/nipples/nippleCunts.js b/js/medicine/surgery/nipples/nippleCunts.js index 53251d3ca90..8220bb88f89 100644 --- a/js/medicine/surgery/nipples/nippleCunts.js +++ b/js/medicine/surgery/nipples/nippleCunts.js @@ -6,7 +6,7 @@ App.Medicine.Surgery.Reactions.NippleCunts = class extends App.Medicine.Surgery. if (slave.fetish === Fetish.MINDBROKEN) { r.push(`${He} shows no reaction to ${his} altered nipples. As with all surgery <span class="health dec">${his} health has been slightly affected.</span>`); - } else if (slave.devotion > 20 && this._strongKnownFetish(slave, "boobs")) { + } else if (slave.devotion > 20 && this._strongKnownFetish(slave, Fetish.BOOBS)) { if (hasAnyArms(slave)) { r.push(`${He}'s barely out of the surgery before ${he}'s experimentally probing ${his} new nipples despite the pain.`); } else { @@ -74,7 +74,7 @@ App.Medicine.Surgery.Procedures.NippleCunts = class extends App.Medicine.Surgery } apply(cheat) { - this._slave.nipples = "fuckable"; + this._slave.nipples = NippleShape.FUCKABLE; this._slave.piercing.nipple.weight = 0; return this._assemble(new App.Medicine.Surgery.Reactions.NippleCunts()); } diff --git a/js/medicine/surgery/structural/amputation.js b/js/medicine/surgery/structural/amputation.js index efc3f2b4a56..cba0ef7fa68 100644 --- a/js/medicine/surgery/structural/amputation.js +++ b/js/medicine/surgery/structural/amputation.js @@ -216,7 +216,7 @@ App.Medicine.Surgery.Reactions.Amputate = class extends App.Medicine.Surgery.Sim const reaction = super.outro(slave, diff, previousReaction); const {He, him} = getPronouns(slave); - if (slave.behavioralFlaw === "arrogant") { + if (slave.behavioralFlaw === BehavioralFlaw.ARROGANT) { const r = `<span class="flaw break">${He} can hardly be arrogant relying on others to feed, bathe and carry ${him}.</span>`; if (reaction.longReaction.length > 0) { reaction.longReaction.last() @@ -224,7 +224,7 @@ App.Medicine.Surgery.Reactions.Amputate = class extends App.Medicine.Surgery.Sim } else { reaction.longReaction.push([r]); } - slave.behavioralFlaw = "none"; + slave.behavioralFlaw = BehavioralFlaw.NONE; } return reaction; diff --git a/js/medicine/surgery/voice/mute.js b/js/medicine/surgery/voice/mute.js index ba9062fcb60..05496f48682 100644 --- a/js/medicine/surgery/voice/mute.js +++ b/js/medicine/surgery/voice/mute.js @@ -39,7 +39,7 @@ App.Medicine.Surgery.Reactions.Mute = class extends App.Medicine.Surgery.SimpleR const reaction = super.outro(slave, diff, previousReaction); const {He} = getPronouns(slave); - if (slave.behavioralFlaw === "bitchy") { + if (slave.behavioralFlaw === BehavioralFlaw.BITCHY) { const r = `<span class="green">${He} can hardly make sharp remarks without a voice.</span>`; if (reaction.longReaction.length > 0) { reaction.longReaction.last() @@ -47,7 +47,7 @@ App.Medicine.Surgery.Reactions.Mute = class extends App.Medicine.Surgery.SimpleR } else { reaction.longReaction.push([r]); } - slave.behavioralFlaw = "none"; + slave.behavioralFlaw = BehavioralFlaw.NONE; } return reaction; -- GitLab