More storage development

This commit is contained in:
Tercio Jose
2024-07-11 01:16:18 -03:00
committed by andrew6180
parent cbc9022cd5
commit 5d45539caa
8 changed files with 53 additions and 40 deletions
+1 -8
View File
@@ -177,18 +177,11 @@ local segmentTypeToString = {
return rawget(self, "is_trash")
end
local diffNumberToName = {
[0] = "normal",
[1] = "heroic",
[2] = "mythic",
[3] = "ascended",
}
function classCombat:GetDifficulty()
local bossInfo = self:GetBossInfo()
if (bossInfo) then
local difficultyId = bossInfo.diff
return difficultyId, diffNumberToName[difficultyId]
return difficultyId, Details222.storage.DiffIdToName[difficultyId]
end
end