From 5279f9b4ec0f0bb0efd1396c0043618112927d60 Mon Sep 17 00:00:00 2001 From: babyboucher <48159308+babyboucher@users.noreply.github.com> Date: Mon, 11 May 2026 21:25:16 -0500 Subject: [PATCH] Add Alliance Extension Handling (#3903) ## Description: Allows the Alliance hotkey to extend an alliance as expected by https://discord.com/channels/1284581928254701718/1503351192921571409 ## Please complete the following: - [X] I have added screenshots for all UI updates - [X] I process any text displayed to the user through translateText() and I've added it to the en.json file - [X] I have added relevant tests to the test directory - [X] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced ## Please put your Discord username so you can be contacted if a bug or regression is found: babyboucher --- src/client/ClientGameRunner.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/client/ClientGameRunner.ts b/src/client/ClientGameRunner.ts index ff16f13e1..5cb2ad853 100644 --- a/src/client/ClientGameRunner.ts +++ b/src/client/ClientGameRunner.ts @@ -47,6 +47,7 @@ import { import { endGame, startGame, startTime } from "./LocalPersistantStats"; import { terrainMapFileLoader } from "./TerrainMapFileLoader"; import { + SendAllianceExtensionIntentEvent, SendAllianceRequestIntentEvent, SendAttackIntentEvent, SendBoatAttackIntentEvent, @@ -851,6 +852,8 @@ export class ClientGameRunner { this.eventBus.emit( new SendAllianceRequestIntentEvent(myPlayer, recipient), ); + } else if (actions.interaction?.allianceInfo?.canExtend) { + this.eventBus.emit(new SendAllianceExtensionIntentEvent(recipient)); } }); }