Merge pull request #119 from BrunoJurkovic/show-attack-boats-in-chat

Naval attack message added
This commit is contained in:
evanpelle
2025-03-02 20:03:08 -08:00
committed by GitHub
@@ -69,6 +69,15 @@ export class TransportShipExecution implements Execution {
this.attacker = mg.player(this.attackerID);
// Notify the target player about the incoming naval invasion
if (this.targetID && this.targetID !== mg.terraNullius().id()) {
mg.displayMessage(
`Naval invasion incoming from ${this.attacker.displayName()}`,
MessageType.WARN,
this.targetID,
);
}
if (
this.attacker.units(UnitType.TransportShip).length >=
mg.config().boatMaxNumber()