diff --git a/src/npc/startingGirls/editFamily.js b/src/npc/startingGirls/editFamily.js index a5532fc317a65e7cd83f279254ddc368f3f89a30..063a683a1713d1ac42abcc94bb5489b19165b877 100644 --- a/src/npc/startingGirls/editFamily.js +++ b/src/npc/startingGirls/editFamily.js @@ -1,8 +1,8 @@ App.Intro.editFamily = function(slave) { const el = new DocumentFragment(); const _allowPCFamily = (V.freshPC === 1 || V.saveImported === 0); - const canBeMom = (s) => (s.vagina > 0 && ((s.mother !== slave.mother) || (slave.mother === 0))); - const canBeDad = (s) => (s.dick > 0 && ((s.father !== slave.father) || (slave.father === 0))); + const canBeMom = (s) => ((s.mother !== slave.mother) || (slave.mother === 0)); + const canBeDad = (s) => ((s.father !== slave.father) || (slave.father === 0)); const editFamily = makeElWithID("edit-family"); @@ -47,7 +47,7 @@ App.Intro.editFamily = function(slave) { ) ); - if (canBeMom(V.PC) && ((V.PC.actualAge - slave.actualAge) >= V.fertilityAge) && _allowPCFamily) { + if (V.PC.vagina > 0 && canBeMom(V.PC) && ((V.PC.actualAge - slave.actualAge) >= V.fertilityAge) && _allowPCFamily) { linkArray.push( App.UI.DOM.link( "You", @@ -60,7 +60,7 @@ App.Intro.editFamily = function(slave) { } for (const potentialRel of V.slaves) { - if (canBeMom(potentialRel) && ((potentialRel.actualAge - slave.actualAge) >= potentialRel.pubertyAgeXX) && potentialRel.newGamePlus === 0) { + if (potentialRel.vagina > 0 && canBeMom(potentialRel) && ((potentialRel.actualAge - slave.actualAge) >= potentialRel.pubertyAgeXX) && potentialRel.newGamePlus === 0) { linkArray.push( App.UI.DOM.link( potentialRel.slaveName, @@ -98,7 +98,7 @@ App.Intro.editFamily = function(slave) { ) ); - if (canBeDad(V.PC) && ((V.PC.actualAge - slave.actualAge) >= V.potencyAge) && _allowPCFamily) { + if (V.PC.dick > 0 && canBeDad(V.PC) && ((V.PC.actualAge - slave.actualAge) >= V.potencyAge) && _allowPCFamily) { linkArray.push( App.UI.DOM.link( "You", @@ -111,7 +111,7 @@ App.Intro.editFamily = function(slave) { } for (const potentialRel of V.slaves) { - if (canBeDad(potentialRel) && ((potentialRel.actualAge - slave.actualAge) >= potentialRel.pubertyAgeXY) && potentialRel.newGamePlus === 0) { + if (potentialRel.dick > 0 && canBeDad(potentialRel) && ((potentialRel.actualAge - slave.actualAge) >= potentialRel.pubertyAgeXY) && potentialRel.newGamePlus === 0) { linkArray.push( App.UI.DOM.link( potentialRel.slaveName, @@ -223,9 +223,9 @@ App.Intro.editFamily = function(slave) { ) ); } -debugger; + for (const potentialRel of V.slaves) { - if (canBeDad(potentialRel) && ((potentialRel.actualAge - slave.actualAge) >= potentialRel.pubertyAgeXY) && potentialRel.newGamePlus === 0) { + if (canBeDad(potentialRel) && potentialRel.newGamePlus === 0) { linkArray.push( App.UI.DOM.link( potentialRel.slaveName,