Major refactor to include tactical combat feed
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user