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

1575 строки
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 describe("stomach",container,verbose);
  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 describe("bowels",container,verbose);
  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 describe("womb",container,verbose);
  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 describe("balls",container,verbose);
  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. // 0 = entirely non-fatal
  408. // 1 = fatal, but not specific
  409. // 2 = gory
  410. "brutality": 1,
  411. "scale": 1,
  412. }
  413. function look()
  414. {
  415. var desc = macro.description;
  416. var line2 = ""
  417. if (macro.height > 1e12)
  418. line2 = "You're pretty much everywhere at once.";
  419. else if (macro.height > 1e6)
  420. line2 = "You're standing...on pretty much everything at once.";
  421. else
  422. switch(biome) {
  423. case "rural": line2 = "You're standing amongst rural farmhouses and expansive ranches. Cattle are milling about at your feet."; break;
  424. case "suburb": line2 = "You're striding through the winding roads of a suburb."; break;
  425. case "city": line2 = "You're terrorizing the streets of a city. Heavy traffic, worsened by your rampage, is everywhere."; break;
  426. 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.";
  427. }
  428. desc = desc.concat([newline,line2,newline]);
  429. update(desc);
  430. }
  431. function get_living_prey(sum) {
  432. var total = 0;
  433. for (var key in sum) {
  434. if (sum.hasOwnProperty(key)) {
  435. if (key == "Person" || key == "Cow")
  436. total += sum[key];
  437. }
  438. }
  439. return total;
  440. }
  441. function toggle_auto()
  442. {
  443. strolling = !strolling;
  444. document.getElementById("button-stroll").innerHTML = "Status: " + (strolling ? "Strolling" : "Standing");
  445. if (strolling)
  446. update(["You start walking.",newline]);
  447. else
  448. update(["You stop walking.",newline]);
  449. }
  450. function change_location()
  451. {
  452. switch(biome) {
  453. case "suburb": biome = "city"; break;
  454. case "city": biome = "downtown"; break;
  455. case "downtown": biome = "rural"; break;
  456. case "rural": biome = "suburb"; break;
  457. }
  458. document.getElementById("button-location").innerHTML = "Location: " + biome.charAt(0).toUpperCase() + biome.slice(1);
  459. }
  460. function toggle_units()
  461. {
  462. switch(unit) {
  463. case "metric": unit = "customary"; break;
  464. case "customary": unit = "approx"; break;
  465. case "approx": unit = "metric"; break;
  466. }
  467. document.getElementById("button-units").innerHTML = "Units: " + unit.charAt(0).toUpperCase() + unit.slice(1);
  468. update();
  469. }
  470. function toggle_numbers() {
  471. switch(numbers) {
  472. case "full": numbers="prefix"; break;
  473. case "prefix": numbers="words"; break;
  474. case "words": numbers = "scientific"; break;
  475. case "scientific": numbers = "full"; break;
  476. }
  477. document.getElementById("button-numbers").innerHTML = "Numbers: " + numbers.charAt(0).toUpperCase() + numbers.slice(1);
  478. update();
  479. }
  480. function toggle_verbose()
  481. {
  482. verbose = !verbose;
  483. document.getElementById("button-verbose").innerHTML = "Descriptions: " + (verbose ? "Verbose" : "Simple");
  484. }
  485. function toggle_arousal()
  486. {
  487. macro.arousalEnabled = !macro.arousalEnabled;
  488. document.getElementById("button-arousal").innerHTML = (macro.arousalEnabled ? "Arousal On" : "Arousal Off");
  489. if (macro.arousalEnabled) {
  490. document.getElementById("arousal").style.display = "block";
  491. document.getElementById("edge").style.display = "block";
  492. } else {
  493. document.getElementById("arousal").style.display = "none";
  494. document.getElementById("edge").style.display = "none";
  495. }
  496. }
  497. function initVictims()
  498. {
  499. return {
  500. "Person": 0,
  501. "Cow": 0,
  502. "Car": 0,
  503. "Bus": 0,
  504. "Tram": 0,
  505. "Motorcycle": 0,
  506. "House": 0,
  507. "Barn": 0,
  508. "Small Skyscraper": 0,
  509. "Large Skyscraper": 0,
  510. "Train": 0,
  511. "Train Car": 0,
  512. "Parking Garage": 0,
  513. "Overpass": 0,
  514. "Town": 0,
  515. "City": 0,
  516. "Continent": 0,
  517. "Planet": 0,
  518. "Star": 0,
  519. "Solar System": 0,
  520. "Galaxy": 0
  521. };
  522. };
  523. // lists out total people
  524. function summarize(sum, fatal = true)
  525. {
  526. var count = get_living_prey(sum);
  527. return "<b>(" + count + " " + (fatal ? (count > 1 ? "kills" : "kill") : (count > 1 ? "prey" : "prey")) + ")</b>";
  528. }
  529. function getOnePrey(biome,area)
  530. {
  531. var potential = ["Person"];
  532. if (macro.height > 1e12)
  533. potential = ["Planet","Star","Solar System","Galaxy"];
  534. else if (macro.height > 1e6)
  535. potential = ["Town","City","Continent","Planet"];
  536. else
  537. switch(biome) {
  538. case "suburb": potential = ["Person", "Car", "Bus", "Train", "House"]; break;
  539. case "city": potential = ["Person", "Car", "Bus", "Train", "Tram", "House", "Parking Garage"]; break;
  540. case "downtown": potential = ["Person", "Car", "Bus", "Tram", "Small Skyscraper", "Large Skyscraper", "Parking Garage"]; break;
  541. case "rural": potential = ["Person", "Barn", "House", "Cow"]; break;
  542. }
  543. var potAreas = []
  544. potential.forEach(function (x) {
  545. potAreas.push([x,areas[x]]);
  546. });
  547. potAreas = potAreas.sort(function (x,y) {
  548. return y[1] - x[1];
  549. });
  550. for (var i=0; i<potAreas.length; i++) {
  551. x = potAreas[i];
  552. if (x[1] < area) {
  553. return new Container([new things[x[0]](1)]);
  554. }
  555. };
  556. return new Container([new Person(1)]);
  557. }
  558. function getPrey(region, area)
  559. {
  560. var weights = {"Person": 1};
  561. if (macro.height > 1e12) {
  562. weights = {
  563. "Planet": 1e-10,
  564. "Star": 1e-10,
  565. "Solar System": 1e-10,
  566. "Galaxy": 1e-10
  567. }
  568. }
  569. else if (macro.height > 1e6) {
  570. weights = {
  571. "Town": 0.1,
  572. "City": 0.05,
  573. "Continent": 0.005,
  574. "Planet": 0.0001
  575. }
  576. }
  577. else {
  578. switch(region)
  579. {
  580. case "rural": weights = {
  581. "Person": 0.05,
  582. "House": 0.01,
  583. "Barn": 0.01,
  584. "Cow": 0.2
  585. }; break;
  586. case "suburb": weights = {
  587. "Person": 0.5,
  588. "House": 0.5,
  589. "Car": 0.2,
  590. "Train": 0.1,
  591. "Bus": 0.1
  592. }; break;
  593. case "city": weights = {
  594. "Person": 0.5,
  595. "House": 0.2,
  596. "Car": 0.2,
  597. "Train": 0.1,
  598. "Bus": 0.1,
  599. "Tram": 0.1,
  600. "Parking Garage": 0.02
  601. }; break;
  602. case "downtown": weights = {
  603. "Person": 0.5,
  604. "Car": 0.3,
  605. "Bus": 0.15,
  606. "Tram": 0.1,
  607. "Parking Garage": 0.02,
  608. "Small Skyscraper": 0.4,
  609. "Large Skyscraper": 0.1
  610. }; break;
  611. }
  612. }
  613. return fill_area(area,weights);
  614. }
  615. function updateVictims(type,prey)
  616. {
  617. var sums = prey.sum();
  618. for (var key in sums) {
  619. if (sums.hasOwnProperty(key)) {
  620. victims[type][key] += sums[key];
  621. }
  622. }
  623. }
  624. function feed()
  625. {
  626. var area = macro.handArea;
  627. var prey = getPrey(biome, area);
  628. var line = describe("eat", prey, macro, verbose)
  629. var linesummary = summarize(prey.sum(), false);
  630. var people = get_living_prey(prey.sum());
  631. var sound = "";
  632. if (people == 0) {
  633. sound = "";
  634. } else if (people < 3) {
  635. sound = "Ulp.";
  636. } else if (people < 10) {
  637. sound = "Gulp.";
  638. } else if (people < 50) {
  639. sound = "Glrrp.";
  640. } else if (people < 500) {
  641. sound = "Glrrrpkh!";
  642. } else if (people < 5000) {
  643. sound = "GLRRKPKH!";
  644. } else {
  645. sound = "Oh the humanity!";
  646. }
  647. var preyMass = prey.sum_property("mass");
  648. macro.addGrowthPoints(preyMass);
  649. macro.stomach.feed(prey);
  650. macro.arouse(5);
  651. updateVictims("stomach",prey);
  652. update([sound,line,linesummary,newline]);
  653. }
  654. function stomp()
  655. {
  656. var area = macro.pawArea;
  657. var prey = getPrey(biome, area);
  658. var line = describe("stomp", prey, macro, verbose)
  659. var linesummary = summarize(prey.sum(), true);
  660. var people = get_living_prey(prey.sum());
  661. var sound = "Thump";
  662. if (people < 3) {
  663. sound = "Thump!";
  664. } else if (people < 10) {
  665. sound = "Squish!";
  666. } else if (people < 50) {
  667. sound = "Crunch!";
  668. } else if (people < 500) {
  669. sound = "CRUNCH!";
  670. } else if (people < 5000) {
  671. sound = "CRRUUUNCH!!";
  672. } else {
  673. sound = "Oh the humanity!";
  674. }
  675. var preyMass = prey.sum_property("mass");
  676. macro.addGrowthPoints(preyMass);
  677. macro.arouse(5);
  678. updateVictims("stomped",prey);
  679. update([sound,line,linesummary,newline]);
  680. }
  681. function grind()
  682. {
  683. var area = macro.assArea / 2;
  684. if (macro.maleParts)
  685. area += macro.dickArea
  686. if (macro.femalePartS)
  687. area += macro.vaginaArea;
  688. var prey = getPrey(biome,area);
  689. var line = describe("grind", prey, macro, verbose);
  690. var linesummary = summarize(prey.sum(), true);
  691. var people = get_living_prey(prey.sum());
  692. var sound = "";
  693. if (people < 3) {
  694. sound = "Thump.";
  695. } else if (people < 10) {
  696. sound = "Crunch.";
  697. } else if (people < 50) {
  698. sound = "Crrrrunch.";
  699. } else if (people < 500) {
  700. sound = "SMASH!";
  701. } else if (people < 5000) {
  702. sound = "CCCRASH!!";
  703. } else {
  704. sound = "Oh the humanity!";
  705. }
  706. var preyMass = prey.sum_property("mass");
  707. macro.addGrowthPoints(preyMass);
  708. macro.arouse(20);
  709. updateVictims("ground",prey);
  710. update([sound,line,linesummary,newline]);
  711. }
  712. function anal_vore()
  713. {
  714. var area = macro.analVoreArea;
  715. var prey = getOnePrey(biome,area);
  716. area = macro.assArea;
  717. var crushed = getPrey(biome,area);
  718. var line1 = describe("anal-vore", prey, macro, verbose);
  719. var line1summary = summarize(prey.sum(), false);
  720. var line2 = describe("ass-crush", crushed, macro, verbose);
  721. var line2summary = summarize(crushed.sum(), true);
  722. var people = get_living_prey(prey.sum());
  723. var sound = "Shlp";
  724. if (people < 3) {
  725. sound = "Shlp.";
  726. } else if (people < 10) {
  727. sound = "Squelch.";
  728. } else if (people < 50) {
  729. sound = "Shlurrp.";
  730. } else if (people < 500) {
  731. sound = "SHLRP!";
  732. } else if (people < 5000) {
  733. sound = "SQLCH!!";
  734. } else {
  735. sound = "Oh the humanity!";
  736. }
  737. var people = get_living_prey(crushed.sum());
  738. var sound2 = "Thump";
  739. if (people < 3) {
  740. sound2 = "Thump!";
  741. } else if (people < 10) {
  742. sound2 = "Squish!";
  743. } else if (people < 50) {
  744. sound2 = "Crunch!";
  745. } else if (people < 500) {
  746. sound2 = "CRUNCH!";
  747. } else if (people < 5000) {
  748. sound2 = "CRRUUUNCH!!";
  749. } else {
  750. sound2 = "Oh the humanity!";
  751. }
  752. var preyMass = prey.sum_property("mass");
  753. var crushedMass = prey.sum_property("mass");
  754. macro.addGrowthPoints(preyMass);
  755. macro.addGrowthPoints(crushedMass);
  756. macro.bowels.feed(prey);
  757. macro.arouse(10);
  758. updateVictims("bowels",prey);
  759. updateVictims("stomped",crushed);
  760. update([sound,line1,line1summary,newline,sound2,line2,line2summary,newline]);
  761. }
  762. function breast_crush()
  763. {
  764. var area = macro.breastArea;
  765. var prey = getPrey(biome, area);
  766. var line = describe("breast-crush", prey, macro, verbose);
  767. var linesummary = summarize(prey.sum(), true);
  768. var people = get_living_prey(prey.sum());
  769. var sound = "Thump";
  770. if (people < 3) {
  771. sound = "Thump!";
  772. } else if (people < 10) {
  773. sound = "Squish!";
  774. } else if (people < 50) {
  775. sound = "Crunch!";
  776. } else if (people < 500) {
  777. sound = "CRUNCH!";
  778. } else if (people < 5000) {
  779. sound = "CRRUUUNCH!!";
  780. } else {
  781. sound = "Oh the humanity!";
  782. }
  783. var preyMass = prey.sum_property("mass");
  784. macro.addGrowthPoints(preyMass);
  785. macro.arouse(10);
  786. updateVictims("breasts",prey);
  787. update([sound,line,linesummary,newline]);
  788. }
  789. function unbirth()
  790. {
  791. var area = macro.vaginaArea;
  792. var prey = getPrey(biome, area);
  793. var line = describe("unbirth", prey, macro, verbose)
  794. var linesummary = summarize(prey.sum(), false);
  795. var people = get_living_prey(prey.sum());
  796. var sound = "";
  797. if (people < 3) {
  798. sound = "Shlp.";
  799. } else if (people < 10) {
  800. sound = "Squelch.";
  801. } else if (people < 50) {
  802. sound = "Shlurrp.";
  803. } else if (people < 500) {
  804. sound = "SHLRP!";
  805. } else if (people < 5000) {
  806. sound = "SQLCH!!";
  807. } else {
  808. sound = "Oh the humanity!";
  809. }
  810. var preyMass = prey.sum_property("mass");
  811. macro.addGrowthPoints(preyMass);
  812. macro.womb.feed(prey);
  813. macro.arouse(20);
  814. updateVictims("womb",prey);
  815. update([sound,line,linesummary,newline]);
  816. }
  817. function cockslap()
  818. {
  819. var area = macro.dickArea;
  820. var prey = getPrey(biome, area);
  821. var line = describe("cockslap", prey, macro, verbose)
  822. var linesummary = summarize(prey.sum(), true);
  823. var people = get_living_prey(prey.sum());
  824. var sound = "Thump";
  825. if (people < 3) {
  826. sound = "Thump!";
  827. } else if (people < 10) {
  828. sound = "Squish!";
  829. } else if (people < 50) {
  830. sound = "Crunch!";
  831. } else if (people < 500) {
  832. sound = "CRUNCH!";
  833. } else if (people < 5000) {
  834. sound = "CRRUUUNCH!!";
  835. } else {
  836. sound = "Oh the humanity!";
  837. }
  838. var preyMass = prey.sum_property("mass");
  839. macro.addGrowthPoints(preyMass);
  840. macro.arouse(15);
  841. updateVictims("cock",prey);
  842. update([sound,line,linesummary,newline]);
  843. }
  844. function cock_vore()
  845. {
  846. var area = macro.dickGirth;
  847. var prey = getPrey(biome, area);
  848. var line = describe("cock-vore", prey, macro, verbose)
  849. var linesummary = summarize(prey.sum(), false);
  850. var people = get_living_prey(prey.sum());
  851. var sound = "lp";
  852. if (people < 3) {
  853. sound = "Shlp.";
  854. } else if (people < 10) {
  855. sound = "Squelch.";
  856. } else if (people < 50) {
  857. sound = "Shlurrp.";
  858. } else if (people < 500) {
  859. sound = "SHLRP!";
  860. } else if (people < 5000) {
  861. sound = "SQLCH!!";
  862. } else {
  863. sound = "Oh the humanity!";
  864. }
  865. var preyMass = prey.sum_property("mass");
  866. macro.addGrowthPoints(preyMass);
  867. macro.balls.feed(prey);
  868. macro.arouse(20);
  869. updateVictims("balls",prey);
  870. update([sound,line,linesummary,newline]);
  871. }
  872. function ball_smother()
  873. {
  874. var area = macro.ballArea * 2;
  875. var prey = getPrey(biome, area);
  876. var line = describe("ball-smother", prey, macro, verbose)
  877. var linesummary = summarize(prey.sum(), true);
  878. var people = get_living_prey(prey.sum());
  879. var sound = "Thump";
  880. if (people < 3) {
  881. sound = "Thump!";
  882. } else if (people < 10) {
  883. sound = "Squish!";
  884. } else if (people < 50) {
  885. sound = "Smoosh!";
  886. } else if (people < 500) {
  887. sound = "SMOOSH!";
  888. } else if (people < 5000) {
  889. sound = "SMOOOOOSH!!";
  890. } else {
  891. sound = "Oh the humanity!";
  892. }
  893. var preyMass = prey.sum_property("mass");
  894. macro.addGrowthPoints(preyMass);
  895. macro.arouse(10);
  896. updateVictims("balls",prey);
  897. update([sound,line,linesummary,newline]);
  898. }
  899. function male_orgasm(vol)
  900. {
  901. var area = Math.pow(vol, 2/3);
  902. var prey = getPrey(biome, area);
  903. var line = describe("male-orgasm", prey, macro, verbose).replace("$VOLUME",volume(vol,unit,false))
  904. var linesummary = summarize(prey.sum(), true);
  905. var people = get_living_prey(prey.sum());
  906. var sound = "Spurt!";
  907. if (people < 3) {
  908. sound = "Spurt!";
  909. } else if (people < 10) {
  910. sound = "Sploosh!";
  911. } else if (people < 50) {
  912. sound = "Sploooooosh!";
  913. } else if (people < 500) {
  914. sound = "SPLOOSH!";
  915. } else if (people < 5000) {
  916. sound = "SPLOOOOOOOOOOSH!!";
  917. } else {
  918. sound = "Oh the humanity!";
  919. }
  920. var preyMass = prey.sum_property("mass");
  921. macro.addGrowthPoints(preyMass);
  922. updateVictims("splooged",prey);
  923. update([sound,line,linesummary,newline]);
  924. }
  925. function female_orgasm(vol)
  926. {
  927. var area = Math.pow(vol, 2/3);
  928. var prey = getPrey(biome, area);
  929. var line = describe("female-orgasm", prey, macro, verbose).replace("$VOLUME",volume(vol,unit,false));
  930. var linesummary = summarize(prey.sum(), true);
  931. var people = get_living_prey(prey.sum());
  932. var sound = "Spurt!";
  933. if (people < 3) {
  934. sound = "Spurt!";
  935. } else if (people < 10) {
  936. sound = "Sploosh!";
  937. } else if (people < 50) {
  938. sound = "Sploooooosh!";
  939. } else if (people < 500) {
  940. sound = "SPLOOSH!";
  941. } else if (people < 5000) {
  942. sound = "SPLOOOOOOOOOOSH!!";
  943. } else {
  944. sound = "Oh the humanity!";
  945. }
  946. var preyMass = prey.sum_property("mass");
  947. macro.addGrowthPoints(preyMass);
  948. updateVictims("splooged",prey);
  949. update([sound,line,linesummary,newline]);
  950. }
  951. function transformNumbers(line)
  952. {
  953. return line.toString().replace(/[0-9]+(\.[0-9]+)?(e\+[0-9]+)?/g, function(text) { return number(text, numbers); });
  954. }
  955. function update(lines = [])
  956. {
  957. var log = document.getElementById("log");
  958. lines.forEach(function (x) {
  959. var line = document.createElement('div');
  960. line.innerHTML = transformNumbers(x);
  961. log.appendChild(line);
  962. });
  963. if (lines.length > 0)
  964. log.scrollTop = log.scrollHeight;
  965. document.getElementById("height").innerHTML = "Height: " + transformNumbers(length(macro.height, unit));
  966. document.getElementById("mass").innerHTML = "Mass: " + transformNumbers(mass(macro.mass, unit));
  967. document.getElementById("growth-points").innerHTML = "Growth Points:" + macro.growthPoints;
  968. document.getElementById("arousal").innerHTML = "Arousal: " + round(macro.arousal,0) + "%";
  969. document.getElementById("edge").innerHTML = "Edge: " + round(macro.edge * 100,0) + "%";
  970. document.getElementById("cum").innerHTML = "Cum: " + transformNumbers(volume(macro.cumStorage.amount,unit,false))
  971. document.getElementById("cumPercent").innerHTML = Math.round(macro.cumStorage.amount / macro.cumStorage.limit * 100) + "%";
  972. document.getElementById("femcum").innerHTML = "Femcum: " + transformNumbers(volume(macro.femcumStorage.amount,unit,false));
  973. document.getElementById("femcumPercent").innerHTML = Math.round(macro.femcumStorage.amount / macro.femcumStorage.limit * 100) + "%";
  974. for (var type in victims) {
  975. if (victims.hasOwnProperty(type)) {
  976. for (var key in victims[type]){
  977. if (victims[type].hasOwnProperty(key) && victims[type][key] > 0) {
  978. document.getElementById("stat-" + key).style.display = "table-row";
  979. document.getElementById("stat-" + type + "-" + key).innerHTML = number(victims[type][key],numbers);
  980. }
  981. }
  982. }
  983. }
  984. }
  985. function pick_move()
  986. {
  987. if (!strolling) {
  988. setTimeout(pick_move, 1500 * Math.sqrt(macro.scale));
  989. return;
  990. }
  991. var choice = Math.random();
  992. if (choice < 0.2) {
  993. anal_vore();
  994. } else if (choice < 0.6) {
  995. stomp();
  996. } else {
  997. feed();
  998. }
  999. setTimeout(pick_move, 1500 * Math.sqrt(macro.scale));
  1000. }
  1001. function grow_pick(times) {
  1002. if (document.getElementById("part-body").checked == true) {
  1003. grow(times);
  1004. }
  1005. else if (document.getElementById("part-ass").checked == true) {
  1006. grow_ass(times);
  1007. }
  1008. else if (document.getElementById("part-dick").checked == true) {
  1009. grow_dick(times);
  1010. }
  1011. else if (document.getElementById("part-balls").checked == true) {
  1012. grow_balls(times);
  1013. }
  1014. else if (document.getElementById("part-breasts").checked == true) {
  1015. grow_breasts(times);
  1016. }
  1017. else if (document.getElementById("part-vagina").checked == true) {
  1018. grow_vagina(times);
  1019. }
  1020. }
  1021. function grow(times=1)
  1022. {
  1023. if (macro.growthPoints < 100 * times) {
  1024. update(["You don't feel like growing right now."]);
  1025. return;
  1026. }
  1027. macro.growthPoints -= 100 * times;
  1028. var oldHeight = macro.height;
  1029. var oldMass = macro.mass;
  1030. macro.scale *= Math.pow(1.02,times);
  1031. var newHeight = macro.height;
  1032. var newMass = macro.mass;
  1033. var heightDelta = newHeight - oldHeight;
  1034. var massDelta = newMass - oldMass;
  1035. var heightStr = length(heightDelta, unit);
  1036. var massStr = mass(massDelta, unit);
  1037. update(["Power surges through you as you grow " + heightStr + " taller and gain " + massStr + " of mass",newline]);
  1038. }
  1039. function grow_dick(times=1)
  1040. {
  1041. if (macro.growthPoints < 10 * times) {
  1042. update(["You don't feel like growing right now."]);
  1043. return;
  1044. }
  1045. macro.growthPoints -= 10 * times;
  1046. var oldLength = macro.dickLength;
  1047. var oldMass = macro.dickMass;
  1048. macro.dickScale = Math.pow(macro.dickScale * macro.dickScale + 1.02*times, 1/2) ;
  1049. var lengthDelta = macro.dickLength - oldLength;
  1050. var massDelta = macro.dickMass - oldMass;
  1051. 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]);
  1052. }
  1053. function grow_balls(times=1)
  1054. {
  1055. if (macro.growthPoints < 10 * times) {
  1056. update(["You don't feel like growing right now."]);
  1057. return;
  1058. }
  1059. macro.growthPoints -= 10 * times;
  1060. var oldDiameter = macro.ballDiameter;
  1061. var oldMass = macro.ballMass;
  1062. macro.ballScale = Math.pow(macro.ballScale * macro.ballScale + 1.02*times, 1/2) ;
  1063. var diameterDelta = macro.ballDiameter - oldDiameter;
  1064. var massDelta = macro.ballMass - oldMass;
  1065. update(["Power surges through you as your balls swell by " + length(diameterDelta, unit, false) + ", gaining " + mass(massDelta, unit, false) + " of mass apiece",newline]);
  1066. }
  1067. function grow_breasts(times=1)
  1068. {
  1069. if (macro.growthPoints < 10 * times) {
  1070. update(["You don't feel like growing right now."]);
  1071. return;
  1072. }
  1073. macro.growthPoints -= 10 * times;
  1074. var oldDiameter = macro.breastDiameter;
  1075. var oldMass = macro.breastMass;
  1076. macro.breastScale = Math.pow(macro.breastScale * macro.breastScale + 1.02*times, 1/2) ;
  1077. var diameterDelta = macro.breastDiameter - oldDiameter;
  1078. var massDelta = macro.breastMass - oldMass;
  1079. update(["Power surges through you as your breasts swell by " + length(diameterDelta, unit, false) + ", gaining " + mass(massDelta, unit, false) + " of mass apiece",newline]);
  1080. }
  1081. function grow_vagina(times=1)
  1082. {
  1083. if (macro.growthPoints < 10 * times) {
  1084. update(["You don't feel like growing right now."]);
  1085. return;
  1086. }
  1087. macro.growthPoints -= 10 * times;
  1088. var oldLength = macro.vaginaLength;
  1089. macro.vaginaScale = Math.pow(macro.vaginaScale * macro.vaginaScale + 1.02*times, 1/2) ;
  1090. var lengthDelta = macro.vaginaLength - oldLength;
  1091. update(["Power surges through you as your moist slit expands by by " + length(lengthDelta, unit, false),newline]);
  1092. }
  1093. function grow_ass(times=1)
  1094. {
  1095. if (macro.growthPoints < 10 * times) {
  1096. update(["You don't feel like growing right now."]);
  1097. return;
  1098. }
  1099. macro.growthPoints -= 10 * times;
  1100. var oldDiameter = Math.pow(macro.assArea,1/2);
  1101. macro.assScale = Math.pow(macro.assScale * macro.assScale + 1.02*times, 1/2) ;
  1102. var diameterDelta = Math.pow(macro.assArea,1/2) - oldDiameter;
  1103. update(["Power surges through you as your ass swells by " + length(diameterDelta, unit, false),newline]);
  1104. }
  1105. function grow_lots()
  1106. {
  1107. var oldHeight = macro.height;
  1108. var oldMass = macro.mass;
  1109. macro.scale *= 100;
  1110. var newHeight = macro.height;
  1111. var newMass = macro.mass;
  1112. var heightDelta = newHeight - oldHeight;
  1113. var massDelta = newMass - oldMass;
  1114. var heightStr = length(heightDelta, unit);
  1115. var massStr = mass(massDelta, unit);
  1116. update(["Power surges through you as you grow " + heightStr + " taller and gain " + massStr + " of mass",newline]);
  1117. }
  1118. function preset(name) {
  1119. switch(name){
  1120. case "Fen":
  1121. macro.species = "crux";
  1122. macro.baseHeight = 2.2606;
  1123. macro.baseMass = 124.738;
  1124. break;
  1125. case "Renard":
  1126. macro.species = "fox";
  1127. macro.baseHeight = 1.549;
  1128. macro.baseMass = 83.9;
  1129. case "Vulpes":
  1130. macro.species = "fox";
  1131. macro.baseHeight = 20000;
  1132. macro.baseMass = 180591661866272;
  1133. }
  1134. }
  1135. function saveSettings() {
  1136. storage = window.localStorage;
  1137. settings = {};
  1138. form = document.forms.namedItem("custom-species-form");
  1139. for (var i=0; i<form.length; i++) {
  1140. if (form[i].value != "") {
  1141. if (form[i].type == "text")
  1142. settings[form[i].name] = form[i].value;
  1143. else if (form[i].type == "number")
  1144. settings[form[i].name] = parseFloat(form[i].value);
  1145. else if (form[i].type == "checkbox") {
  1146. settings[form[i].name] = form[i].checked;
  1147. }
  1148. }
  1149. }
  1150. storage.setItem('settings',JSON.stringify(settings));
  1151. }
  1152. function loadSettings() {
  1153. if (window.localStorage.getItem('settings') == null)
  1154. return;
  1155. storage = window.localStorage;
  1156. settings = JSON.parse(storage.getItem('settings'));
  1157. form = document.forms.namedItem("custom-species-form");
  1158. for (var i=0; i<form.length; i++) {
  1159. if (settings[form[i].name] != undefined) {
  1160. if (form[i].type == "text")
  1161. form[i].value = settings[form[i].name];
  1162. else if (form[i].type == "number")
  1163. form[i].value = settings[form[i].name];
  1164. else if (form[i].type == "checkbox") {
  1165. form[i].checked = settings[form[i].name];
  1166. }
  1167. }
  1168. }
  1169. }
  1170. function startGame(e) {
  1171. form = document.forms.namedItem("custom-species-form");
  1172. for (var i=0; i<form.length; i++) {
  1173. if (form[i].value != "") {
  1174. if (form[i].type == "text")
  1175. macro[form[i].name] = form[i].value;
  1176. else if (form[i].type == "number")
  1177. macro[form[i].name] = parseFloat(form[i].value);
  1178. else if (form[i].type == "checkbox") {
  1179. macro[form[i].name] = form[i].checked;
  1180. } else if (form[i].type == "radio") {
  1181. if (form[i].checked) {
  1182. switch(form[i].id) {
  1183. case "brutality-0": macro.brutality = 0; break;
  1184. case "brutality-1": macro.brutality = 1; break;
  1185. case "brutality-2": macro.brutality = 2; break;
  1186. }
  1187. }
  1188. }
  1189. }
  1190. }
  1191. document.getElementById("log-area").style.display = 'inline';
  1192. document.getElementById("option-panel").style.display = 'none';
  1193. document.getElementById("action-panel").style.display = 'flex';
  1194. victimTypes = ["stomped","digested","stomach","bowels","ground"];
  1195. if (macro.maleParts) {
  1196. victimTypes = victimTypes.concat(["cock","balls"]);
  1197. } else {
  1198. document.getElementById("button-cockslap").style.display = 'none';
  1199. document.getElementById("button-cock_vore").style.display = 'none';
  1200. document.getElementById("button-ball_smother").style.display = 'none';
  1201. document.getElementById("cum").style.display = 'none';
  1202. document.querySelector("#part-balls+label").style.display = 'none';
  1203. document.querySelector("#part-dick+label").style.display = 'none';
  1204. }
  1205. if (macro.femaleParts) {
  1206. victimTypes = victimTypes.concat(["breasts"],["womb"]);
  1207. } else {
  1208. document.getElementById("button-breast_crush").style.display = 'none';
  1209. document.getElementById("button-unbirth").style.display = 'none';
  1210. document.getElementById("femcum").style.display = 'none';
  1211. document.querySelector("#part-breasts+label").style.display = 'none';
  1212. document.querySelector("#part-vagina+label").style.display = 'none';
  1213. }
  1214. if (macro.maleParts || macro.femaleParts) {
  1215. victimTypes.push("splooged");
  1216. }
  1217. var table = document.getElementById("victim-table");
  1218. var tr = document.createElement('tr');
  1219. var th = document.createElement('th');
  1220. th.innerHTML = "Method";
  1221. tr.appendChild(th);
  1222. for (var i = 0; i < victimTypes.length; i++) {
  1223. var th = document.createElement('th');
  1224. th.classList.add("victim-table-cell");
  1225. th.innerHTML = victimTypes[i].charAt(0).toUpperCase() + victimTypes[i].slice(1);
  1226. tr.appendChild(th);
  1227. }
  1228. table.appendChild(tr);
  1229. for (var key in things) {
  1230. if (things.hasOwnProperty(key) && key != "Container") {
  1231. var tr = document.createElement('tr');
  1232. tr.id = "stat-" + key;
  1233. tr.style.display = "none";
  1234. var th = document.createElement('th');
  1235. th.innerHTML = key;
  1236. tr.appendChild(th);
  1237. for (var i = 0; i < victimTypes.length; i++) {
  1238. var th = document.createElement('th');
  1239. th.innerHTML = 0;
  1240. th.id = "stat-" + victimTypes[i] + "-" + key;
  1241. tr.appendChild(th);
  1242. }
  1243. table.appendChild(tr);
  1244. }
  1245. }
  1246. document.getElementById("button-arousal").innerHTML = (macro.arousalEnabled ? "Arousal On" : "Arousal Off");
  1247. if (!macro.arousalEnabled) {
  1248. document.getElementById("arousal").style.display = "none";
  1249. document.getElementById("edge").style.display = "none";
  1250. }
  1251. //var species = document.getElementById("option-species").value;
  1252. //var re = /^[a-zA-Z\- ]+$/;
  1253. // tricksy tricksy players
  1254. //if (re.test(species)) {
  1255. // macro.species = species;
  1256. //}
  1257. macro.init();
  1258. update();
  1259. document.getElementById("stat-container").style.display = 'flex';
  1260. }
  1261. window.addEventListener('load', function(event) {
  1262. victims["stomped"] = initVictims();
  1263. victims["digested"] = initVictims();
  1264. victims["stomach"] = initVictims();
  1265. victims["bowels"] = initVictims();
  1266. victims["breasts"] = initVictims();
  1267. victims["womb"] = initVictims();
  1268. victims["cock"] = initVictims();
  1269. victims["balls"] = initVictims();
  1270. victims["smothered"] = initVictims();
  1271. victims["splooged"] = initVictims();
  1272. victims["ground"] = initVictims();
  1273. document.getElementById("button-look").addEventListener("click",look);
  1274. document.getElementById("button-feed").addEventListener("click",feed);
  1275. document.getElementById("button-stomp").addEventListener("click",stomp);
  1276. document.getElementById("button-breast_crush").addEventListener("click",breast_crush);
  1277. document.getElementById("button-unbirth").addEventListener("click",unbirth);
  1278. document.getElementById("button-cockslap").addEventListener("click",cockslap);
  1279. document.getElementById("button-cock_vore").addEventListener("click",cock_vore);
  1280. document.getElementById("button-ball_smother").addEventListener("click",ball_smother);
  1281. document.getElementById("button-grind").addEventListener("click",grind);
  1282. document.getElementById("button-anal_vore").addEventListener("click",anal_vore);
  1283. document.getElementById("button-stroll").addEventListener("click",toggle_auto);
  1284. document.getElementById("button-location").addEventListener("click",change_location);
  1285. document.getElementById("button-numbers").addEventListener("click",toggle_numbers);
  1286. document.getElementById("button-units").addEventListener("click",toggle_units);
  1287. document.getElementById("button-verbose").addEventListener("click",toggle_verbose);
  1288. document.getElementById("button-arousal").addEventListener("click",toggle_arousal);
  1289. document.getElementById("button-grow-lots").addEventListener("click",grow_lots);
  1290. document.getElementById("button-amount-1").addEventListener("click",function() { grow_pick(1); });
  1291. document.getElementById("button-amount-5").addEventListener("click",function() { grow_pick(5); });
  1292. document.getElementById("button-amount-10").addEventListener("click",function() { grow_pick(10); });
  1293. document.getElementById("button-amount-20").addEventListener("click",function() { grow_pick(20); });
  1294. document.getElementById("button-amount-50").addEventListener("click",function() { grow_pick(50); });
  1295. document.getElementById("button-amount-100").addEventListener("click",function() { grow_pick(100); });
  1296. document.getElementById("button-load-custom").addEventListener("click",loadSettings);
  1297. document.getElementById("button-save-custom").addEventListener("click",saveSettings);
  1298. document.getElementById("button-start").addEventListener("click",startGame);
  1299. setTimeout(pick_move, 2000);
  1300. });