From 436ce9ca24ea3286ce605afc7e2ecba3de1b31bb Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Sun, 21 Mar 2021 22:27:31 -0400 Subject: [PATCH] basic cheats added --- src/facilities/surgery/analyzePregnancy.js | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/src/facilities/surgery/analyzePregnancy.js b/src/facilities/surgery/analyzePregnancy.js index 022c9ebb2dd..caded0b9273 100644 --- a/src/facilities/surgery/analyzePregnancy.js +++ b/src/facilities/surgery/analyzePregnancy.js @@ -27,12 +27,22 @@ globalThis.analyzePregnancies = function(mother, cheat) { options.addOption(`Mother ID: ${genes.mother}`, "mother", genes).showTextBox(); options.addOption(`Mother Name: ${(genes.motherName) ? genes.motherName : `name not registered`}`, "motherName", genes); options.addOption(`Nationality: ${genes.nationality}`, "nationality", genes).showTextBox(); - options.addOption(`Race: ${capFirstChar(genes.race)}`, "race", genes).showTextBox(); - options.addOption(`Skin tone: ${capFirstChar(genes.skin)}`, "skin", genes).showTextBox(); + if (V.seeRace === 1) { + options.addOption(`Race: ${capFirstChar(genes.race)}`, "race", genes).showTextBox().pulldown() + .addValueList(Array.from(App.Data.misc.filterRaces, (k => [k[1], k[0]]))); + } + options.addOption(`Skin tone: ${capFirstChar(genes.skin)}`, "skin", genes).showTextBox().pulldown() + .addValueList(App.Medicine.Modification.naturalSkins); options.addOption(`Intelligence index: ${genes.intelligence} out of 100`, "intelligence", genes).showTextBox(); options.addOption(`Face index: ${genes.face} out of 100`, "face", genes).showTextBox(); - options.addOption(`Eye Color: ${capFirstChar(genes.eyeColor)}`, "eyeColor", genes).showTextBox(); - options.addOption(`Hair Color: ${capFirstChar(genes.hColor)}`, "hColor", genes).showTextBox(); + option = options.addOption(`Eye Color: ${capFirstChar(genes.eyeColor)}`, "eyeColor", genes).showTextBox().pulldown(); + for (const color of App.Medicine.Modification.eyeColor.map(color => color.value)) { + option.addValue(capFirstChar(color), color); + } + option = options.addOption(`Hair Color: ${capFirstChar(genes.hColor)}`, "hColor", genes).showTextBox().pulldown(); + for (const color of App.Medicine.Modification.Color.Primary.map(color => color.value)) { + option.addValue(capFirstChar(color), color); + } if (genes.underArmHStyle === "hairless" && genes.pubicHStyle === "hairless") { options.addOption(`Body hair: None`); -- GitLab