big steppy
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 

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