Skip to content
Snippets Groups Projects
Commit 87431041 authored by lowercasedonkey's avatar lowercasedonkey
Browse files

clarify a name

parent 8f0a61ac
No related branches found
No related tags found
No related merge requests found
App.Intro.editFamily = function(slave) { App.Intro.editFamily = function(slave) {
const el = new DocumentFragment(); const el = new DocumentFragment();
const _allowPCFamily = (V.freshPC === 1 || V.saveImported === 0); const _allowPCFamily = (V.freshPC === 1 || V.saveImported === 0);
const canBeMom = (s) => ((s.mother !== slave.mother) || (slave.mother === 0));
const canBeDad = (s) => ((s.father !== slave.father) || (slave.father === 0)); // Checks to make sure a slave is not the active slave's parent.
const isNotMom = (s) => ((s.mother !== slave.mother) || (slave.mother === 0));
const isNotDad = (s) => ((s.father !== slave.father) || (slave.father === 0));
const editFamily = makeElWithID("edit-family"); const editFamily = makeElWithID("edit-family");
...@@ -50,7 +52,7 @@ App.Intro.editFamily = function(slave) { ...@@ -50,7 +52,7 @@ App.Intro.editFamily = function(slave) {
) )
); );
if (V.PC.vagina > 0 && canBeMom(V.PC) && ((V.PC.actualAge - slave.actualAge) >= V.fertilityAge) && _allowPCFamily) { if (V.PC.vagina > 0 && isNotMom(V.PC) && ((V.PC.actualAge - slave.actualAge) >= V.fertilityAge) && _allowPCFamily) {
linkArray.push( linkArray.push(
App.UI.DOM.link( App.UI.DOM.link(
"You", "You",
...@@ -63,7 +65,7 @@ App.Intro.editFamily = function(slave) { ...@@ -63,7 +65,7 @@ App.Intro.editFamily = function(slave) {
} }
for (const potentialRel of V.slaves) { for (const potentialRel of V.slaves) {
if (potentialRel.vagina > 0 && canBeMom(potentialRel) && ((potentialRel.actualAge - slave.actualAge) >= potentialRel.pubertyAgeXX) && potentialRel.newGamePlus === 0) { if (potentialRel.vagina > 0 && isNotMom(potentialRel) && ((potentialRel.actualAge - slave.actualAge) >= potentialRel.pubertyAgeXX) && potentialRel.newGamePlus === 0) {
linkArray.push( linkArray.push(
App.UI.DOM.link( App.UI.DOM.link(
potentialRel.slaveName, potentialRel.slaveName,
...@@ -101,7 +103,7 @@ App.Intro.editFamily = function(slave) { ...@@ -101,7 +103,7 @@ App.Intro.editFamily = function(slave) {
) )
); );
if (V.PC.dick > 0 && canBeDad(V.PC) && ((V.PC.actualAge - slave.actualAge) >= V.potencyAge) && _allowPCFamily) { if (V.PC.dick > 0 && isNotDad(V.PC) && ((V.PC.actualAge - slave.actualAge) >= V.potencyAge) && _allowPCFamily) {
linkArray.push( linkArray.push(
App.UI.DOM.link( App.UI.DOM.link(
"You", "You",
...@@ -114,7 +116,7 @@ App.Intro.editFamily = function(slave) { ...@@ -114,7 +116,7 @@ App.Intro.editFamily = function(slave) {
} }
for (const potentialRel of V.slaves) { for (const potentialRel of V.slaves) {
if (potentialRel.dick > 0 && canBeDad(potentialRel) && ((potentialRel.actualAge - slave.actualAge) >= potentialRel.pubertyAgeXY) && potentialRel.newGamePlus === 0) { if (potentialRel.dick > 0 && isNotDad(potentialRel) && ((potentialRel.actualAge - slave.actualAge) >= potentialRel.pubertyAgeXY) && potentialRel.newGamePlus === 0) {
linkArray.push( linkArray.push(
App.UI.DOM.link( App.UI.DOM.link(
potentialRel.slaveName, potentialRel.slaveName,
...@@ -281,7 +283,7 @@ App.Intro.editFamily = function(slave) { ...@@ -281,7 +283,7 @@ App.Intro.editFamily = function(slave) {
); );
if (slave.vagina >= 0) { if (slave.vagina >= 0) {
if (canBeMom(V.PC) && (slave.actualAge - V.PC.actualAge) >= V.fertilityAge && _allowPCFamily) { if (isNotMom(V.PC) && (slave.actualAge - V.PC.actualAge) >= V.fertilityAge && _allowPCFamily) {
linkArray.push( linkArray.push(
App.UI.DOM.link( App.UI.DOM.link(
"You", "You",
...@@ -294,7 +296,7 @@ App.Intro.editFamily = function(slave) { ...@@ -294,7 +296,7 @@ App.Intro.editFamily = function(slave) {
} }
for (const potentialRel of V.slaves) { for (const potentialRel of V.slaves) {
if (canBeMom(potentialRel) && ((potentialRel.actualAge - slave.actualAge) >= potentialRel.pubertyAgeXX) && potentialRel.newGamePlus === 0) { if (isNotMom(potentialRel) && ((potentialRel.actualAge - slave.actualAge) >= potentialRel.pubertyAgeXX) && potentialRel.newGamePlus === 0) {
linkArray.push( linkArray.push(
App.UI.DOM.link( App.UI.DOM.link(
potentialRel.slaveName, potentialRel.slaveName,
...@@ -355,7 +357,7 @@ App.Intro.editFamily = function(slave) { ...@@ -355,7 +357,7 @@ App.Intro.editFamily = function(slave) {
); );
if (slave.dick > 0) { if (slave.dick > 0) {
if (canBeDad(V.PC) && (slave.actualAge - V.PC.actualAge) >= V.potencyAge && _allowPCFamily) { if (isNotDad(V.PC) && (slave.actualAge - V.PC.actualAge) >= V.potencyAge && _allowPCFamily) {
linkArray.push( linkArray.push(
App.UI.DOM.link( App.UI.DOM.link(
"You", "You",
...@@ -368,7 +370,7 @@ App.Intro.editFamily = function(slave) { ...@@ -368,7 +370,7 @@ App.Intro.editFamily = function(slave) {
} }
for (const potentialRel of V.slaves) { for (const potentialRel of V.slaves) {
if (canBeDad(potentialRel) && ((potentialRel.actualAge - slave.actualAge) >= potentialRel.pubertyAgeXX) && potentialRel.newGamePlus === 0) { if (isNotDad(potentialRel) && ((potentialRel.actualAge - slave.actualAge) >= potentialRel.pubertyAgeXX) && potentialRel.newGamePlus === 0) {
linkArray.push( linkArray.push(
App.UI.DOM.link( App.UI.DOM.link(
potentialRel.slaveName, potentialRel.slaveName,
......
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