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
This commit is contained in:
babyboucher
2026-05-11 21:25:16 -05:00
committed by GitHub
parent 275fd0dccc
commit 5279f9b4ec
+3
View File
@@ -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));
}
});
}