From fa77e7a10bc333911a89a61b1c39cce51ce40f8d Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Tue, 14 Apr 2020 19:57:31 -0400 Subject: [PATCH] Add some random teasing in Geta's maw. Fix timers not stopping when entering it --- stories/geta-unaware.js | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/stories/geta-unaware.js b/stories/geta-unaware.js index fe2c4d2..044c41b 100644 --- a/stories/geta-unaware.js +++ b/stories/geta-unaware.js @@ -393,23 +393,42 @@ "name": "Geta's Maw", "desc": "You've been slurped up into the fox's jaws", "move": (room, state) => { - stopClassTimers("free", state); }, "enter": (room, state) => { + stopClassTimers("free", state); startTimer({ id: "swallow", func: state => { print(["It's too late to escape. You're swallowed down."]); + stopTimer("maw-tease", state); goToRoom("throat", state); return true; }, - delay: 5000, + delay: Math.random() * 5000 + 6000, loop: false, classes: [ ] }, state); + startTimer({ + id: "maw-tease", + func: state => { + printRandom([ + ["Your captor teases you with a sharp, sloppy swallow, barely holding you back from plunging down that slick gullet."], + ["You're sloshed to and fro, battered against the fox's gums by his undulating tongue."], + ["Slobber drenches your body as you're smothered beneath Geta's hot tongue."] + ]); + return Math.random() * 2000 + 3000; + }, + delay: 3000, + loop: true, + classes: [ + + ] + }, state); + + }, "exit": (room, state) => {