Major rework on the M+ end of run panel

This commit is contained in:
Tercio Jose
2024-08-09 20:55:16 -03:00
committed by andrew6180
parent c6fbc67442
commit 065c61c8ff
12 changed files with 816 additions and 289 deletions
+14 -4
View File
@@ -5343,10 +5343,12 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
end
local keystoneLevels = {}
local playerRatings = {}
Details.KeystoneLevels = keystoneLevels
--save the keystone level for each of the 5 party members
Details.PlayerRatings = playerRatings
--save the keystone and rating level for each of the 5 party members
local saveGroupMembersKeystoneLevel = function()
local saveGroupMembersKeystoneAndRatingLevel = function()
wipe(keystoneLevels)
local libOpenRaid = LibStub("LibOpenRaid-1.0", true)
@@ -5358,6 +5360,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
if (unitKeystoneInfo) then
local unitName = Details:GetFullName(unitId)
keystoneLevels[unitName] = unitKeystoneInfo.level
playerRatings[unitName] = unitKeystoneInfo.rating
end
end
end
@@ -5368,6 +5371,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
if (unitKeystoneInfo) then
local unitName = Details:GetFullName(unitId)
keystoneLevels[unitName] = unitKeystoneInfo.level
playerRatings[unitName] = unitKeystoneInfo.rating
end
end
end
@@ -5376,7 +5380,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
function Details222.CacheKeystoneForAllGroupMembers()
local _, instanceType, difficultyID = GetInstanceInfo()
if (instanceType == "party") then
saveGroupMembersKeystoneLevel()
saveGroupMembersKeystoneAndRatingLevel()
end
end
@@ -5384,7 +5388,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
Details222.MythicPlus.WorldStateTimerEndAt = time()
--wait until the keystone is updated and send it to the party
saveGroupMembersKeystoneLevel()
saveGroupMembersKeystoneAndRatingLevel()
---@type number mapID
---@type number level
@@ -5982,8 +5986,14 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
end
end
--open world out of combat spell damage
local outofcombat_spell_damage = function(unused, token, time, whoGUID, whoName, whoFlags, targetGUID, targetName, targetFlags)
--identify if the attacker is a group member
end
local out_of_combat_interresting_events = {
["SPELL_SUMMON"] = parser.summon,
["SPELL_DAMAGE"] = outofcombat_spell_damage,
}
function Details222.Parser.OnParserEventOutOfCombat(self, event, ...)