Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/simulation/ai/petra/transportPlan.js
Show First 20 Lines • Show All 207 Lines • ▼ Show 20 Lines | for (let newbase of gameState.ai.HQ.baseManagers) | ||||
if (!newbase.anchor || !newbase.anchor.position()) | if (!newbase.anchor || !newbase.anchor.position()) | ||||
continue; | continue; | ||||
ent.setMetadata(PlayerID, "base", newbase.ID); | ent.setMetadata(PlayerID, "base", newbase.ID); | ||||
base = newbase; | base = newbase; | ||||
break; | break; | ||||
} | } | ||||
if (!base.anchor || !base.anchor.position()) | if (!base.anchor || !base.anchor.position()) | ||||
return false; | return false; | ||||
this.units.forEach(function (ent) { | this.units.forEach(unit => { unit.setMetadata(PlayerID, "base", base.ID); }); | ||||
ent.setMetadata(PlayerID, "base", base.ID); | |||||
}); | |||||
} | } | ||||
this.endIndex = this.startIndex; | this.endIndex = this.startIndex; | ||||
this.endPos = base.anchor.position(); | this.endPos = base.anchor.position(); | ||||
this.canceled = true; | this.canceled = true; | ||||
return true; | return true; | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 404 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator