Add TacticalKillStatsTable back and make it work for all players on your team / Spectator player shows T1/2 losses separately

This commit is contained in:
2026-03-15 17:04:33 -05:00
parent 770a42b841
commit d2f3974c96
6 changed files with 252 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ require("PGBase")
---@field OwnerId integer Owner Player ID.
---@field BuildCost integer Tactical build cost.
---@field CombatRating integer AI combat power rating.
---@field ScoreValue integer Score cost credits.
---@field BuildTime number Game time that this unit was built.
---@field AliveTime number Game time that this unit became "alive".
---@field DeathTime number Game time that this unit was killed.
@@ -26,6 +27,7 @@ function UnitClass:New(objectType, playerId)
self.OwnerId = playerId
self.BuildCost = objectType.Get_Tactical_Build_Cost()
self.CombatRating = objectType.Get_Combat_Rating()
self.ScoreValue = objectType.Get_Score_Cost_Credits()
self.BuildTime = GetCurrentTime()
self.AliveTime = -1
self.DeathTime = -1