From 6d592dddedc9c7edfb10162b29f93c8257fe6dd6 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Wed, 7 Aug 2019 17:09:25 -0400 Subject: [PATCH] Add eaten counter --- stories/mass-vore.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/stories/mass-vore.js b/stories/mass-vore.js index 82a4655..25b6d0b 100644 --- a/stories/mass-vore.js +++ b/stories/mass-vore.js @@ -1,6 +1,7 @@ (() => { function devour(state, count) { state.player.stats.stomach.value += count; + state.player.stats.eaten.value += count; playRandomSfx("swallow"); } @@ -88,11 +89,15 @@ max: 10000, color: "rgb(255,10,150)" } + state.player.stats.eaten = { + name: "Eaten", + type: "counter", + value: 0 + } state.player.stats.digested = { name: "Digested", type: "counter", - value: 0, - color: "rgb(255,10,150)" + value: 0 } startTimer({