record stats for factory build and capture

This commit is contained in:
evanpelle
2025-11-25 15:47:12 -08:00
parent d88a6ba887
commit c8fb8e7f04
+2
View File
@@ -75,6 +75,7 @@ export class UnitImpl implements Unit {
case UnitType.DefensePost:
case UnitType.SAMLauncher:
case UnitType.City:
case UnitType.Factory:
this.mg.stats().unitBuild(_owner, this._type);
}
}
@@ -193,6 +194,7 @@ export class UnitImpl implements Unit {
case UnitType.DefensePost:
case UnitType.SAMLauncher:
case UnitType.City:
case UnitType.Factory:
this.mg.stats().unitCapture(newOwner, this._type);
this.mg.stats().unitLose(this._owner, this._type);
break;