|
|
|
@@ -4,7 +4,9 @@ |
|
|
|
function devour(state, count) { |
|
|
|
state.player.stats.stomach.value += count; |
|
|
|
state.player.stats.eaten.value += count; |
|
|
|
state.info.population.value -= count; |
|
|
|
|
|
|
|
state.world[state.player.location].data.stats.population.value -= count; |
|
|
|
|
|
|
|
playRandomSfx("swallow"); |
|
|
|
} |
|
|
|
|
|
|
|
@@ -137,7 +139,9 @@ |
|
|
|
type: "counter", |
|
|
|
min: 0, |
|
|
|
max: 5000000, |
|
|
|
value: 5000000, |
|
|
|
get value() { |
|
|
|
return state.world.city.data.stats.population.value; |
|
|
|
}, |
|
|
|
get render() {return this.value}, |
|
|
|
color: "rgb(255,255,255)" |
|
|
|
}; |
|
|
|
@@ -149,7 +153,7 @@ |
|
|
|
world: { |
|
|
|
"city": { |
|
|
|
id: "city", |
|
|
|
name: "City", |
|
|
|
name: "Downtown", |
|
|
|
desc: "A city, full of tasty prey", |
|
|
|
move: (room, state) => { |
|
|
|
|
|
|
|
@@ -187,7 +191,7 @@ |
|
|
|
}, |
|
|
|
data: { |
|
|
|
stats: { |
|
|
|
|
|
|
|
population: {name: "Population", min: 0, max: 1000000, value: 1000000, type: "meter", color: "rgb(255,255,255)"} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|