From 330343e5ca66acaec43ef0fa59b276077330a807 Mon Sep 17 00:00:00 2001 From: Vasileios Pasialiokis <whiterocket@outlook.com> Date: Sun, 1 Jul 2018 17:23:03 +0300 Subject: [PATCH] add belly implant in RAO --- src/js/rulesAssistant.tw | 1 + src/js/rulesAssistantOptions.tw | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/src/js/rulesAssistant.tw b/src/js/rulesAssistant.tw index 90e368fc2ce..3e0d87f0bdf 100644 --- a/src/js/rulesAssistant.tw +++ b/src/js/rulesAssistant.tw @@ -280,6 +280,7 @@ window.emptyDefaultRule = function emptyDefaultRule() { surgery_hair: "no default setting", surgery_bodyhair: "no default setting", surgery_vasectomy: "no default setting", + surgery_bellyImplant: "no default setting", underArmHColor: "no default setting", underArmHStyle: "no default setting", drug: "no default setting", diff --git a/src/js/rulesAssistantOptions.tw b/src/js/rulesAssistantOptions.tw index 6f2b561882f..4be83f954de 100644 --- a/src/js/rulesAssistantOptions.tw +++ b/src/js/rulesAssistantOptions.tw @@ -1029,6 +1029,7 @@ window.rulesAssistantOptions = (function() { this.appendChild(new TighteningSurgeryList()); this.appendChild(new BodyHairSurgeryList()); this.appendChild(new HairSurgeryList()); + this.appendChild(new BellyImplantList()); } } @@ -3073,6 +3074,19 @@ window.rulesAssistantOptions = (function() { this.onchange = (value) => current_rule.set.setAssignment = value; } } + + class BellyImplantList extends List { + constructor() { + const items = [ + ["no default setting"], + ["install", "install"], + ["remove", "remove"], + ]; + super("Belly implant", items); + this.setValue(current_rule.set.surgery_bellyImplant); + this.onchange = (value) => current_rule.set.surgery_bellyImplant = value; + } + } return rulesAssistantOptions; })(); -- GitLab