Quellcode durchsuchen

Add population counter

mass-vore
Fen Dweller vor 6 Jahren
Ursprung
Commit
340a2097f5
1 geänderte Dateien mit 12 neuen und 0 gelöschten Zeilen
  1. +12
    -0
      stories/mass-vore.js

+ 12
- 0
stories/mass-vore.js Datei anzeigen

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


Laden…
Abbrechen
Speichern