diff --git a/src/facilities/farmyard/farmyard.js b/src/facilities/farmyard/farmyard.js index 6f3b6d9b2530b121e8dd390d74b55f53ca7ce084..d46bdd5f4a4f55bd0bb246d387701b85bbd510e1 100644 --- a/src/facilities/farmyard/farmyard.js +++ b/src/facilities/farmyard/farmyard.js @@ -491,7 +491,11 @@ App.Facilities.Farmyard.animalHousing = function() { const removeHousing = document.createElement("div"), - removeCost = ((farmyardKennels + farmyardStables + farmyardCages) * 5000) * V.upgradeMultiplierArcology; + removeHousingCost = document.createElement("span"), + + removeHousingPrice = ((farmyardKennels + farmyardStables + farmyardCages) * 5000) * V.upgradeMultiplierArcology; + + removeHousingCost.classList.add("yellowgreen"); if (farmyardKennels || farmyardStables || farmyardCages) { removeHousing.append(document.createElement("br")); @@ -511,17 +515,16 @@ App.Facilities.Farmyard.animalHousing = function() { V.felines = []; App.Facilities.Farmyard.clearAnimalsBought(); + cashX(forceNeg(removeHousingPrice)); })); - removeHousing.append(` Will cost ${cashFormat(removeCost)}`); + removeHousingCost.append(cashFormat(removeHousingPrice)); + removeHousing.append(` Will cost `, removeHousingCost); } - frag.append(" ", kennels); - frag.append(" ", stables); - frag.append(" ", cages); - frag.append(" ", removeHousing); + frag.append(kennels, stables, cages, removeHousing); return frag; }; diff --git a/src/facilities/farmyard/farmyard.tw b/src/facilities/farmyard/farmyard.tw index 8bc80e3a035d4194de7e0df858a6f678d529a281..e29de32b121107bc9a53492cdfbd4d2a1c5a31ab 100644 --- a/src/facilities/farmyard/farmyard.tw +++ b/src/facilities/farmyard/farmyard.tw @@ -190,12 +190,13 @@ </span> <span id="rules"> -<br><br> +<br> <<includeDOM App.Facilities.Farmyard.rules()>> -<br><br> +<br> </span> <span id="upgrades"> +<br> <<includeDOM App.Facilities.Farmyard.upgrades()>> <br> </span>