Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/maps/random/rmgen/terrain.js
Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | function RandomTerrain(terrains) | ||||
this.terrains = terrains; | this.terrains = terrains; | ||||
} | } | ||||
RandomTerrain.prototype = new Terrain(); | RandomTerrain.prototype = new Terrain(); | ||||
RandomTerrain.prototype.constructor = RandomTerrain; | RandomTerrain.prototype.constructor = RandomTerrain; | ||||
RandomTerrain.prototype.placeNew = function(x, z) | RandomTerrain.prototype.placeNew = function(x, z) | ||||
{ | { | ||||
this.terrains[randInt(this.terrains.length)].placeNew(x, z); | pickRandom(this.terrains).placeNew(x, z); | ||||
}; | }; |
Wildfire Games · Phabricator