Merge pull request #504 from Flamanis/master

Re-add Overall Segment Boss Only M+ option
This commit is contained in:
Tercio Jose
2023-04-24 17:47:34 -03:00
committed by GitHub
3 changed files with 17 additions and 0 deletions
+10
View File
@@ -6878,6 +6878,16 @@ do
desc = "When the run is done, make an overall segment.",
},
{--overall only with bosses
type = "toggle",
get = function() return Details.mythic_plus.make_overall_boss_only end,
set = function(self, fixedparam, value)
Details.mythic_plus.make_overall_boss_only = value
end,
name = "Overall Segment Boss Only",
desc = "Only add boss segments on the overall.",
},
{--merge trash
type = "toggle",
get = function() return Details.mythic_plus.merge_boss_trash end,
+5
View File
@@ -94,6 +94,11 @@ function DetailsMythicPlusFrame.MergeSegmentsOnEnd()
local thisCombat = segmentHistory[i]
if (thisCombat and thisCombat.is_mythic_dungeon_run_id == Details.mythic_dungeon_id) then
local canAddThisSegment = true
if (_detalhes.mythic_plus.make_overall_boss_only) then
if (not thisCombat.is_boss) then
canAddThisSegment = false
end
end
if (canAddThisSegment) then
newCombat = newCombat + thisCombat
+2
View File
@@ -1505,6 +1505,7 @@ local default_global_data = {
merge_boss_trash = true,
boss_dedicated_segment = true,
make_overall_when_done = true,
make_overall_boss_only = false,
show_damage_graphic = true,
reverse_death_log = false,
@@ -1901,6 +1902,7 @@ function Details:ImportProfile (profileString, newProfileName, bImportAutoRunCod
mythicPlusSettings.merge_boss_trash = true
mythicPlusSettings.boss_dedicated_segment = true
mythicPlusSettings.make_overall_when_done = true
mythicPlusSettings.make_overall_boss_only = false
mythicPlusSettings.show_damage_graphic = true
mythicPlusSettings.reverse_death_log = false
mythicPlusSettings.delay_to_show_graphic = 10