diff --git a/src/facilities/salon/salonPassage.js b/src/facilities/salon/salonPassage.js index a30348b65dab29333b9358132c7921cdae4f839f..d619a2c29d093d95c5c27157a60bfa3013a81337 100644 --- a/src/facilities/salon/salonPassage.js +++ b/src/facilities/salon/salonPassage.js @@ -276,6 +276,7 @@ App.UI.salon = function(slave, cheat = false) { function skin() { const el = new DocumentFragment(); let r; + let option; App.UI.DOM.appendNewElement("h3", el, "Skin"); const options = new App.UI.OptionsGroup(); let comment = []; @@ -283,11 +284,11 @@ App.UI.salon = function(slave, cheat = false) { if (cheat) { option = options.addOption(`${His} natural skin color is`, "origSkin", slave).showTextBox().pulldown(); for (const skin of App.Medicine.Modification.naturalSkins) { - option.addValue(capFirstChar(skin), skin); + option.addValue(capFirstChar(skin), skin, () => slave.skin = slave.origSkin); } } - let option = options.addOption(`${His} skin is ${slave.skin}.`, "skin", slave); + option = options.addOption(`${His} skin is ${slave.skin}.`, "skin", slave); if (App.Medicine.Modification.dyedSkins.includes(slave.skin)) { option.addValue("Remove coloring", slave.origSkin, billMod); } else if (((slave.skin === "sun tanned") || (slave.skin === "spray tanned"))) {