Differential D1881 Diff 9530 ps/trunk/binaries/data/mods/public/maps/random/survivalofthefittest_triggers.js
Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/maps/random/survivalofthefittest_triggers.js
Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | var disabledTemplates = (civ) => [ | ||||
// Expansions | // Expansions | ||||
"structures/" + civ + "_civil_centre", | "structures/" + civ + "_civil_centre", | ||||
"structures/" + civ + "_military_colony", | "structures/" + civ + "_military_colony", | ||||
// Walls | // Walls | ||||
"structures/" + civ + "_wallset_stone", | "structures/" + civ + "_wallset_stone", | ||||
"structures/rome_wallset_siege", | "structures/rome_wallset_siege", | ||||
"other/wallset_palisade", | "structures/wallset_palisade", | ||||
// Shoreline | // Shoreline | ||||
"structures/" + civ + "_dock", | "structures/" + civ + "_dock", | ||||
"structures/brit_crannog", | "structures/brit_crannog", | ||||
"structures/cart_super_dock", | "structures/cart_super_dock", | ||||
"structures/ptol_lighthouse" | "structures/ptol_lighthouse" | ||||
]; | ]; | ||||
▲ Show 20 Lines • Show All 181 Lines • ▼ Show 20 Lines | Engine.QueryInterface(SYSTEM_ENTITY, IID_GuiInterface).PushNotification({ | ||||
"translateMessage": true | "translateMessage": true | ||||
}); | }); | ||||
this.DoAfterDelay(nextWaveTime * 60 * 1000, "StartAnEnemyWave", {}); | this.DoAfterDelay(nextWaveTime * 60 * 1000, "StartAnEnemyWave", {}); | ||||
}; | }; | ||||
Trigger.prototype.PlaceTreasures = function() | Trigger.prototype.PlaceTreasures = function() | ||||
{ | { | ||||
let point = pickRandom(["B", "C", "D"]); | let triggerPoints = this.GetTriggerPoints(pickRandom(["B", "C", "D"])); | ||||
let triggerPoints = this.GetTriggerPoints(point); | |||||
for (let point of triggerPoints) | for (let point of triggerPoints) | ||||
TriggerHelper.SpawnUnits(point, pickRandom(treasures), 1, 0); | TriggerHelper.SpawnUnits(point, pickRandom(treasures), 1, 0); | ||||
this.DoAfterDelay(treasureTime() * 60 * 1000, "PlaceTreasures", {}); | this.DoAfterDelay(treasureTime() * 60 * 1000, "PlaceTreasures", {}); | ||||
}; | }; | ||||
Trigger.prototype.OnOwnershipChanged = function(data) | Trigger.prototype.OnOwnershipChanged = function(data) | ||||
{ | { | ||||
Show All 26 Lines |
Wildfire Games · Phabricator