diff --git a/src/facilities/incubator/incubatorInteract.js b/src/facilities/incubator/incubatorInteract.js index 80388dfc7f26873a779a26d49dfbe3fa3a323b7e..c77f3e482e823acb272406a376547d5317e786ee 100644 --- a/src/facilities/incubator/incubatorInteract.js +++ b/src/facilities/incubator/incubatorInteract.js @@ -1060,7 +1060,7 @@ App.UI.incubator = function() { } else { r.push(`male`); } - r.push(`of ${V.tanks[i].race} descent with ${App.Desc.eyesColor(V.tanks[i])}, ${V.tanks[i].hColor} hair and ${V.tanks[i].skin} skin. Given ${his} parentage, ${he} is considered V.tanks[i].nationality.`); + r.push(`of ${V.tanks[i].race} descent with ${App.Desc.eyesColor(V.tanks[i])}, ${V.tanks[i].hColor} hair and ${V.tanks[i].skin} skin. Given ${his} parentage, ${he} is considered ${V.tanks[i].nationality}.`); } else { r.push(`${He} appears to be `); if (V.tanks[i].genes === "XX") { @@ -1191,30 +1191,31 @@ App.UI.incubator = function() { const _weekDisplay = Math.round(V.tanks[i].growTime / V.incubatorUpgradeSpeed); appendRow(p, `${His} growth is currently being accelerated. ${He} will be ready for release in about ${_weekDisplay} ${(_weekDisplay > 1) ? `weeks` : `week`}.`); } - r = []; + if (V.tanks[i].tankBaby !== 3) { + r = []; r.push(`The tank is imprinting ${him} with basic life and sexual skills, though ${he} will still be very naïve and inexperienced on release.`); if (V.tanks[i].tankBaby === 2) { r.push(`The majority of ${his} indoctrination involves painting the world as a terrible place where only horror awaits ${him} should ${he} not obey ${his} owner.`); } else { r.push(`The majority of ${his} indoctrination involves painting the world as a wonderful place only if ${he} is unconditionally devoted to, and absolutely trusting of, ${his} owner.`); } + App.Events.addNode(p, r, "div"); } else { - r.push(`The tank keeps ${him} a braindead husk on a complete life-support.`); + appendRow(p, `The tank keeps ${him} a braindead husk on a complete life-support.`); } - App.Events.addNode(el, r, "div"); + if (V.incubatorUpgradeWeight === 1) { if (V.incubatorWeightSetting === 1) { - r.push(`${His} weight is not being properly managed, saving costs but likely causing excessive weight gain.`); + appendRow(p, `${His} weight is not being properly managed, saving costs but likely causing excessive weight gain.`); } else if (V.incubatorWeightSetting === 2) { - r.push(`${His} weight is being carefully managed; ${he} will be released at a healthy weight.`); + appendRow(p, `${His} weight is being carefully managed; ${he} will be released at a healthy weight.`); } else if (V.incubatorWeightSetting === 0) { - r.push(`Weight management systems are offline; ${he} will likely be malnourished.`); + appendRow(p, `Weight management systems are offline; ${he} will likely be malnourished.`); } } if (V.incubatorUpgradeMuscles === 1) { - // <br> if (V.incubatorMusclesSetting === 2) { appendRow(p, `${His} strength levels are purposefully set higher than recommended; ${he} is likely to have excessive musculature.`); } else if (V.incubatorMusclesSetting === 1) { @@ -1257,6 +1258,7 @@ App.UI.incubator = function() { App.Events.addNode(p, r, "div"); } } + r = []; r.push(`Rename ${him}: `); r.push( App.UI.DOM.makeTextBox( @@ -1288,6 +1290,7 @@ App.UI.incubator = function() { p.append(row); } if ((V.incubatorUpgradeOrgans === 1) && (V.tanks[i].tankBaby !== 3)) { + r = []; r.push(`You can extract a sample and prepare a new organ for ${him} to be implanted once ${he} exits ${his} tank.`); V.tankOrgans = { // Global to survive refresh. Can be improved ovaries: 0, @@ -1297,7 +1300,7 @@ App.UI.incubator = function() { leftEye: 0, voiceBox: 0 }; - for (let _i = 0; _i < V.incubatorOrgans.length;) { + for (let _i = 0; _i < V.incubatorOrgans.length; _i++) { if (V.tanks[i].ID === V.incubatorOrgans[_i].ID) { if (V.incubatorOrgans[_i].type === "ovaries") { V.tankOrgans.ovaries = 1; @@ -1325,7 +1328,7 @@ App.UI.incubator = function() { } else { r.push(`Being a natural boy, ${he} possesses a functional penis and balls. You can:`); } - App.UI.DOM.appendNewElement("div", el, r.join(" ")); + App.Events.addNode(p, r, "div"); r = []; if (V.tanks[i].ovaries === 0) { @@ -1386,7 +1389,7 @@ App.UI.incubator = function() { r.push(App.UI.DOM.makeElement("span", `A right eye is already prepared.`, `detail`)); } } - App.Events.addNode(p, r, "div"); + App.UI.DOM.appendNewElement("div", p, App.UI.DOM.generateLinksStrip(r)); if (V.tanks[i].voice === 0) { r = []; r.push(`${He} appears to be mute: `); @@ -1398,6 +1401,7 @@ App.UI.incubator = function() { App.Events.addNode(p, r, "div"); } } + el.append(p); } }