diff --git a/src/facilities/surgery/analyzePregnancy.js b/src/facilities/surgery/analyzePregnancy.js index 022c9ebb2dddbe52551cc501e4549204db76cb4b..caded0b92739ebce5162ae008047404a8c592f44 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`);