|
|
|
@@ -1287,6 +1287,7 @@ const news = [ |
|
|
|
|
|
|
|
function createNews() { |
|
|
|
createNewsFoodAmount(); |
|
|
|
createNewsStart(); |
|
|
|
createNewsFoodRate(); |
|
|
|
createNewsFoodRatePermanent(); |
|
|
|
createNewsBuildingCount(); |
|
|
|
@@ -1296,6 +1297,24 @@ function createNewsFoodAmount() { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
function createNewsStart() { |
|
|
|
let counter = 0; |
|
|
|
for (let set of newsStartText) { |
|
|
|
const factor = counter; |
|
|
|
let cond; |
|
|
|
cond = state => { |
|
|
|
return state.currentProductivity.food < 5 |
|
|
|
} |
|
|
|
|
|
|
|
news.push({ |
|
|
|
condition: cond, |
|
|
|
lines: set |
|
|
|
}); |
|
|
|
|
|
|
|
counter += 1; |
|
|
|
}; |
|
|
|
} |
|
|
|
|
|
|
|
function createNewsFoodRate() { |
|
|
|
let counter = 0; |
|
|
|
for (let set of newsFoodRateText) { |
|
|
|
@@ -1364,6 +1383,13 @@ const newsBuildingCountCutoffs = [ |
|
|
|
400, |
|
|
|
500 |
|
|
|
] |
|
|
|
|
|
|
|
const newsStartText = [ |
|
|
|
state => "This just in: Everything is fine", |
|
|
|
state => "\"Kinda hungry ngl,\" tweets " + macroDesc.name, |
|
|
|
state => "There are no giant monsters!" |
|
|
|
] |
|
|
|
|
|
|
|
const newsFoodRateText = [ |
|
|
|
[ |
|
|
|
state => "Your neighbors are complaining about the noise", |
|
|
|
|