Major refactor to include tactical combat feed

This commit is contained in:
2026-03-10 23:05:20 -05:00
parent 16b70204a1
commit 1be066c6ed
12 changed files with 490 additions and 374 deletions

View File

@@ -65,9 +65,9 @@ end
---@param player table The FoC PlayerWrapper object that owns the new Unit.
function GalacticGameClass:UnitBuilt(objectType, player)
local playerId = player.Get_ID()
local player = self.Players[playerId]
local playerEntry = self.Players[playerId]
if player then
player:AddUnit(objectType)
if playerEntry then
playerEntry:AddUnit(objectType)
end
end