Use FoCAPI GameObjectTypeWrapper Get_Display_Name()
This commit is contained in:
@@ -60,7 +60,7 @@ function SkirmishGameClass:CombatTextUnitBuilt(unit)
|
||||
end
|
||||
|
||||
local timeText = FormatTime(unit.BuildTime)
|
||||
local text = string.format("%s\t<T%d> [%s]: BUILT %s ($%d)", timeText, team.Number, owner.Name, unit.Name,
|
||||
local text = string.format("%s\t<T%d> [%s]: BUILT %s ($%d)", timeText, team.Number, owner.Name, unit.DisplayName,
|
||||
unit.BuildCost)
|
||||
local faction = Factions[owner.Faction]
|
||||
---@type ColorStruct
|
||||
@@ -95,7 +95,8 @@ function SkirmishGameClass:CombatTextUnitKilled(unit)
|
||||
return
|
||||
end
|
||||
|
||||
local text = string.format("%s\t<T%d> [%s]: MISTAKES WERE MADE %s", timeText, team.Number, owner.Name, unit.Name)
|
||||
local text = string.format("%s\t<T%d> [%s]: MISTAKES WERE MADE %s", timeText, team.Number, owner.Name,
|
||||
unit.DisplayName)
|
||||
local color = ColorStruct:New(0.8, 0.8, 0.8, 1)
|
||||
|
||||
self.CombatFeed:Append(text, -1, color)
|
||||
@@ -106,7 +107,8 @@ function SkirmishGameClass:CombatTextUnitKilled(unit)
|
||||
return
|
||||
end
|
||||
|
||||
local text = string.format("%s\t<T%d> [%s]: KILLED %s (%s)", timeText, team.Number, killer.Name, unit.Name,
|
||||
local text = string.format("%s\t<T%d> [%s]: KILLED %s (%s)", timeText, team.Number, killer.Name, unit
|
||||
.DisplayName,
|
||||
owner.Name)
|
||||
local faction = Factions[killer.Faction]
|
||||
---@type ColorStruct
|
||||
|
||||
Reference in New Issue
Block a user