mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-23 07:53:37 +00:00
feat: stats system to see number of nukes sent by a player in PlayerPanel
This commit is contained in:
@@ -55,6 +55,14 @@ export class MirvExecution implements Execution {
|
||||
this.pathFinder = PathFinder.Mini(mg, 10_000, true);
|
||||
this.player = mg.player(this.senderID);
|
||||
this.targetPlayer = this.mg.owner(this.dst);
|
||||
|
||||
this.mg
|
||||
.stats()
|
||||
.increaseNukeCount(
|
||||
this.player.id(),
|
||||
this.targetPlayer.id(),
|
||||
UnitType.MIRV,
|
||||
);
|
||||
}
|
||||
|
||||
tick(ticks: number): void {
|
||||
|
||||
Reference in New Issue
Block a user