From 62a35eb9b0325b94cef978169008dcbf83b665ac Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Wed, 15 Apr 2020 11:51:36 -0400 Subject: [PATCH] Adjust maw struggle timings; add a tongue shove that pushes you forward --- stories/geta-unaware.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/stories/geta-unaware.js b/stories/geta-unaware.js index 3467063..9ec58cb 100644 --- a/stories/geta-unaware.js +++ b/stories/geta-unaware.js @@ -592,7 +592,8 @@ if (Math.random() < 0.2) { const choices = [ "slosh", - "tilt-back" + "tilt-back", + "shove", ]; choice = choices[Math.floor(Math.random() * choices.length)]; } else if (Math.random() > state.geta.slurps / 3) { @@ -618,7 +619,7 @@ state.geta.slurps = 0; state.geta.chews = 0; state.geta.swallowsLeft -= 1; - return Math.random() * 1500 + 2500; + return Math.random() * 1500 + 1500; } } else if (choice == "slurp") { @@ -629,7 +630,7 @@ ["You're shoved back a bit as Geta slurps up more cereal."] ]); state.geta.slurps += 1; - return Math.random() * 1000 + 1500; + return Math.random() * 1000 + 2500; } else if (choice == "chew") { if (getStat("mawPos") > 0.85) { const limb = randomBodyPart(); @@ -652,8 +653,9 @@ ["Geta chews on his breakfast."], ["The fox's fangs close with a crackle-crunch of cereal."] ]); + statLerp("mawPos", Math.random() / 10 - 0.05, 250); state.geta.chews += 1; - return Math.random() * 500 + 1000; + return Math.random() * 500 + 1300; } } else if (choice == "slosh") { 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; + } 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,