| @@ -1195,13 +1195,23 @@ function createNewsFoodRate() { | |||||
| let counter = 0; | let counter = 0; | ||||
| for (let set of newsFoodRateText) { | for (let set of newsFoodRateText) { | ||||
| const factor = counter; | const factor = counter; | ||||
| news.push({ | |||||
| condition: state => { | |||||
| let cond; | |||||
| if (counter + 1 == newsFoodRateText.length) { | |||||
| cond = state => { | |||||
| return state.currentProductivity.food >= 5*Math.pow(10, factor) | |||||
| } | |||||
| } else { | |||||
| cond = state => { | |||||
| return state.currentProductivity.food >= 5*Math.pow(10, factor) && | return state.currentProductivity.food >= 5*Math.pow(10, factor) && | ||||
| state.currentProductivity.food < 5*Math.pow(10, (factor+1)) | state.currentProductivity.food < 5*Math.pow(10, (factor+1)) | ||||
| }, | |||||
| } | |||||
| } | |||||
| news.push({ | |||||
| condition: cond, | |||||
| lines: set | lines: set | ||||
| }); | }); | ||||
| counter += 1; | counter += 1; | ||||
| }; | }; | ||||
| } | } | ||||
| @@ -1230,14 +1240,26 @@ const newsBuildingCountCutoffs = [ | |||||
| const newsFoodRateText = [ | const newsFoodRateText = [ | ||||
| [ | [ | ||||
| state => "Your neighbors are complaining about the noise", | state => "Your neighbors are complaining about the noise", | ||||
| state => "You are a very hungry caterpillar" | |||||
| state => "You are a very hungry caterpillar", | |||||
| state => "You're hungry enough to eat an entire burger" | |||||
| ], | ], | ||||
| [ | [ | ||||
| state => "You ate your neighbors", | state => "You ate your neighbors", | ||||
| state => "Your former neighbors' neighbors are complaining about the noise" | |||||
| state => "Your former neighbors' neighbors are complaining about the noise", | |||||
| state => "You're hungry enough ot eat a whole turkey", | |||||
| ], | ], | ||||
| [ | [ | ||||
| state => "You no longer have any neighbors" | |||||
| state => "You no longer have any neighbors", | |||||
| state => "You're hungry enough to eat a whole person" | |||||
| ], | |||||
| [ | |||||
| state => "You're hungry eonugh to eat a whole bunch of people" | |||||
| ], | |||||
| [ | |||||
| state => "You're hungry enough to eat a LOT of people" | |||||
| ], | |||||
| [ | |||||
| state => "You're very hungry" | |||||
| ] | ] | ||||
| ] | ] | ||||
| @@ -1282,7 +1304,78 @@ const newsBuildingCountText = { | |||||
| [ | [ | ||||
| state => "\"Full House\" eclipsed by new sitcom, \"Full Of House\"" | state => "\"Full House\" eclipsed by new sitcom, \"Full Of House\"" | ||||
| ] | ] | ||||
| ] | |||||
| ], | |||||
| apartment: [ | |||||
| [ | |||||
| state => "Construction is booming thanks to the macro's thooming" | |||||
| ] | |||||
| ], | |||||
| block: [ | |||||
| [ | |||||
| state => "BLOCK PARTY! WOOO!" | |||||
| ] | |||||
| ], | |||||
| town: [ | |||||
| [ | |||||
| state => "Yes, we get it. " + macroDesc.name + " is going to town. Good one." | |||||
| ] | |||||
| ], | |||||
| city: [ | |||||
| [ | |||||
| state => "Public opinion remains indifferent about consumption of whole cities - \"downtown was kind of ugly; someone had to take intiative,\" claims local citizen." | |||||
| ] | |||||
| ], | |||||
| metro: [ | |||||
| [ | |||||
| state => "What is a metro? Why did " + macroDesc.name + " start eating them? Our experts weigh in." | |||||
| ] | |||||
| ], | |||||
| county: [ | |||||
| [ | |||||
| state => "\"Obviously,\" says an unfazed governor, \"we didn't really need that many counties. No need to worry." | |||||
| ] | |||||
| ], | |||||
| state: [ | |||||
| [ | |||||
| state => "State munch" | |||||
| ] | |||||
| ], | |||||
| country: [ | |||||
| [ | |||||
| state => "Country munch" | |||||
| ] | |||||
| ], | |||||
| continent: [ | |||||
| [ | |||||
| state => "Continent munch" | |||||
| ] | |||||
| ], | |||||
| planet: [ | |||||
| [ | |||||
| state => "Planet munch" | |||||
| ] | |||||
| ], | |||||
| "solar-system": [ | |||||
| [ | |||||
| state => "Solar system munch" | |||||
| ] | |||||
| ], | |||||
| galaxy: [ | |||||
| [ | |||||
| state => "Galaxy munch" | |||||
| ] | |||||
| ], | |||||
| universe: [ | |||||
| [ | |||||
| state => "Universe munch" | |||||
| ] | |||||
| ], | |||||
| multiverse: [ | |||||
| [ | |||||
| state => "Multiverse munch" | |||||
| ] | |||||
| ], | |||||
| } | } | ||||
| const powerups = { | const powerups = { | ||||