big steppy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

418 lines
16 KiB

  1. rules = {};
  2. rules["eat"] = [];
  3. rules["stomp"] = [];
  4. rules["kick"] = [];
  5. rules["anal-vore"] = [];
  6. rules["ass-crush"] = [];
  7. rules["breast-crush"] = [];
  8. rules["unbirth"] = [];
  9. rules["cock-vore"] = [];
  10. rules["cockslap"] = [];
  11. rules["ball-smother"] = [];
  12. rules["male-spurt"] = [];
  13. rules["male-orgasm"] = [];
  14. rules["female-spurt"] = [];
  15. rules["female-orgasm"] = [];
  16. rules["grind"] = [];
  17. rules["stomach"] = [];
  18. rules["balls"] = [];
  19. rules["womb"] = [];
  20. rules["bowels"] = [];
  21. function isNonFatal(macro) {
  22. return macro.brutality == 0;
  23. }
  24. function isFatal(macro) {
  25. return macro.brutality >= 1;
  26. }
  27. function isGory(macro) {
  28. return macro.brutality >= 2;
  29. }
  30. function hasNothing(container, thing, amount) {
  31. for (var key in container.contents) {
  32. if (container.contents.hasOwnProperty(key))
  33. return false;
  34. }
  35. return true;
  36. }
  37. function hasLessThan(container, thing, amount) {
  38. if (container.contents.hasOwnProperty(thing))
  39. if (container.contents[thing].count < amount && container.contents[thing].count > 0)
  40. return true;
  41. return false;
  42. }
  43. function hasExactly(container, thing, amount) {
  44. if (!container.contents.hasOwnProperty(thing) && amount == 0)
  45. return true;
  46. if (container.contents.hasOwnProperty(thing) && container.contents[thing].count == amount)
  47. return true;
  48. return false;
  49. }
  50. function hasOnly(container, things) {
  51. if (!hasNothingElse(container, things))
  52. return false;
  53. for (var i=0; i<things.length; i++) {
  54. if (!container.contents.hasOwnProperty(things[i]))
  55. return false;
  56. }
  57. return true;
  58. }
  59. function hasNothingElse(container, things) {
  60. for (var key in container.contents) {
  61. if (container.contents.hasOwnProperty(key))
  62. if (!things.includes(key))
  63. return false;
  64. }
  65. return true;
  66. }
  67. function nothingLarger(container, thing) {
  68. for (var key in container.contents)
  69. if (container.contents.hasOwnProperty(key))
  70. if (areas[key] > areas[thing])
  71. return false;
  72. return true;
  73. }
  74. function describe(action, container, macro, verbose=true) {
  75. options = [];
  76. for (var i = 0; i < rules[action].length; i++) {
  77. if(rules[action][i].test(container,macro)) {
  78. options.push(rules[action][i].desc);
  79. }
  80. }
  81. if (options.length > 0 && Math.random() > (1 / (2 + rules[action].length))) {
  82. let choice = Math.floor(Math.random() * options.length);
  83. return options[choice](container, macro, verbose);
  84. }
  85. else {
  86. return describeDefault(action, container, macro, verbose);
  87. }
  88. }
  89. function describeDefault(action, container, macro, verbose=true) {
  90. switch(action) {
  91. case "eat": return defaultEat(container, macro, verbose);
  92. case "stomp": return defaultStomp(container, macro, verbose);
  93. case "kick": return defaultKick(container, macro, verbose);
  94. case "anal-vore": return defaultAnalVore(container, macro, verbose);
  95. case "ass-crush": return defaultAssCrush(container, macro, verbose);
  96. case "breast-crush": return defaultBreastCrush(container, macro, verbose);
  97. case "unbirth": return defaultUnbirth(container, macro, verbose);
  98. case "cock-vore": return defaultCockVore(container, macro, verbose);
  99. case "cockslap": return defaultCockslap(container, macro, verbose);
  100. case "ball-smother": return defaultBallSmother(container, macro, verbose);
  101. case "male-spurt": return defaultMaleSpurt(container, macro, verbose);
  102. case "male-orgasm": return defaultMaleOrgasm(container, macro, verbose);
  103. case "female-spurt": return defaultFemaleSpurt(container, macro, verbose);
  104. case "female-orgasm": return defaultFemaleOrgasm(container, macro, verbose);
  105. case "grind": return defaultGrind(container, macro, verbose);
  106. case "stomach": return defaultStomach(container, macro, verbose);
  107. case "bowels": return defaultBowels(container, macro, verbose);
  108. case "womb": return defaultWomb(container, macro, verbose);
  109. case "balls": return defaultBalls(container, macro, verbose);
  110. }
  111. }
  112. // DEFAULTS
  113. function defaultEat(container, macro, verbose) {
  114. return "You scoop up " + container.describe(verbose) + " and swallow " + (container.count > 1 ? "them" : "it") + " whole.";
  115. }
  116. function defaultStomp(container, macro, verbose) {
  117. if (isFatal(macro))
  118. return "You crush " + container.describe(verbose) + " underfoot.";
  119. else
  120. return "You step on " + container.describe(verbose) + ".";
  121. }
  122. function defaultKick(container, macro, verbose) {
  123. return "You punt " + container.describe(verbose) + ", destroying " + (container.count > 1 ? "them" : "it") + ".";
  124. }
  125. function defaultAnalVore(container, macro, verbose) {
  126. return "You sit yourself down on " + container.describe(verbose) + ". " + (container.count > 1 ? "They slide" : "It slides") + " inside with ease.";
  127. }
  128. function defaultAssCrush(container, macro, verbose) {
  129. if (isFatal(macro))
  130. return "Your heavy ass obliterates " + container.describe(verbose) + ". ";
  131. else
  132. return "You sit on " + container.describe(verbose);
  133. }
  134. function defaultBreastCrush(container, macro, verbose) {
  135. if (isFatal(macro))
  136. return "Your heavy breasts obliterate " + container.describe(verbose) + ". ";
  137. else
  138. return "You smoosh " + container.describe(verbose) + " with your breasts.";
  139. }
  140. function defaultUnbirth(container, macro, verbose) {
  141. return "You gasp as you slide " + container.describe(verbose) + " up your slit. ";
  142. }
  143. function defaultCockVore(container, macro, verbose) {
  144. return "You stuff " + container.describe(verbose) + " into your throbbing shaft, forcing them down to your heavy balls.";
  145. }
  146. function defaultCockslap(container, macro, verbose) {
  147. if (isFatal(macro))
  148. return "Your swaying " + macro.describeDick + " cock crushes " + container.describe(verbose) + ". ";
  149. else
  150. return "You smack " + container.describe(verbose) + " with your " + macro.describeDick + " shaft.";
  151. }
  152. function defaultBallSmother(container, macro, verbose) {
  153. if (isFatal(macro))
  154. return "Your weighty balls spread over " + container.describe(verbose) + ", drowning them in musk.";
  155. else
  156. return "Your weighty balls spread over " + container.describe(verbose) + ".";
  157. }
  158. function defaultMaleSpurt(container, macro, verbose) {
  159. if (isFatal(macro))
  160. return "Your " + macro.describeDick + " cock spurts out $VOLUME of bitter precum, drowning " + container.describe(verbose) + " in a deluge of musk.";
  161. else
  162. return "Your " + macro.describeDick + " shaft spurts out $VOLUME of precum, splooging " + container.describe(verbose) + ".";
  163. }
  164. function defaultMaleOrgasm(container, macro, verbose) {
  165. if (isFatal(macro))
  166. return "You're cumming! Your " + macro.describeDick + " cock gushes $VOLUME of seed, obliterating " + container.describe(verbose) + " in a torrent of cum.";
  167. else
  168. return "You're cumming! Your " + macro.describeDick + " shaft gushes $VOLUME of seed, splooging " + container.describe(verbose) + ".";
  169. }
  170. function defaultFemaleSpurt(container, macro, verbose) {
  171. if (isFatal(macro))
  172. return "Your moist slit splatters $VOLUME of slick juices, drowning " + container.describe(verbose) + " in your building lust.";
  173. else
  174. return "Your moist slit splatters $VOLUME of slick juices, splooging " + container.describe(verbose) + ".";
  175. }
  176. function defaultFemaleOrgasm(container, macro, verbose) {
  177. if (isFatal(macro))
  178. return "Your moist slit sprays $VOLUME of slick femcum, obliterating " + container.describe(verbose) + " in a torrent of femcum.";
  179. else
  180. return "Your moist slit sprays $VOLUME of slick femcum, splooging " + container.describe(verbose) + ".";
  181. }
  182. function defaultGrind(container, macro, verbose) {
  183. var mid = isFatal(macro) ? ", smashing them apart" : ", using them as a toy";
  184. var end = macro.arousalEnabled ? " to fuel your lust." : ".";
  185. if (macro.maleParts && macro.femaleParts) {
  186. return "You grind your " + macro.describeDick + " cock and " + macro.describeVagina + " slit against " + container.describe(verbose) + mid + end;
  187. } else if (macro.maleParts && !macro.femaleParts) {
  188. return "You grind your " + macro.describeDick + " shaft against " + container.describe(verbose) + mid + end;
  189. } else if (!macro.maleParts && macro.femaleParts) {
  190. return "You grind your " + macro.describeVagina + " slit against " + container.describe(verbose) + mid + end;
  191. } else {
  192. return "You grind your hips against " + container.describe(verbose) + mid + end;
  193. }
  194. }
  195. function defaultStomach(container, macro, verbose) {
  196. if (isFatal(macro))
  197. return "Your stomach gurgles as it digests " + container.describe(false);
  198. else
  199. return "Your stomach groans as it absorbs " + container.describe(false);
  200. }
  201. function defaultBowels(container, macro, verbose) {
  202. if (isFatal(macro))
  203. return "Your bowels churn as they melt down " + container.describe(false) + " and absorb them into your body";
  204. else
  205. return "Your bowels churn as they absorb " + container.describe(false);
  206. }
  207. function defaultWomb(container, macro, verbose) {
  208. if (isFatal(macro))
  209. return "Your womb squeezes and dissolves " + container.describe(false) + ", turning them into slick femcum.";
  210. else
  211. return "Your womb squeezes as it absorbs " + container.describe(false);
  212. }
  213. function defaultBalls(container, macro, verbose) {
  214. if (isFatal(macro))
  215. return "Your balls slosh as they digest " + container.describe(false) + " into cum";
  216. else
  217. return "Your balls slosh as they absorb " + container.describe(false);
  218. }
  219. // EATING
  220. rules["eat"].push({
  221. "test": function(container, macro) {
  222. return hasNothing(container);
  223. },
  224. "desc": function(container, macro, verbose) {
  225. return "You scoop up...nothing. Oh well.";
  226. }
  227. });
  228. rules["eat"].push({
  229. "test": function(container, macro) {
  230. return hasOnly(container, ["Person"])
  231. && hasLessThan(container, "Person", 6)
  232. && macro.height >= 10;
  233. },
  234. "desc": function(container, macro, verbose) {
  235. return "You pluck up the " + container.describe() + " and stuff them into your mouth, swallowing lightly to drag them down to your bubbling guts.";
  236. }
  237. });
  238. rules["eat"].push({
  239. "test": function(container, macro) {
  240. return hasOnly(container, ["Person"])
  241. && hasExactly(container, "Person", 1)
  242. && macro.height < 10;
  243. },
  244. "desc": function(container, macro, verbose) {
  245. return "You grasp " + container.describe() + " and greedily wolf them down, swallowing forcefully to cram them into your bulging stomach. A crass belch escapes your lips as they curl up in your slimy gut.";
  246. }
  247. });
  248. rules["eat"].push({
  249. "test": function(container, macro) {
  250. return hasOnly(container, ["Person","Car"])
  251. && hasExactly(container, "Car", 1)
  252. && hasLessThan(container, "Person", 5);
  253. },
  254. "desc": function(container, macro, verbose) {
  255. return "You crush the " + container.contents["Car"].describe() + " with your tight throat, washing it down with " + container.contents["Person"].describe();
  256. }
  257. });
  258. rules["eat"].push({
  259. "test": function(container, macro) {
  260. return hasExactly(container, "Small Skyscraper", 1)
  261. && nothingLarger(container, "Small Skyscraper")
  262. && macro.height < 500;
  263. },
  264. "desc": function(container, macro, verbose) {
  265. return "You drop onto your hands and knees, jaws opening wide to envelop the skyscraper. It glides into your throat as your snout touches the ground,\
  266. and you suckle on it for a long moment before twisting your head to snap it loose. The entire building and the " + describe_all(container.contents["Small Skyscraper"].contents, verbose) + "\
  267. within plunge into your roiling guts, along with some delicious treats you slurped up along with it - " + describe_all(container.contents, verbose, ["Small Skyscraper"]) + ".";
  268. }
  269. });
  270. rules["eat"].push({
  271. "test": function(container, macro) {
  272. return hasExactly(container, "Small Skyscraper", 2)
  273. && nothingLarger(container, "Small Skyscraper")
  274. && macro.height < 750;
  275. },
  276. "desc": function(container, macro, verbose) {
  277. return "You drop onto your hands and knees, jaws opening wide to envelop the skyscraper. It glides into your throat as your snout touches the ground,\
  278. and you suckle on it for a long moment before twisting your head to snap it loose. Without missing a beat, you rise back up, sloppy tongue slathering over the side \
  279. of the remaining tower, sucking on its tip and roughly shoving it into your maw. It breaks from its foundation, vanishing past your lips as you use two fingers to shove it \
  280. down your sultry throat. Your gut bubbles as " + describe_all(container.contents["Small Skyscraper"].contents, verbose) + " are crunched and crushed within, along with the \
  281. " + describe_all(container.contents, verbose, ["Small Skyscraper"]) + " that were unfortunate enough to be caught up by your slimy tongue.";
  282. }
  283. });
  284. // STOMPING
  285. rules["stomp"].push({
  286. "test": function(container, macro) {
  287. return hasOnly(container, ["Person"])
  288. && hasExactly(container, "Person", 1)
  289. && isFatal(macro);
  290. }, "desc": function(container, macro, verbose) {
  291. return "Your heavy paw slams down on " + container.describe(verbose) + ", smashing the poor thing like an insect.";
  292. }
  293. });
  294. rules["stomp"].push({
  295. "test": function(container, macro) {
  296. return hasOnly(container, ["Person"])
  297. && hasExactly(container, "Person", 1)
  298. && isGory(macro);
  299. }, "desc": function(container, macro, verbose) {
  300. return "Your paw thumps " + container.describe(verbose) + ", shoving your victim to the ground and cracking them open like an egg.";
  301. }
  302. });
  303. rules["stomp"].push({
  304. "test": function(container, macro) {
  305. return hasOnly(container, ["Person"])
  306. && hasExactly(container, "Person", 1)
  307. && isGory(macro);
  308. }, "desc": function(container, macro, verbose) {
  309. return "Your shadow falls over " + container.describe(verbose) + ", and your paw follows, crushing their soft body and reducing them to a heap of broken gore.";
  310. }
  311. });
  312. rules["stomp"].push({
  313. "test": function(container, macro) {
  314. return hasNothingElse(container, ["Person","Cow","Car"])
  315. && isNonFatal(macro);
  316. }, "desc": function(container, macro, verbose) {
  317. return "Your soft paws smoosh over " + container.describe(verbose) + ". They stick to your toes, carried along for the ride as you take another few steps before finally\
  318. falling off.";
  319. }
  320. });
  321. // ANAL VORE
  322. rules["anal-vore"].push({
  323. "test": function(container, macro) {
  324. return hasExactly(container, "Person", 1)
  325. && hasOnly(container, ["Person"]);
  326. }, "desc": function(container, macro, verbose) {
  327. let adjective = ["musky","winding","churning"][Math.floor(Math.random()*3)];
  328. return "Your weighty rump slams against the ground. A shock of pleasure runs up your spine as a " + container.describe(verbose) + " slides up your ass,"
  329. + (macro.maleParts ? " grinding against your prostate" : "") + ". A powerful clench drags them deeper into your bowels, sealing them away in your " + adjective + " depths.";
  330. }
  331. });
  332. rules["anal-vore"].push({
  333. "test": function(container, macro) {
  334. return hasExactly(container, "Car", 1)
  335. && hasOnly(container, ["Car"]);
  336. }, "desc": function(container, macro, verbose) {
  337. return "You ram " + container.describe(verbose) + " up your ass, biting your lip as it" + (macro.maleParts ? " rubs along your prostate" : " slides into velvety depths") + ".\
  338. You moan and clench hard, yanking it in with a wet <i>shlrrp</i> and abruplty silencing its blaring horn.";
  339. }
  340. });
  341. rules["anal-vore"].push({
  342. "test": function(container, macro) {
  343. return hasExactly(container, "Bus", 1)
  344. && hasOnly(container, ["Bus"]);
  345. }, "desc": function(container, macro, verbose) {
  346. return "A speeding bus slams on its brakes as you abruptly sit - but it's too late to stop. A gasp flies from your lips as it penetrates your greedy ass, sinking halfway in and coming to a halt. \
  347. You grunt and squeeze, causing its frame to creak and groan. Two fingers to the back are enough to get it moving again, and it slowly works inside. You shiver and moan, taking it in all the way. \
  348. Your ass claims " + container.describe(verbose) + ".";
  349. }
  350. });
  351. rules["anal-vore"].push({
  352. "test": function(container, macro) {
  353. return hasExactly(container, "Bus", 1)
  354. && hasOnly(container, ["Bus"]);
  355. }, "desc": function(container, macro, verbose) {
  356. return "A speeding bus slams on its brakes as you abruptly sit - but it's too late to stop. A gasp flies from your lips as it penetrates your greedy ass, sinking halfway in and coming to a halt. \
  357. You grunt and squeeze, causing its frame to creak and groan. Two fingers to the back are enough to get it moving again, and it slowly works inside. You shiver and moan, taking it in all the way. \
  358. Your ass claims " + container.describe(verbose) + ".";
  359. }
  360. });