This commit is contained in:
Scott Anderson
2025-08-24 21:36:25 -04:00
parent 7f474e15c6
commit d9a178221a
3 changed files with 9 additions and 6 deletions
+4 -1
View File
@@ -99,7 +99,10 @@ export default [
"function-call-argument-newline": ["error", "consistent"],
"max-depth": ["error", { max: 5 }],
"max-len": ["error", { code: 120 }],
"max-lines": ["error", { max: 677, skipBlankLines: true, skipComments: true }],
"max-lines": [
"error",
{ max: 677, skipBlankLines: true, skipComments: true },
],
"max-lines-per-function": ["error", { max: 561 }],
"no-loss-of-precision": "error",
"no-multi-spaces": "error",
+2 -2
View File
@@ -470,13 +470,13 @@ export class EventsDisplay extends LitElement implements Layer {
},
],
createdAt: this.game.ticks(),
priority: 0,
duration: this.game.config().allianceRequestDuration() - 20, // 2 second buffer
focusID: update.requestorID,
priority: 0,
shouldDelete: (game) => {
// Recipient sent a separate request, so they became allied without the recipient responding.
return requestor.isAlliedWith(recipient);
},
focusID: update.requestorID,
});
}
+3 -3
View File
@@ -1,7 +1,7 @@
import { Game, Player, PlayerType } from "../src/core/game/Game";
import { playerInfo, setup } from "./util/Setup";
import { AllianceRequestExecution } from "../src/core/execution/alliance/AllianceRequestExecution";
import { AllianceRequestReplyExecution } from "../src/core/execution/alliance/AllianceRequestReplyExecution";
import { Game, Player, PlayerType } from "../src/core/game/Game";
import { playerInfo, setup } from "./util/Setup";
let game: Game;
let player1: Player;
@@ -13,8 +13,8 @@ describe("AllianceRequestExecution", () => {
"plains",
{
infiniteGold: true,
instantBuild: true,
infiniteTroops: true,
instantBuild: true,
},
[
playerInfo("player1", PlayerType.Human),