Procházet zdrojové kódy

Add more food-rate based news, plus placeholders for the buildings

tags/v0.0.7
Fen Dweller před 5 roky
rodič
revize
a3c70a279d
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: E80B35A6F11C3656
1 změnil soubory, kde provedl 100 přidání a 7 odebrání
  1. +100
    -7
      constants.js

+ 100
- 7
constants.js Zobrazit soubor

@@ -1195,13 +1195,23 @@ function createNewsFoodRate() {
let counter = 0;
for (let set of newsFoodRateText) {
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) &&
state.currentProductivity.food < 5*Math.pow(10, (factor+1))
},
}
}

news.push({
condition: cond,
lines: set
});

counter += 1;
};
}
@@ -1230,14 +1240,26 @@ const newsBuildingCountCutoffs = [
const newsFoodRateText = [
[
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 => "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\""
]
]
],
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 = {


Načítá se…
Zrušit
Uložit