diff --git a/src/npc/startingGirls/editFamily.js b/src/npc/startingGirls/editFamily.js index ece9a1d41a7df88c71eb29d9eb3b92e676619d06..9c31f3697d997f6b2810d17cbf800cb34b271580 100644 --- a/src/npc/startingGirls/editFamily.js +++ b/src/npc/startingGirls/editFamily.js @@ -40,9 +40,7 @@ App.Intro.editFamily = function(slave) { const div = document.createElement("div"); const linkArray = []; - div.append(`${slave.slaveName}'s mother is `); - div.append(parentName("mother")); - div.append(`. `); + div.append(`${slave.slaveName}'s mother is `, parentName("mother"), `. `); linkArray.push( App.UI.DOM.link( @@ -89,9 +87,7 @@ App.Intro.editFamily = function(slave) { const div = document.createElement("div"); const linkArray = []; - div.append(`${slave.slaveName}'s father is `); - div.append(parentName("father")); - div.append(`. `); + div.append(`${slave.slaveName}'s father is `, parentName("father"), `. `); linkArray.push( App.UI.DOM.link( @@ -141,9 +137,7 @@ App.Intro.editFamily = function(slave) { if (slave.mother === -1) { div.append(`You are ${his} mother, and also the mother of: `); } else { - div.append(`${His} mom, `); - div.append(parentName("mother")); - div.append(`, is also the mother of: `); + div.append(`${His} mom, `, parentName("mother"), `, is also the mother of: `); } div.append(App.StartingGirls.listOfSlavesWithParent('mother', slave.mother), " "); @@ -207,9 +201,7 @@ App.Intro.editFamily = function(slave) { if (slave.father === -1) { div.append(`You are ${his} father, and also the father of: `); } else { - div.append(`${His} dad, `); - div.append(parentName("father")); - div.append(`, is also the father of: `); + div.append(`${His} dad, `, parentName("father"), `, is also the father of: `); } div.append(App.StartingGirls.listOfSlavesWithParent('father', slave.father), " ");