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.
 
 
 

1561 line
42 KiB

  1. var strolling = false;
  2. var maxStomachDigest = 10;
  3. var maxBowelsDigest = 10;
  4. var unit = "metric";
  5. var numbers = "full";
  6. var verbose = true;
  7. var biome = "suburb";
  8. var newline = " ";
  9. victims = {};
  10. var macro =
  11. {
  12. "scaling": function(value, scale, factor) { return value * Math.pow(scale,factor); },
  13. "species": "crux",
  14. "color" : "blue",
  15. "baseHeight": 2.26,
  16. get height() { return this.scaling(this.baseHeight, this.scale, 1); },
  17. "baseMass": 135,
  18. get mass () { return this.scaling(this.baseMass, this.scale, 3); },
  19. "basePawArea": 0.1,
  20. get pawArea() { return this.scaling(this.basePawArea, this.scale, 2); },
  21. "baseAnalVoreArea": 0.1,
  22. get analVoreArea() { return this.scaling(this.baseAnalVoreArea, this.scale, 2); },
  23. "baseAssArea": 0.4,
  24. get assArea() { return this.scaling(this.baseAssArea * this.assScale, this.scale, 2); },
  25. "baseHandArea": 0.1,
  26. get handArea() { return this.scaling(this.baseHandArea, this.scale, 2); },
  27. "assScale": 1,
  28. "dickType": "canine",
  29. "baseDickLength": 0.3,
  30. "baseDickDiameter": 0.08,
  31. "dickDensity": 1000,
  32. "dickScale": 1,
  33. get dickLength() {
  34. factor = 1;
  35. if (!this.arousalEnabled || this.arousal < 25) {
  36. factor = 0.5;
  37. } else if (this.arousal < 75) {
  38. factor = 0.5 + (this.arousal - 25) / 100;
  39. }
  40. return this.scaling(this.baseDickLength * this.dickScale * factor, this.scale, 1);
  41. },
  42. get dickDiameter() {
  43. factor = 1;
  44. if (!this.arousalEnabled || this.arousal < 25) {
  45. factor = 0.5;
  46. } else if (this.arousal < 75) {
  47. factor = 0.5 + (this.arousal - 25) / 100;
  48. }
  49. return this.scaling(this.baseDickDiameter * this.dickScale * factor, this.scale, 1);
  50. },
  51. get dickGirth() {
  52. return Math.pow((this.dickDiameter/ 2),2) * Math.PI;
  53. },
  54. get dickArea() {
  55. return this.dickLength* this.dickDiameter* Math.PI / 2;
  56. },
  57. get dickVolume() {
  58. return this.dickLength* Math.pow(this.dickDiameter2,2) * Math.PI;
  59. },
  60. get dickMass() {
  61. return this.dickVolume* this.dickDensity;
  62. },
  63. "baseBallDiameter": 0.05,
  64. "ballDensity": 1000,
  65. "ballScale": 1,
  66. get ballDiameter() { return this.scaling(this.baseBallDiameter * this.ballScale, this.scale, 1); },
  67. get ballArea() { return 2 * Math.PI * Math.pow(this.ballDiameter/2, 2) },
  68. get ballVolume() {
  69. var radius = this.ballDiameter / 2;
  70. return 4/3 * Math.PI * Math.pow(radius,3);
  71. },
  72. get ballMass() {
  73. var volume = this.ballVolume;
  74. return volume * this.ballDensity;
  75. },
  76. "baseCumRatio": 1,
  77. "cumScale": 1,
  78. get cumVolume() {
  79. return this.dickGirth * this.baseCumRatio * this.cumScale * (1 + this.edge) + Math.max(0,this.cumStorage.amount - this.cumStorage.limit);
  80. },
  81. "baseVaginaLength": 0.1,
  82. "baseVaginaWidth": 0.05,
  83. "vaginaScale": 1,
  84. get vaginaLength() { return this.scaling(this.baseVaginaLength * this.vaginaScale, this.scale, 1); },
  85. get vaginaWidth() { return this.scaling(this.baseVaginaWidth * this.vaginaScale, this.scale, 1); },
  86. get vaginaArea() { return this.vaginaLength * this.vaginaWidth },
  87. get vaginaVolume() { return this.vaginaArea * this.vaginaWidth },
  88. "baseFemcumRatio": 1,
  89. "femcumScale": 1,
  90. get femcumVolume() {
  91. return this.vaginaArea * this.baseFemcumRatio * this.femcumScale * (1 + this.edge) + Math.max(0,this.femcumStorage.amount - this.femcumStorage.limit);
  92. },
  93. "baseBreastDiameter": 0.1,
  94. "breastScale": 1,
  95. "breastDensity": 1000,
  96. get breastDiameter() { return this.scaling(this.baseBreastDiameter * this.breastScale, this.scale, 1); },
  97. get breastArea() {
  98. return 2 * Math.PI * Math.pow(this.breastDiameter/2,2);
  99. },
  100. get breastVolume() {
  101. var radius = this.breastDiameter / 2;
  102. return 4/3 * Math.PI * Math.pow(radius,3);
  103. },
  104. get breastMass() {
  105. var volume = this.breastVolume;
  106. return volume * this.breastDensity;
  107. },
  108. "digest": function(owner,organ) {
  109. var count = Math.min(organ.contents.length, organ.maxDigest);
  110. var container = new Container();
  111. while (count > 0) {
  112. var victim = organ.contents.shift();
  113. if (victim.name != "Container")
  114. victim = new Container([victim]);
  115. container = container.merge(victim);
  116. --count;
  117. }
  118. var digested = container.sum();
  119. for (var key in victims[organ.name]) {
  120. if (victims[organ.name].hasOwnProperty(key) && digested.hasOwnProperty(key) ) {
  121. victims["digested"][key] += digested[key];
  122. victims[organ.name][key] -= digested[key];
  123. }
  124. }
  125. var line = organ.describeDigestion(container);
  126. organ.fill(this,container);
  127. var summary = summarize(container.sum());
  128. if (organ.contents.length > 0) {
  129. setTimeout(function() { owner.digest(owner,organ) }, 15000);
  130. }
  131. update([line,summary,newline]);
  132. },
  133. "stomach": {
  134. "name": "stomach",
  135. "feed": function(prey) {
  136. this.feedFunc(prey,this,this.owner);
  137. },
  138. "feedFunc": function(prey,self,owner) {
  139. if (self.contents.length == 0)
  140. setTimeout(function() { owner.digest(owner,self) }, 15000);
  141. this.contents.push(prey);
  142. },
  143. "describeDigestion": function(container) {
  144. return "Your stomach gurgles as it digests " + container.describe(false);
  145. },
  146. "fill": function(owner,container) {
  147. //no-op
  148. },
  149. "contents": [],
  150. "maxDigest": 5
  151. },
  152. "bowels": {
  153. "name" : "bowels",
  154. "feed": function(prey) {
  155. this.feedFunc(prey,this,this.owner);
  156. },
  157. "feedFunc": function(prey,self,owner) {
  158. if (self.contents.length == 0)
  159. setTimeout(function() { owner.digest(owner,self) }, 15000);
  160. this.contents.push(prey);
  161. },
  162. "describeDigestion" : function(container) {
  163. return "Your bowels churn as they absorb " + container.describe(false);
  164. },
  165. "fill": function(owner,container) {
  166. //no-op
  167. },
  168. "contents" : [],
  169. "maxDigest" : 3
  170. },
  171. "womb": {
  172. "name" : "womb",
  173. "feed": function(prey) {
  174. this.feedFunc(prey,this,this.owner);
  175. },
  176. "feedFunc": function(prey,self,owner) {
  177. if (self.contents.length == 0)
  178. setTimeout(function() { owner.digest(owner,self) }, 15000);
  179. this.contents.push(prey);
  180. },
  181. "describeDigestion" : function(container) {
  182. return "Your womb squeezes as it dissolves " + container.describe(false);
  183. },
  184. "fill": function(owner,container) {
  185. owner.femcumStorage.amount += container.sum_property("mass") / 1e3;
  186. },
  187. "contents" : [],
  188. "maxDigest" : 1
  189. },
  190. "balls": {
  191. "name" : "balls",
  192. "feed": function(prey) {
  193. this.feedFunc(prey,this,this.owner);
  194. },
  195. "feedFunc": function(prey,self,owner) {
  196. if (self.contents.length == 0)
  197. setTimeout(function() { owner.digest(owner,self) }, 15000);
  198. this.contents.push(prey);
  199. },
  200. "describeDigestion": function(container) {
  201. return "Your balls slosh as they transform " + container.describe(false) + " into cum";
  202. },
  203. "fill": function(owner,container) {
  204. owner.cumStorage.amount += container.sum_property("mass") / 1e3;
  205. },
  206. "contents" : [],
  207. "maxDigest" : 1
  208. },
  209. "init": function() {
  210. this.stomach.owner = this;
  211. this.bowels.owner = this;
  212. this.womb.owner = this;
  213. this.balls.owner = this;
  214. this.cumStorage.owner = this;
  215. this.femcumStorage.owner = this;
  216. if (this.maleParts)
  217. this.fillCum(this)
  218. if (this.femaleParts)
  219. this.fillFemcum(this)
  220. if (this.maleParts || this.femaleParts) {
  221. this.quenchExcess(this);
  222. }
  223. },
  224. "maleParts": true,
  225. "femaleParts": true,
  226. "fillCum": function(self) {
  227. self.cumStorage.amount += self.cumScale * self.ballVolume / 120;
  228. if (self.cumStorage.amount > self.cumStorage.limit)
  229. self.arouse(10 * (self.cumStorage.amount / self.cumStorage.limit - 1));
  230. setTimeout(function () { self.fillCum(self) }, 1000);
  231. update();
  232. },
  233. "fillFemcum": function(self) {
  234. self.femcumStorage.amount += self.femcumScale * self.vaginaVolume / 120;
  235. if (self.femcumStorage.amount > self.femcumStorage.limit)
  236. self.arouse(10 * (self.femcumStorage.amount / self.femcumStorage.limit - 1));
  237. setTimeout(function () { self.fillFemcum(self) }, 1000);
  238. update();
  239. },
  240. "cumStorage": {
  241. "amount": 0,
  242. get limit() {
  243. return this.owner.ballVolume;
  244. }
  245. },
  246. "femcumStorage": {
  247. "amount": 0,
  248. get limit() {
  249. return this.owner.vaginaVolume;
  250. }
  251. },
  252. "orgasm": false,
  253. "afterglow": false,
  254. "arousalEnabled": true,
  255. "arousalFactor": 1,
  256. "arousal": 0,
  257. "edge": 0,
  258. "arouse": function(amount) {
  259. if (!this.arousalEnabled)
  260. return;
  261. if (this.afterglow)
  262. return;
  263. this.arousal += amount * this.arousalFactor;
  264. if (this.arousal >= 200) {
  265. this.arousal = 200;
  266. if (!this.orgasm) {
  267. this.orgasm = true;
  268. if (this.maleParts) {
  269. this.maleOrgasm(this);
  270. }
  271. if (this.femaleParts) {
  272. this.femaleOrgasm(this);
  273. }
  274. }
  275. }
  276. },
  277. "quench": function(amount) {
  278. if (!this.arousalEnabled)
  279. return;
  280. this.arousal -= amount;
  281. if (this.arousal <= 100) {
  282. if (this.orgasm) {
  283. this.orgasm = false;
  284. this.afterglow = true;
  285. }
  286. }
  287. if (this.arousal < 0) {
  288. this.arousal = 0;
  289. this.afterglow = false;
  290. }
  291. update();
  292. },
  293. "quenchExcess": function(self) {
  294. if (self.arousalEnabled) {
  295. if (self.arousal > 100 && !self.orgasm) {
  296. self.arousal = Math.max(100,self.arousal-1);
  297. self.edge += Math.sqrt((self.arousal - 100)) / 500;
  298. self.edge = Math.min(1,self.edge);
  299. self.edge = Math.max(0,self.edge - 0.002);
  300. update();
  301. } else if (self.afterglow) {
  302. self.quench(0.5);
  303. self.edge = Math.max(0,self.edge - 0.01);
  304. }
  305. }
  306. setTimeout(function() { self.quenchExcess(self); }, 200);
  307. },
  308. "maleOrgasm": function(self) {
  309. if (!this.arousalEnabled)
  310. return;
  311. if (self.orgasm) {
  312. self.quench(10);
  313. var amount = Math.min(this.cumVolume, this.cumStorage.amount);
  314. this.cumStorage.amount -= amount;
  315. male_orgasm(amount);
  316. setTimeout(function() { self.maleOrgasm(self) }, 2000);
  317. }
  318. },
  319. "femaleOrgasm": function(self) {
  320. if (!this.arousalEnabled)
  321. return;
  322. if (this.orgasm) {
  323. this.quench(10);
  324. var amount = Math.min(this.femcumVolume, this.femcumStorage.amount);
  325. this.femcumStorage.amount -= amount;
  326. female_orgasm(amount);
  327. setTimeout(function() { self.femaleOrgasm(self) }, 2000);
  328. }
  329. },
  330. get description() {
  331. result = [];
  332. line = "You are a " + length(macro.height, unit, true) + " tall " + macro.species + ". You weigh " + mass(macro.mass, unit) + ".";
  333. result.push(line);
  334. if (this.arousalEnabled) {
  335. if (this.afterglow) {
  336. result.push("You're basking in the afterglow of a powerful orgasm.");
  337. }
  338. else if (this.orgasm) {
  339. result.push("You're cumming!");
  340. } else if (this.arousal < 25) {
  341. } else if (this.arousal < 75) {
  342. result.push("You're feeling a little aroused.");
  343. } else if (this.arousal < 150) {
  344. result.push("You're feeling aroused.");
  345. } else if (this.arousal < 200) {
  346. result.push("You're on the edge of an orgasm!");
  347. }
  348. }
  349. if (this.maleParts) {
  350. line = "Your " + this.describeDick + " cock hangs from your hips, with two " + mass(macro.ballMass, unit, true) + ", " + length(macro.ballDiameter, unit, true) + "-wide balls hanging beneath.";
  351. result.push(line);
  352. }
  353. if (this.femaleParts) {
  354. line = "Your glistening " + this.describeVagina + " slit peeks out from between your legs."
  355. result.push(line);
  356. line = "You have two " + length(macro.breastDiameter, unit, true) + "-wide breasts that weigh " + mass(macro.breastMass, unit) + " apiece.";
  357. result.push(line);
  358. }
  359. return result;
  360. },
  361. get describeDick() {
  362. state = "";
  363. if (!this.arousalEnabled) {
  364. state = "limp";
  365. } else if (this.orgasm) {
  366. state = "spurting";
  367. } else {
  368. if (this.arousal < 25) {
  369. state = "limp";
  370. } else if (this.arousal < 75) {
  371. state = "swelling";
  372. } else if (this.arousal < 100) {
  373. state = "erect";
  374. } else if (this.arousal < 150) {
  375. state = "erect, throbbing";
  376. } else if (this.arousal < 200) {
  377. state = "erect, throbbing, pre-soaked";
  378. }
  379. }
  380. return length(macro.dickLength, unit, true) + " long " + state + " " + macro.dickType;
  381. },
  382. get describeVagina() {
  383. state = "";
  384. if (!this.arousalEnabled) {
  385. state = "unassuming";
  386. } else if (this.orgasm) {
  387. state = "gushing, quivering";
  388. } else {
  389. if (this.arousal < 25) {
  390. state = "unassuming";
  391. } else if (this.arousal < 75) {
  392. state = "moist";
  393. } else if (this.arousal < 100) {
  394. state = "glistening";
  395. } else if (this.arousal < 150) {
  396. state = "dripping";
  397. } else if (this.arousal < 200) {
  398. state = "dripping, quivering";
  399. }
  400. }
  401. return length(macro.vaginaLength, unit, true) + " long " + state
  402. },
  403. "growthPoints": 0,
  404. "addGrowthPoints": function(mass) {
  405. this.growthPoints += Math.round(50 * mass / (this.scale*this.scale));
  406. },
  407. "scale": 1,
  408. }
  409. function look()
  410. {
  411. var desc = macro.description;
  412. var line2 = ""
  413. if (macro.height > 1e12)
  414. line2 = "You're pretty much everywhere at once.";
  415. else if (macro.height > 1e6)
  416. line2 = "You're standing...on pretty much everything at once.";
  417. else
  418. switch(biome) {
  419. case "rural": line2 = "You're standing amongst rural farmhouses and expansive ranches. Cattle are milling about at your feet."; break;
  420. case "suburb": line2 = "You're striding through the winding roads of a suburb."; break;
  421. case "city": line2 = "You're terrorizing the streets of a city. Heavy traffic, worsened by your rampage, is everywhere."; break;
  422. case "downtown": line2 = "You're lurking amongst the skyscrapers of downtown. The streets are packed, and the buildings are practically begging you to knock them over.";
  423. }
  424. desc = desc.concat([newline,line2,newline]);
  425. update(desc);
  426. }
  427. function get_living_prey(sum) {
  428. var total = 0;
  429. for (var key in sum) {
  430. if (sum.hasOwnProperty(key)) {
  431. if (key == "Person" || key == "Cow")
  432. total += sum[key];
  433. }
  434. }
  435. return total;
  436. }
  437. function toggle_auto()
  438. {
  439. strolling = !strolling;
  440. document.getElementById("button-stroll").innerHTML = "Status: " + (strolling ? "Strolling" : "Standing");
  441. if (strolling)
  442. update(["You start walking.",newline]);
  443. else
  444. update(["You stop walking.",newline]);
  445. }
  446. function change_location()
  447. {
  448. switch(biome) {
  449. case "suburb": biome = "city"; break;
  450. case "city": biome = "downtown"; break;
  451. case "downtown": biome = "rural"; break;
  452. case "rural": biome = "suburb"; break;
  453. }
  454. document.getElementById("button-location").innerHTML = "Location: " + biome.charAt(0).toUpperCase() + biome.slice(1);
  455. }
  456. function toggle_units()
  457. {
  458. switch(unit) {
  459. case "metric": unit = "customary"; break;
  460. case "customary": unit = "approx"; break;
  461. case "approx": unit = "metric"; break;
  462. }
  463. document.getElementById("button-units").innerHTML = "Units: " + unit.charAt(0).toUpperCase() + unit.slice(1);
  464. update();
  465. }
  466. function toggle_numbers() {
  467. switch(numbers) {
  468. case "full": numbers="prefix"; break;
  469. case "prefix": numbers="words"; break;
  470. case "words": numbers = "scientific"; break;
  471. case "scientific": numbers = "full"; break;
  472. }
  473. document.getElementById("button-numbers").innerHTML = "Numbers: " + numbers.charAt(0).toUpperCase() + numbers.slice(1);
  474. update();
  475. }
  476. function toggle_verbose()
  477. {
  478. verbose = !verbose;
  479. document.getElementById("button-verbose").innerHTML = "Descriptions: " + (verbose ? "Verbose" : "Simple");
  480. }
  481. function toggle_arousal()
  482. {
  483. macro.arousalEnabled = !macro.arousalEnabled;
  484. document.getElementById("button-arousal").innerHTML = (macro.arousalEnabled ? "Arousal On" : "Arousal Off");
  485. if (macro.arousalEnabled) {
  486. document.getElementById("arousal").style.display = "block";
  487. document.getElementById("edge").style.display = "block";
  488. } else {
  489. document.getElementById("arousal").style.display = "none";
  490. document.getElementById("edge").style.display = "none";
  491. }
  492. }
  493. function initVictims()
  494. {
  495. return {
  496. "Person": 0,
  497. "Cow": 0,
  498. "Car": 0,
  499. "Bus": 0,
  500. "Tram": 0,
  501. "Motorcycle": 0,
  502. "House": 0,
  503. "Barn": 0,
  504. "Small Skyscraper": 0,
  505. "Large Skyscraper": 0,
  506. "Train": 0,
  507. "Train Car": 0,
  508. "Parking Garage": 0,
  509. "Overpass": 0,
  510. "Town": 0,
  511. "City": 0,
  512. "Continent": 0,
  513. "Planet": 0,
  514. "Star": 0,
  515. "Solar System": 0,
  516. "Galaxy": 0
  517. };
  518. };
  519. // lists out total people
  520. function summarize(sum, fatal = true)
  521. {
  522. var count = get_living_prey(sum);
  523. return "<b>(" + count + " " + (fatal ? (count > 1 ? "kills" : "kill") : (count > 1 ? "prey" : "prey")) + ")</b>";
  524. }
  525. function getOnePrey(biome,area)
  526. {
  527. var potential = ["Person"];
  528. if (macro.height > 1e12)
  529. potential = ["Planet","Star","Solar System","Galaxy"];
  530. else if (macro.height > 1e6)
  531. potential = ["Town","City","Continent","Planet"];
  532. else
  533. switch(biome) {
  534. case "suburb": potential = ["Person", "Car", "Bus", "Train", "House"]; break;
  535. case "city": potential = ["Person", "Car", "Bus", "Train", "Tram", "House", "Parking Garage"]; break;
  536. case "downtown": potential = ["Person", "Car", "Bus", "Tram", "Small Skyscraper", "Large Skyscraper", "Parking Garage"]; break;
  537. case "rural": potential = ["Person", "Barn", "House", "Cow"]; break;
  538. }
  539. var potAreas = []
  540. potential.forEach(function (x) {
  541. potAreas.push([x,areas[x]]);
  542. });
  543. potAreas = potAreas.sort(function (x,y) {
  544. return y[1] - x[1];
  545. });
  546. for (var i=0; i<potAreas.length; i++) {
  547. x = potAreas[i];
  548. if (x[1] < area) {
  549. return new Container([new things[x[0]](1)]);
  550. }
  551. };
  552. return new Container([new Person(1)]);
  553. }
  554. function getPrey(region, area)
  555. {
  556. var weights = {"Person": 1};
  557. if (macro.height > 1e12) {
  558. weights = {
  559. "Planet": 1e-10,
  560. "Star": 1e-10,
  561. "Solar System": 1e-10,
  562. "Galaxy": 1e-10
  563. }
  564. }
  565. else if (macro.height > 1e6) {
  566. weights = {
  567. "Town": 0.1,
  568. "City": 0.05,
  569. "Continent": 0.005,
  570. "Planet": 0.0001
  571. }
  572. }
  573. else {
  574. switch(region)
  575. {
  576. case "rural": weights = {
  577. "Person": 0.05,
  578. "House": 0.01,
  579. "Barn": 0.01,
  580. "Cow": 0.2
  581. }; break;
  582. case "suburb": weights = {
  583. "Person": 0.5,
  584. "House": 0.5,
  585. "Car": 0.2,
  586. "Train": 0.1,
  587. "Bus": 0.1
  588. }; break;
  589. case "city": weights = {
  590. "Person": 0.5,
  591. "House": 0.2,
  592. "Car": 0.2,
  593. "Train": 0.1,
  594. "Bus": 0.1,
  595. "Tram": 0.1,
  596. "Parking Garage": 0.02
  597. }; break;
  598. case "downtown": weights = {
  599. "Person": 0.5,
  600. "Car": 0.3,
  601. "Bus": 0.15,
  602. "Tram": 0.1,
  603. "Parking Garage": 0.02,
  604. "Small Skyscraper": 0.4,
  605. "Large Skyscraper": 0.1
  606. }; break;
  607. }
  608. }
  609. return fill_area(area,weights);
  610. }
  611. function updateVictims(type,prey)
  612. {
  613. var sums = prey.sum();
  614. for (var key in sums) {
  615. if (sums.hasOwnProperty(key)) {
  616. victims[type][key] += sums[key];
  617. }
  618. }
  619. }
  620. function feed()
  621. {
  622. var area = macro.handArea;
  623. var prey = getPrey(biome, area);
  624. var line = describe("eat", prey, macro, verbose)
  625. var linesummary = summarize(prey.sum(), false);
  626. var people = get_living_prey(prey.sum());
  627. var sound = "";
  628. if (people == 0) {
  629. sound = "";
  630. } else if (people < 3) {
  631. sound = "Ulp.";
  632. } else if (people < 10) {
  633. sound = "Gulp.";
  634. } else if (people < 50) {
  635. sound = "Glrrp.";
  636. } else if (people < 500) {
  637. sound = "Glrrrpkh!";
  638. } else if (people < 5000) {
  639. sound = "GLRRKPKH!";
  640. } else {
  641. sound = "Oh the humanity!";
  642. }
  643. var preyMass = prey.sum_property("mass");
  644. macro.addGrowthPoints(preyMass);
  645. macro.stomach.feed(prey);
  646. macro.arouse(5);
  647. updateVictims("stomach",prey);
  648. update([sound,line,linesummary,newline]);
  649. }
  650. function stomp()
  651. {
  652. var area = macro.pawArea;
  653. var prey = getPrey(biome, area);
  654. var line = describe("stomp", prey, macro, verbose)
  655. var linesummary = summarize(prey.sum(), true);
  656. var people = get_living_prey(prey.sum());
  657. var sound = "Thump";
  658. if (people < 3) {
  659. sound = "Thump!";
  660. } else if (people < 10) {
  661. sound = "Squish!";
  662. } else if (people < 50) {
  663. sound = "Crunch!";
  664. } else if (people < 500) {
  665. sound = "CRUNCH!";
  666. } else if (people < 5000) {
  667. sound = "CRRUUUNCH!!";
  668. } else {
  669. sound = "Oh the humanity!";
  670. }
  671. var preyMass = prey.sum_property("mass");
  672. macro.addGrowthPoints(preyMass);
  673. macro.arouse(5);
  674. updateVictims("stomped",prey);
  675. update([sound,line,linesummary,newline]);
  676. }
  677. function grind()
  678. {
  679. var area = macro.assArea / 2;
  680. if (macro.maleParts)
  681. area += macro.dickArea
  682. if (macro.femalePartS)
  683. area += macro.vaginaArea;
  684. var prey = getPrey(biome,area);
  685. var line = describe("grind", prey, macro, verbose);
  686. var linesummary = summarize(prey.sum(), true);
  687. var people = get_living_prey(prey.sum());
  688. var sound = "";
  689. if (people < 3) {
  690. sound = "Thump.";
  691. } else if (people < 10) {
  692. sound = "Crunch.";
  693. } else if (people < 50) {
  694. sound = "Crrrrunch.";
  695. } else if (people < 500) {
  696. sound = "SMASH!";
  697. } else if (people < 5000) {
  698. sound = "CCCRASH!!";
  699. } else {
  700. sound = "Oh the humanity!";
  701. }
  702. var preyMass = prey.sum_property("mass");
  703. macro.addGrowthPoints(preyMass);
  704. macro.arouse(20);
  705. updateVictims("ground",prey);
  706. update([sound,line,linesummary,newline]);
  707. }
  708. function anal_vore()
  709. {
  710. var area = macro.analVoreArea;
  711. var prey = getOnePrey(biome,area);
  712. area = macro.assArea;
  713. var crushed = getPrey(biome,area);
  714. var line1 = describe("anal-vore", prey, macro, verbose);
  715. var line1summary = summarize(prey.sum(), false);
  716. var line2 = describe("ass-crush", crushed, macro, verbose);
  717. var line2summary = summarize(crushed.sum(), true);
  718. var people = get_living_prey(prey.sum());
  719. var sound = "Shlp";
  720. if (people < 3) {
  721. sound = "Shlp.";
  722. } else if (people < 10) {
  723. sound = "Squelch.";
  724. } else if (people < 50) {
  725. sound = "Shlurrp.";
  726. } else if (people < 500) {
  727. sound = "SHLRP!";
  728. } else if (people < 5000) {
  729. sound = "SQLCH!!";
  730. } else {
  731. sound = "Oh the humanity!";
  732. }
  733. var people = get_living_prey(crushed.sum());
  734. var sound2 = "Thump";
  735. if (people < 3) {
  736. sound2 = "Thump!";
  737. } else if (people < 10) {
  738. sound2 = "Squish!";
  739. } else if (people < 50) {
  740. sound2 = "Crunch!";
  741. } else if (people < 500) {
  742. sound2 = "CRUNCH!";
  743. } else if (people < 5000) {
  744. sound2 = "CRRUUUNCH!!";
  745. } else {
  746. sound2 = "Oh the humanity!";
  747. }
  748. var preyMass = prey.sum_property("mass");
  749. var crushedMass = prey.sum_property("mass");
  750. macro.addGrowthPoints(preyMass);
  751. macro.addGrowthPoints(crushedMass);
  752. macro.bowels.feed(prey);
  753. macro.arouse(10);
  754. updateVictims("bowels",prey);
  755. updateVictims("stomped",crushed);
  756. update([sound,line1,line1summary,newline,sound2,line2,line2summary,newline]);
  757. }
  758. function breast_crush()
  759. {
  760. var area = macro.breastArea;
  761. var prey = getPrey(biome, area);
  762. var line = describe("breast-crush", prey, macro, verbose);
  763. var linesummary = summarize(prey.sum(), true);
  764. var people = get_living_prey(prey.sum());
  765. var sound = "Thump";
  766. if (people < 3) {
  767. sound = "Thump!";
  768. } else if (people < 10) {
  769. sound = "Squish!";
  770. } else if (people < 50) {
  771. sound = "Crunch!";
  772. } else if (people < 500) {
  773. sound = "CRUNCH!";
  774. } else if (people < 5000) {
  775. sound = "CRRUUUNCH!!";
  776. } else {
  777. sound = "Oh the humanity!";
  778. }
  779. var preyMass = prey.sum_property("mass");
  780. macro.addGrowthPoints(preyMass);
  781. macro.arouse(10);
  782. updateVictims("breasts",prey);
  783. update([sound,line,linesummary,newline]);
  784. }
  785. function unbirth()
  786. {
  787. var area = macro.vaginaArea;
  788. var prey = getPrey(biome, area);
  789. var line = describe("unbirth", prey, macro, verbose)
  790. var linesummary = summarize(prey.sum(), false);
  791. var people = get_living_prey(prey.sum());
  792. var sound = "";
  793. if (people < 3) {
  794. sound = "Shlp.";
  795. } else if (people < 10) {
  796. sound = "Squelch.";
  797. } else if (people < 50) {
  798. sound = "Shlurrp.";
  799. } else if (people < 500) {
  800. sound = "SHLRP!";
  801. } else if (people < 5000) {
  802. sound = "SQLCH!!";
  803. } else {
  804. sound = "Oh the humanity!";
  805. }
  806. var preyMass = prey.sum_property("mass");
  807. macro.addGrowthPoints(preyMass);
  808. macro.womb.feed(prey);
  809. macro.arouse(20);
  810. updateVictims("womb",prey);
  811. update([sound,line,linesummary,newline]);
  812. }
  813. function cockslap()
  814. {
  815. var area = macro.dickArea;
  816. var prey = getPrey(biome, area);
  817. var line = describe("cockslap", prey, macro, verbose)
  818. var linesummary = summarize(prey.sum(), true);
  819. var people = get_living_prey(prey.sum());
  820. var sound = "Thump";
  821. if (people < 3) {
  822. sound = "Thump!";
  823. } else if (people < 10) {
  824. sound = "Squish!";
  825. } else if (people < 50) {
  826. sound = "Crunch!";
  827. } else if (people < 500) {
  828. sound = "CRUNCH!";
  829. } else if (people < 5000) {
  830. sound = "CRRUUUNCH!!";
  831. } else {
  832. sound = "Oh the humanity!";
  833. }
  834. var preyMass = prey.sum_property("mass");
  835. macro.addGrowthPoints(preyMass);
  836. macro.arouse(15);
  837. updateVictims("cock",prey);
  838. update([sound,line,linesummary,newline]);
  839. }
  840. function cock_vore()
  841. {
  842. var area = macro.dickGirth;
  843. var prey = getPrey(biome, area);
  844. var line = describe("cock-vore", prey, macro, verbose)
  845. var linesummary = summarize(prey.sum(), false);
  846. var people = get_living_prey(prey.sum());
  847. var sound = "lp";
  848. if (people < 3) {
  849. sound = "Shlp.";
  850. } else if (people < 10) {
  851. sound = "Squelch.";
  852. } else if (people < 50) {
  853. sound = "Shlurrp.";
  854. } else if (people < 500) {
  855. sound = "SHLRP!";
  856. } else if (people < 5000) {
  857. sound = "SQLCH!!";
  858. } else {
  859. sound = "Oh the humanity!";
  860. }
  861. var preyMass = prey.sum_property("mass");
  862. macro.addGrowthPoints(preyMass);
  863. macro.balls.feed(prey);
  864. macro.arouse(20);
  865. updateVictims("balls",prey);
  866. update([sound,line,linesummary,newline]);
  867. }
  868. function ball_smother()
  869. {
  870. var area = macro.ballArea * 2;
  871. var prey = getPrey(biome, area);
  872. var line = describe("ball-smother", prey, macro, verbose)
  873. var linesummary = summarize(prey.sum(), true);
  874. var people = get_living_prey(prey.sum());
  875. var sound = "Thump";
  876. if (people < 3) {
  877. sound = "Thump!";
  878. } else if (people < 10) {
  879. sound = "Squish!";
  880. } else if (people < 50) {
  881. sound = "Smoosh!";
  882. } else if (people < 500) {
  883. sound = "SMOOSH!";
  884. } else if (people < 5000) {
  885. sound = "SMOOOOOSH!!";
  886. } else {
  887. sound = "Oh the humanity!";
  888. }
  889. var preyMass = prey.sum_property("mass");
  890. macro.addGrowthPoints(preyMass);
  891. macro.arouse(10);
  892. updateVictims("balls",prey);
  893. update([sound,line,linesummary,newline]);
  894. }
  895. function male_orgasm(vol)
  896. {
  897. var area = Math.pow(vol, 2/3);
  898. var prey = getPrey(biome, area);
  899. var line = describe("male-orgasm", prey, macro, verbose).replace("$VOLUME",volume(vol,unit,false))
  900. var linesummary = summarize(prey.sum(), true);
  901. var people = get_living_prey(prey.sum());
  902. var sound = "Spurt!";
  903. if (people < 3) {
  904. sound = "Spurt!";
  905. } else if (people < 10) {
  906. sound = "Sploosh!";
  907. } else if (people < 50) {
  908. sound = "Sploooooosh!";
  909. } else if (people < 500) {
  910. sound = "SPLOOSH!";
  911. } else if (people < 5000) {
  912. sound = "SPLOOOOOOOOOOSH!!";
  913. } else {
  914. sound = "Oh the humanity!";
  915. }
  916. var preyMass = prey.sum_property("mass");
  917. macro.addGrowthPoints(preyMass);
  918. updateVictims("splooged",prey);
  919. update([sound,line,linesummary,newline]);
  920. }
  921. function female_orgasm(vol)
  922. {
  923. var area = Math.pow(vol, 2/3);
  924. var prey = getPrey(biome, area);
  925. var line = describe("female-orgasm", prey, macro, verbose).replace("$VOLUME",volume(vol,unit,false));
  926. var linesummary = summarize(prey.sum(), true);
  927. var people = get_living_prey(prey.sum());
  928. var sound = "Spurt!";
  929. if (people < 3) {
  930. sound = "Spurt!";
  931. } else if (people < 10) {
  932. sound = "Sploosh!";
  933. } else if (people < 50) {
  934. sound = "Sploooooosh!";
  935. } else if (people < 500) {
  936. sound = "SPLOOSH!";
  937. } else if (people < 5000) {
  938. sound = "SPLOOOOOOOOOOSH!!";
  939. } else {
  940. sound = "Oh the humanity!";
  941. }
  942. var preyMass = prey.sum_property("mass");
  943. macro.addGrowthPoints(preyMass);
  944. updateVictims("splooged",prey);
  945. update([sound,line,linesummary,newline]);
  946. }
  947. function transformNumbers(line)
  948. {
  949. return line.toString().replace(/[0-9]+(\.[0-9]+)?(e\+[0-9]+)?/g, function(text) { return number(text, numbers); });
  950. }
  951. function update(lines = [])
  952. {
  953. var log = document.getElementById("log");
  954. lines.forEach(function (x) {
  955. var line = document.createElement('div');
  956. line.innerHTML = transformNumbers(x);
  957. log.appendChild(line);
  958. });
  959. if (lines.length > 0)
  960. log.scrollTop = log.scrollHeight;
  961. document.getElementById("height").innerHTML = "Height: " + transformNumbers(length(macro.height, unit));
  962. document.getElementById("mass").innerHTML = "Mass: " + transformNumbers(mass(macro.mass, unit));
  963. document.getElementById("growth-points").innerHTML = "Growth Points:" + macro.growthPoints;
  964. document.getElementById("arousal").innerHTML = "Arousal: " + round(macro.arousal,0) + "%";
  965. document.getElementById("edge").innerHTML = "Edge: " + round(macro.edge * 100,0) + "%";
  966. document.getElementById("cum").innerHTML = "Cum: " + transformNumbers(volume(macro.cumStorage.amount,unit,false))
  967. document.getElementById("cumPercent").innerHTML = Math.round(macro.cumStorage.amount / macro.cumStorage.limit * 100) + "%";
  968. document.getElementById("femcum").innerHTML = "Femcum: " + transformNumbers(volume(macro.femcumStorage.amount,unit,false));
  969. document.getElementById("femcumPercent").innerHTML = Math.round(macro.femcumStorage.amount / macro.femcumStorage.limit * 100) + "%";
  970. for (var type in victims) {
  971. if (victims.hasOwnProperty(type)) {
  972. for (var key in victims[type]){
  973. if (victims[type].hasOwnProperty(key) && victims[type][key] > 0) {
  974. document.getElementById("stat-" + key).style.display = "table-row";
  975. document.getElementById("stat-" + type + "-" + key).innerHTML = number(victims[type][key],numbers);
  976. }
  977. }
  978. }
  979. }
  980. }
  981. function pick_move()
  982. {
  983. if (!strolling) {
  984. setTimeout(pick_move, 1500 * Math.sqrt(macro.scale));
  985. return;
  986. }
  987. var choice = Math.random();
  988. if (choice < 0.2) {
  989. anal_vore();
  990. } else if (choice < 0.6) {
  991. stomp();
  992. } else {
  993. feed();
  994. }
  995. setTimeout(pick_move, 1500 * Math.sqrt(macro.scale));
  996. }
  997. function grow_pick(times) {
  998. if (document.getElementById("part-body").checked == true) {
  999. grow(times);
  1000. }
  1001. else if (document.getElementById("part-ass").checked == true) {
  1002. grow_ass(times);
  1003. }
  1004. else if (document.getElementById("part-dick").checked == true) {
  1005. grow_dick(times);
  1006. }
  1007. else if (document.getElementById("part-balls").checked == true) {
  1008. grow_balls(times);
  1009. }
  1010. else if (document.getElementById("part-breasts").checked == true) {
  1011. grow_breasts(times);
  1012. }
  1013. else if (document.getElementById("part-vagina").checked == true) {
  1014. grow_vagina(times);
  1015. }
  1016. }
  1017. function grow(times=1)
  1018. {
  1019. if (macro.growthPoints < 100 * times) {
  1020. update(["You don't feel like growing right now."]);
  1021. return;
  1022. }
  1023. macro.growthPoints -= 100 * times;
  1024. var oldHeight = macro.height;
  1025. var oldMass = macro.mass;
  1026. macro.scale *= Math.pow(1.02,times);
  1027. var newHeight = macro.height;
  1028. var newMass = macro.mass;
  1029. var heightDelta = newHeight - oldHeight;
  1030. var massDelta = newMass - oldMass;
  1031. var heightStr = length(heightDelta, unit);
  1032. var massStr = mass(massDelta, unit);
  1033. update(["Power surges through you as you grow " + heightStr + " taller and gain " + massStr + " of mass",newline]);
  1034. }
  1035. function grow_dick(times=1)
  1036. {
  1037. if (macro.growthPoints < 10 * times) {
  1038. update(["You don't feel like growing right now."]);
  1039. return;
  1040. }
  1041. macro.growthPoints -= 10 * times;
  1042. var oldLength = macro.dickLength;
  1043. var oldMass = macro.dickMass;
  1044. macro.dickScale = Math.pow(macro.dickScale * macro.dickScale + 1.02*times, 1/2) ;
  1045. var lengthDelta = macro.dickLength - oldLength;
  1046. var massDelta = macro.dickMass - oldMass;
  1047. update(["Power surges through you as your " + macro.dickType + " cock grows " + length(lengthDelta, unit, false) + " longer and gains " + mass(massDelta, unit, false) + " of mass",newline]);
  1048. }
  1049. function grow_balls(times=1)
  1050. {
  1051. if (macro.growthPoints < 10 * times) {
  1052. update(["You don't feel like growing right now."]);
  1053. return;
  1054. }
  1055. macro.growthPoints -= 10 * times;
  1056. var oldDiameter = macro.ballDiameter;
  1057. var oldMass = macro.ballMass;
  1058. macro.ballScale = Math.pow(macro.ballScale * macro.ballScale + 1.02*times, 1/2) ;
  1059. var diameterDelta = macro.ballDiameter - oldDiameter;
  1060. var massDelta = macro.ballMass - oldMass;
  1061. update(["Power surges through you as your balls swell by " + length(diameterDelta, unit, false) + ", gaining " + mass(massDelta, unit, false) + " of mass apiece",newline]);
  1062. }
  1063. function grow_breasts(times=1)
  1064. {
  1065. if (macro.growthPoints < 10 * times) {
  1066. update(["You don't feel like growing right now."]);
  1067. return;
  1068. }
  1069. macro.growthPoints -= 10 * times;
  1070. var oldDiameter = macro.breastDiameter;
  1071. var oldMass = macro.breastMass;
  1072. macro.breastScale = Math.pow(macro.breastScale * macro.breastScale + 1.02*times, 1/2) ;
  1073. var diameterDelta = macro.breastDiameter - oldDiameter;
  1074. var massDelta = macro.breastMass - oldMass;
  1075. update(["Power surges through you as your breasts swell by " + length(diameterDelta, unit, false) + ", gaining " + mass(massDelta, unit, false) + " of mass apiece",newline]);
  1076. }
  1077. function grow_vagina(times=1)
  1078. {
  1079. if (macro.growthPoints < 10 * times) {
  1080. update(["You don't feel like growing right now."]);
  1081. return;
  1082. }
  1083. macro.growthPoints -= 10 * times;
  1084. var oldLength = macro.vaginaLength;
  1085. macro.vaginaScale = Math.pow(macro.vaginaScale * macro.vaginaScale + 1.02*times, 1/2) ;
  1086. var lengthDelta = macro.vaginaLength - oldLength;
  1087. update(["Power surges through you as your moist slit expands by by " + length(lengthDelta, unit, false),newline]);
  1088. }
  1089. function grow_ass(times=1)
  1090. {
  1091. if (macro.growthPoints < 10 * times) {
  1092. update(["You don't feel like growing right now."]);
  1093. return;
  1094. }
  1095. macro.growthPoints -= 10 * times;
  1096. var oldDiameter = Math.pow(macro.assArea,1/2);
  1097. macro.assScale = Math.pow(macro.assScale * macro.assScale + 1.02*times, 1/2) ;
  1098. var diameterDelta = Math.pow(macro.assArea,1/2) - oldDiameter;
  1099. update(["Power surges through you as your ass swells by " + length(diameterDelta, unit, false),newline]);
  1100. }
  1101. function grow_lots()
  1102. {
  1103. var oldHeight = macro.height;
  1104. var oldMass = macro.mass;
  1105. macro.scale *= 100;
  1106. var newHeight = macro.height;
  1107. var newMass = macro.mass;
  1108. var heightDelta = newHeight - oldHeight;
  1109. var massDelta = newMass - oldMass;
  1110. var heightStr = length(heightDelta, unit);
  1111. var massStr = mass(massDelta, unit);
  1112. update(["Power surges through you as you grow " + heightStr + " taller and gain " + massStr + " of mass",newline]);
  1113. }
  1114. function preset(name) {
  1115. switch(name){
  1116. case "Fen":
  1117. macro.species = "crux";
  1118. macro.baseHeight = 2.2606;
  1119. macro.baseMass = 124.738;
  1120. break;
  1121. case "Renard":
  1122. macro.species = "fox";
  1123. macro.baseHeight = 1.549;
  1124. macro.baseMass = 83.9;
  1125. case "Vulpes":
  1126. macro.species = "fox";
  1127. macro.baseHeight = 20000;
  1128. macro.baseMass = 180591661866272;
  1129. }
  1130. }
  1131. function saveSettings() {
  1132. storage = window.localStorage;
  1133. settings = {};
  1134. form = document.forms.namedItem("custom-species-form");
  1135. for (var i=0; i<form.length; i++) {
  1136. if (form[i].value != "") {
  1137. if (form[i].type == "text")
  1138. settings[form[i].name] = form[i].value;
  1139. else if (form[i].type == "number")
  1140. settings[form[i].name] = parseFloat(form[i].value);
  1141. else if (form[i].type == "checkbox") {
  1142. settings[form[i].name] = form[i].checked;
  1143. }
  1144. }
  1145. }
  1146. storage.setItem('settings',JSON.stringify(settings));
  1147. }
  1148. function loadSettings() {
  1149. if (window.localStorage.getItem('settings') == null)
  1150. return;
  1151. storage = window.localStorage;
  1152. settings = JSON.parse(storage.getItem('settings'));
  1153. form = document.forms.namedItem("custom-species-form");
  1154. for (var i=0; i<form.length; i++) {
  1155. if (settings[form[i].name] != undefined) {
  1156. if (form[i].type == "text")
  1157. form[i].value = settings[form[i].name];
  1158. else if (form[i].type == "number")
  1159. form[i].value = settings[form[i].name];
  1160. else if (form[i].type == "checkbox") {
  1161. form[i].checked = settings[form[i].name];
  1162. }
  1163. }
  1164. }
  1165. }
  1166. function startGame(e) {
  1167. form = document.forms.namedItem("custom-species-form");
  1168. for (var i=0; i<form.length; i++) {
  1169. if (form[i].value != "") {
  1170. if (form[i].type == "text")
  1171. macro[form[i].name] = form[i].value;
  1172. else if (form[i].type == "number")
  1173. macro[form[i].name] = parseFloat(form[i].value);
  1174. else if (form[i].type == "checkbox") {
  1175. macro[form[i].name] = form[i].checked;
  1176. }
  1177. }
  1178. }
  1179. document.getElementById("log-area").style.display = 'inline';
  1180. document.getElementById("option-panel").style.display = 'none';
  1181. document.getElementById("action-panel").style.display = 'flex';
  1182. victimTypes = ["stomped","digested","stomach","bowels","ground"];
  1183. if (macro.maleParts) {
  1184. victimTypes = victimTypes.concat(["cock","balls"]);
  1185. } else {
  1186. document.getElementById("button-cockslap").style.display = 'none';
  1187. document.getElementById("button-cock_vore").style.display = 'none';
  1188. document.getElementById("button-ball_smother").style.display = 'none';
  1189. document.getElementById("cum").style.display = 'none';
  1190. document.querySelector("#part-balls+label").style.display = 'none';
  1191. document.querySelector("#part-dick+label").style.display = 'none';
  1192. }
  1193. if (macro.femaleParts) {
  1194. victimTypes = victimTypes.concat(["breasts"],["womb"]);
  1195. } else {
  1196. document.getElementById("button-breast_crush").style.display = 'none';
  1197. document.getElementById("button-unbirth").style.display = 'none';
  1198. document.getElementById("femcum").style.display = 'none';
  1199. document.querySelector("#part-breasts+label").style.display = 'none';
  1200. document.querySelector("#part-vagina+label").style.display = 'none';
  1201. }
  1202. if (macro.maleParts || macro.femaleParts) {
  1203. victimTypes.push("splooged");
  1204. }
  1205. var table = document.getElementById("victim-table");
  1206. var tr = document.createElement('tr');
  1207. var th = document.createElement('th');
  1208. th.innerHTML = "Method";
  1209. tr.appendChild(th);
  1210. for (var i = 0; i < victimTypes.length; i++) {
  1211. var th = document.createElement('th');
  1212. th.classList.add("victim-table-cell");
  1213. th.innerHTML = victimTypes[i].charAt(0).toUpperCase() + victimTypes[i].slice(1);
  1214. tr.appendChild(th);
  1215. }
  1216. table.appendChild(tr);
  1217. for (var key in things) {
  1218. if (things.hasOwnProperty(key) && key != "Container") {
  1219. var tr = document.createElement('tr');
  1220. tr.id = "stat-" + key;
  1221. tr.style.display = "none";
  1222. var th = document.createElement('th');
  1223. th.innerHTML = key;
  1224. tr.appendChild(th);
  1225. for (var i = 0; i < victimTypes.length; i++) {
  1226. var th = document.createElement('th');
  1227. th.innerHTML = 0;
  1228. th.id = "stat-" + victimTypes[i] + "-" + key;
  1229. tr.appendChild(th);
  1230. }
  1231. table.appendChild(tr);
  1232. }
  1233. }
  1234. document.getElementById("button-arousal").innerHTML = (macro.arousalEnabled ? "Arousal On" : "Arousal Off");
  1235. if (!macro.arousalEnabled) {
  1236. document.getElementById("arousal").style.display = "none";
  1237. document.getElementById("edge").style.display = "none";
  1238. }
  1239. //var species = document.getElementById("option-species").value;
  1240. //var re = /^[a-zA-Z\- ]+$/;
  1241. // tricksy tricksy players
  1242. //if (re.test(species)) {
  1243. // macro.species = species;
  1244. //}
  1245. macro.init();
  1246. update();
  1247. document.getElementById("stat-container").style.display = 'flex';
  1248. }
  1249. window.addEventListener('load', function(event) {
  1250. victims["stomped"] = initVictims();
  1251. victims["digested"] = initVictims();
  1252. victims["stomach"] = initVictims();
  1253. victims["bowels"] = initVictims();
  1254. victims["breasts"] = initVictims();
  1255. victims["womb"] = initVictims();
  1256. victims["cock"] = initVictims();
  1257. victims["balls"] = initVictims();
  1258. victims["smothered"] = initVictims();
  1259. victims["splooged"] = initVictims();
  1260. victims["ground"] = initVictims();
  1261. document.getElementById("button-look").addEventListener("click",look);
  1262. document.getElementById("button-feed").addEventListener("click",feed);
  1263. document.getElementById("button-stomp").addEventListener("click",stomp);
  1264. document.getElementById("button-breast_crush").addEventListener("click",breast_crush);
  1265. document.getElementById("button-unbirth").addEventListener("click",unbirth);
  1266. document.getElementById("button-cockslap").addEventListener("click",cockslap);
  1267. document.getElementById("button-cock_vore").addEventListener("click",cock_vore);
  1268. document.getElementById("button-ball_smother").addEventListener("click",ball_smother);
  1269. document.getElementById("button-grind").addEventListener("click",grind);
  1270. document.getElementById("button-anal_vore").addEventListener("click",anal_vore);
  1271. document.getElementById("button-stroll").addEventListener("click",toggle_auto);
  1272. document.getElementById("button-location").addEventListener("click",change_location);
  1273. document.getElementById("button-numbers").addEventListener("click",toggle_numbers);
  1274. document.getElementById("button-units").addEventListener("click",toggle_units);
  1275. document.getElementById("button-verbose").addEventListener("click",toggle_verbose);
  1276. document.getElementById("button-arousal").addEventListener("click",toggle_arousal);
  1277. document.getElementById("button-grow-lots").addEventListener("click",grow_lots);
  1278. document.getElementById("button-amount-1").addEventListener("click",function() { grow_pick(1); });
  1279. document.getElementById("button-amount-5").addEventListener("click",function() { grow_pick(5); });
  1280. document.getElementById("button-amount-10").addEventListener("click",function() { grow_pick(10); });
  1281. document.getElementById("button-amount-20").addEventListener("click",function() { grow_pick(20); });
  1282. document.getElementById("button-amount-50").addEventListener("click",function() { grow_pick(50); });
  1283. document.getElementById("button-amount-100").addEventListener("click",function() { grow_pick(100); });
  1284. document.getElementById("button-load-custom").addEventListener("click",loadSettings);
  1285. document.getElementById("button-save-custom").addEventListener("click",saveSettings);
  1286. document.getElementById("button-start").addEventListener("click",startGame);
  1287. setTimeout(pick_move, 2000);
  1288. });