| @@ -8,8 +8,12 @@ | |||||
| if (count === undefined) { | if (count === undefined) { | ||||
| count = state.player.stats.stomach.value / 200; | count = state.player.stats.stomach.value / 200; | ||||
| } | } | ||||
| count = Math.floor(count); | |||||
| state.player.stats.stomach.value -= 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 = { | sfxGroups = { | ||||
| @@ -82,6 +86,12 @@ | |||||
| max: 10000, | max: 10000, | ||||
| color: "rgb(255,10,150)" | color: "rgb(255,10,150)" | ||||
| } | } | ||||
| state.player.stats.digested = { | |||||
| name: "Digested", | |||||
| type: "counter", | |||||
| value: 0, | |||||
| color: "rgb(255,10,150)" | |||||
| } | |||||
| startTimer({ | startTimer({ | ||||
| id: "belch", | id: "belch", | ||||
| @@ -142,8 +152,9 @@ | |||||
| name: "Eat", | name: "Eat", | ||||
| desc: "Munch!", | desc: "Munch!", | ||||
| execute: (room, state) => { | 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); | |||||
| } | } | ||||
| } | } | ||||
| ], | ], | ||||