Procházet zdrojové kódy

Add population counter

mass-vore
Fen Dweller před 6 roky
rodič
revize
340a2097f5
1 změnil soubory, kde provedl 12 přidání a 0 odebrání
  1. +12
    -0
      stories/mass-vore.js

+ 12
- 0
stories/mass-vore.js Zobrazit soubor

@@ -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"]);


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