Quellcode durchsuchen

More Things

*added busines jet and airliner things which don't spawn yet but will appear in the yet to be added airstrip and airport things
master
jsb5468 vor 5 Jahren
Ursprung
Commit
c2564c81ee
1 geänderte Dateien mit 55 neuen und 0 gelöschten Zeilen
  1. +55
    -0
      recursive-macro.js

+ 55
- 0
recursive-macro.js Datei anzeigen

@@ -109,6 +109,23 @@ var things =
clusters: 1,
cluster_chances: .05,
contents: [["Person",10,40]],
"Business Jet": {
"Business Jet": BusinessJet,
mass: 6500,
area: 50,
clusters: 1,
cluster_chances: .05,
contents: [["Person",2,9]],
descriptor: ["a business jet", "business jets"]
},
"Airliner": {
"Airliner": Airliner,
mass: 6500,
area: 50,
clusters: 1,
cluster_chances: .05,
contents: [["Person",5,300]],
descriptor: ["an airliner", "airliners"]
},
//Buildings
"House": {
@@ -959,6 +976,44 @@ function Tram(count = 1) {
};
}

function BusinessJet(count = 1) {
this.name = "Business Jet";

copy_defaults(this,new DefaultEntity());
this.count = count;
this.contents = initContents(this.name,this.count);

this.describeOne = function(verbose=true) {
var adjective = random_desc(["brand-new","aging","modern"], (verbose ? 0.2 : 0));
var color = random_desc(["blue","white","white","blue and white","red and white","black","gold"], (verbose ? 0.9 : 0));
var type = random_desc(["luxury jet","business jet","single-engine plane","light aircraft"]);
return merge_desc([adjective,color,type]);
};

this.describe = function(verbose=true) {
return defaultDescribe(verbose, this, "vehicle");
}
}

function Airliner(count = 1) {
this.name = "Airliner";

copy_defaults(this,new DefaultEntity());
this.count = count;
this.contents = initContents(this.name,this.count);

this.describeOne = function(verbose=true) {
var adjective = random_desc(["brand-new","aging","modern"], (verbose ? 0.2 : 0));
var color = random_desc(["blue","white","white","blue and white"], (verbose ? 0.9 : 0));
var type = random_desc(["airliner","twin-engine jet","trijet","four engine jet","double-decker airliner","widebody airliner","passenger jet","airliner"]);
return merge_desc([adjective,color,type]);
};

this.describe = function(verbose=true) {
return defaultDescribe(verbose, this, "vehicle");
}
}

function Train(count = 1) {
this.name = "Train";
copy_defaults(this,new DefaultEntity());


Laden…
Abbrechen
Speichern