mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-08-08 03:29:44 +00:00
naval invasion alert added
This commit is contained in:
@@ -69,6 +69,15 @@ export class TransportShipExecution implements Execution {
|
|||||||
|
|
||||||
this.attacker = mg.player(this.attackerID);
|
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 (
|
if (
|
||||||
this.attacker.units(UnitType.TransportShip).length >=
|
this.attacker.units(UnitType.TransportShip).length >=
|
||||||
mg.config().boatMaxNumber()
|
mg.config().boatMaxNumber()
|
||||||
|
|||||||
Reference in New Issue
Block a user