| @@ -76,7 +76,7 @@ function getOnePrey(area) | |||||
| }); | }); | ||||
| potAreas = potAreas.sort(function (x,y) { | potAreas = potAreas.sort(function (x,y) { | ||||
| return x[1] < y[1]; | |||||
| return y[1] - x[1]; | |||||
| }); | }); | ||||
| for (var i=0; i<potAreas.length; i++) { | for (var i=0; i<potAreas.length; i++) { | ||||
| @@ -34,7 +34,7 @@ function getPreyCounts(contents) { | |||||
| return prey; | return prey; | ||||
| } | } | ||||
| function containerEat(container) { | |||||
| function containerEat(container,verbose=true) { | |||||
| var preyNames = getPreyNames(container.contents); | var preyNames = getPreyNames(container.contents); | ||||
| var preyCounts = getPreyCounts(container.contents); | var preyCounts = getPreyCounts(container.contents); | ||||
| return ""; | return ""; | ||||
| @@ -75,11 +75,17 @@ function personStomp(person) { | |||||
| return ""; | return ""; | ||||
| } | } | ||||
| function skyscraperAnalVore(skyscraper,height = 10) { | |||||
| function skyscraperAnalVore(skyscraper,verbose=true,height = 10) { | |||||
| if (height < 5000) { | if (height < 5000) { | ||||
| return "You ease yourself down over the skyscraper, spreading your ass wide as you take it to the ground - then, with a powerful clench, snap it from its base. " + describe_all(skyscraper.contents) + " are sealed away in your ass."; | |||||
| if (verbose) | |||||
| return "You ease yourself down over the skyscraper, spreading your ass wide as you take it to the ground - then, with a powerful clench, snap it from its base. " + describe_all(skyscraper.contents) + " are sealed away in your ass."; | |||||
| else | |||||
| return "You ease yourself down over the skyscraper, spreading your ass wide as you take it to the ground - then, with a powerful clench, snap it from its base. "; | |||||
| } else { | } else { | ||||
| return "You stuff the skyscraper up your ass with ease. Bad luck for " + describe_all(skyscraper.contents) + " inside."; | |||||
| if (verbose) | |||||
| return "You stuff the skyscraper up your ass with ease. Bad luck for " + describe_all(skyscraper.contents) + " inside."; | |||||
| else | |||||
| return "You stuff the skyscraper up your ass with ease."; | |||||
| } | } | ||||
| return ""; | return ""; | ||||
| @@ -60,7 +60,7 @@ function fill_area2(area, weights = {"Person": 0.1, "Car": 0.05, "House": 0.1}) | |||||
| } | } | ||||
| candidates = candidates.sort(function (x,y) { | candidates = candidates.sort(function (x,y) { | ||||
| return x.area > y.area | |||||
| return x.area - y.area; | |||||
| }); | }); | ||||
| while(candidates.length > 0) { | while(candidates.length > 0) { | ||||
| @@ -365,10 +365,10 @@ function Container(contents = []) { | |||||
| return describe_all(this.contents,verbose) | return describe_all(this.contents,verbose) | ||||
| } | } | ||||
| this.eat = function() { | |||||
| var line = containerEat(this); | |||||
| this.eat = function(verbose=true) { | |||||
| var line = containerEat(this,verbose); | |||||
| if (line == "") | if (line == "") | ||||
| return defaultEat(this)(); | |||||
| return defaultEat(this)(verbose); | |||||
| else | else | ||||
| return line; | return line; | ||||
| }; | }; | ||||
| @@ -409,18 +409,18 @@ function Person(count = 1) { | |||||
| } | } | ||||
| this.stomp = function() { | |||||
| this.stomp = function(verbose=true) { | |||||
| var line = personStomp(this); | var line = personStomp(this); | ||||
| if (line == "") | if (line == "") | ||||
| return defaultStomp(this)(); | |||||
| return defaultStomp(this)(verbose); | |||||
| else | else | ||||
| return line; | return line; | ||||
| }; | }; | ||||
| this.eat = function() { | |||||
| this.eat = function(verbose=true) { | |||||
| var line = personEat(this); | var line = personEat(this); | ||||
| if (line == "") | if (line == "") | ||||
| return defaultEat(this)(); | |||||
| return defaultEat(this)(verbose); | |||||
| else | else | ||||
| return line; | return line; | ||||
| }; | }; | ||||
| @@ -728,10 +728,10 @@ function SmallSkyscraper(count = 1) { | |||||
| } | } | ||||
| this.anal_vore = function(height=10) { | |||||
| var line = skyscraperAnalVore(this,height); | |||||
| this.anal_vore = function(verbose=true,height=10) { | |||||
| var line = skyscraperAnalVore(this,verbose,height); | |||||
| if (line == "") | if (line == "") | ||||
| return defaultAnalVore(this)(); | |||||
| return defaultAnalVore(this)(verbose); | |||||
| else | else | ||||
| return line; | return line; | ||||
| }; | }; | ||||
| @@ -17,7 +17,7 @@ | |||||
| </div> | </div> | ||||
| <div id=game-area> | <div id=game-area> | ||||
| <div id=log> | <div id=log> | ||||
| <div>Welcome to Stroll 0.1.4</div> | |||||
| <div>Welcome to Stroll 0.1.5</div> | |||||
| <div>It's a nice day for a walk</div> | <div>It's a nice day for a walk</div> | ||||
| </div> | </div> | ||||
| <button id=button-grow>Get Bigger</button> | <button id=button-grow>Get Bigger</button> | ||||