Pārlūkot izejas kodu

Add population counter

mass-vore
Fen Dweller pirms 6 gadiem
vecāks
revīzija
340a2097f5
1 mainītis faili ar 12 papildinājumiem un 0 dzēšanām
  1. +12
    -0
      stories/mass-vore.js

+ 12
- 0
stories/mass-vore.js Parādīt failu

@@ -4,6 +4,7 @@
function devour(state, count) {
state.player.stats.stomach.value += count;
state.player.stats.eaten.value += count;
state.info.population.value -= count;
playRandomSfx("swallow");
}

@@ -129,6 +130,17 @@
]
}, 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 => {
print(["Munch time"]);


Notiek ielāde…
Atcelt
Saglabāt