| @@ -5,7 +5,7 @@ | |||||
| } | } | ||||
| function digest(state, count) { | function digest(state, count) { | ||||
| if (count === undefined) { | if (count === undefined) { | ||||
| count = state.player.stats.stomach.value / 10; | |||||
| count = state.player.stats.stomach.value / 200; | |||||
| } | } | ||||
| state.player.stats.stomach.value -= count; | state.player.stats.stomach.value -= count; | ||||
| state.player.stats.gas.value += count; | state.player.stats.gas.value += count; | ||||
| @@ -20,10 +20,11 @@ | |||||
| ], | ], | ||||
| sounds: [ | sounds: [ | ||||
| "sfx/belches/belch.ogg", | "sfx/belches/belch.ogg", | ||||
| "sfx/swallows/swallow.ogg" | |||||
| "sfx/swallows/swallow.ogg", | |||||
| "loop/stomach/stomach.ogg" | |||||
| ], | ], | ||||
| preload: [ | preload: [ | ||||
| "loop/stomach/stomach.ogg" | |||||
| ], | ], | ||||
| intro: { | intro: { | ||||
| start: "city", | start: "city", | ||||
| @@ -78,9 +79,12 @@ | |||||
| id: "digestion", | id: "digestion", | ||||
| func: state => { | func: state => { | ||||
| digest(state); | digest(state); | ||||
| let vol = state.player.stats.fullness.value / state.player.stats.fullness.max | |||||
| vol = Math.sqrt(vol); | |||||
| playLoop("loop/stomach/stomach.ogg", vol); | |||||
| return true; | return true; | ||||
| }, | }, | ||||
| delay: 100, | |||||
| delay: 1000/60, | |||||
| loop: true, | loop: true, | ||||
| classes: [ | classes: [ | ||||