big steppy
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 

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