Skip to content

Commit d9a1782

Browse files
committed
format
1 parent 7f474e1 commit d9a1782

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

eslint.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ export default [
9999
"function-call-argument-newline": ["error", "consistent"],
100100
"max-depth": ["error", { max: 5 }],
101101
"max-len": ["error", { code: 120 }],
102-
"max-lines": ["error", { max: 677, skipBlankLines: true, skipComments: true }],
102+
"max-lines": [
103+
"error",
104+
{ max: 677, skipBlankLines: true, skipComments: true },
105+
],
103106
"max-lines-per-function": ["error", { max: 561 }],
104107
"no-loss-of-precision": "error",
105108
"no-multi-spaces": "error",

src/client/graphics/layers/EventsDisplay.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,13 +470,13 @@ export class EventsDisplay extends LitElement implements Layer {
470470
},
471471
],
472472
createdAt: this.game.ticks(),
473-
priority: 0,
474473
duration: this.game.config().allianceRequestDuration() - 20, // 2 second buffer
474+
focusID: update.requestorID,
475+
priority: 0,
475476
shouldDelete: (game) => {
476477
// Recipient sent a separate request, so they became allied without the recipient responding.
477478
return requestor.isAlliedWith(recipient);
478479
},
479-
focusID: update.requestorID,
480480
});
481481
}
482482

tests/AllianceRequestExecution.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { Game, Player, PlayerType } from "../src/core/game/Game";
2-
import { playerInfo, setup } from "./util/Setup";
31
import { AllianceRequestExecution } from "../src/core/execution/alliance/AllianceRequestExecution";
42
import { AllianceRequestReplyExecution } from "../src/core/execution/alliance/AllianceRequestReplyExecution";
3+
import { Game, Player, PlayerType } from "../src/core/game/Game";
4+
import { playerInfo, setup } from "./util/Setup";
55

66
let game: Game;
77
let player1: Player;
@@ -13,8 +13,8 @@ describe("AllianceRequestExecution", () => {
1313
"plains",
1414
{
1515
infiniteGold: true,
16-
instantBuild: true,
1716
infiniteTroops: true,
17+
instantBuild: true,
1818
},
1919
[
2020
playerInfo("player1", PlayerType.Human),

0 commit comments

Comments
 (0)