Explorar el Código

Add eaten counter

mass-vore
Fen Dweller hace 6 años
padre
commit
6d592ddded
Se han modificado 1 ficheros con 7 adiciones y 2 borrados
  1. +7
    -2
      stories/mass-vore.js

+ 7
- 2
stories/mass-vore.js Ver fichero

@@ -1,6 +1,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;
playRandomSfx("swallow"); playRandomSfx("swallow");
} }


@@ -88,11 +89,15 @@
max: 10000, max: 10000,
color: "rgb(255,10,150)" color: "rgb(255,10,150)"
} }
state.player.stats.eaten = {
name: "Eaten",
type: "counter",
value: 0
}
state.player.stats.digested = { state.player.stats.digested = {
name: "Digested", name: "Digested",
type: "counter", type: "counter",
value: 0,
color: "rgb(255,10,150)"
value: 0
} }


startTimer({ startTimer({


Cargando…
Cancelar
Guardar