From 188379b9be55b8920d36cbca6d4d59f3c1d4f452 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Tue, 14 Apr 2020 20:03:19 -0400 Subject: [PATCH] Add a scene where Geta looks behind the pepper grinder if he gets too suspicious after you tap it --- stories/geta-unaware.js | 55 +++++++++++++++++++++++++++++------------ 1 file changed, 39 insertions(+), 16 deletions(-) diff --git a/stories/geta-unaware.js b/stories/geta-unaware.js index 044c41b..51406b0 100644 --- a/stories/geta-unaware.js +++ b/stories/geta-unaware.js @@ -171,7 +171,30 @@ desc: "Bang on the pepper shaker", execute: (room, state) => { print(["You thump the pepper shaker, making a dull thud."]); - checkSuspicion(state, 25); + const safe = checkSuspicion(state, 25); + + + if (safe && getStat("suspicion", state) > 50) { + print(["Geta leans in to have a closer look. He's going to catch you if you don't move!"]); + + startTimer({ + id: "pepper-investigate", + func: state => { + if (state.player.location == "pepper-grinder") { + print(["He catches you.", newline, "You're tossed into the fox's jaws."]); + goToRoom("maw", state); + } else { + print(["You evaded the fox."]); + } + }, + delay: 3000, + loop: false, + classes: [ + "free" + ] + }, state); + + } }, show: [ @@ -412,22 +435,22 @@ }, 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: [ - - ] + 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) => {