diff --git a/src/cheats/cheatEditSlave.js b/src/cheats/cheatEditSlave.js index 7e02c092bd675b52558c4205ae34449a8518d702..ba996646df7e4f0f9e868099ff87a35bb3b2fb2d 100644 --- a/src/cheats/cheatEditSlave.js +++ b/src/cheats/cheatEditSlave.js @@ -45,11 +45,11 @@ App.UI.SlaveInteract.cheatEditSlave = function(slave) { App.UI.tabBar.tabButton('finalize', tabCaptions.finalize), ); - el.append(App.UI.tabBar.makeTab('profile', makeSpanIded("content-profile", App.StartingGirls.profile(slave)))); - el.append(App.UI.tabBar.makeTab('physical', makeSpanIded("content-physical", App.StartingGirls.physical(slave)))); - el.append(App.UI.tabBar.makeTab('mental', makeSpanIded("content-mental", App.StartingGirls.mental(slave)))); - el.append(App.UI.tabBar.makeTab('skills', makeSpanIded("content-skills", App.StartingGirls.skills(slave)))); - el.append(App.UI.tabBar.makeTab('family', makeSpanIded("content-family", App.Intro.editFamily(slave)))); + el.append(App.UI.tabBar.makeTab('profile', makeSpanIded("content-profile", App.StartingGirls.profile(slave, true)))); + el.append(App.UI.tabBar.makeTab('physical', makeSpanIded("content-physical", App.StartingGirls.physical(slave, true)))); + el.append(App.UI.tabBar.makeTab('mental', makeSpanIded("content-mental", App.StartingGirls.mental(slave, true)))); + el.append(App.UI.tabBar.makeTab('skills', makeSpanIded("content-skills", App.StartingGirls.skills(slave, true)))); + el.append(App.UI.tabBar.makeTab('family', makeSpanIded("content-family", App.Intro.editFamily(slave, true)))); el.append(App.UI.tabBar.makeTab('body-mods', makeSpanIded("content-body-mods", App.UI.bodyModification(slave, true)))); el.append(App.UI.tabBar.makeTab('salon', makeSpanIded("content-salon", App.UI.salon(slave, true)))); el.append(App.UI.tabBar.makeTab('finalize', makeSpanIded("content-finalize", finalize()))); diff --git a/src/npc/startingGirls/startingGirls.js b/src/npc/startingGirls/startingGirls.js index b5b72936050afb2210d024184b77f366763953f7..da1f71da9d13de2e237c729ec4edf32e78e98ac8 100644 --- a/src/npc/startingGirls/startingGirls.js +++ b/src/npc/startingGirls/startingGirls.js @@ -284,6 +284,9 @@ App.StartingGirls.uncommittedFamilyTree = function(slave) { renderFamilyTree(tSlaves, slave.ID); }; +/** + * @param {App.Entity.SlaveState} slave + */ App.StartingGirls.applyPlayerOrigin = function(slave) { switch (V.PC.career) { case "wealth": @@ -670,7 +673,12 @@ App.StartingGirls.addSet = function(option, set) { }); }; -App.StartingGirls.physical = function(slave) { +/** + * @param {App.Entity.SlaveState} slave + * @param {boolean} cheat + * @returns {HTMLDivElement} + */ +App.StartingGirls.physical = function(slave, cheat = false) { const el = new DocumentFragment(); const {he} = getPronouns(slave); const options = new App.UI.OptionsGroup(); @@ -1086,7 +1094,12 @@ App.StartingGirls.physical = function(slave) { return el; }; -App.StartingGirls.profile = function(slave) { +/** + * @param {App.Entity.SlaveState} slave + * @param {boolean} cheat + * @returns {HTMLDivElement} + */ +App.StartingGirls.profile = function(slave, cheat = false) { const el = new DocumentFragment(); let options = new App.UI.OptionsGroup(); let option; @@ -1168,6 +1181,10 @@ App.StartingGirls.profile = function(slave) { options.addOption("Birth week", "birthWeek", slave).showTextBox(); + if (cheat) { + options.addOption("Owned since week", "weekAcquired", slave).showTextBox(); + } + options.addOption("Genes", "genes", slave) .addValue("XX (Female)", "XX", () => { slave.dick = 0; @@ -1260,7 +1277,12 @@ App.StartingGirls.profile = function(slave) { return el; }; -App.StartingGirls.mental = function(slave) { +/** + * @param {App.Entity.SlaveState} slave + * @param {boolean} cheat + * @returns {HTMLDivElement} + */ +App.StartingGirls.mental = function(slave, cheat = false) { const el = new DocumentFragment(); const options = new App.UI.OptionsGroup(); let option; @@ -1376,9 +1398,10 @@ App.StartingGirls.mental = function(slave) { /** * @param {App.Entity.SlaveState}slave + * @param {boolean} cheat * @returns {HTMLDivElement} */ -App.StartingGirls.skills = function(slave) { +App.StartingGirls.skills = function(slave, cheat = false) { const options = new App.UI.OptionsGroup(); App.StartingGirls.addSet(