Skip to content
Snippets Groups Projects
Commit c6aecf8a authored by Pregmodder's avatar Pregmodder
Browse files

Merge branch 'RS-genetic-info' into 'pregmod-master'

Rs genetic info

See merge request !11791
parents d521cfa0 573b1f20
No related branches found
No related tags found
1 merge request!11791Rs genetic info
Pipeline #77575 passed
...@@ -18,6 +18,11 @@ App.UI.surgeryPassageExotic = function(slave, refresh, cheat = false) { ...@@ -18,6 +18,11 @@ App.UI.surgeryPassageExotic = function(slave, refresh, cheat = false) {
his, him his, him
} = getPronouns(slave); } = getPronouns(slave);
if (V.geneticMappingUpgrade > 0) {
App.UI.DOM.appendNewElement("h3", frag, "Genetic Testing:");
frag.append(geneTesting());
}
frag.append(race()); frag.append(race());
if (V.geneticMappingUpgrade > 1) { if (V.geneticMappingUpgrade > 1) {
App.UI.DOM.appendNewElement("h3", frag, `Retro-virus treatments:`); App.UI.DOM.appendNewElement("h3", frag, `Retro-virus treatments:`);
...@@ -29,6 +34,54 @@ App.UI.surgeryPassageExotic = function(slave, refresh, cheat = false) { ...@@ -29,6 +34,54 @@ App.UI.surgeryPassageExotic = function(slave, refresh, cheat = false) {
frag.append(bodySwap()); frag.append(bodySwap());
return frag; return frag;
function geneTesting() {
const el = new DocumentFragment();
const slaveGeneTest = App.UI.DOM.appendNewElement("ul", el);
App.UI.DOM.appendNewElement("li", slaveGeneTest, `Sex: ${slave.genes}`);
App.UI.DOM.appendNewElement("li", slaveGeneTest, `Age: ${slave.actualAge} years old`);
App.UI.DOM.appendNewElement("li", slaveGeneTest, `Father: ${slave.father ? getParent(slave.father) : `father unknown`}; ID: ${slave.father}`);
App.UI.DOM.appendNewElement("li", slaveGeneTest, `Mother: ${slave.mother ? getParent(slave.mother) : `mother unknown`}; ID: ${slave.mother}`);
App.UI.DOM.appendNewElement("li", slaveGeneTest, `Nationality: ${slave.nationality}`);
// App.UI.DOM.appendNewElement("li", slaveGeneTest, `Race: ${capFirstChar(slave.origRace)}`); this is already present lower down in race()
App.UI.DOM.appendNewElement("li", slaveGeneTest, `Skin tone: ${capFirstChar(slave.origSkin)}`);
App.UI.DOM.appendNewElement("li", slaveGeneTest, `Intelligence index: ${slave.intelligence} out of 100`);
App.UI.DOM.appendNewElement("li", slaveGeneTest, `Face index: ${slave.face} out of 100`);
App.UI.DOM.appendNewElement("li", slaveGeneTest, `Expected height: ${heightToEitherUnit(slave.natural.height)}`);
App.UI.DOM.appendNewElement("li", slaveGeneTest, `Expected breast size: ${slave.natural.boobs}cc`);
App.UI.DOM.appendNewElement("li", slaveGeneTest, `Eye color: ${capFirstChar(slave.eye.origColor)}`);
App.UI.DOM.appendNewElement("li", slaveGeneTest, `Hair color: ${capFirstChar(slave.origHColor)}`);
function getParent(id) {
if (id > 0) {
return `${slaveStateById(id).slaveName} ${slaveStateById(id).slaveSurname ? ` ${slaveStateById(id).slaveSurname}` : ''} (${slaveStateById(id).birthName} ${slaveStateById(id).birthSurname ? ` ${slaveStateById(id).birthSurname}` : ''})`;
}
if (id === -1) {
return `${V.PC.birthName} ${V.PC.birthSurname ? ` ${V.PC.birthSurname}` : ''}`;
}
switch (id) {
case -2:
return "Citizen";
case -3:
return "Former Master";
case -4:
return "Another arcology owner";
case -5:
return "Client";
case -6:
return "The Societal Elite";
case -7:
return "Lab designed";
case -9:
return "A Futanari Sister";
case -10:
return "A rapist";
default:
return "Unknown";
}
}
return el;
}
function race() { function race() {
const el = new DocumentFragment(); const el = new DocumentFragment();
......
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