Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/maps/random/wild_lake.js
Show First 20 Lines • Show All 138 Lines • ▼ Show 20 Lines | // 7 Hilltop forest | ||||
"textureHS": getArray(g_Terrains.cliff), | "textureHS": getArray(g_Terrains.cliff), | ||||
"actorHS": [[g_Decoratives.grassShort, g_Decoratives.rockMedium, g_Decoratives.bushSmall], 0.1] | "actorHS": [[g_Decoratives.grassShort, g_Decoratives.rockMedium, g_Decoratives.bushSmall], 0.1] | ||||
} | } | ||||
]; | ]; | ||||
var mercenaryCampGuards = { | var mercenaryCampGuards = { | ||||
"generic/temperate": [ | "generic/temperate": [ | ||||
{ "Template" : "structures/merc_camp_egyptian" }, | { "Template" : "structures/merc_camp_egyptian" }, | ||||
{ "Template" : "units/mace_infantry_javelinist_b", "Count" : 4 }, | { "Template" : "units/mace_infantry_javelineer_b", "Count" : 4 }, | ||||
{ "Template" : "units/mace_cavalry_spearman_e", "Count" : 3 }, | { "Template" : "units/mace_cavalry_spearman_e", "Count" : 3 }, | ||||
{ "Template" : "units/mace_infantry_archer_a", "Count" : 4 }, | { "Template" : "units/mace_infantry_archer_a", "Count" : 4 }, | ||||
{ "Template" : "units/mace_champion_infantry_a", "Count" : 3 } | { "Template" : "units/mace_champion_infantry_a", "Count" : 3 } | ||||
], | ], | ||||
"generic/snowy": [ | "generic/snowy": [ | ||||
{ "Template" : "structures/ptol_mercenary_camp" }, | { "Template" : "structures/ptol_mercenary_camp" }, | ||||
{ "Template" : "units/brit_infantry_javelinist_b", "Count" : 4 }, | { "Template" : "units/brit_infantry_javelineer_b", "Count" : 4 }, | ||||
{ "Template" : "units/brit_cavalry_swordsman_e", "Count" : 3 }, | { "Template" : "units/brit_cavalry_swordsman_e", "Count" : 3 }, | ||||
{ "Template" : "units/brit_infantry_slinger_a", "Count" : 4 }, | { "Template" : "units/brit_infantry_slinger_a", "Count" : 4 }, | ||||
{ "Template" : "units/brit_champion_infantry", "Count" : 3 } | { "Template" : "units/brit_champion_infantry", "Count" : 3 } | ||||
], | ], | ||||
"generic/desert": [ | "generic/desert": [ | ||||
{ "Template" : "structures/ptol_mercenary_camp" }, | { "Template" : "structures/ptol_mercenary_camp" }, | ||||
{ "Template" : "units/pers_infantry_javelinist_b", "Count" : 4 }, | { "Template" : "units/pers_infantry_javelineer_b", "Count" : 4 }, | ||||
{ "Template" : "units/pers_cavalry_axeman_e", "Count" : 3 }, | { "Template" : "units/pers_cavalry_axeman_e", "Count" : 3 }, | ||||
{ "Template" : "units/pers_infantry_archer_a", "Count" : 4 }, | { "Template" : "units/pers_infantry_archer_a", "Count" : 4 }, | ||||
{ "Template" : "units/pers_champion_infantry", "Count" : 3 } | { "Template" : "units/pers_champion_infantry", "Count" : 3 } | ||||
], | ], | ||||
"generic/alpine": [ | "generic/alpine": [ | ||||
{ "Template" : "structures/ptol_mercenary_camp" }, | { "Template" : "structures/ptol_mercenary_camp" }, | ||||
{ "Template" : "units/rome_infantry_swordsman_b", "Count" : 4 }, | { "Template" : "units/rome_infantry_swordsman_b", "Count" : 4 }, | ||||
{ "Template" : "units/rome_cavalry_spearman_e", "Count" : 3 }, | { "Template" : "units/rome_cavalry_spearman_e", "Count" : 3 }, | ||||
{ "Template" : "units/rome_infantry_javelinist_a", "Count" : 4 }, | { "Template" : "units/rome_infantry_javelineer_a", "Count" : 4 }, | ||||
{ "Template" : "units/rome_champion_infantry", "Count" : 3 } | { "Template" : "units/rome_champion_infantry", "Count" : 3 } | ||||
], | ], | ||||
"generic/mediterranean": [ | "generic/mediterranean": [ | ||||
{ "Template" : "structures/merc_camp_egyptian" }, | { "Template" : "structures/merc_camp_egyptian" }, | ||||
{ "Template" : "units/iber_infantry_javelinist_b", "Count" : 4 }, | { "Template" : "units/iber_infantry_javelineer_b", "Count" : 4 }, | ||||
{ "Template" : "units/iber_cavalry_spearman_e", "Count" : 3 }, | { "Template" : "units/iber_cavalry_spearman_e", "Count" : 3 }, | ||||
{ "Template" : "units/iber_infantry_slinger_a", "Count" : 4 }, | { "Template" : "units/iber_infantry_slinger_a", "Count" : 4 }, | ||||
{ "Template" : "units/iber_champion_infantry", "Count" : 3 } | { "Template" : "units/iber_champion_infantry", "Count" : 3 } | ||||
], | ], | ||||
"generic/savanna": [ | "generic/savanna": [ | ||||
{ "Template" : "structures/merc_camp_egyptian" }, | { "Template" : "structures/merc_camp_egyptian" }, | ||||
{ "Template" : "units/sele_infantry_javelinist_b", "Count" : 4 }, | { "Template" : "units/sele_infantry_javelineer_b", "Count" : 4 }, | ||||
{ "Template" : "units/sele_cavalry_spearman_merc_e", "Count" : 3 }, | { "Template" : "units/sele_cavalry_spearman_merc_e", "Count" : 3 }, | ||||
{ "Template" : "units/sele_infantry_spearman_a", "Count" : 4 }, | { "Template" : "units/sele_infantry_spearman_a", "Count" : 4 }, | ||||
{ "Template" : "units/sele_champion_infantry_swordsman", "Count" : 3 } | { "Template" : "units/sele_champion_infantry_swordsman", "Count" : 3 } | ||||
], | ], | ||||
"generic/tropic": [ | "generic/tropic": [ | ||||
{ "Template" : "structures/merc_camp_egyptian" }, | { "Template" : "structures/merc_camp_egyptian" }, | ||||
{ "Template" : "units/ptol_infantry_javelinist_b", "Count" : 4 }, | { "Template" : "units/ptol_infantry_javelineer_b", "Count" : 4 }, | ||||
{ "Template" : "units/ptol_cavalry_archer_e", "Count" : 3 }, | { "Template" : "units/ptol_cavalry_archer_e", "Count" : 3 }, | ||||
{ "Template" : "units/ptol_infantry_slinger_a", "Count" : 4 }, | { "Template" : "units/ptol_infantry_slinger_a", "Count" : 4 }, | ||||
{ "Template" : "units/ptol_champion_infantry_pikeman", "Count" : 3 } | { "Template" : "units/ptol_champion_infantry_pikeman", "Count" : 3 } | ||||
], | ], | ||||
"generic/autumn": [ | "generic/autumn": [ | ||||
{ "Template" : "structures/ptol_mercenary_camp" }, | { "Template" : "structures/ptol_mercenary_camp" }, | ||||
{ "Template" : "units/gaul_infantry_javelinist_b", "Count" : 4 }, | { "Template" : "units/gaul_infantry_javelineer_b", "Count" : 4 }, | ||||
{ "Template" : "units/gaul_cavalry_swordsman_e", "Count" : 3 }, | { "Template" : "units/gaul_cavalry_swordsman_e", "Count" : 3 }, | ||||
{ "Template" : "units/gaul_infantry_slinger_a", "Count" : 4 }, | { "Template" : "units/gaul_infantry_slinger_a", "Count" : 4 }, | ||||
{ "Template" : "units/gaul_champion_infantry", "Count" : 3 } | { "Template" : "units/gaul_champion_infantry", "Count" : 3 } | ||||
] | ] | ||||
}; | }; | ||||
/** | /** | ||||
* Resource spots and other points of interest | * Resource spots and other points of interest | ||||
▲ Show 20 Lines • Show All 117 Lines • ▼ Show 20 Lines | |||||
let num = fences.length; | let num = fences.length; | ||||
for (let i = 0; i < num; ++i) | for (let i = 0; i < num; ++i) | ||||
fences.push(new Fortress("fence", clone(fences[i].wall).reverse())); | fences.push(new Fortress("fence", clone(fences[i].wall).reverse())); | ||||
// Camps with fire and gold treasure | // Camps with fire and gold treasure | ||||
function placeCamp(position, | function placeCamp(position, | ||||
centerEntity = "actor|props/special/eyecandy/campfire.xml", | centerEntity = "actor|props/special/eyecandy/campfire.xml", | ||||
otherEntities = ["gaia/treasure/metal", "gaia/treasure/standing_stone", | otherEntities = ["gaia/treasure/metal", "gaia/treasure/standing_stone", | ||||
"units/brit_infantry_slinger_b", "units/brit_infantry_javelinist_b", "units/gaul_infantry_slinger_b", "units/gaul_infantry_javelinist_b", "units/gaul_champion_fanatic", | "units/brit_infantry_slinger_b", "units/brit_infantry_javelineer_b", "units/gaul_infantry_slinger_b", "units/gaul_infantry_javelineer_b", "units/gaul_champion_fanatic", | ||||
"actor|props/special/common/waypoint_flag.xml", "actor|props/special/eyecandy/barrel_a.xml", "actor|props/special/eyecandy/basket_celt_a.xml", "actor|props/special/eyecandy/crate_a.xml", "actor|props/special/eyecandy/dummy_a.xml", "actor|props/special/eyecandy/handcart_1.xml", "actor|props/special/eyecandy/handcart_1_broken.xml", "actor|props/special/eyecandy/sack_1.xml", "actor|props/special/eyecandy/sack_1_rough.xml" | "actor|props/special/common/waypoint_flag.xml", "actor|props/special/eyecandy/barrel_a.xml", "actor|props/special/eyecandy/basket_celt_a.xml", "actor|props/special/eyecandy/crate_a.xml", "actor|props/special/eyecandy/dummy_a.xml", "actor|props/special/eyecandy/handcart_1.xml", "actor|props/special/eyecandy/handcart_1_broken.xml", "actor|props/special/eyecandy/sack_1.xml", "actor|props/special/eyecandy/sack_1_rough.xml" | ||||
] | ] | ||||
) | ) | ||||
{ | { | ||||
g_Map.placeEntityPassable(centerEntity, 0, position, randomAngle()); | g_Map.placeEntityPassable(centerEntity, 0, position, randomAngle()); | ||||
let quantity = randIntInclusive(5, 11); | let quantity = randIntInclusive(5, 11); | ||||
let dAngle = 2 * Math.PI / quantity; | let dAngle = 2 * Math.PI / quantity; | ||||
▲ Show 20 Lines • Show All 305 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator