Adding the demo Unknown-Nomad map.
This was SVN commit r12747.
This commit is contained in:
parent
6fd4a75312
commit
7f8adcf8cb
@ -102,11 +102,14 @@ Map.prototype.getEntityID = function()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check bounds on tile map
|
// Check bounds on tile map
|
||||||
Map.prototype.validT = function(x, z)
|
Map.prototype.validT = function(x, z, distance)
|
||||||
{
|
{
|
||||||
if (g_MapSettings.CircularMap)
|
if (g_MapSettings.CircularMap)
|
||||||
{ // Within map circle
|
{ // Within map circle
|
||||||
|
if (distance == undefined)
|
||||||
var halfSize = Math.floor(0.5*this.size);
|
var halfSize = Math.floor(0.5*this.size);
|
||||||
|
else
|
||||||
|
var halfSize = Math.floor(0.5*this.size)-distance;
|
||||||
var dx = (x - halfSize);
|
var dx = (x - halfSize);
|
||||||
var dz = (z - halfSize);
|
var dz = (z - halfSize);
|
||||||
return Math.round(Math.sqrt(dx*dx + dz*dz)) < halfSize;
|
return Math.round(Math.sqrt(dx*dx + dz*dz)) < halfSize;
|
||||||
|
1643
binaries/data/mods/public/maps/random/unknown_nomad.js
Normal file
1643
binaries/data/mods/public/maps/random/unknown_nomad.js
Normal file
File diff suppressed because it is too large
Load Diff
13
binaries/data/mods/public/maps/random/unknown_nomad.json
Normal file
13
binaries/data/mods/public/maps/random/unknown_nomad.json
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"settings" : {
|
||||||
|
"Name" : "Unknown Nomad",
|
||||||
|
"Script" : "unknown_nomad.js",
|
||||||
|
"Description" : "The unknown... Players start with only some citizen soldiers and females. [color=\"red\"]Warning: AI players will cause the game to crash.[/color]",
|
||||||
|
"BaseTerrain" : ["medit_sand_wet"],
|
||||||
|
"BaseHeight" : -5,
|
||||||
|
"Preview" : "unknown.png",
|
||||||
|
"Keywords": ["demo"],
|
||||||
|
"CircularMap" : true,
|
||||||
|
"XXXXXX" : "Optionally define other things here, like we would for a scenario"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user