| @@ -4,6 +4,7 @@ | |||||
| function devour(state, count) { | function devour(state, count) { | ||||
| state.player.stats.stomach.value += count; | state.player.stats.stomach.value += count; | ||||
| state.player.stats.eaten.value += count; | state.player.stats.eaten.value += count; | ||||
| state.info.population.value -= count; | |||||
| playRandomSfx("swallow"); | playRandomSfx("swallow"); | ||||
| } | } | ||||
| @@ -129,6 +130,17 @@ | |||||
| ] | ] | ||||
| }, state); | }, state); | ||||
| state.info.population = { | |||||
| id: "population", | |||||
| name: "Population", | |||||
| type: "counter", | |||||
| min: 0, | |||||
| max: 5000000, | |||||
| value: 5000000, | |||||
| get render() {return this.value}, | |||||
| color: "rgb(255,255,255)" | |||||
| }; | |||||
| }, | }, | ||||
| intro: state => { | intro: state => { | ||||
| print(["Munch time"]); | print(["Munch time"]); | ||||