Merge pull request #412 from Flamanis/CopyEmpowermentData

Add empowerment data to Overall segment and adding two actors.
This commit is contained in:
Tercio Jose
2022-12-19 11:49:12 -03:00
committed by GitHub
2 changed files with 28 additions and 0 deletions
+14
View File
@@ -5928,6 +5928,13 @@ end
end
end
elseif(key == "e_dmg" or key == "e_lvl") then
if (not habilidade_shadow[key]) then
habilidade_shadow[key] = {}
end
for empowermentLevel, empowermentValue in pairs(habilidade[key]) do
habilidade_shadow[key][empowermentLevel] = empowermentValue
end
end
end
end
@@ -6121,6 +6128,13 @@ atributo_damage.__add = function(tabela1, tabela2)
end
end
elseif(key == "e_dmg" or key == "e_lvl") then
if (not habilidade_tabela1[key]) then
habilidade_tabela1[key] = {}
end
for empowermentLevel, empowermentValue in pairs(habilidade[key]) do
habilidade_tabela1[key][empowermentLevel] = habilidade_tabela1[key][empowermentValue] or 0 + empowermentValue
end
end
end
end
+14
View File
@@ -2744,6 +2744,13 @@ end
end
end
elseif(key == "e_heal" or key == "e_lvl") then
if (not habilidade_shadow[key]) then
habilidade_shadow[key] = {}
end
for empowermentLevel, empowermentValue in pairs(habilidade[key]) do
habilidade_shadow[key][empowermentLevel] = empowermentValue
end
end
end
@@ -2852,6 +2859,13 @@ atributo_heal.__add = function(tabela1, tabela2)
habilidade_tabela1 [key] = habilidade_tabela1 [key] + value
end
end
elseif(key == "e_heal" or key == "e_lvl") then
if (not habilidade_tabela1[key]) then
habilidade_tabela1[key] = {}
end
for empowermentLevel, empowermentValue in pairs(habilidade[key]) do
habilidade_tabela1[key][empowermentLevel] = habilidade_tabela1[key][empowermentValue] or 0 + empowermentValue
end
end
end
end