diff --git a/src/js/DefaultRules.js b/src/js/DefaultRules.js index 66e5dc6609919d8d108c48918c7c58c10d9d8d63..03d24df789bdae9be49ef48e99aa51119a907151 100644 --- a/src/js/DefaultRules.js +++ b/src/js/DefaultRules.js @@ -2140,10 +2140,23 @@ window.DefaultRules = (function() { } } + if (rule.markings !== undefined && (rule.markings !== "no default setting")) { + if (slave.markings == "beauty mark" && (rule.markings == "remove beauty marks" || rule.markings == "remove both")) { + r += `<br>${slave.slaveName}'s beauty mark has been removed.`; + } + if (slave.markings == "birthmark" && (rule.markings == "remove birthmarks" || rule.markings == "remove both")) { + r += `<br>${slave.slaveName}'s birthmark has been bleached away.`; + } + slave.markings = "none"; + cashX(forceNeg(V.modCost), "slaveMod", slave); + } + if (rule.skinColor !== undefined && rule.skinColor !== "no default setting" && rule.skinColor !== slave.skin) { slave.skin = rule.skinColor; r += `<br>${slave.slaveName}'s skin color has been set to ${rule.skinColor}.`; } + + } function ProcessPiercings(slave, rule) { diff --git a/src/js/rulesAssistant.js b/src/js/rulesAssistant.js index 71186a3b55707ef6876b8d5a764ae28d43279e3a..4d5ea25dc89c9050cc7d8c989fba105ba48f5475 100644 --- a/src/js/rulesAssistant.js +++ b/src/js/rulesAssistant.js @@ -236,6 +236,7 @@ window.emptyDefaultRule = function emptyDefaultRule() { eyebrowHColor: "no default setting", eyebrowHStyle: "no default setting", eyebrowFullness: "no default setting", + markings: "no default setting", pubicHColor: "no default setting", pubicHStyle: "no default setting", nipplesPiercing: "no default setting", diff --git a/src/js/rulesAssistantOptions.js b/src/js/rulesAssistantOptions.js index 8009942fcfbdc36d704301077f5c23a3b67560bf..786b37d15cbdf6a91f7e959ab765496a08286ca0 100644 --- a/src/js/rulesAssistantOptions.js +++ b/src/js/rulesAssistantOptions.js @@ -1008,6 +1008,7 @@ window.rulesAssistantOptions = (function() { this.appendChild(new ArmpitHairColorList()); this.appendChild(new ArmpitHairStyleList()); this.appendChild(new SkinColorList()); + this.appendChild(new MarkingsList()); } } @@ -2446,6 +2447,20 @@ window.rulesAssistantOptions = (function() { } } + class MarkingsList extends List { + constructor() { + const pairs = [ + ["no default setting"], + ["remove beauty marks"], + ["remove birthmarks"], + ["remove both"] + ]; + super("Facial markings", pairs); + this.setValue(current_rule.set.markings); + this.onchange = (value) => current_rule.set.markings = value; + } + } + class PubicHairColorList extends List { constructor() { const pairs = [