fix difficulty ids
This commit is contained in:
@@ -178,10 +178,10 @@ local segmentTypeToString = {
|
||||
end
|
||||
|
||||
local diffNumberToName = {
|
||||
[1] = "normal",
|
||||
[2] = "heroic",
|
||||
[3] = "mythic",
|
||||
[4] = "ascended",
|
||||
[0] = "normal",
|
||||
[1] = "heroic",
|
||||
[2] = "mythic",
|
||||
[3] = "ascended",
|
||||
}
|
||||
|
||||
function classCombat:GetDifficulty()
|
||||
|
||||
@@ -4919,7 +4919,7 @@ function damageClass:MontaInfoDamageDone() --I guess this fills the list of spel
|
||||
--guild ranking on a boss
|
||||
--check if is a raid encounter and if is heroic or mythic
|
||||
do
|
||||
if (diff and (diff == 1 or diff == 2 or diff == 3 or diff == 4)) then --this might give errors
|
||||
if (diff and (diff == 0 or diff == 1 or diff == 2 or diff == 3)) then --this might give errors
|
||||
local db = Details.OpenStorage()
|
||||
if (db) then
|
||||
---@type details_storage_unitresult, details_encounterkillinfo
|
||||
|
||||
+1
-2
@@ -526,7 +526,6 @@
|
||||
--flag instance type
|
||||
local zoneName, instanceType, difficultyID, difficultyName, _, _, _, zoneMapID = GetInstanceInfo()
|
||||
currentCombat.instance_type = instanceType
|
||||
|
||||
if (not currentCombat.is_boss and bIsFromEncounterEnd and type(bIsFromEncounterEnd) == "table") then
|
||||
local encounterID, encounterName, difficultyID, raidSize, endStatus = unpack(bIsFromEncounterEnd)
|
||||
if (encounterID) then
|
||||
@@ -730,7 +729,7 @@
|
||||
if (IsInRaid()) then
|
||||
local cleuID = currentCombat.is_boss.id
|
||||
local diff = currentCombat.is_boss.diff
|
||||
if (cleuID and diff == 16) then -- 16 mythic
|
||||
if (cleuID and diff == 3) then -- 3 ascended
|
||||
local raidData = Details.raid_data
|
||||
|
||||
--get or build mythic raid data table
|
||||
|
||||
+5
-5
@@ -872,10 +872,10 @@ end)
|
||||
local CONST_ADDONNAME_DATASTORAGE = "Details_DataStorage"
|
||||
|
||||
local diffNumberToName = {
|
||||
[1] = "normal",
|
||||
[2] = "heroic",
|
||||
[3] = "mythic",
|
||||
[4] = "ascended",
|
||||
[0] = "normal",
|
||||
[1] = "heroic",
|
||||
[2] = "mythic",
|
||||
[3] = "ascended",
|
||||
}
|
||||
|
||||
local createStorageTables = function()
|
||||
@@ -1651,7 +1651,7 @@ end
|
||||
---load the storage addon when the player leave combat, this function is also called from the parser when the player has its regen enabled
|
||||
function Details.ScheduleLoadStorage()
|
||||
--check first if the storage is already loaded
|
||||
if (C_AddOns.IsAddOnLoaded(CONST_ADDONNAME_DATASTORAGE)) then
|
||||
if (IsAddOnLoaded(CONST_ADDONNAME_DATASTORAGE)) then
|
||||
Details.schedule_storage_load = nil
|
||||
Details222.storageLoaded = true
|
||||
return
|
||||
|
||||
+5
-5
@@ -395,16 +395,16 @@
|
||||
--self is a timer reference from C_Timer
|
||||
|
||||
local diffNumberToName = {
|
||||
[1] = "normal",
|
||||
[2] = "heroic",
|
||||
[3] = "mythic",
|
||||
[4] = "ascended",
|
||||
[0] = "normal",
|
||||
[1] = "heroic",
|
||||
[2] = "mythic",
|
||||
[3] = "ascended",
|
||||
}
|
||||
|
||||
local encounterID = self.Boss
|
||||
local diff = self.Diff
|
||||
|
||||
if (diff == 1 or diff == 2 or diff == 3 or diff == 4) then --might give errors
|
||||
if (diff == 0 or diff == 1 or diff == 2 or diff == 3) then --might give errors
|
||||
local value, rank, combatTime = 0, 0, 0
|
||||
|
||||
if (encounterID == lastRecordFound.id and diff == lastRecordFound.diff) then
|
||||
|
||||
@@ -2163,8 +2163,8 @@ local iconFrame_OnEnter = function(self)
|
||||
local diff, diffEngName = combat:GetDifficulty()
|
||||
local attribute, subattribute = instance:GetDisplay()
|
||||
|
||||
--check if is a raid encounter and if is heroic or mythic
|
||||
if (diff and (diff == 15 or diff == 16) and (attribute == 1 or attribute == 2)) then --might give errors
|
||||
--check if is a raid encounter and if is mythic or ascended
|
||||
if (diff and (diff == 2 or diff == 3) and (attribute == 1 or attribute == 2)) then --might give errors
|
||||
local db = Details.OpenStorage()
|
||||
if (db) then
|
||||
---@type details_storage_unitresult, details_encounterkillinfo
|
||||
|
||||
Reference in New Issue
Block a user