diff --git a/src/facilities/nursery/widgets/infants/InfantState.js b/src/facilities/nursery/widgets/infants/InfantState.js index a15b44a7fda3770e9065df38f1fdf95c20c1c06d..14d320f74301413ac5c8c4608fa360454f4b03d2 100644 --- a/src/facilities/nursery/widgets/infants/InfantState.js +++ b/src/facilities/nursery/widgets/infants/InfantState.js @@ -23,6 +23,10 @@ App.Facilities.Nursery.InfantState = class InfantState { this.birthWeek = jsRandom(0, 51); /** How old she really is. */ this.actualAge = 18; + /** How old her body looks. */ + this.visualAge = 18; + /** How old her body is. */ + this.physicalAge = 18; /** child's race */ this.race = "white"; /** @@ -33,8 +37,11 @@ App.Facilities.Nursery.InfantState = class InfantState { * * "heavily freckled" */ this.markings = "none"; - /** eye color */ - this.eyeColor = "brown"; + /** + * The infant's eyes + * @type App.Entity.EyeState + */ + this.eye = new App.Entity.EyeState(); /** hair color */ this.hColor = "brown"; /** pubic hair color */ diff --git a/src/facilities/nursery/widgets/utils/nurseryUtils.js b/src/facilities/nursery/widgets/utils/nurseryUtils.js index 00aa06fd24fd1ec2f7637519d385daadaaa4436c..7e6c6c7c2071bbffec86b0d2701b07f1bc6fd030 100644 --- a/src/facilities/nursery/widgets/utils/nurseryUtils.js +++ b/src/facilities/nursery/widgets/utils/nurseryUtils.js @@ -123,7 +123,8 @@ App.Facilities.Nursery.infantToChild = function infantToChild(child) { child.choosesOwnClothes = 0; child.clit = jsRandom(0, 2); child.clitPiercing = 0; - child.clone = 0; + child.clone = child.clone || 0; + child.cloneID = child.cloneID || 0; child.clothes = "no clothing"; child.collar = "none"; child.corsetPiercing = 0; @@ -188,26 +189,6 @@ App.Facilities.Nursery.infantToChild = function infantToChild(child) { NCS: 0, rapidCellGrowth: 0 }; - child.geneticQuirks = { - albinism: 0, - androgyny: 0, - dwarfism: 0, - fertility: 0, - gigantism: 0, - gigantomastia: 0, - heterochromia: 0, - hyperFertility: 0, - mGain: 0, - mLoss: 0, - macromastia: 0, - pFace: 0, - rearLipedema: 0, - superfetation: 0, - uFace: 0, - wGain: 0, - wLoss: 0, - wellHung: 0 - }; child.genetics = {}; child.hLength = jsRandom(30, 70); child.hStyle = "long"; diff --git a/src/js/generateChild.js b/src/js/generateChild.js index 7f1727c7f7602ab702dac4ecd05a12080e84ce47..b0e7e8cbd624d9f9ec8b11437f3de2de8e79d8e0 100644 --- a/src/js/generateChild.js +++ b/src/js/generateChild.js @@ -46,6 +46,10 @@ globalThis.generateChild = function (mother, ovum, incubator=false) { child.eyebrowHColor = child.hColor; child.birthWeek = 0; child.actualAge = 0; + if (genes.clone !== undefined) { + child.clone = genes.clone; + child.cloneID = genes.cloneID; + } if (genes.faceShape !== undefined) { child.faceShape = genes.faceShape; }