stories.push({ id: "fen-snack", name: "Fen's Food", tags: [ "Player Prey", "Digestion" ], sounds: [ "sfx/digested-test.ogg", "sfx/stomach-to-intestines.ogg", "sfx/intestines-to-stomach.ogg", "sfx/intestines-to-bowels.ogg", "sfx/bowels-to-intestines.ogg", "sfx/stomach-to-intestines-fail.ogg", "sfx/intestines-to-stomach-forced.ogg", "sfx/stomach-churn.ogg", "sfx/intestines-churn-stay.ogg", "sfx/bowels-churn-safe.ogg", "sfx/bowels-churn-danger.ogg", "loop/fen-stomach.ogg", "loop/fen-intestines.ogg", "loop/fen-bowels.ogg" ], preload: [ "sfx/stomach-churn.ogg", "loop/fen-stomach.ogg" ], intro: { start: "stomach", setup: state => { state.info.time.value = 86400 - 60 * 25 - 25; state.player.stats.health = {name: "Health", type: "meter", value: 100, min: 0, max: 100, color: "rgb(255,0,0)"}; state.player.stats.stamina = {name: "Stamina", type: "meter", value: 100, min: 0, max: 100, color: "rgb(100,255,0)"}; startTimer({ id: "movement", func: state => { const pinned = state.player.flags.pinned; if (pinned) { print(["Fen rolls back over, releasing you from under his huge, heated bulk."]); state.player.flags.pinned = false; playSfx("sfx/intestines-churn-stay.ogg"); return 30000 + Math.random() * 15000; } else { print(["Fen rolls onto his belly, crushing you under his heavy body. You can barely move!"]); state.player.flags.pinned = true; playSfx("sfx/stomach-to-intestines-fail.ogg"); return 10000 + Math.random() * 10000; } }, delay: 15000, loop: true, classes: [ "alive" ] }, state); startTimer({ id: "digestion", func: state => { const location = state.player.location; let bonus = state.player.flags.submission ? 10 : 1; if (location.startsWith("stomach")) { changeStat("health", -1, state); } if (location.startsWith("intestines")) { changeStat("health", -0.75, state); } if (location.startsWith("bowels")) { changeStat("health", -0.5, state); } if (state.player.stats.health.value <= 0) { state.player.stats.health.value = 0; if (location.startsWith("stomach")) { goToRoom("digested-stomach", state); } if (location.startsWith("intestines")) { goToRoom("digested-intestines", state); } if (location.startsWith("bowels")) { goToRoom("digested-bowels", state); } return false; } return 1000 / bonus; }, delay: 1000, loop: true, classes: [ "alive" ] }, state); startTimer({ id: "stamina-regen", func: state => { const location = state.player.location; let bonus = state.player.flags.submission ? -3 : 0; bonus += state.player.flags.pinned ? -0.5 : 0; if (location.startsWith("stomach")) { changeStat("stamina", 1 + bonus, state); } if (location.startsWith("intestines")) { changeStat("stamina", 0.5 + bonus, state); } if (location.startsWith("bowels")) { changeStat("stamina", -0.5 + bonus, state); } return true; }, delay: 500, loop: true, classes: [ "alive" ] }, state); startTimer({ id: "clock", func: state => { state.info.time.value += 1; state.info.time.value %= 86400; return true; }, delay: 1000, loop: true, classes: [ ] }, state); }, intro: state => { print(["Hot, slimy walls ripple and squeeze, the stomach of your captor stewing you in a churning bath of chyme and acid. The blue crux made a late-night meal out of you with ease. You've only been trapped under the Fen's pelt for a few minutes...and it doesn't seem like you'll last much longer than that, either."]); playSfx("sfx/stomach-churn.ogg"); } }, refresh: state => { setBackgroundColor(50 - state.player.stats.health.value/2, 0, 0) }, world: { stomach: { id: "stomach", name: "Stomach", desc: "A hot, wet, steamy prison.", move: (room, state) => { print(["You slide into Fen's humid stomach."]); }, enter: (room, state) => { playLoop("loop/fen-stomach.ogg"); startTimer({ id: "stomach-churns", func: state => { if (Math.random() > 0.6) { changeStat("stamina", -25, state); print(["The crux's stomach clenches around you, smothering you in the beast's slimy embrace."]); playSfx("sfx/stomach-churn.ogg"); } return true; }, delay: 10000, loop: true, room: "stomach", classes: [ "alive" ] }, state); }, exit: (room, state) => { stopLoop("loop/fen-stomach.ogg"); stopRoomTimers("stomach", state); }, hooks: [ ], actions: [ { name: "Rub", desc: "Knead on the muscular folds that surround your tasty little body", execute: (room, state) => { changeStat("stamina", -15, state); print(["You rub all over your prison's walls. Fen's stomach gurgles in response."]); } }, { name: "Submit", desc: "Let Fen digest you", execute: (room, state) => { state.player.flags.submission = true; print(["You slump back in the crux's stomach, allowing its powerful fluids to break you down..."]); }, show: [ (room, state) => { return !state.player.flags.submission; } ] } ], exits: { "down": { "target": "intestines", "desc": "Push yourself deeper into the crux", move: (room, state) => { print(["You manage to push yourself down through the valve at the base of the crux's fetid stomach."]); playSfx("sfx/stomach-to-intestines.ogg"); }, hooks: [ (room, exit, state) => { let stamina = state.player.stats.stamina.value; let escape; if (Math.random() > stamina/100) { changeStat("stamina", -50, state); print(["Fen's stomach clenches and ripples, smothering your face in wet flesh and keeping you nice and trapped."]); playSfx("sfx/stomach-to-intestines-fail.ogg"); escape = false; } else { changeStat("stamina", -25, state); escape = true; } return escape; } ], conditions: [ (room, state) => { return !state.player.flags.submission; }, (room, state) => { return !state.player.flags.pinned; } ] } }, "data": { "stats": { } } }, intestines: { id: "intestines", name: "Intestines", desc: "Labyrinthine guts, winding on and on...", move: (room, state) => { print(["Your squirming body glides into the crux's tight, snaking guts."]); }, enter: (room, state) => { playLoop("loop/fen-intestines.ogg"); startTimer({ id: "intestines-churns", func: state => { if (Math.random() > 0.6) { if (state.player.stats.stamina.value > 50) { changeStat("stamina", -25, state); print(["Your prison's walls ripple and grind, shoving you against the valve leading to the crux's boiling stomach - but you manage to resist the powerful pull."]); playSfx("sfx/intestines-churn-stay.ogg"); } else { print(["Too exhausted to resist, your slimy body is crammed into the crux's churning stomach by a powerful wave of peristalsis."]); playSfx("sfx/intestines-to-stomach-forced.ogg"); goToRoom("stomach", state); } } return true; }, delay: 10000, loop: true, room: "intestines", classes: [ "alive" ] }, state); }, exit: (room, state) => { stopLoop("loop/fen-intestines.ogg"); stopRoomTimers("intestines", state); }, exits: { "up": { target: "stomach", desc: "Writhe back into Fen's roiling stomach", move: (room, state) => { print(["You push yourself back into the crux's fatal stomach."]); playSfx("sfx/intestines-to-stomach.ogg"); }, conditions: [ (room, state) => { return !state.player.flags.submission; }, (room, state) => { return !state.player.flags.pinned; } ] }, "down": { target: "bowels", desc: "Push yourself even deeper into your predator's body", move: (room, state) => { print(["You wriggle into the beast's bowels."]); playSfx("sfx/intestines-to-bowels.ogg"); }, conditions: [ (room, state) => { return !state.player.flags.submission; }, (room, state) => { return !state.player.flags.pinned; } ] } }, hooks: [ ], actions: [ { name: "Rub", desc: "Knead on the muscular folds that surround your tasty little body", execute: (room, state) => { changeStat("stamina", -20, state); print(["You rub all over your prison's walls. Fen's guts barely move."]); } }, { name: "Submit", desc: "Let Fen digest you", execute: (room, state) => { state.player.flags.submission = true; print(["You go limp in the crux's intestines, letting the winding, worryingly-tight guts take you in..."]); }, show: [ (room, state) => { return !state.player.flags.submission; } ] } ], "data": { "stats": { } } }, bowels: { id: "bowels", name: "Bowels", desc: "Cavernous bowels, rippling and squeezing over your bare skin", move: (room, state) => { print(["You enter the beast's humid bowels, taking shallow, stifled breaths of the musky air. The sauna-like atmosphere sucks the strength from your tired limbs."]); }, enter: (room, state) => { playLoop("loop/fen-bowels.ogg"); startTimer({ id: "bowels-churns", func: state => { if (state.player.stats.stamina.value > 50) { changeStat("stamina", -25, state); print(["Fen's bowels clench and churn, grinding you into their musky walls."]); playSfx("sfx/bowels-churn-safe.ogg"); } else { changeStat("stamina", -100, state); startTimer({ id: "digestion", func: state => { let bonus = state.player.flags.submission ? 10 : 1; changeStat("health", -1, state); return 500 / bonus; }, delay: 1000, loop: true, room: "bowels", classes: [ "alive" ] }, state); print(["Drained of stamina, you can do little to resist as Fen's bowels grind you away."]); playSfx("sfx/bowels-churn-danger.ogg"); return false; } return true; }, delay: 10000, loop: true, room: "bowels", classes: [ "alive" ] }, state); }, exit: (room, state) => { stopLoop("loop/fen-bowels.ogg"); stopRoomTimers("bowels", state); }, exits: { "up": { target: "intestines", desc: "Squirm up higher", move: (room, state) => { print(["You squirm out from Fen's bowels, working your way back into his cramped guts."]); playSfx("sfx/bowels-to-intestines.ogg"); }, conditions: [ (room, state) => { return !state.player.flags.submission; }, (room, state) => { return !state.player.flags.pinned; } ], hooks: [ (room, exit, state) => { if (state.player.stats.stamina.value < 25) { print(["You're too tired to move..."]); playSfx("sfx/bowels-churn-safe.ogg"); return false; } return true; } ] } }, hooks: [ ], actions: [ { name: "Rub", desc: "Knead on the muscular folds that surround your tasty little body", execute: (room, state) => { changeStat("stamina", -25, state); print(["You rub all over your prison's walls. Fen's bowels clench in on you as he rurrs with pleasure."]); } }, { name: "Submit", desc: "Let Fen digest you", execute: (room, state) => { state.player.flags.submission = true; print(["You slump back in the crux's bowels, yielding to their immense pressure..."]); }, show: [ (room, state) => { return !state.player.flags.submission; } ] } ], "data": { "stats": { } } }, "digested-stomach": { id: "digested-stomach", name: "Fen's Belly", desc: "You look good on him, at least~", enter: (room, state) => { playLoop("loop/fen-intestines.ogg"); playSfx("sfx/digested-test.ogg"); playSfx("sfx/bowels-churn-safe.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 gut..."]); }, "data": { "stats": { } } }, "digested-intestines": { id: "digested-intestines", name: "Fen's Belly", desc: "Just a little addition to the crux's belly - one that won't last for long.", enter: (room, state) => { playLoop("loop/fen-intestines.ogg"); playSfx("sfx/digested-test.ogg"); playSfx("sfx/bowels-churn-safe.ogg"); stopClassTimers("alive", state); print(["Fen's intestines clench and squeeze, melting you down into slop and soaking you up like a sponge.",newline,"Nothing's left but a bit of padding on your predator's hips..."]); }, "data": { "stats": { } } }, "digested-bowels": { id: "digested-bowels", name: "Fen's Ass", desc: "A little extra heft on the predator's posterior.", enter: (room, state) => { playLoop("loop/fen-bowels.ogg"); playSfx("sfx/digested-test.ogg"); playSfx("sfx/bowels-churn-danger.ogg"); stopClassTimers("alive", state); print(["A powerful ripple of muscle pins you in a vice-grip of flesh - and within seconds, you're part of Fen's bowels.",newline,"Nothing's left but a bit of padding on your predator's ass..."]); }, "data": { "stats": { } } } } });