|
|
|
@@ -5,7 +5,7 @@ |
|
|
|
} |
|
|
|
function digest(state, count) { |
|
|
|
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.gas.value += count; |
|
|
|
@@ -20,10 +20,11 @@ |
|
|
|
], |
|
|
|
sounds: [ |
|
|
|
"sfx/belches/belch.ogg", |
|
|
|
"sfx/swallows/swallow.ogg" |
|
|
|
"sfx/swallows/swallow.ogg", |
|
|
|
"loop/stomach/stomach.ogg" |
|
|
|
], |
|
|
|
preload: [ |
|
|
|
|
|
|
|
"loop/stomach/stomach.ogg" |
|
|
|
], |
|
|
|
intro: { |
|
|
|
start: "city", |
|
|
|
@@ -78,9 +79,12 @@ |
|
|
|
id: "digestion", |
|
|
|
func: 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; |
|
|
|
}, |
|
|
|
delay: 100, |
|
|
|
delay: 1000/60, |
|
|
|
loop: true, |
|
|
|
classes: [ |
|
|
|
|
|
|
|
|