瀏覽代碼

Add support for more tiers of news and upgrades.

tags/v0.1.0
Fen Dweller 5 年之前
父節點
當前提交
d1acfcd7cd
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: E80B35A6F11C3656
共有 1 個文件被更改,包括 14 次插入5 次删除
  1. +14
    -5
      constants.js

+ 14
- 5
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: [


Loading…
取消
儲存