Browse Source

Add support for more tiers of news and upgrades.

tags/v0.1.0
Fen Dweller 5 years ago
parent
commit
d1acfcd7cd
No known key found for this signature in database GPG Key ID: E80B35A6F11C3656
1 changed files with 14 additions and 5 deletions
  1. +14
    -5
      constants.js

+ 14
- 5
constants.js View File

@@ -320,7 +320,7 @@ function createTemplateUpgrades() {
deepFreeze(news); deepFreeze(news);
} }


const prodUpgradeCounts = [1, 25, 50, 75, 100];
const prodUpgradeCounts = [1, 25, 50, 100, 150];
const prodUpgradeColors = range.colors(5); const prodUpgradeColors = range.colors(5);


function createProdUpgrades() { function createProdUpgrades() {
@@ -458,7 +458,10 @@ function createHelperUpgrades() {
upgrades[key] = { upgrades[key] = {
"name": text.name, "name": text.name,
"desc": text.desc, "desc": text.desc,
"icon": "fa-hand-holding",
"icon": [
{ icon: "fa-hand-holding", color: "black" },
{ icon: buildings[helper].icon, color: "red" }
],
"cost": { "cost": {
"food": buildings[helper].cost.food * 25 * counter + buildings[helped].cost.food * 50 * counter "food": buildings[helper].cost.food * 25 * counter + buildings[helped].cost.food * 50 * counter
}, },
@@ -1197,8 +1200,6 @@ const news = [
return true; return true;
}, },
lines: [ lines: [
state => "This is news.",
state => "This is also news.",
state => "SPORTS!" state => "SPORTS!"
] ]
} }
@@ -1258,7 +1259,12 @@ const newsBuildingCountCutoffs = [
1, 1,
25, 25,
50, 50,
100
100,
150,
200,
300,
400,
500
] ]
const newsFoodRateText = [ const newsFoodRateText = [
[ [
@@ -1308,6 +1314,9 @@ const newsBuildingCountText = {
], ],
[ [
state => "#FeedThe" + capitalize(macroDesc.species) + " is trending on Twitter." 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: [ car: [


Loading…
Cancel
Save