| @@ -592,7 +592,8 @@ | |||||
| if (Math.random() < 0.2) { | if (Math.random() < 0.2) { | ||||
| const choices = [ | const choices = [ | ||||
| "slosh", | "slosh", | ||||
| "tilt-back" | |||||
| "tilt-back", | |||||
| "shove", | |||||
| ]; | ]; | ||||
| choice = choices[Math.floor(Math.random() * choices.length)]; | choice = choices[Math.floor(Math.random() * choices.length)]; | ||||
| } else if (Math.random() > state.geta.slurps / 3) { | } else if (Math.random() > state.geta.slurps / 3) { | ||||
| @@ -618,7 +619,7 @@ | |||||
| state.geta.slurps = 0; | state.geta.slurps = 0; | ||||
| state.geta.chews = 0; | state.geta.chews = 0; | ||||
| state.geta.swallowsLeft -= 1; | state.geta.swallowsLeft -= 1; | ||||
| return Math.random() * 1500 + 2500; | |||||
| return Math.random() * 1500 + 1500; | |||||
| } | } | ||||
| } else if (choice == "slurp") { | } else if (choice == "slurp") { | ||||
| @@ -629,7 +630,7 @@ | |||||
| ["You're shoved back a bit as Geta slurps up more cereal."] | ["You're shoved back a bit as Geta slurps up more cereal."] | ||||
| ]); | ]); | ||||
| state.geta.slurps += 1; | state.geta.slurps += 1; | ||||
| return Math.random() * 1000 + 1500; | |||||
| return Math.random() * 1000 + 2500; | |||||
| } else if (choice == "chew") { | } else if (choice == "chew") { | ||||
| if (getStat("mawPos") > 0.85) { | if (getStat("mawPos") > 0.85) { | ||||
| const limb = randomBodyPart(); | const limb = randomBodyPart(); | ||||
| @@ -652,8 +653,9 @@ | |||||
| ["Geta chews on his breakfast."], | ["Geta chews on his breakfast."], | ||||
| ["The fox's fangs close with a crackle-crunch of cereal."] | ["The fox's fangs close with a crackle-crunch of cereal."] | ||||
| ]); | ]); | ||||
| statLerp("mawPos", Math.random() / 10 - 0.05, 250); | |||||
| state.geta.chews += 1; | state.geta.chews += 1; | ||||
| return Math.random() * 500 + 1000; | |||||
| return Math.random() * 500 + 1300; | |||||
| } | } | ||||
| } else if (choice == "slosh") { | } else if (choice == "slosh") { | ||||
| print(["Geta's tongue sloshes from side to side, throwing you around his maw like a ship in a storm."]); | print(["Geta's tongue sloshes from side to side, throwing you around his maw like a ship in a storm."]); | ||||
| @@ -697,6 +699,10 @@ | |||||
| }); | }); | ||||
| return 5000 + Math.random() * 1000; | return 5000 + Math.random() * 1000; | ||||
| } else if (choice == "shove") { | |||||
| print(["Geta's tongue lurches forward, shoving you towards the front of his maw!"]); | |||||
| statLerp("mawPos", 0.2, 500); | |||||
| return 2000 + Math.random() * 1000; | |||||
| } | } | ||||
| }, | }, | ||||
| delay: 0, | delay: 0, | ||||