ソースを参照

Add support for more tiers of news and upgrades.

tags/v0.1.0
Fen Dweller 5年前
コミット
d1acfcd7cd
この署名に対応する既知のキーがデータベースに存在しません GPGキー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: [


読み込み中…
キャンセル
保存