| @@ -465,6 +465,7 @@ | |||||
| state.geta.slurps = 0; | state.geta.slurps = 0; | ||||
| state.geta.chews = 0; | state.geta.chews = 0; | ||||
| state.geta.swallowsLeft = 3 + Math.floor(Math.random() * 3); | |||||
| startTimer({ | startTimer({ | ||||
| id: "maw-random-movement", | id: "maw-random-movement", | ||||
| @@ -494,6 +495,12 @@ | |||||
| return false; | return false; | ||||
| } | } | ||||
| if (state.geta.swallowsLeft <= 0) { | |||||
| print(["Geta picks up his bowl of cereal and drinks it down, swallowing you in the process."]); | |||||
| goToRoom("throat", state); | |||||
| return false; | |||||
| } | |||||
| let choice; | let choice; | ||||
| if (Math.random() > state.geta.slurps / 3) { | if (Math.random() > state.geta.slurps / 3) { | ||||
| @@ -514,6 +521,7 @@ | |||||
| changeStat("mawPos", -0.25, state); | changeStat("mawPos", -0.25, state); | ||||
| state.geta.slurps = 0; | state.geta.slurps = 0; | ||||
| state.geta.chews = 0; | state.geta.chews = 0; | ||||
| state.geta.swallowsLeft -= 1; | |||||
| return Math.random() * 1500 + 2500; | return Math.random() * 1500 + 2500; | ||||
| } | } | ||||