Scaling fixes; Added player bar color

This commit is contained in:
Tercio Jose
2022-01-15 14:32:25 -03:00
parent 009d96cbda
commit 28f28f2212
14 changed files with 393 additions and 288 deletions
+16 -1
View File
@@ -125,7 +125,22 @@
function combate:GetDeaths()
return self.last_events_tables
end
function combate:GetPlayerDeaths(deadPlayerName)
local allDeaths = self:GetDeaths()
local deaths = {}
for i = 1, #allDeaths do
local thisDeath = allDeaths[i]
local thisPlayerName = thisDeath[3]
if (deadPlayerName == thisPlayerName) then
deaths[#deaths+1] = thisDeath
end
end
return deaths
end
function combate:GetCombatId()
return self.combat_id
end