From d1acfcd7cdedb137b79a72399de86813c80f9625 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Sat, 28 Dec 2019 12:19:47 -0600 Subject: [PATCH] Add support for more tiers of news and upgrades. --- constants.js | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/constants.js b/constants.js index 87cf717..b0f8314 100644 --- a/constants.js +++ b/constants.js @@ -320,7 +320,7 @@ function createTemplateUpgrades() { deepFreeze(news); } -const prodUpgradeCounts = [1, 25, 50, 75, 100]; +const prodUpgradeCounts = [1, 25, 50, 100, 150]; const prodUpgradeColors = range.colors(5); function createProdUpgrades() { @@ -458,7 +458,10 @@ function createHelperUpgrades() { upgrades[key] = { "name": text.name, "desc": text.desc, - "icon": "fa-hand-holding", + "icon": [ + { icon: "fa-hand-holding", color: "black" }, + { icon: buildings[helper].icon, color: "red" } + ], "cost": { "food": buildings[helper].cost.food * 25 * counter + buildings[helped].cost.food * 50 * counter }, @@ -1197,8 +1200,6 @@ const news = [ return true; }, lines: [ - state => "This is news.", - state => "This is also news.", state => "SPORTS!" ] } @@ -1258,7 +1259,12 @@ const newsBuildingCountCutoffs = [ 1, 25, 50, - 100 + 100, + 150, + 200, + 300, + 400, + 500 ] const newsFoodRateText = [ [ @@ -1308,6 +1314,9 @@ const newsBuildingCountText = { ], [ state => "#FeedThe" + capitalize(macroDesc.species) + " is trending on Twitter." + ], + [ + state => "\"average person eats 3 people a year\" factoid actualy just statistical error. average person eats 0 people per year. Peoples " + macroDesc.name + ", who lives on planet & eats over " + 8640 * belongings.anthro.count + " each day, is an outlier adn should not have been counted" ] ], car: [