| @@ -171,7 +171,30 @@ | |||||
| desc: "Bang on the pepper shaker", | desc: "Bang on the pepper shaker", | ||||
| execute: (room, state) => { | execute: (room, state) => { | ||||
| print(["You thump the pepper shaker, making a dull thud."]); | 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: [ | show: [ | ||||
| @@ -412,22 +435,22 @@ | |||||
| }, state); | }, state); | ||||
| startTimer({ | 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); | }, state); | ||||
| }, | }, | ||||
| "exit": (room, state) => { | "exit": (room, state) => { | ||||