diff --git a/src/facilities/incubator/incubatorInteract.js b/src/facilities/incubator/incubatorInteract.js index c4ff6c7e019107c67048b28a177ba2e0b40c1614..08751e5d5226dc118d3029abf596ee5fed3797bd 100644 --- a/src/facilities/incubator/incubatorInteract.js +++ b/src/facilities/incubator/incubatorInteract.js @@ -510,23 +510,23 @@ App.UI.incubator = function() { const _WL = V.PC.womb.length; const _reservedIncubator = WombReserveCount(V.PC, "incubator"); const _reservedNursery = WombReserveCount(V.PC, "nursery"); - r.push(App.UI.DOM.makeElement("span", `You're ${V.PC.pregWeek} ${(V.PC.pregWeek === 1) ? `week`:`weeks`} pregnant`, ["pink", "bold"])); + r.push(App.UI.DOM.makeElement("span", `You're ${V.PC.pregWeek} ${(V.PC.pregWeek === 1) ? `week`: `weeks`} pregnant`, ["pink", "bold"])); if (_WL === 1) { r.push(`with a baby`); } else { r.push(`with ${pregNumberName(_WL, 2)}`); } - + if (reservedChildren < freeTanks) { if (freeTanks === 1) { - r.push(`and have an <span class="lime">available aging tank.</span>`); - } else { - r.push(`and have <span class="lime">${freeTanks - reservedChildren} available aging tanks.</span>`); - } + r.push(`and have an <span class="lime">available aging tank.</span>`); + } else { + r.push(`and have <span class="lime">${freeTanks - reservedChildren} available aging tanks.</span>`); + } } else if (reservedChildren >= freeTanks) { r.push(`and <span class='red'>ran out of room for your offspring.</span>`); } - + if (V.pregnancyMonitoringUpgrade === 1) { r.push( App.UI.DOM.link( @@ -537,10 +537,10 @@ App.UI.incubator = function() { ) ); } - + App.Events.addNode(el, r, "div"); r = []; - + let choices = document.createElement("div"); choices.classList.add("choices"); if (_reservedIncubator > 0) { @@ -586,7 +586,7 @@ App.UI.incubator = function() { } ) ); - + const availableChildren = reservedChildren + _WL - _reservedIncubator; if (_WL > 1 && (availableChildren <= freeTanks)) { linkArray.push( @@ -603,9 +603,9 @@ App.UI.incubator = function() { choices.append(App.UI.DOM.generateLinksStrip(linkArray)); el.append(choices); } - + App.Events.addNode(el, r, "div"); - + choices = document.createElement("div"); choices.classList.add("choices"); linkArray = []; @@ -631,7 +631,7 @@ App.UI.incubator = function() { ) ); } - + choices.append(App.UI.DOM.generateLinksStrip(linkArray)); el.append(choices);