big steppy
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 

355 行
13 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-orgasm"] = [];
  13. rules["female-orgasm"] = [];
  14. rules["grind"] = [];
  15. rules["stomach"] = [];
  16. rules["balls"] = [];
  17. rules["womb"] = [];
  18. rules["bowels"] = [];
  19. function isNonFatal(macro) {
  20. return macro.brutality == 0;
  21. }
  22. function isFatal(macro) {
  23. return macro.brutality >= 1;
  24. }
  25. function isGory(macro) {
  26. return macro.brutality >= 2;
  27. }
  28. function hasNothing(container, thing, amount) {
  29. for (var key in container.contents) {
  30. if (container.contents.hasOwnProperty(key))
  31. return false;
  32. }
  33. return true;
  34. }
  35. function hasLessThan(container, thing, amount) {
  36. if (container.contents.hasOwnProperty(thing))
  37. if (container.contents[thing].count < amount && container.contents[thing].count > 0)
  38. return true;
  39. return false;
  40. }
  41. function hasExactly(container, thing, amount) {
  42. if (!container.contents.hasOwnProperty(thing) && amount == 0)
  43. return true;
  44. if (container.contents.hasOwnProperty(thing) && container.contents[thing].count == amount)
  45. return true;
  46. return false;
  47. }
  48. function hasOnly(container, things) {
  49. if (!hasNothingElse(container, things))
  50. return false;
  51. for (var i=0; i<things.length; i++) {
  52. if (!container.contents.hasOwnProperty(things[i]))
  53. return false;
  54. }
  55. return true;
  56. }
  57. function hasNothingElse(container, things) {
  58. for (var key in container.contents) {
  59. if (container.contents.hasOwnProperty(key))
  60. if (!things.includes(key))
  61. return false;
  62. }
  63. return true;
  64. }
  65. function nothingLarger(container, thing) {
  66. for (var key in container.contents)
  67. if (container.contents.hasOwnProperty(key))
  68. if (areas[key] > areas[thing])
  69. return false;
  70. return true;
  71. }
  72. function describe(action, container, macro, verbose=true) {
  73. options = [];
  74. for (var i = 0; i < rules[action].length; i++) {
  75. if(rules[action][i].test(container,macro)) {
  76. options.push(rules[action][i].desc);
  77. }
  78. }
  79. if (options.length > 0) {
  80. let choice = Math.floor(Math.random() * options.length);
  81. return options[choice](container, macro, verbose);
  82. }
  83. else {
  84. return describeDefault(action, container, macro, verbose);
  85. }
  86. }
  87. function describeDefault(action, container, macro, verbose=true) {
  88. switch(action) {
  89. case "eat": return defaultEat(container, macro, verbose);
  90. case "stomp": return defaultStomp(container, macro, verbose);
  91. case "kick": return defaultKick(container, macro, verbose);
  92. case "anal-vore": return defaultAnalVore(container, macro, verbose);
  93. case "ass-crush": return defaultAssCrush(container, macro, verbose);
  94. case "breast-crush": return defaultBreastCrush(container, macro, verbose);
  95. case "unbirth": return defaultUnbirth(container, macro, verbose);
  96. case "cock-vore": return defaultCockVore(container, macro, verbose);
  97. case "cockslap": return defaultCockslap(container, macro, verbose);
  98. case "ball-smother": return defaultBallSmother(container, macro, verbose);
  99. case "male-orgasm": return defaultMaleOrgasm(container, macro, verbose);
  100. case "female-orgasm": return defaultFemaleOrgasm(container, macro, verbose);
  101. case "grind": return defaultGrind(container, macro, verbose);
  102. case "stomach": return defaultStomach(container, macro, verbose);
  103. case "bowels": return defaultBowels(container, macro, verbose);
  104. case "womb": return defaultWomb(container, macro, verbose);
  105. case "balls": return defaultBalls(container, macro, verbose);
  106. }
  107. }
  108. // DEFAULTS
  109. function defaultEat(container, macro, verbose) {
  110. return "You scoop up " + container.describe(verbose) + " and swallow " + (container.count > 1 ? "them" : "it") + " whole.";
  111. }
  112. function defaultStomp(container, macro, verbose) {
  113. if (isFatal(macro))
  114. return "You crush " + container.describe(verbose) + " underfoot.";
  115. else
  116. return "You step on " + container.describe(verbose) + ".";
  117. }
  118. function defaultKick(container, macro, verbose) {
  119. return "You punt " + container.describe(verbose) + ", destroying " + (container.count > 1 ? "them" : "it") + ".";
  120. }
  121. function defaultAnalVore(container, macro, verbose) {
  122. return "You sit yourself down on " + container.describe(verbose) + ". " + (container.count > 1 ? "They slide" : "It slides") + " inside with ease.";
  123. }
  124. function defaultAssCrush(container, macro, verbose) {
  125. if (isFatal(macro))
  126. return "Your heavy ass obliterates " + container.describe(verbose) + ". ";
  127. else
  128. return "You sit on " + container.describe(verbose);
  129. }
  130. function defaultBreastCrush(container, macro, verbose) {
  131. if (isFatal(macro))
  132. return "Your heavy breasts obliterate " + container.describe(verbose) + ". ";
  133. else
  134. return "You smoosh " + container.describe(verbose) + " with your breasts.";
  135. }
  136. function defaultUnbirth(container, macro, verbose) {
  137. return "You gasp as you slide " + container.describe(verbose) + " up your slit. ";
  138. }
  139. function defaultCockVore(container, macro, verbose) {
  140. return "You stuff " + container.describe(verbose) + " into your throbbing shaft, forcing them down to your heavy balls.";
  141. }
  142. function defaultCockslap(container, macro, verbose) {
  143. if (isFatal(macro))
  144. return "Your swaying " + macro.describeDick + " cock crushes " + container.describe(verbose) + ". ";
  145. else
  146. return "You smack " + container.describe(verbose) + " with your " + macro.describeDick + " shaft.";
  147. }
  148. function defaultBallSmother(container, macro, verbose) {
  149. if (isFatal(macro))
  150. return "Your weighty balls spread over " + container.describe(verbose) + ", drowning them in musk.";
  151. else
  152. return "Your weighty balls spread over " + container.describe(verbose) + ".";
  153. }
  154. function defaultMaleOrgasm(container, macro, verbose) {
  155. if (isFatal(macro))
  156. return "You're cumming! Your " + macro.describeDick + " cock spurts out $VOLUME of seed, obliterating " + container.describe(verbose) + " in a torrent of cum.";
  157. else
  158. return "You're cumming! Your " + macro.describeDick + " shaft spurts out $VOLUME of seed, splooging " + container.describe(verbose) + ".";
  159. }
  160. function defaultFemaleOrgasm(container, macro, verbose) {
  161. if (isFatal(macro))
  162. return "You're cumming! Your moist slit sprays $VOLUME of slick femcum, obliterating " + container.describe(verbose) + " in a torrent of femcum.";
  163. else
  164. return "You're cumming! Your moist slit sprays $VOLUME of slick femcum, splooging " + container.describe(verbose) + ".";
  165. }
  166. function defaultGrind(container, macro, verbose) {
  167. var mid = isFatal(macro) ? ", smashing them apart" : ", using them as a toy";
  168. var end = macro.arousalEnabled ? " to fuel your lust." : ".";
  169. if (macro.maleParts && macro.femaleParts) {
  170. return "You grind your " + macro.describeDick + " cock and " + macro.describeVagina + " slit against " + container.describe(verbose) + mid + end;
  171. } else if (macro.maleParts && !macro.femaleParts) {
  172. return "You grind your " + macro.describeDick + " shaft against " + container.describe(verbose) + mid + end;
  173. } else if (!macro.maleParts && macro.femaleParts) {
  174. return "You grind your " + macro.describeVagina + " slit against " + container.describe(verbose) + mid + end;
  175. } else {
  176. return "You grind your hips against " + container.describe(verbose) + mid + end;
  177. }
  178. }
  179. function defaultStomach(container, macro, verbose) {
  180. if (isFatal(macro))
  181. return "Your stomach gurgles as it digests " + container.describe(false);
  182. else
  183. return "Your stomach groans as it absorbs " + container.describe(false);
  184. }
  185. function defaultBowels(container, macro, verbose) {
  186. if (isFatal(macro))
  187. return "Your bowels churn as they melt down " + container.describe(false) + " and absorb them into your body";
  188. else
  189. return "Your bowels churn as they absorb " + container.describe(false);
  190. }
  191. function defaultWomb(container, macro, verbose) {
  192. if (isFatal(macro))
  193. return "Your womb squeezes and dissolves " + container.describe(false) + ", turning them into slick femcum.";
  194. else
  195. return "Your womb squeezes as it absorbs " + container.describe(false);
  196. }
  197. function defaultBalls(container, macro, verbose) {
  198. if (isFatal(macro))
  199. return "Your balls slosh as they digest " + container.describe(false) + " into cum";
  200. else
  201. return "Your balls slosh as they absorb " + container.describe(false);
  202. }
  203. // EATING
  204. rules["eat"].push({
  205. "test": function(container, macro) {
  206. return hasNothing(container);
  207. },
  208. "desc": function(container, macro, verbose) {
  209. return "You scoop up...nothing. Oh well.";
  210. }
  211. });
  212. rules["eat"].push({
  213. "test": function(container, macro) {
  214. return hasOnly(container, ["Person"])
  215. && hasLessThan(container, "Person", 6)
  216. && macro.height >= 10;
  217. },
  218. "desc": function(container, macro, verbose) {
  219. return "You pluck up the " + container.describe() + " and stuff them into your mouth, swallowing lightly to drag them down to your bubbling guts.";
  220. }
  221. });
  222. rules["eat"].push({
  223. "test": function(container, macro) {
  224. return hasOnly(container, ["Person"])
  225. && hasExactly(container, "Person", 1)
  226. && macro.height < 10;
  227. },
  228. "desc": function(container, macro, verbose) {
  229. 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.";
  230. }
  231. });
  232. rules["eat"].push({
  233. "test": function(container, macro) {
  234. return hasOnly(container, ["Person","Car"])
  235. && hasExactly(container, "Car", 1)
  236. && hasLessThan(container, "Person", 5);
  237. },
  238. "desc": function(container, macro, verbose) {
  239. return "You crush the " + container.contents["Car"].describe() + " with your tight throat, washing it down with " + container.contents["Person"].describe();
  240. }
  241. });
  242. rules["eat"].push({
  243. "test": function(container, macro) {
  244. return hasExactly(container, "Small Skyscraper", 1)
  245. && nothingLarger(container, "Small Skyscraper")
  246. && macro.height < 500;
  247. },
  248. "desc": function(container, macro, verbose) {
  249. 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,\
  250. 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) + "\
  251. within plunge into your roiling guts, along with some delicious treats you slurped up along with it - " + describe_all(container.contents, verbose, ["Small Skyscraper"]) + ".";
  252. }
  253. });
  254. rules["eat"].push({
  255. "test": function(container, macro) {
  256. return hasExactly(container, "Small Skyscraper", 2)
  257. && nothingLarger(container, "Small Skyscraper")
  258. && macro.height < 750;
  259. },
  260. "desc": function(container, macro, verbose) {
  261. 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,\
  262. 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 \
  263. 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 \
  264. down your sultry throat. Your gut bubbles as " + describe_all(container.contents["Small Skyscraper"].contents, verbose) + " are crunched and crushed within, along with the \
  265. " + describe_all(container.contents, verbose, ["Small Skyscraper"]) + " that were unfortunate enough to be caught up by your slimy tongue.";
  266. }
  267. });
  268. // STOMPING
  269. rules["stomp"].push({
  270. "test": function(container, macro) {
  271. return hasOnly(container, ["Person"])
  272. && hasExactly(container, "Person", 1)
  273. && isFatal(macro);
  274. }, "desc": function(container, macro, verbose) {
  275. return "Your heavy paw slams down on " + container.describe(verbose) + ", smashing the poor thing like an insect.";
  276. }
  277. });
  278. rules["stomp"].push({
  279. "test": function(container, macro) {
  280. return hasOnly(container, ["Person"])
  281. && hasExactly(container, "Person", 1)
  282. && isGory(macro);
  283. }, "desc": function(container, macro, verbose) {
  284. return "Your paw thumps " + container.describe(verbose) + ", shoving your victim to the ground and cracking them open like an egg.";
  285. }
  286. });
  287. rules["stomp"].push({
  288. "test": function(container, macro) {
  289. return hasOnly(container, ["Person"])
  290. && hasExactly(container, "Person", 1)
  291. && isGory(macro);
  292. }, "desc": function(container, macro, verbose) {
  293. 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.";
  294. }
  295. });
  296. rules["stomp"].push({
  297. "test": function(container, macro) {
  298. return hasNothingElse(container, ["Person","Cow","Car"])
  299. && isNonFatal(macro);
  300. }, "desc": function(container, macro, verbose) {
  301. 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\
  302. falling off.";
  303. }
  304. });