mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
Fix eslint rule 'brace-rules'
Manual fixes needed for temporary config braces-rules due to setting up required plugin: eslint --no-config-lookup --config brace-rules.mjs Ref: #7812 Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
parent
8b13be3b03
commit
189ec6a7eb
2 changed files with 9 additions and 5 deletions
|
|
@ -14,8 +14,9 @@ class TraderStatusText
|
|||
update()
|
||||
{
|
||||
const traderNumber = Engine.GuiInterfaceCall("GetTraderNumber", g_ViewedPlayer);
|
||||
this.traderCountText.caption = this.components.reduce((caption, component) =>
|
||||
{ caption += component.getText(traderNumber, this.IdleTraderTextTags) + "\n\n"; return caption; }, "").trim();
|
||||
this.traderCountText.caption = this.components.reduce((caption, component) => {
|
||||
caption += component.getText(traderNumber, this.IdleTraderTextTags) + "\n\n"; return caption;
|
||||
}, "").trim();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -110,7 +110,8 @@ var g_Commands = {
|
|||
uais.forEach(cmpUnitAI => {
|
||||
cmpUnitAI.Walk(cmd.x, cmd.z, cmd.queued, cmd.pushFront);
|
||||
});
|
||||
else {
|
||||
else
|
||||
{
|
||||
const positions = Engine.QueryInterface(SYSTEM_ENTITY, IID_Pathfinder).DistributeAround(data.entities, cmd.x, cmd.z);
|
||||
uais.forEach((cmpUnitAI, index) => {
|
||||
cmpUnitAI.Walk(positions[index].x, positions[index].y, cmd.queued, cmd.pushFront);
|
||||
|
|
@ -145,7 +146,8 @@ var g_Commands = {
|
|||
uais.forEach(cmpUnitAI => {
|
||||
cmpUnitAI.WalkAndFight(cmd.x, cmd.z, cmd.targetClasses, cmd.allowCapture, cmd.queued, cmd.pushFront);
|
||||
});
|
||||
else {
|
||||
else
|
||||
{
|
||||
const positions = Engine.QueryInterface(SYSTEM_ENTITY, IID_Pathfinder).DistributeAround(data.entities, cmd.x, cmd.z);
|
||||
uais.forEach((cmpUnitAI, index) => {
|
||||
cmpUnitAI.WalkAndFight(positions[index].x, positions[index].y, cmd.targetClasses, cmd.allowCapture, cmd.queued, cmd.pushFront);
|
||||
|
|
@ -176,7 +178,8 @@ var g_Commands = {
|
|||
uais.forEach(cmpUnitAI => {
|
||||
cmpUnitAI.Patrol(cmd.x, cmd.z, cmd.targetClasses, cmd.allowCapture, cmd.queued)
|
||||
});
|
||||
else {
|
||||
else
|
||||
{
|
||||
const positions = Engine.QueryInterface(SYSTEM_ENTITY, IID_Pathfinder).DistributeAround(data.entities, cmd.x, cmd.z);
|
||||
uais.forEach((cmpUnitAI, index) => {
|
||||
cmpUnitAI.Patrol(positions[index].x, positions[index].y, cmd.targetClasses, cmd.allowCapture, cmd.queued)
|
||||
|
|
|
|||
Loading…
Reference in a new issue