diff --git a/src/endWeek/reports/childrenReport.js b/src/endWeek/reports/childrenReport.js index 713909ead219a7d5f61f761ad322a0590ffffb15..c2a8ff53cc5de9a08da673ef85abb81aa35f79a5 100644 --- a/src/endWeek/reports/childrenReport.js +++ b/src/endWeek/reports/childrenReport.js @@ -288,31 +288,38 @@ App.Facilities.Nursery.childrenReport = function childrenReport() { for (const target of V.cribs) { const + div = document.createElement("div"), + { his } = getPronouns(target), chance = jsRandom(1, 100); let - r = [], - friend = 0, rival = 0; if (target.actualAge >= 3) { if (target.fetish === child.fetish) { - r.push(`${target.slaveName} and ${child.slaveName} ${target.fetish}s, a fact over which they bond.`); + // TODO: redo this + div.append(`${target.slaveName} and ${child.slaveName} ${target.fetish}s, a fact over which they bond.`); + friend++; } if (target.sexualQuirk === child.sexualQuirk || target.behavioralQuirk === child.behavioralQuirk) { - r.push(`Since ${child.slaveName} and ${target.slaveName} both ${target.sexualQuirk === child.sexualQuirk ? target.sexualQuirk : target.behavioralQuirk}, they learn to get along a bit better.`); + div.append(`Since ${child.slaveName} and ${target.slaveName} both ${target.sexualQuirk === child.sexualQuirk ? + target.sexualQuirk : + target.behavioralQuirk}, they learn to get along a bit better.`); + friend++; } if (target.fetish === "sadist" || target.fetish === "dom") { - r.push(`${target.slaveName} is a ${target.fetish}, and ${child.slaveName} is often ${his} target, which ${child.slaveName} doesn't particularly like.`); + div.append(`${target.slaveName} is a ${target.fetish}, and ${child.slaveName} is often ${his} target, which ${child.slaveName} doesn't particularly like.`); + rival++; } else if (child.fetish === "sadist" || child.fetish === "dom") { - r.push(`${child.slaveName} is a ${child.fetish}, and ${target.slaveName} is often ${his} target, which ${target.slaveName} doesn't particularly like.`); + div.append(`${child.slaveName} is a ${child.fetish}, and ${target.slaveName} is often ${his} target, which ${target.slaveName} doesn't particularly like.`); + rival++; } @@ -320,7 +327,8 @@ App.Facilities.Nursery.childrenReport = function childrenReport() { if (rival) { if (friend > rival && child.relationshipTarget !== target.ID) { if (chance > 75) { - r.push(becomeFriends()); + div.append(becomeFriends()); + child.relationship = 1; child.relationshipTarget = target.ID; @@ -330,7 +338,8 @@ App.Facilities.Nursery.childrenReport = function childrenReport() { } } else { if (chance > 60) { - r.push(becomeRivals()); + div.append(becomeRivals()); + child.relationship = 1; child.relationshipTarget = target.ID; @@ -344,12 +353,12 @@ App.Facilities.Nursery.childrenReport = function childrenReport() { if (friend) { if (rival > friend) { if (chance > 75) { - r.push(becomeRivals()); + div.append(becomeRivals()); } } } else { if (chance > 60) { - r.push(becomeFriends()); + div.append(becomeFriends()); } } }