From 2dc1fe03c47c0eded8f53f14199471215908f131 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Wed, 7 Aug 2019 16:51:25 -0400 Subject: [PATCH] Add digested counter + random victim count --- stories/mass-vore.js | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/stories/mass-vore.js b/stories/mass-vore.js index 13d5910..aa7dcc0 100644 --- a/stories/mass-vore.js +++ b/stories/mass-vore.js @@ -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); } } ],