diff --git a/src/npc/startingGirls/editFamily.js b/src/npc/startingGirls/editFamily.js index 063a683a1713d1ac42abcc94bb5489b19165b877..74908a704302c4ababcb9b5f6910656c7a3a96c1 100644 --- a/src/npc/startingGirls/editFamily.js +++ b/src/npc/startingGirls/editFamily.js @@ -7,10 +7,11 @@ App.Intro.editFamily = function(slave) { const editFamily = makeElWithID("edit-family"); const familyTable = makeElWithID("family-table"); + familyTable.append(summary()); familyTable.append(makeElWithID("dont-be-dumb")); familyTable.append(mother()); - familyTable.append(father()); familyTable.append(sameMotherAs()); + familyTable.append(father()); familyTable.append(sameFatherAs()); familyTable.append(motherOfTheChildren()); familyTable.append(fatherOfTheChildren()); @@ -21,17 +22,19 @@ App.Intro.editFamily = function(slave) { editFamily.append(makeElWithID("family-tree")); el.append(editFamily); - const familySummary = makeElWithID("familySummary"); - $(familySummary).append(App.Desc.family(slave)); - el.append(familySummary); - return el; + function summary() { + const familySummary = makeElWithID("familySummary", "p"); + $(familySummary).append(App.Desc.family(slave)); + return familySummary; + } + function mother() { const div = document.createElement("div"); const linkArray = []; - div.append("Mother: "); + div.append(`${slave.slaveName}'s mother: `); const nameEl = makeElWithID("motherName", "span"); nameEl.append(parentName("mother"), " "); @@ -82,7 +85,7 @@ App.Intro.editFamily = function(slave) { const div = document.createElement("div"); const linkArray = []; - div.append("Father: "); + div.append(`${slave.slaveName}'s father: `); const nameEl = makeElWithID("fatherName", "span"); nameEl.append(parentName("father"), " "); @@ -258,7 +261,7 @@ App.Intro.editFamily = function(slave) { const div = document.createElement("div"); const linkArray = []; - div.append("Mother of the children: "); + div.append(`${slave.slaveName} is the mother of these children: `); const nameEl = makeElWithID("motheredNames", "span"); nameEl.append(App.StartingGirls.listOfSlavesWithParent("mother", slave.ID), " "); @@ -325,7 +328,7 @@ App.Intro.editFamily = function(slave) { const div = document.createElement("div"); const linkArray = []; - div.append("Father of the children: "); + div.append(`${slave.slaveName} is the father of these children: `); const nameEl = makeElWithID("fatheredNames", "span"); nameEl.append(App.StartingGirls.listOfSlavesWithParent("father", slave.ID), " ");