| @@ -2,6 +2,12 @@ | |||||
| function devour(state, count) { | function devour(state, count) { | ||||
| state.player.stats.stomach.value += 100; | 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({ | stories.push({ | ||||
| id: "mass-vore", | id: "mass-vore", | ||||
| name: "Mass Vore", | name: "Mass Vore", | ||||
| @@ -27,6 +33,19 @@ | |||||
| max: 10000, | max: 10000, | ||||
| color: "rgb(200,20,100)" | color: "rgb(200,20,100)" | ||||
| }; | }; | ||||
| startTimer({ | |||||
| id: "digestion", | |||||
| func: state => { | |||||
| digest(state); | |||||
| return true; | |||||
| }, | |||||
| delay: 100, | |||||
| loop: true, | |||||
| classes: [ | |||||
| ] | |||||
| }, state); | |||||
| }, | }, | ||||
| intro: state => { | intro: state => { | ||||
| print(["Munch time"]); | print(["Munch time"]); | ||||