From 3fc24bfeec4b91b621aef7fcabbffdb065ebd89e Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Sat, 12 Jan 2019 10:43:30 -0500 Subject: [PATCH] Submission cancels the timer --- stories/fen-snack.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/stories/fen-snack.js b/stories/fen-snack.js index efe98e7..64b9cfe 100644 --- a/stories/fen-snack.js +++ b/stories/fen-snack.js @@ -22,7 +22,10 @@ stories.push({ return true; }, delay: 1000, - loop: true + loop: true, + classes: [ + "alive" + ] }, state); } }, @@ -55,8 +58,7 @@ stories.push({ name: "Submit", desc: "Let Fen digest you", execute: (room, state) => { - print(["You slump down in the acidic pit, curling up as it begins to churn you down to chyme. Fen's stomach snarls and bubbles for the next few minutes...and then you're gone~",newline,"Nothing's left but a bit of padding on your predator's hips..."]); - + state.player.stats.health = 0; goToRoom("digested", state); } } @@ -138,6 +140,8 @@ stories.push({ enter: (room, state) => { playLoop("loop/fen-intestines.ogg"); playSfx("sfx/digested-test.ogg"); + stopClassTimers("alive", state); + print(["You slump down in the acidic pit, curling up as it begins to churn you down to chyme. Fen's stomach snarls and bubbles for the next few minutes...and then you're gone~",newline,"Nothing's left but a bit of padding on your predator's hips..."]); }, exit: (room, state) => { stopLoop("loop/fen-intestines.ogg");