diff --git a/stories/mass-vore.js b/stories/mass-vore.js index 5183c6e..79f2246 100644 --- a/stories/mass-vore.js +++ b/stories/mass-vore.js @@ -2,6 +2,12 @@ function devour(state, count) { state.player.stats.stomach.value += 100; } + function digest(state, count) { + if (count === undefined) { + count = state.player.stats.stomach.value / 10; + } + state.player.stats.stomach.value -= count; + } stories.push({ id: "mass-vore", name: "Mass Vore", @@ -27,6 +33,19 @@ max: 10000, color: "rgb(200,20,100)" }; + + startTimer({ + id: "digestion", + func: state => { + digest(state); + return true; + }, + delay: 100, + loop: true, + classes: [ + + ] + }, state); }, intro: state => { print(["Munch time"]);