Skip to content
Snippets Groups Projects
Commit 31d3f402 authored by svornost's avatar svornost
Browse files

Don't age nursery cribs in two different places; let endWeek handle it.

parent a9b10b60
No related branches found
No related tags found
1 merge request!6824Don't age nursery cribs in two different places
...@@ -17700,17 +17700,7 @@ App.Facilities.Nursery.childrenReport = function childrenReport() { ...@@ -17700,17 +17700,7 @@ App.Facilities.Nursery.childrenReport = function childrenReport() {
} }
He = capFirstChar(he), His = capFirstChar(his); He = capFirstChar(he), His = capFirstChar(his);
   
child.birthWeek++;
if (child.birthWeek >= 52) {
child.birthWeek = 0;
if (V.seeAge) {
child.actualAge++, child.ovaryAge++;
}
}
if (child.growTime > 0) { if (child.growTime > 0) {
child.growTime--;
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)}. `;
} else { } else {
r += `<span class="pink">${child.slaveName}</span> is <span class="lime">ready for release.</span> ${He} will be removed from ${V.nurseryName} upon your approach.`; r += `<span class="pink">${child.slaveName}</span> is <span class="lime">ready for release.</span> ${He} will be removed from ${V.nurseryName} upon your approach.`;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment