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