From 56c207e1fd2fbf5b53d1158b11c6a323c68a9661 Mon Sep 17 00:00:00 2001 From: Arkerthan <arkerthan@mailbox.org> Date: Fri, 3 Mar 2023 19:12:13 +0100 Subject: [PATCH] add color to arcology building prices --- src/004-base/arcologyBuilding.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/004-base/arcologyBuilding.js b/src/004-base/arcologyBuilding.js index c8dd4bb8162..687a3f36e11 100644 --- a/src/004-base/arcologyBuilding.js +++ b/src/004-base/arcologyBuilding.js @@ -167,7 +167,7 @@ App.Arcology.Cell.BaseCell = class extends App.Entity.Serializable { } if (cell.owner === 1) { - fragment.append(`Selling this sector would relinquish a ${oneCellPercentage}% interest in ${A.name}. Such an interest is worth ${cashFormat(price(false))}.`); + App.Events.addNode(fragment, [`Selling this sector would relinquish a ${oneCellPercentage}% interest in ${A.name}. Such an interest is worth <span class='cash'>${cashFormat(price(false))}.</span>`]); if (ownedCells > 1) { const span = document.createElement("span"); @@ -182,7 +182,7 @@ App.Arcology.Cell.BaseCell = class extends App.Entity.Serializable { fragment.append(" ", span); } } else { - fragment.append(`You will have to acquire an additional ${oneCellPercentage}% interest in ${A.name} to take control of this sector. Such an interest is worth ${cashFormat(price(true))} and will require a transaction cost of ${cashFormat(10000)} to acquire for a total cost of ${cashFormat(price(true) + 10000)}.`); + App.Events.addNode(fragment, [`You will have to acquire an additional ${oneCellPercentage}% interest in ${A.name} to take control of this sector. Such an interest is worth ${cashFormatColor(price(true))} and will require a transaction cost of ${cashFormatColor(10000)} to acquire for a total cost of <span class='cash'>${cashFormat(price(true) + 10000)}.</span>`]); const availableCells = allCells.length * ((100 - A.minority) / 100) - ownedCells; if (availableCells >= 1) { const buySpan = document.createElement("span"); -- GitLab