From d3631d92c609db1d3def78c4bf1c972ec36be696 Mon Sep 17 00:00:00 2001 From: Arkerthan <arkerthan@gmail.com> Date: Sat, 22 Feb 2020 17:01:30 +0100 Subject: [PATCH] fix apartment prosperity --- src/js/economyJS.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/economyJS.js b/src/js/economyJS.js index 2feac509d9d..ac4f31c0c79 100644 --- a/src/js/economyJS.js +++ b/src/js/economyJS.js @@ -2094,9 +2094,9 @@ window.SectorCounts = function() { const apartments = V.building.findCells(cell => cell instanceof App.Arcology.Cell.Apartment); apartments.forEach(a => { - if (a.type === "Apartments") { + if (a.type === 2) { V.AProsperityCap += 10; - } else if (a.type === "Luxury Apartments") { + } else if (a.type === 1) { V.AProsperityCap += 15; } }); -- GitLab