Bläddra i källkod

Add digested counter + random victim count

mass-vore
Fen Dweller 6 år sedan
förälder
incheckning
2dc1fe03c4
1 ändrade filer med 14 tillägg och 3 borttagningar
  1. +14
    -3
      stories/mass-vore.js

+ 14
- 3
stories/mass-vore.js Visa fil

@@ -8,8 +8,12 @@
if (count === undefined) {
count = state.player.stats.stomach.value / 200;
}

count = Math.floor(count);

state.player.stats.stomach.value -= count;
state.player.stats.gas.value += count;
state.player.stats.digested.value += count;
state.player.stats.gas.value += count * 3;
}

sfxGroups = {
@@ -82,6 +86,12 @@
max: 10000,
color: "rgb(255,10,150)"
}
state.player.stats.digested = {
name: "Digested",
type: "counter",
value: 0,
color: "rgb(255,10,150)"
}

startTimer({
id: "belch",
@@ -142,8 +152,9 @@
name: "Eat",
desc: "Munch!",
execute: (room, state) => {
print(["Munch!"]);
devour(state, 500);
const victims = Math.floor((0.5 + Math.random()) * 500);
print(["You scoop up " + victims + " people and swallow them down."]);
devour(state, victims);
}
}
],


Laddar…
Avbryt
Spara