diff --git a/src/js/rulesAutosurgery.js b/src/js/rulesAutosurgery.js index 98e048098e23fc4264712324ecbbd377bfd2fc82..aa4f9623fe895e806578e2dc8d33f3ce42b8d1fc 100644 --- a/src/js/rulesAutosurgery.js +++ b/src/js/rulesAutosurgery.js @@ -140,7 +140,7 @@ window.rulesAutosurgery = (function() { * @param {string[]} surgeries */ function CommitSurgery(slave, thisSurgery, surgeries) { - const {his} = getPronouns(slave); + const {his, him} = getPronouns(slave); /** * Performs an individual surgery procedure @@ -430,17 +430,17 @@ window.rulesAutosurgery = (function() { if (slave.horn !== "none" && thisSurgery.horn === 1) { commitProcedure(`surgery to remove ${his} implanted horns`, s => { s.horn = "none"; }); } else if (slave.horn !== "curved succubus horns" && thisSurgery.horn === 2) { - commitProcedure(`surgery to implant ${his} with curved succubus horns`, s => { s.horn = "curved succubus horns"; s.hornColor = "white"; }); + commitProcedure(`surgery to implant ${him} with curved succubus horns`, s => { s.horn = "curved succubus horns"; s.hornColor = "white"; }); } else if (slave.horn !== "backswept horns" && thisSurgery.horn === 3) { - commitProcedure(`surgery to implant ${his} with backswept horns`, s => { s.horn = "backswept horns"; s.hornColor = "white"; }); + commitProcedure(`surgery to implant ${him} with backswept horns`, s => { s.horn = "backswept horns"; s.hornColor = "white"; }); } else if (slave.horn !== "cow horns" && thisSurgery.horn === 4) { - commitProcedure(`surgery to implant ${his} with cow horns`, s => { s.horn = "cow horns"; s.hornColor = "white"; }); + commitProcedure(`surgery to implant ${him} with cow horns`, s => { s.horn = "cow horns"; s.hornColor = "white"; }); } else if (slave.horn !== "one long oni horn" && thisSurgery.horn === 5) { - commitProcedure(`surgery to implant ${his} with one long oni horn`, s => { s.horn = "one long oni horn"; s.hornColor = "white"; }); + commitProcedure(`surgery to implant ${him} with one long oni horn`, s => { s.horn = "one long oni horn"; s.hornColor = "white"; }); } else if (slave.horn !== "two long oni horns" && thisSurgery.horn === 6) { - commitProcedure(`surgery to implant ${his} with two long oni horns`, s => { s.horn = "two long oni horns"; s.hornColor = "white"; }); + commitProcedure(`surgery to implant ${him} with two long oni horns`, s => { s.horn = "two long oni horns"; s.hornColor = "white"; }); } else if (slave.horn !== "small horns" && thisSurgery.horn === 7) { - commitProcedure(`surgery to implant ${his} with small horns`, s => { s.horn = "small horns"; s.hornColor = "white"; }); + commitProcedure(`surgery to implant ${him} with small horns`, s => { s.horn = "small horns"; s.hornColor = "white"; }); } } if (slave.health.health > 20 && surgeries.length < 3) {