Skip to content
Snippets Groups Projects
Commit de231925 authored by lowercasedonkey's avatar lowercasedonkey
Browse files

set skin when origSkin is set

parent 1f71fe4c
No related branches found
No related tags found
No related merge requests found
......@@ -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"))) {
......
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