Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/components/ProductionQueue.js
Show First 20 Lines • Show All 634 Lines • ▼ Show 20 Lines | if (createdEnts.length == 0) | ||||
PlaySound("trained", ent); | PlaySound("trained", ent); | ||||
this.entityCache.shift(); | this.entityCache.shift(); | ||||
createdEnts.push(ent); | createdEnts.push(ent); | ||||
} | } | ||||
if (spawnedEnts.length > 0 && !cmpAutoGarrison) | if (spawnedEnts.length > 0 && !cmpAutoGarrison) | ||||
{ | { | ||||
// If a rally point is set, walk towards it (in formation) using a suitable command based on where the | // If a rally point is set, walk towards it using a suitable command based on where the | ||||
// rally point is placed. | // rally point is placed. | ||||
if (cmpRallyPoint) | if (cmpRallyPoint) | ||||
{ | { | ||||
var rallyPos = cmpRallyPoint.GetPositions()[0]; | var rallyPos = cmpRallyPoint.GetPositions()[0]; | ||||
if (rallyPos) | if (rallyPos) | ||||
{ | { | ||||
var commands = GetRallyPointCommands(cmpRallyPoint, spawnedEnts); | var commands = GetRallyPointCommands(cmpRallyPoint, spawnedEnts); | ||||
for (var com of commands) | for (var com of commands) | ||||
▲ Show 20 Lines • Show All 196 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator