Browse Source

Update recursive-macro.js

remvoed duplicate inside on parking garages, and akward comma on tanks and helicopters
tags/v1.0.1
jsb5468 6 years ago
parent
commit
3d628b1511
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      recursive-macro.js

+ 4
- 4
recursive-macro.js View File

@@ -1139,7 +1139,7 @@ function ParkingGarage(count = 1) {

this.describe = function(verbose = true) {
if (verbose) {
return (this.count == 1 ? "a parking garage" : this.count + " parking garages") + " with " + describe_all(this.contents, verbose) + " inside";
return (this.count == 1 ? "a parking garage" : this.count + " parking garages") + " with " + describe_all(this.contents, verbose);
} else {
return (this.count == 1 ? "a parking garage" : this.count + " parking garages");
}
@@ -1322,7 +1322,7 @@ function Tank(count = 1) {

this.describe = function(verbose = true) {
if (verbose) {
return (this.count == 1 ? "a tank" : this.count + " tanks") + " with " + describe_all(this.contents, verbose) + " trapped inside.";
return (this.count == 1 ? "a tank" : this.count + " tanks") + " with " + describe_all(this.contents, verbose) + " trapped inside";
} else {
return (this.count == 1 ? "a tank" : this.count + " tanks");
}
@@ -1338,7 +1338,7 @@ function Artillery(count = 1) {

this.describe = function(verbose = true) {
if (verbose) {
return (this.count == 1 ? "an artillery unit" : this.count + " artillery units") + " with " + describe_all(this.contents, verbose) + " trapped inside.";
return (this.count == 1 ? "an artillery unit" : this.count + " artillery units") + " with " + describe_all(this.contents, verbose) + " trapped inside";
} else {
return (this.count == 1 ? "an artillery unit" : this.count + " artillery units");
}
@@ -1354,7 +1354,7 @@ function Helicopter(count = 1) {

this.describe = function(verbose = true) {
if (verbose) {
return (this.count == 1 ? "a helicopter" : this.count + " helicopters") + " with " + describe_all(this.contents, verbose) + " riding inside.";
return (this.count == 1 ? "a helicopter" : this.count + " helicopters") + " with " + describe_all(this.contents, verbose) + " riding inside";
} else {
return (this.count == 1 ? "a helicopter" : this.count + " helicopters");
}


Loading…
Cancel
Save