From acd20ef26648718ec2cf2fc797b4c3ed336eaf2e Mon Sep 17 00:00:00 2001 From: DCoded <dcoded@live.com> Date: Thu, 23 Jul 2020 23:25:39 -0400 Subject: [PATCH] Rearranging --- .../nursery/reports/childrenReport.js | 226 +++++++++--------- 1 file changed, 113 insertions(+), 113 deletions(-) diff --git a/src/facilities/nursery/reports/childrenReport.js b/src/facilities/nursery/reports/childrenReport.js index d034fd0aa3a..03dd0caccf0 100644 --- a/src/facilities/nursery/reports/childrenReport.js +++ b/src/facilities/nursery/reports/childrenReport.js @@ -44,119 +44,6 @@ App.Facilities.Nursery.childrenReport = function childrenReport() { - // MARK: Miscellaneous Functions - - function newChildFetish(fetish = "none") { - switch (fetish) { - case "submissive": - return `is now a submissive`; - case "cumslut": - return `is now a cumslut`; - case "humiliation": - return `now has a fetish for humiliation`; - case "buttslut": - return `is now a buttslut`; - case "boobs": - return `now has a fetish for all things breast-related`; - case "sadist": - return `now gets off on causing pain`; - case "masochist": - return `now gets off on pain`; - case "dom": - return `is now very sexually dominant`; - case "pregnancy": - return `has developed a facination for all things pregnancy-related`; - default: - throw `<span class="red">Something broke in newChildFetish(). Please report this.</span>`; - } - } - - function childGrowTime(child) { - const { He } = getPronouns(child); - - if (child.growTime > 0) { - return `<span class="pink">${child.slaveName}</span> is growing steadily. ${He} will be ready for release in about ${years(child.growTime)}.`; - } else { - return `<span class="pink">${child.slaveName}</span> is <span class="lime">ready for release.</span> ${He} will be removed from ${V.nurseryName} upon your approach.`; - } - } - - // TODO: add relation checks - function childFriendshipRivalries() { - for (const target of V.cribs) { // alias for second child - const - chance = jsRandom(1, 100); - - let - r = [], - - friend = 0, - rival = 0; - - if (target.actualAge >= 3) { - if (target.fetish === child.fetish) { - r.push(``); // TODO: - friend++; - } - - if (target.sexualQuirk === child.sexualQuirk || target.behavioralQuirk === child.behavioralQuirk) { - r.push(``); // TODO: - friend++; - } - - if (target.fetish === "sadist" || target.fetish === "dom") { - r.push(``); // TODO: - rival++; - } else if (child.fetish === "sadist" || child.fetish === "dom") { - r.push(``); // TODO: - rival++; - } - - if (friend) { - if (rival) { - if (friend > rival) { - if (chance > 75) { - r.push(``); // TODO: - child.relationship = 1; - child.relationshipTarget = target.ID; - - target.relationship = 1; - target.relationshipTarget = child.ID; - } - } - } else { - if (chance > 60) { - r.push(``); // TODO: - child.relationship = 1; - child.relationshipTarget = target.ID; - - target.relationship = 1; - target.relationshipTarget = child.ID; - } - } - } - - if (rival) { - if (friend) { - if (rival > friend) { - if (chance > 75) { - r.push(``); // TODO: - } - } - } else { - if (chance > 60) { - r.push(``); // TODO: - } - } - } - } - } - - return r.join(' '); - } - - - // MARK: Matron Effects function matronFetishEffects() { @@ -354,5 +241,118 @@ App.Facilities.Nursery.childrenReport = function childrenReport() { return r.join(' '); } + + + // MARK: Miscellaneous Functions + + function newChildFetish(fetish = "none") { + switch (fetish) { + case "submissive": + return `is now a submissive`; + case "cumslut": + return `is now a cumslut`; + case "humiliation": + return `now has a fetish for humiliation`; + case "buttslut": + return `is now a buttslut`; + case "boobs": + return `now has a fetish for all things breast-related`; + case "sadist": + return `now gets off on causing pain`; + case "masochist": + return `now gets off on pain`; + case "dom": + return `is now very sexually dominant`; + case "pregnancy": + return `has developed a facination for all things pregnancy-related`; + default: + throw `<span class="red">Something broke in newChildFetish(). Please report this.</span>`; + } + } + + function childGrowTime(child) { + const { He } = getPronouns(child); + + if (child.growTime > 0) { + return `<span class="pink">${child.slaveName}</span> is growing steadily. ${He} will be ready for release in about ${years(child.growTime)}.`; + } else { + return `<span class="pink">${child.slaveName}</span> is <span class="lime">ready for release.</span> ${He} will be removed from ${V.nurseryName} upon your approach.`; + } + } + + // TODO: add relation checks + function childFriendshipRivalries() { + for (const target of V.cribs) { // alias for second child + const + chance = jsRandom(1, 100); + + let + r = [], + + friend = 0, + rival = 0; + + if (target.actualAge >= 3) { + if (target.fetish === child.fetish) { + r.push(``); // TODO: + friend++; + } + + if (target.sexualQuirk === child.sexualQuirk || target.behavioralQuirk === child.behavioralQuirk) { + r.push(``); // TODO: + friend++; + } + + if (target.fetish === "sadist" || target.fetish === "dom") { + r.push(``); // TODO: + rival++; + } else if (child.fetish === "sadist" || child.fetish === "dom") { + r.push(``); // TODO: + rival++; + } + + if (friend) { + if (rival) { + if (friend > rival) { + if (chance > 75) { + r.push(``); // TODO: + child.relationship = 1; + child.relationshipTarget = target.ID; + + target.relationship = 1; + target.relationshipTarget = child.ID; + } + } + } else { + if (chance > 60) { + r.push(``); // TODO: + child.relationship = 1; + child.relationshipTarget = target.ID; + + target.relationship = 1; + target.relationshipTarget = child.ID; + } + } + } + + if (rival) { + if (friend) { + if (rival > friend) { + if (chance > 75) { + r.push(``); // TODO: + } + } + } else { + if (chance > 60) { + r.push(``); // TODO: + } + } + } + } + } + + return r.join(' '); + } + return r.join(' '); }; -- GitLab