|
|
@@ -1207,9 +1207,26 @@ function createNewsFoodRate() { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function createNewsBuildingCount() { |
|
|
function createNewsBuildingCount() { |
|
|
|
|
|
Object.entries(newsBuildingCountText).forEach(([key, sets]) => { |
|
|
|
|
|
for (let [i, set] of sets.entries()) { |
|
|
|
|
|
const conditions = []; |
|
|
|
|
|
|
|
|
|
|
|
conditions.push(state => state.belongings[key].count >= newsBuildingCountCutoffs[i]); |
|
|
|
|
|
|
|
|
|
|
|
news.push({ |
|
|
|
|
|
condition: state => conditions.every(cond => cond(state)), |
|
|
|
|
|
lines: set |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const newsBuildingCountCutoffs = [ |
|
|
|
|
|
1, |
|
|
|
|
|
25, |
|
|
|
|
|
50, |
|
|
|
|
|
100 |
|
|
|
|
|
] |
|
|
const newsFoodRateText = [ |
|
|
const newsFoodRateText = [ |
|
|
[ |
|
|
[ |
|
|
state => "Your neighbors are complaining about the noise", |
|
|
state => "Your neighbors are complaining about the noise", |
|
|
@@ -1224,6 +1241,32 @@ const newsFoodRateText = [ |
|
|
] |
|
|
] |
|
|
] |
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
const newsBuildingCountText = { |
|
|
|
|
|
micro: [ |
|
|
|
|
|
[ |
|
|
|
|
|
state => "Micro-only diet: fad or fact? Our experts weigh in." |
|
|
|
|
|
], |
|
|
|
|
|
[ |
|
|
|
|
|
state => "\"I don't have a problem,\" says macro eating " + showBuilding("micro") + " per second", |
|
|
|
|
|
state => "\"Isn't it weird how macros eat so many micros?\" asked confused citizen. \"Like, doesn't that mean they're double micros?\"" |
|
|
|
|
|
], |
|
|
|
|
|
[ |
|
|
|
|
|
state => "Local macro celebrated for cleaning up the \"unending tide\" of micros" |
|
|
|
|
|
], |
|
|
|
|
|
[ |
|
|
|
|
|
state => "That's a lot of micros." |
|
|
|
|
|
] |
|
|
|
|
|
], |
|
|
|
|
|
anthro: [ |
|
|
|
|
|
[ |
|
|
|
|
|
state => "\"Nobody liked those guys anyway\" - few people concerned about " + macroDesc.name + "'s newly-acquired taste for people" |
|
|
|
|
|
], |
|
|
|
|
|
[ |
|
|
|
|
|
state => "#FeedThe" + capitalize(macroDesc.species) + " is trending on Twitter." |
|
|
|
|
|
] |
|
|
|
|
|
], |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
const powerups = { |
|
|
const powerups = { |
|
|
"instant-food": { |
|
|
"instant-food": { |
|
|
name: "Free Food", |
|
|
name: "Free Food", |
|
|
|