a munch adventure
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

1137 строки
42 KiB

  1. (() => {
  2. function checkSuspicion(add = 0) {
  3. const old = getStat("suspicion");
  4. if (add >= 0) {
  5. add *= state.info.awareness.value;
  6. }
  7. changeStat("suspicion", add);
  8. if (getStat("suspicion") >= 100) {
  9. print(["Geta spots you!", "You're snatched up and tossed into the fox's bowl of cereal."]);
  10. goToRoom("in-bowl");
  11. return false;
  12. } else if (getStat("suspicion") >= 75 && old < 75) {
  13. print(["The fox is very suspicious. You're going to get caught if you keep this up..."]);
  14. }
  15. return true;
  16. }
  17. function randomBodyPart() {
  18. const choices = Object.entries(state.player.limbs).filter(([name, status]) => {
  19. return status;
  20. }).map(([name, status]) => name);
  21. return choices[Math.floor(Math.random() * choices.length)];
  22. }
  23. function limbsLost() {
  24. return Object.entries(state.player.limbs).filter(([name, status]) => {
  25. return !status;
  26. }).length;
  27. }
  28. function synonym(word) {
  29. const choices = {
  30. "slippery": ["slippery", "slimy", "slick", "glistening"],
  31. "chews": ["chews", "crunches"],
  32. "crushes": ["crushes", "pulverizes", "shatters", "smashes"]
  33. }
  34. return choices[word][Math.floor(Math.random() * choices[word].length)];
  35. }
  36. function statLerp(stat, change, duration) {
  37. // pretty sure this'll be a random id...
  38. const id = new Date().getTime() + Math.random();
  39. const iterations = duration / 1000 * 60;
  40. startTimer({
  41. id: id,
  42. func: () => {
  43. changeStat(stat, change / iterations);
  44. return true;
  45. },
  46. delay: 1000 / 60,
  47. loop: true,
  48. classes: [
  49. ]
  50. });
  51. startTimer({
  52. id: id + "-stopper",
  53. func: () => {
  54. stopTimer(id);
  55. return false;
  56. },
  57. delay: duration,
  58. loop: false,
  59. classes: [
  60. ]
  61. });
  62. }
  63. const limbs = {
  64. head: "head",
  65. leftArm: "left arm",
  66. rightArm: "right arm",
  67. leftLeg: "left leg",
  68. rightLeg: "right leg"
  69. };
  70. stories.push({
  71. "id": "geta-unaware",
  72. "name": "Geta's Breakfast",
  73. "tags": [
  74. "Player Prey",
  75. "Digestion",
  76. "Macro/Micro",
  77. "Hard Vore"
  78. ],
  79. "intro": {
  80. "start": "pepper-grinder",
  81. "setup": () => {
  82. state.info.awareness = {
  83. id: "awareness",
  84. name: "Geta's Awareness",
  85. type: "counter",
  86. value: 1,
  87. get render() {
  88. if (this.value < 1) {
  89. return "Distracted";
  90. } else if (this.value == 1) {
  91. return "Normal"
  92. } else {
  93. return "Alert"
  94. }
  95. }
  96. }
  97. state.geta = {};
  98. state.player.stats.health = { name: "Health", type: "meter", value: 100, min: 0, max: 100, color: "rgb(255,55,55)" };
  99. state.player.stats.suspicion = { name: "Suspicion", type: "meter", value: 0, min: 0, max: 100, color: "rgb(100,100,100)" };
  100. state.player.stats.mawPos = { "name": "Struggle", "type": "meter", "value": 0.5, "min": 0, "max": 1, "color": "rgb(0,255,0)", hidden: true }
  101. state.info.time.value = 60 * 60 * 7 + 60 * 17;
  102. state.player.limbs = {};
  103. state.player.limbs.head = true;
  104. state.player.limbs.leftArm = true;
  105. state.player.limbs.rightArm = true;
  106. state.player.limbs.leftLeg = true;
  107. state.player.limbs.rightLeg = true;
  108. startTimer({
  109. id: "clock",
  110. func: () => {
  111. state.info.time.value += 1;
  112. state.info.time.value %= 86000;
  113. return true;
  114. },
  115. delay: 1000,
  116. loop: true,
  117. classes: [
  118. ]
  119. });
  120. startTimer({
  121. id: "suspicion-decay",
  122. func: () => {
  123. checkSuspicion(-0.1);
  124. return true;
  125. },
  126. delay: 100,
  127. loop: true,
  128. classes: [
  129. "free"
  130. ]
  131. });
  132. startTimer({
  133. id: "timeout",
  134. func: () => {
  135. if (state.info.time.value == 60 * 60 * 7 + 60 * 19) {
  136. print(["The fox is almost done with his breakfast..."]);
  137. }
  138. if (state.info.time.value >= 60 * 60 * 7 + 60 * 20) {
  139. print(["Time's up! In you go."]);
  140. goToRoom("maw");
  141. return false;
  142. }
  143. return true;
  144. },
  145. delay: 1000,
  146. loop: true,
  147. classes: [
  148. "free"
  149. ]
  150. });
  151. startTimer({
  152. id: "geta-action",
  153. func: () => {
  154. const random = Math.random();
  155. if (random < 0.7) {
  156. print(["Geta slurps up a spoonful of cereal."]);
  157. return Math.random() * 3000 + 3000
  158. } else if (random < 0.9) {
  159. state.info.awareness.value = 0.1;
  160. print(["The fox yawns and stretches."]);
  161. startTimer({
  162. id: "yawn-end",
  163. func: () => {
  164. print(["Geta finishes his stretch"]);
  165. state.info.awareness.value = 1;
  166. return true;
  167. },
  168. delay: 5000,
  169. loop: false,
  170. classes: [
  171. "free"
  172. ]
  173. });
  174. return Math.random() * 3000 + 5000
  175. } else {
  176. state.info.awareness.value = 2;
  177. print(["Geta narrows his eyes and looks around the table. Something seems off to him..."]);
  178. startTimer({
  179. id: "squint-end",
  180. func: () => {
  181. print(["He goes back to his breakfast."]);
  182. state.info.awareness.value = 1;
  183. return true;
  184. },
  185. delay: 5000,
  186. loop: false,
  187. classes: [
  188. "free"
  189. ]
  190. });
  191. return Math.random() * 1000 + 6000
  192. }
  193. },
  194. delay: 5000,
  195. loop: true,
  196. classes: [
  197. "free"
  198. ]
  199. });
  200. },
  201. "intro": () => {
  202. print(["Game started", newline, "Exposition goes here later."]);
  203. }
  204. },
  205. "sounds": [
  206. "loop/stomach.ogg",
  207. "sfx/absorb.ogg",
  208. "sfx/swallow.ogg"
  209. ],
  210. "preload": [
  211. ],
  212. "refresh": () => {
  213. setBackgroundColor(50 - state.player.stats.health.value / 2, 0, 0);
  214. },
  215. "world": {
  216. "pepper-grinder": {
  217. "id": "pepper-grinder",
  218. "name": "Pepper Grinder",
  219. "desc": "You're hiding behind a pepper grinder",
  220. "move": (room) => {
  221. print(["You dart over to the pepper grinder, which looms over you like a greatwood."]);
  222. },
  223. "enter": (room) => {
  224. },
  225. "exit": (room) => {
  226. },
  227. "actions": [
  228. {
  229. name: "Tap",
  230. desc: "Bang on the pepper shaker",
  231. execute: (room) => {
  232. print(["You thump the pepper shaker, making a dull thud."]);
  233. const safe = checkSuspicion(25);
  234. if (safe && getStat("suspicion") > 50) {
  235. print(["Geta leans in to have a closer look. He's going to catch you if you don't move!"]);
  236. startTimer({
  237. id: "pepper-investigate",
  238. func: () => {
  239. if (state.player.location == "pepper-grinder") {
  240. print(["He catches you.", newline, "You're tossed into the fox's jaws."]);
  241. goToRoom("maw");
  242. } else {
  243. print(["You evaded the fox."]);
  244. }
  245. },
  246. delay: 3000,
  247. loop: false,
  248. classes: [
  249. "free"
  250. ]
  251. });
  252. }
  253. },
  254. show: [
  255. ],
  256. conditions: [
  257. ]
  258. },
  259. {
  260. name: "Wait",
  261. desc: "Wait for the fox to finish his breakfast. Surely you'll be able to escape after that...right?",
  262. execute: (room) => {
  263. state.info.time.value = 60 * 60 * 7 + 60 * 20;
  264. },
  265. show: [
  266. ],
  267. conditions: [
  268. ]
  269. },
  270. ],
  271. "exits": {
  272. "up": {
  273. "target": "bowl",
  274. "desc": "Walk up to the cereal bowl",
  275. "show": [
  276. ],
  277. "conditions": [
  278. ],
  279. "hooks": [
  280. (room, exit) => {
  281. return checkSuspicion(10);
  282. }
  283. ]
  284. },
  285. "left": {
  286. "target": "table",
  287. "desc": "Run out into the open",
  288. "show": [
  289. ],
  290. "conditions": [
  291. ],
  292. "hooks": [
  293. ]
  294. },
  295. },
  296. "hooks": [
  297. ],
  298. "data": {
  299. "stats": {
  300. }
  301. }
  302. },
  303. "bowl": {
  304. "id": "bowl",
  305. "name": "Behind the Bowl",
  306. "desc": "You're crouched behind Geta's bowl of cereal",
  307. "move": (room) => {
  308. print(["You scurry up to the looming bowl, staying low and out of Geta's sight."]);
  309. },
  310. "enter": (room) => {
  311. },
  312. "exit": (room) => {
  313. },
  314. "actions": [
  315. ],
  316. "exits": {
  317. "ascend": {
  318. "target": "in-bowl",
  319. "desc": "Climb into Geta's cereal",
  320. "show": [
  321. ],
  322. "conditions": [
  323. ],
  324. "hooks": [
  325. ]
  326. },
  327. "down": {
  328. "target": "pepper-grinder",
  329. "desc": "Run back behind the pepper grinder",
  330. "show": [
  331. ],
  332. "conditions": [
  333. ],
  334. "hooks": [
  335. (room, exit) => {
  336. return checkSuspicion(15);
  337. }
  338. ]
  339. },
  340. },
  341. "hooks": [
  342. ],
  343. "data": {
  344. "stats": {
  345. }
  346. }
  347. },
  348. "table": {
  349. "id": "table",
  350. "name": "Table",
  351. "desc": "You're out in the open!",
  352. "move": (room) => {
  353. },
  354. "enter": (room) => {
  355. startTimer({
  356. id: "table-suspicion",
  357. func: () => {
  358. checkSuspicion(1.5);
  359. return true;
  360. },
  361. delay: 100,
  362. loop: true,
  363. classes: [
  364. "free"
  365. ]
  366. });
  367. },
  368. "exit": (room) => {
  369. stopTimer("table-suspicion");
  370. },
  371. "actions": [
  372. ],
  373. "exits": {
  374. "right": {
  375. "target": "pepper-grinder",
  376. "desc": "Run back to cover",
  377. "show": [
  378. ],
  379. "conditions": [
  380. ],
  381. "hooks": [
  382. ]
  383. },
  384. },
  385. "hooks": [
  386. ],
  387. "data": {
  388. "stats": {
  389. }
  390. }
  391. },
  392. "in-bowl": {
  393. "id": "in-bowl",
  394. "name": "Bowl",
  395. "desc": "You're in the cereal bowl...",
  396. "move": (room) => {
  397. print(["Why did you do that?"]);
  398. },
  399. "enter": (room) => {
  400. state.player.stats.suspicion.hidden = true;
  401. stopClassTimers("free");
  402. startTimer({
  403. id: "geta-eat",
  404. func: () => {
  405. if (Math.random() < 0.6) {
  406. print(["Geta scoops up a spoonful of cereal; you narrowly avoid being caught."]);
  407. return true;
  408. } else {
  409. print(["Geta scoops you up and slurps you into his maw."]);
  410. goToRoom("maw");
  411. return false;
  412. }
  413. },
  414. delay: 3000,
  415. loop: true,
  416. classes: [
  417. "free"
  418. ]
  419. });
  420. },
  421. "exit": (room) => {
  422. },
  423. "actions": [
  424. ],
  425. "exits": {
  426. "ascend": {
  427. "target": "bowl",
  428. "desc": "Try to climb back out!",
  429. "show": [
  430. ],
  431. "conditions": [
  432. ],
  433. "hooks": [
  434. (room, exit) => {
  435. print([
  436. "You grab at the rim of the bowl and try to pull yourself out. Alas, your struggles are for naught; Geta easily scoops you up in his spoon and, a heartbeat later, slurps you into his sloppy jaws. You didn't stand a chance."
  437. ]);
  438. goToRoom("maw");
  439. return false;
  440. }
  441. ]
  442. },
  443. },
  444. "hooks": [
  445. ],
  446. "data": {
  447. "stats": {
  448. }
  449. }
  450. },
  451. "maw": {
  452. "id": "maw",
  453. "name": "Geta's Maw",
  454. "desc": "You've been slurped up into the fox's jaws",
  455. "move": (room) => {
  456. },
  457. "enter": (room) => {
  458. state.player.stats.suspicion.hidden = true;
  459. stopClassTimers("free");
  460. state.player.stats.mawPos.hidden = false;
  461. state.geta.slurps = 0;
  462. state.geta.chews = 0;
  463. state.geta.swallowsLeft = 3 + Math.floor(Math.random() * 3);
  464. state.geta.mawMovement = 1;
  465. startTimer({
  466. id: "maw-random-movement",
  467. func: () => {
  468. const time = new Date().getTime();
  469. const movementFactor = (state.geta.mawMovement + limbsLost());
  470. const fastPart = Math.sin(time / 200) / 1600 / 3;
  471. const slowPart = Math.sin(time / 1000) / 1600;
  472. changeStat("mawPos", movementFactor * (fastPart + slowPart));
  473. if (getStat("mawPos") <= 0.02) {
  474. print(["You slip too far back. Geta doesn't even have to try to swallow you like the food you are."]);
  475. goToRoom("throat");
  476. return false;
  477. } else if (getStat("mawPos") >= 0.98) {
  478. print(["Geta's jaws close like a falling guillotine's blade. You're crushed like an insect. A sharp gulp drags you down to the fox's guts."]);
  479. changeStat("health", -90);
  480. goToRoom("stomach");
  481. return false;
  482. }
  483. return true;
  484. },
  485. delay: 1000 / 60,
  486. loop: true,
  487. classes: [
  488. "maw-struggle"
  489. ]
  490. });
  491. startTimer({
  492. id: "maw-struggle",
  493. func: () => {
  494. if (state.geta.swallowsLeft <= 0) {
  495. print(["Geta picks up his bowl of cereal and drinks it down, swallowing you in the process."]);
  496. state.geta.swallowsLeft = -1;
  497. goToRoom("throat");
  498. return false;
  499. }
  500. let choice;
  501. if (Math.random() < 0.2) {
  502. const choices = [
  503. "slosh",
  504. "tilt-back"
  505. ];
  506. choice = choices[Math.floor(Math.random() * choices.length)];
  507. } else if (Math.random() > state.geta.slurps / 3) {
  508. choice = "slurp";
  509. } else if (state.geta.chews - Math.floor(Math.random() * 3) < state.geta.slurps) {
  510. choice = "chew";
  511. } else {
  512. choice = "swallow";
  513. }
  514. if (choice == "swallow") {
  515. if (getStat("mawPos") < 0.15) {
  516. print(["You're too far back. The fox swallows a mouthful of cereal, taking you with it."]);
  517. goToRoom("throat");
  518. return false;
  519. } else {
  520. printRandom([
  521. ["A light swallow drags a lump of chewed-up cereal into Geta's depths."],
  522. ["Geta swallows, dragging you closer to your demise."],
  523. ["Your captor's throat ripples as he gulps down his breakfast."]
  524. ]);
  525. statLerp("mawPos", -0.25, 500);
  526. state.geta.slurps = 0;
  527. state.geta.chews = 0;
  528. state.geta.swallowsLeft -= 1;
  529. return Math.random() * 1500 + 2500;
  530. }
  531. } else if (choice == "slurp") {
  532. statLerp("mawPos", -0.1, 250);
  533. printRandom([
  534. ["A spoonful of cereal slips into the fox's " + synonym("slippery") + " maw."],
  535. ["Geta slurps up some more of his breakfast."],
  536. ["You're shoved back a bit as Geta slurps up more cereal."]
  537. ]);
  538. state.geta.slurps += 1;
  539. return Math.random() * 1000 + 1500;
  540. } else if (choice == "chew") {
  541. if (getStat("mawPos") > 0.85) {
  542. const limb = randomBodyPart();
  543. state.player.limbs[limb] = false;
  544. const limbName = limbs[limb];
  545. if (limb == "head") {
  546. print(["Geta's jaws crush down on your head. You die."]);
  547. changeStat("health", -100);
  548. goToRoom("stomach");
  549. } else {
  550. print(["You scream in pain as your " + limbName + " is shattered by the fox's jaws"]);
  551. changeStat("health", -40);
  552. return true;
  553. }
  554. } else {
  555. printRandom([
  556. ["Cruel fangs crush down on the food around you."],
  557. ["Geta chews on his breakfast."],
  558. ["The fox's fangs close with a crackle-crunch of cereal."]
  559. ]);
  560. state.geta.chews += 1;
  561. return Math.random() * 500 + 1000;
  562. }
  563. } else if (choice == "slosh") {
  564. print(["Geta's tongue sloshes from side to side, throwing you around his maw like a ship in a storm."]);
  565. state.geta.mawMovement = 3;
  566. startTimer({
  567. id: "maw-slosh-end",
  568. func: () => {
  569. state.geta.mawMovement = 1;
  570. print(["The sloshing ends."]);
  571. return true;
  572. },
  573. delay: 4000,
  574. loop: false,
  575. classes: [
  576. "maw-struggle"
  577. ]
  578. });
  579. return Math.random() * 1500 + 4500;
  580. } else if (choice == "tilt-back") {
  581. print(["Geta tilts his head back, sending rivults of slobber flowing down into that yawning gullet."]);
  582. state.geta.mawMovement = 0.2;
  583. statLerp("mawPos", -1, 4000);
  584. startTimer({
  585. id: "maw-tilt-text",
  586. func: () => {
  587. state.geta.mawMovement = 1;
  588. print(["The fox's muzzle tilts back down as he SWALLOWS hard."]);
  589. statLerp("mawPos", -0.3, 500);
  590. state.geta.swallowsLeft -= 1;
  591. state.geta.slurps = 0;
  592. state.geta.chews = 0;
  593. return true;
  594. },
  595. delay: 4000,
  596. loop: false,
  597. classes: [
  598. ]
  599. });
  600. return 5000 + Math.random() * 1000;
  601. }
  602. },
  603. delay: 0,
  604. loop: true,
  605. classes: [
  606. "maw-struggle"
  607. ]
  608. });
  609. startTimer({
  610. id: "maw-taunts",
  611. func: () => {
  612. printRandom([
  613. ["\"Did you really think I wouldn't notice you?\""],
  614. ["\"You're going to feel good dying in my guts.\""],
  615. ["\"I could just crush you...but where's the fun in that?\""]
  616. ]);
  617. return Math.random() * 5000 + 5000;
  618. },
  619. delay: 5000,
  620. loop: true,
  621. classes: [
  622. "maw-struggle"
  623. ]
  624. });
  625. },
  626. "exit": (room) => {
  627. },
  628. "actions": [
  629. {
  630. name: "Struggle",
  631. desc: "Pull yourself away from the fox's throat! Just don't go too far forward...",
  632. execute: (room) => {
  633. print(["You drag yourself forward"]);
  634. statLerp("mawPos", 0.15 + Math.random() * 0.05, 250);
  635. },
  636. show: [
  637. ],
  638. conditions: [
  639. ]
  640. },
  641. {
  642. name: "Slip Back",
  643. desc: "Slide back towards Geta's gullet",
  644. execute: (room) => {
  645. if (Math.random() < 0.9) {
  646. print(["You let yourself slip back."]);
  647. statLerp("mawPos", -0.2 - Math.random() * 0.1, 250);
  648. } else {
  649. print(["You lose your grip, sliding back quite far!"]);
  650. statLerp("mawPos", -0.3 - Math.random() * 0.15, 250);
  651. }
  652. },
  653. show: [
  654. ],
  655. conditions: [
  656. ]
  657. },
  658. {
  659. name: "Dive In",
  660. desc: "Throw yourself towards the fox's throat",
  661. execute: (room) => {
  662. print(["Resigned to your fate, you toss yourself into Geta's throat. He seems surprised by your eagerness to submit, but swallows you all the same."]);
  663. goToRoom("throat");
  664. },
  665. show: [
  666. ],
  667. conditions: [
  668. ]
  669. },
  670. ],
  671. "exits": {
  672. },
  673. "hooks": [
  674. ],
  675. "data": {
  676. "stats": {
  677. }
  678. }
  679. },
  680. "throat": {
  681. "id": "throat",
  682. "name": "Geta's Gullet",
  683. "desc": "GULP!",
  684. "move": (room) => {
  685. },
  686. "enter": (room) => {
  687. playSfx("sfx/swallow.ogg");
  688. state.player.stats.mawPos.hidden = true;
  689. stopClassTimers("maw-struggle");
  690. startTimer({
  691. id: "throat-swallow",
  692. func: () => {
  693. print(["You slush down into Geta's stomach"]);
  694. goToRoom("stomach");
  695. return true;
  696. },
  697. delay: 7000,
  698. loop: false,
  699. classes: [
  700. ]
  701. });
  702. },
  703. "exit": (room) => {
  704. },
  705. "actions": [
  706. {
  707. name: "Struggle",
  708. desc: "Try to climb back out!",
  709. execute: (room) => {
  710. print(["Nope"]);
  711. },
  712. show: [
  713. ],
  714. conditions: [
  715. ]
  716. },
  717. {
  718. name: "Give up",
  719. desc: "Dive down into Geta's stomach",
  720. execute: (room) => {
  721. print(["You submit to your predator."]);
  722. goToRoom("stomach");
  723. stopTimer("throat-swallow");
  724. },
  725. show: [
  726. ],
  727. conditions: [
  728. ]
  729. },
  730. ],
  731. "exits": {
  732. },
  733. "hooks": [
  734. ],
  735. "data": {
  736. "stats": {
  737. }
  738. }
  739. },
  740. "stomach": {
  741. "id": "stomach",
  742. "name": "Geta's Stomach",
  743. "desc": "Glorp",
  744. "move": (room) => {
  745. },
  746. "enter": (room) => {
  747. playLoop("loop/stomach.ogg");
  748. stopClassTimers("maw-struggle");
  749. state.geta.acidStrength = 1;
  750. startTimer({
  751. id: "digest-random",
  752. func: () => {
  753. const choices = [
  754. () => {
  755. const crushed = randomBodyPart();
  756. const name = limbs[crushed];
  757. if (name == "head") {
  758. print(["A powerful fold of muscle grips your head, crushing it like a grape and killing you instantly."]);
  759. changeStat("health", -100);
  760. return false;
  761. } else {
  762. print(["Geta's stomach grips your " + name + " and crushes it with a horrific CRACK"]);
  763. changeStat("health", -40);
  764. return true;
  765. }
  766. },
  767. () => {
  768. printRandom([["Geta squeezes in on his gut with both hands, sloshing you around in the sickly stew of cereal, milk, and enzymatic slime."],
  769. ["Your organic prison snarls and churns, soaking you in fresh acids and hastening your wretched demise."]]);
  770. changeStat("health", -10);
  771. return true;
  772. },
  773. () => {
  774. if (state.geta.swallowsLeft == 0) {
  775. print(["A deep series of *glurks* rattles your bones."]);
  776. startTimer({
  777. id: "stomach-milk",
  778. func: () => {
  779. print(["A torrent of cold milk pours into the fox's stomach."]);
  780. return false;
  781. },
  782. delay: 3000,
  783. loop: false,
  784. classes: [
  785. "digestion"
  786. ]
  787. });
  788. } else if (state.geta.swallowsLeft > 0) {
  789. print(["Muffled chewing comes from far above. A moment later, you hear a wet *gluk*"]);
  790. startTimer({
  791. id: "stomach-cereal",
  792. func: () => {
  793. print(["A slimy heap of well-chewed corn flakes splatters down around you."]);
  794. return false;
  795. },
  796. delay: 4000,
  797. loop: false,
  798. classes: [
  799. ]
  800. });
  801. } else if (state.geta.swallowsLeft < 0) {
  802. print(["You hear a few light swallows."]);
  803. startTimer({
  804. id: "stomach-coffee",
  805. func: () => {
  806. print(["Gouts of hot, bitter coffee pour into the fox's guts."]);
  807. return false;
  808. },
  809. delay: 3000,
  810. loop: false,
  811. classes: [
  812. ]
  813. });
  814. }
  815. return true;
  816. },
  817. () => {
  818. print(["\"You were barely worth eating,\" murmurs the fox. \"So small. So weak.\""]);
  819. return true;
  820. }
  821. ];
  822. return choices[Math.floor(Math.random() * choices.length)]();
  823. },
  824. delay: 5000,
  825. loop: true,
  826. classes: [
  827. "digestion"
  828. ]
  829. });
  830. startTimer({
  831. id: "digest",
  832. func: () => {
  833. changeStat("health", -0.3 * state.geta.acidStrength);
  834. if (getStat("health") <= 0) {
  835. print(["You're digested before too long."]);
  836. goToRoom("digested");
  837. return false;
  838. }
  839. return true;
  840. },
  841. delay: 100,
  842. loop: true,
  843. classes: [
  844. "digestion"
  845. ]
  846. });
  847. },
  848. "exit": (room) => {
  849. },
  850. "actions": [
  851. {
  852. name: "Squirm",
  853. desc: "Rub at the walls of the fox's churning stomach",
  854. execute: (room) => {
  855. printRandom([
  856. ["You punch and kick at the walls"],
  857. ["A powerful churn grabs hold of you, stifling any attempts at struggling"],
  858. ["Your little thumps and kicks do little to faze your captor"]
  859. ]);
  860. },
  861. show: [
  862. ],
  863. conditions: [
  864. ]
  865. },
  866. {
  867. name: "Beg",
  868. desc: "Plead for your life",
  869. execute: (room) => {
  870. printRandom([
  871. [
  872. "\"PLEASE!\" you scream, thumping on the walls of the vulpine's gut. \"Let me out!\"",
  873. ]
  874. ])
  875. if (Math.random() < 0.7) {
  876. print(["Your pleas fall on deaf ears."]);
  877. } else {
  878. printRandom([
  879. ["\"Shhhh,\" growls Geta, \"you're going to die in me. Stop whimpering.\""],
  880. ["A long moment passes. \"Poor thing,\" says your captor."]
  881. ])
  882. }
  883. },
  884. show: [
  885. ],
  886. conditions: [
  887. ]
  888. },
  889. {
  890. name: "Scream",
  891. desc: "IT HURTS",
  892. execute: (room) => {
  893. printRandom([
  894. [
  895. "\"Oh god, oh god, oh god,\" you wail...quivering and quaking as you're digested alive. \"GETA!\""
  896. ],
  897. [
  898. "A blood-curdling scream bellows from your burning lungs."
  899. ],
  900. [
  901. "You let out a hideous wail as the fox digests you alive."
  902. ]
  903. ]);
  904. if (Math.random() < 0.5) {
  905. print(["Geta doesn't notice."]);
  906. } else {
  907. print(["A booming chuckle rocks your body."]);
  908. printRandom([
  909. ["\"I hope you're suffering in there.\""],
  910. ["\"Pathetic little snack.\""],
  911. ["\"Ready to die?\""]
  912. ]);
  913. }
  914. },
  915. show: [
  916. ],
  917. conditions: [
  918. ]
  919. },
  920. ],
  921. "exits": {
  922. },
  923. "hooks": [
  924. ],
  925. "data": {
  926. "stats": {
  927. }
  928. }
  929. },
  930. "digested": {
  931. "id": "digested",
  932. "name": "Fat",
  933. "desc": "You're just fat now",
  934. "move": (room) => {
  935. },
  936. "enter": (room) => {
  937. stopClassTimers("digestion");
  938. playSfx("sfx/absorb.ogg");
  939. },
  940. "exit": (room) => {
  941. },
  942. "actions": [
  943. {
  944. name: "Gurgle",
  945. desc: "Glorp",
  946. execute: (room) => {
  947. printRandom([
  948. ["Grrrrgle"],
  949. ["Glorp"],
  950. ["Glrrrrrrnnnnnn..."],
  951. ["Gwoooooorgle"]
  952. ]);
  953. },
  954. show: [
  955. ],
  956. conditions: [
  957. ]
  958. },
  959. ],
  960. "exits": {
  961. },
  962. "hooks": [
  963. ],
  964. "data": {
  965. "stats": {
  966. }
  967. }
  968. },
  969. }
  970. });
  971. })();