translated code to English and a few bug fixes from latest alpha

This commit is contained in:
Tercio Jose
2023-06-21 17:27:58 -03:00
parent a2c5e926c9
commit 9fb2b0d66b
36 changed files with 3523 additions and 2679 deletions
+11 -1
View File
@@ -82,6 +82,8 @@
Details222.Textures = {}
--namespace for pet
Details222.Pets = {}
--auto run code
Details222.AutoRunCode = {}
Details222.Instances = {}
Details222.MythicPlus = {}
Details222.EJCache = {}
@@ -1162,7 +1164,8 @@ end
function Details222.ClassCache.MakeCache()
--iterage among all segments in the container history, get the damage container and get the actor list, check if the actor is a player and if it is, get the class and store it in the cache
for _, combatObject in ipairs(Details.tabela_historico.tabelas) do
local segmentsTable = Details:GetCombatSegments()
for _, combatObject in ipairs(segmentsTable) do
for _, actorObject in combatObject:GetContainer(DETAILS_ATTRIBUTE_DAMAGE):ListActors() do
if (actorObject:IsPlayer()) then
local actorName = actorObject.nome
@@ -1303,6 +1306,13 @@ function Details:DestroyActor(actorObject, actorContainer, combatObject, callSta
local combatTotalsTable = combatObject.totals[containerType] --without group
local combatTotalsTableInGroup = combatObject.totals_grupo[containerType] --with group
--remove the actor from the parser cache
local c1, c2, c3, c4 = Details222.Cache.GetParserCacheTables()
c1[actorObject.serial] = nil
c2[actorObject.serial] = nil
c3[actorObject.serial] = nil
c4[actorObject.serial] = nil
if (not actorObject.ownerName) then --not a pet
if (containerType == 1 or containerType == 2) then --damage|healing done
combatTotalsTable = combatTotalsTable - actorObject.total