Skip to content
Snippets Groups Projects
Commit d72d81c5 authored by oniAnon's avatar oniAnon
Browse files

Updated rulesAutosurgery.js

Moved the operations from commit 4886 from DefaultRules to RulesAutoSurgery.
parent 4a5091f1
No related branches found
No related tags found
No related merge requests found
...@@ -435,6 +435,46 @@ window.rulesAutosurgery = (function() { ...@@ -435,6 +435,46 @@ window.rulesAutosurgery = (function() {
V.surgeryType = "bellyOut"; V.surgeryType = "bellyOut";
} }
} }
if(slave.health > 20 && surgeries.length < 3) {
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"; });
}
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"; });
}
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"; });
}
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"; });
}
else if (slave.horn !== "two long oni horns" && thisSurgery.horn === 6) {
commitProcedure(`surgery to implant ${his} with`, 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`, s => { s.horn = "small horns"; s.hornColor = "white"; });
}
}
if(slave.health > 20 && surgeries.length < 3) {
if (slave.earShape !== "normal" && thisSurgery.earShape === 1) {
commitProcedure(`surgery to restore ${his} modified ears`, s => { s.earShape = "normal"; });
}
else if (slave.earShape !== "pointy" && thisSurgery.earShape === 2) {
commitProcedure(`surgery to modify ${his} ears into a pair of small pointy ears`, s => { s.earShape = "pointy"; });
}
else if (slave.earShape !== "elven" && thisSurgery.earShape === 3) {
commitProcedure(`surgery to modify ${his} ears into a pair of elven ears`, s => { s.earShape = "elven"; });
}
else if (slave.earShape !== "ushi" && thisSurgery.earShape === 4) {
commitProcedure(`surgery to modify ${his} ears into a pair of bovine-like ears`, s => { s.earShape = "ushi"; });
}
}
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment