diff --git a/src/js/rulesAssistantOptions.js b/src/js/rulesAssistantOptions.js index 14d39fadb0c8273c77f520100ce1b0fbc5b31f37..1836ecf4adc0c993293ed2647e2e9a821f3f4f38 100644 --- a/src/js/rulesAssistantOptions.js +++ b/src/js/rulesAssistantOptions.js @@ -277,6 +277,16 @@ App.RA.options = (function() { } } + + class NoteElement extends Element { + /** + * @param {string} note + */ + constructor(note) { + super(App.UI.DOM.makeElement("div", note, ["note", "noteworthy","grid-all-columns"])); + } + } + class ElementWithLabel extends Element { /** * @param {string} label @@ -1724,6 +1734,7 @@ App.RA.options = (function() { class AutosurgeryTab extends Tab { constructor() { super(); + this.appendChild(new NoteElement("ONLY applies to slaves in the penthouse! ONLY applied at the end of the week!")); this.appendChild(new VoiceSurgeryList()); this.appendChild(new VisionSurgeryList()); this.appendChild(new HeelsSurgeryList()); @@ -4040,7 +4051,7 @@ App.RA.options = (function() { ["apply vasectomy", true], ["undo vasectomy", false], ]; - super("Apply or undo vasectomy for slaves with testicles", items, true); + super("Vasectomy for slaves with testicles", items, true); this.setValue(current_rule.set.surgery.vasectomy); this.onchange = (value) => current_rule.set.surgery.vasectomy = value; } diff --git a/src/js/rulesAutosurgery.js b/src/js/rulesAutosurgery.js index 3cc8745f9d14c503e4d3d794ccd88f92a7847d22..5845c4b8be7ff543aac5610222a6be2d6137e469 100644 --- a/src/js/rulesAutosurgery.js +++ b/src/js/rulesAutosurgery.js @@ -27,9 +27,8 @@ globalThis.rulesAutosurgery = (function() { */ function autoSurgerySelector(ruleset) { const surgery = App.RA.newRule.surgery(); - const sourceRecord = {}; //Completely unessesary but (as far as I know) you can't use the function without it. ruleset.forEach(rule => { - App.RA.ruleDeepAssign(surgery, rule.surgery, sourceRecord, ":)"); //:) is here for the same reason as sourceRecord. + return App.RA.ruleDeepAssign(surgery, rule.surgery, {}, ""); }); return surgery; }