|
|
@@ -683,7 +683,7 @@ function SmallSkyscraper(count = 1) { |
|
|
this.count = count; |
|
|
this.count = count; |
|
|
this.contents = {}; |
|
|
this.contents = {}; |
|
|
|
|
|
|
|
|
var amount = distribution(50,500,1); |
|
|
|
|
|
|
|
|
var amount = distribution(50,500,count); |
|
|
this.contents.person = new Person(amount); |
|
|
this.contents.person = new Person(amount); |
|
|
amount = distribution(10,50,count); |
|
|
amount = distribution(10,50,count); |
|
|
this.contents.emptycar = new EmptyCar(amount); |
|
|
this.contents.emptycar = new EmptyCar(amount); |
|
|
@@ -733,15 +733,7 @@ function ParkingGarage(count = 1) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.describe = function(verbose = true) { |
|
|
this.describe = function(verbose = true) { |
|
|
if (this.count <= 3) { |
|
|
|
|
|
list = []; |
|
|
|
|
|
for (var i = 0; i < this.count; i++) { |
|
|
|
|
|
list.push(this.describeOne(this.count < 2)); |
|
|
|
|
|
} |
|
|
|
|
|
return merge_things(list) + " with " + describe_all(this.contents) + " inside"; |
|
|
|
|
|
} else { |
|
|
|
|
|
return this.count + " parking garages with " + describe_all(this.contents) + " inside"; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return (this.count == 1 ? "a parking garage" : this.count + " parking garages") + " with " + describe_all(this.contents) + " inside"; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|