Skip to content
Snippets Groups Projects
Commit ad6983b7 authored by brickode's avatar brickode
Browse files

Minor childrenReport cleanup

parent 5e05e9c9
Branches
Tags
No related merge requests found
...@@ -394,24 +394,6 @@ ...@@ -394,24 +394,6 @@
<br> <br>
<<includeDOM App.Facilities.Nursery.childList()>> <<includeDOM App.Facilities.Nursery.childList()>>
/*
FIXME: not sure if this works
<<set $newSlavePool = []>>
<<for _nur = 0; _nur < $cribs.length; _nur++>>
<<if $cribs[_nur].growTime <= 0>>
<<set $nurseryOldID = $cribs[_nur].ID>> /* single slave case *//*
<<set _tempObject = {object: $cribs[_nur], ID: $cribs[_nur].ID}>>
<<set $newSlavePool.push(clone(_tempObject))>>
<<run $cribs.splice(_nur, 1)>>
<<set _nur-->>
<</if>>
<</for>>
<<if $newSlavePool.length == 1>>
<<set $readySlave = $newSlavePool[0].object>>
<<set $newSlavePool = 0>>
<</if>>
*/
</div> </div>
</div> </div>
......
...@@ -13,31 +13,9 @@ App.Facilities.Nursery.childrenReport = function childrenReport() { ...@@ -13,31 +13,9 @@ App.Facilities.Nursery.childrenReport = function childrenReport() {
let let
r = ``; r = ``;
for (let i = 0; i < CL; i++) { for (const child of V.cribs) {
const const
child = V.cribs[i]; { he, his, He, His } = getPronouns(child);
// {
// he, him, his, He, His
// } = getPronouns(child);
let
he,
his,
him,
He,
His;
// FIXME: get pronoun system to work with child objects
if (child.genes === "XX") {
he = "she",
him = "her",
his = "her";
} else {
he = "he",
him = "him",
his = "his";
}
He = capFirstChar(he), His = capFirstChar(his);
if (child.growTime > 0) { if (child.growTime > 0) {
r += `<br><span class="pink">${child.slaveName}</span> is growing steadily. ${He} will be ready for release in about ${years(child.growTime)}. `; r += `<br><span class="pink">${child.slaveName}</span> is growing steadily. ${He} will be ready for release in about ${years(child.growTime)}. `;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment