diff --git a/src/facilities/surgery/surgeryPassageFaceAndHair.js b/src/facilities/surgery/surgeryPassageFaceAndHair.js index 9a08c9824dfe9d6386bba447f49d5696911ab75c..6f8bd9b6e4c89611979461d4166c6b37eb9628e0 100644 --- a/src/facilities/surgery/surgeryPassageFaceAndHair.js +++ b/src/facilities/surgery/surgeryPassageFaceAndHair.js @@ -567,86 +567,88 @@ App.UI.surgeryPassageHairAndFace = function(slave, cheat = false) { if (slave.indentureRestrictions >= 2) { App.UI.DOM.appendNewElement("div", el, `${His} indenture forbids elective surgery`, ["choices", "note"]); } else { - if (slave.earT !== "none" && V.seeExtreme === 1 && slave.indentureRestrictions < 1) { - linkArray.push(makeLink( - "Remove them", - "earGone", - () => { - slave.earT = "none"; - surgeryDamage(slave, 20); - } - )); - } - if (slave.earT !== "neko") { - linkArray.push(makeLink( - "Reshape into cat ears", - "earMajor", - () => { - slave.earT = "neko"; - surgeryDamage(slave, 10); - } - )); - } - if (slave.earT !== "inu") { - linkArray.push(makeLink( - "Reshape into dog ears", - "earMajor", - () => { - slave.earT = "inu"; - surgeryDamage(slave, 10); - } - )); - } - if (slave.earT !== "kit") { - linkArray.push(makeLink( - "Reshape into fox ears", - "earMajor", - () => { - slave.earT = "kit"; - surgeryDamage(slave, 10); - } - )); - } - if (slave.earT !== "tanuki") { - linkArray.push(makeLink( - "Reshape into tanuki ears", - "earMajor", - () => { - slave.earT = "tanuki"; - surgeryDamage(slave, 10); - } - )); - } - if (slave.earT !== "usagi") { - linkArray.push(makeLink( - "Reshape into rabbit ears", - "earMajor", - () => { - slave.earT = "usagi"; - surgeryDamage(slave, 10); - } - )); - } - if (slave.earTColor === "hairless") { - r.push(`They are completely bald.`); - linkArray.push(makeLink( - "Implant hair mimicking fibers", - "earMinor", - () => { - slave.earTColor = slave.hColor; - surgeryDamage(slave, 10); - } - )); - } else { - r.push(`They are covered by a multitude of implanted ${slave.earTColor} fibers mimicking hair.`); - linkArray.push(makeLink( - "Remove them", - "earMinor", - () => { - slave.earTColor = "hairless"; - surgeryDamage(slave, 10); - } - )); + if (slave.earT !== "none") { + if(V.seeExtreme === 1 && slave.indentureRestrictions < 1) { + linkArray.push(makeLink( + "Remove them", + "earGone", + () => { + slave.earT = "none"; + surgeryDamage(slave, 20); + } + )); + } + if (slave.earT !== "neko") { + linkArray.push(makeLink( + "Reshape into cat ears", + "earMajor", + () => { + slave.earT = "neko"; + surgeryDamage(slave, 10); + } + )); + } + if (slave.earT !== "inu") { + linkArray.push(makeLink( + "Reshape into dog ears", + "earMajor", + () => { + slave.earT = "inu"; + surgeryDamage(slave, 10); + } + )); + } + if (slave.earT !== "kit") { + linkArray.push(makeLink( + "Reshape into fox ears", + "earMajor", + () => { + slave.earT = "kit"; + surgeryDamage(slave, 10); + } + )); + } + if (slave.earT !== "tanuki") { + linkArray.push(makeLink( + "Reshape into tanuki ears", + "earMajor", + () => { + slave.earT = "tanuki"; + surgeryDamage(slave, 10); + } + )); + } + if (slave.earT !== "usagi") { + linkArray.push(makeLink( + "Reshape into rabbit ears", + "earMajor", + () => { + slave.earT = "usagi"; + surgeryDamage(slave, 10); + } + )); + } + if (slave.earTColor === "hairless") { + r.push(`They are completely bald.`); + linkArray.push(makeLink( + "Implant hair mimicking fibers", + "earMinor", + () => { + slave.earTColor = slave.hColor; + surgeryDamage(slave, 10); + } + )); + } else { + r.push(`They are covered by a multitude of implanted ${slave.earTColor} fibers mimicking hair.`); + linkArray.push(makeLink( + "Remove them", + "earMinor", + () => { + slave.earTColor = "hairless"; + surgeryDamage(slave, 10); + } + )); + } } App.UI.DOM.appendNewElement("div", el, App.UI.DOM.generateLinksStrip(linkArray), "choices"); }