Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/maps/random/danubius_triggers.js
Show First 20 Lines • Show All 647 Lines • ▼ Show 20 Lines | for (let ship of this.ships) | ||||
this.debugLog("Ungarrisoning ship " + ship + " at " + uneval(this.shipTarget[ship])); | this.debugLog("Ungarrisoning ship " + ship + " at " + uneval(this.shipTarget[ship])); | ||||
cmpGarrisonHolder.UnloadAll(); | cmpGarrisonHolder.UnloadAll(); | ||||
if (randBool(formationProbability)) | if (randBool(formationProbability)) | ||||
ProcessCommand(gaulPlayer, { | ProcessCommand(gaulPlayer, { | ||||
"type": "formation", | "type": "formation", | ||||
"entities": others, | "entities": others, | ||||
"name": "formations/" + pickRandom(unitFormations) | "name": "special/formations/" + pickRandom(unitFormations) | ||||
}); | }); | ||||
this.AttackAndPatrol(siegeEngines, siegeTargetClass, this.shipTarget[ship].landPointRef, "Siege"); | this.AttackAndPatrol(siegeEngines, siegeTargetClass, this.shipTarget[ship].landPointRef, "Siege"); | ||||
this.AttackAndPatrol(others, unitTargetClass, this.shipTarget[ship].landPointRef, "Units"); | this.AttackAndPatrol(others, unitTargetClass, this.shipTarget[ship].landPointRef, "Units"); | ||||
delete this.shipTarget[ship]; | delete this.shipTarget[ship]; | ||||
this.AttackAndPatrol([ship], shipTargetClass, triggerPointShipPatrol, "Ships"); | this.AttackAndPatrol([ship], shipTargetClass, triggerPointShipPatrol, "Ships"); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator