annotate Details_RaidInfo-Highmaul/Details_RaidInfo-Highmaul.lua @ 5:5f34c054c915 tip

- toc update
author Tercio
date Tue, 25 Oct 2016 17:18:17 -0200
parents 0de01324b4f2
children
rev   line source
Tercio@0 1
Tercio@0 2 local _detalhes = _G._detalhes
Tercio@0 3
Tercio@0 4 local trash_mobs_ids = {
Tercio@0 5
Tercio@0 6 }
Tercio@0 7
Tercio@0 8 local highmaul = {
Tercio@0 9
Tercio@0 10 id = 1228, --994 = map id extracted from encounter journal
Tercio@0 11 ej_id = 477, --encounter journal id
Tercio@0 12
Tercio@0 13 name = "Highmaul",
Tercio@0 14
Tercio@0 15 icons = [[Interface\AddOns\Details_RaidInfo-Highmaul\boss_faces]],
Tercio@0 16 icon = [[Interface\AddOns\Details_RaidInfo-Highmaul\icon256x128]],
Tercio@0 17
Tercio@0 18 is_raid = true,
Tercio@0 19
Tercio@0 20 backgroundFile = {file = [[Interface\Glues\LOADINGSCREENS\LoadingScreen_HighMaulRaid]], coords = {0, 1, 265/1024, 875/1024}},
Tercio@0 21 backgroundEJ = [[Interface\EncounterJournal\UI-EJ-LOREBG-Highmaul]],
Tercio@0 22
Tercio@0 23 boss_names = {
Tercio@0 24 --[[ 1 ]] "Kargath Bladefist",
Tercio@0 25 --[[ 2 ]] "The Butcher",
Tercio@0 26 --[[ 3 ]] "Tectus",
Tercio@0 27 --[[ 4 ]] "Brackenspore",
Tercio@0 28 --[[ 5 ]] "Twin Ogron",
Tercio@0 29 --[[ 6 ]] "Ko'ragh",
Tercio@0 30 --[[ 7 ]] "Imperator Mar'gok",
Tercio@0 31 },
Tercio@0 32
Tercio@0 33 encounter_ids = { --encounter journal encounter id
Tercio@0 34 --> Ids by Index
Tercio@0 35 1128, 971, 1195, 1196, 1148, 1153, 1197,
Tercio@0 36
Tercio@0 37 --> Boss Index
Tercio@0 38 [1128] = 1,
Tercio@0 39 [971] = 2,
Tercio@0 40 [1195] = 3,
Tercio@0 41 [1196] = 4,
Tercio@0 42 [1148] = 5,
Tercio@0 43 [1153] = 6,
Tercio@0 44 [1197] = 7,
Tercio@0 45 },
Tercio@0 46
Tercio@0 47 encounter_ids2 = {
Tercio@0 48 --combatlog encounter id
Tercio@0 49 [1721] = 1, --kargath
Tercio@0 50 [1706] = 2, --the butcher
Tercio@0 51 [1722] = 3, --tectus
Tercio@0 52 [1720] = 4, --brakenspore
Tercio@0 53 [1719] = 5, --twin ogron
Tercio@0 54 [1723] = 6, --Koragh
Tercio@0 55 [1705] = 7, --Margok
Tercio@0 56 },
Tercio@0 57
Tercio@0 58 boss_ids = {
Tercio@0 59 --npc ids
Tercio@0 60 [78714] = 1, --Kargath
Tercio@0 61 [77404] = 2, --The Butcher
Tercio@0 62 [78948] = 3, --Tectus
Tercio@0 63 [78491] = 4, --Brakenspore
Tercio@0 64 [78238] = 5, --Pol
Tercio@0 65 [78237] = 5, --Phemos
Tercio@0 66 [79015] = 6, --Koragh
Tercio@0 67 [77428] = 7, --Margok
Tercio@0 68 },
Tercio@0 69
Tercio@0 70 encounters = {
Tercio@0 71
Tercio@0 72 [1] = {
Tercio@0 73 boss = "Kargath Bladefist",
Tercio@0 74 portrait = [[Interface\ENCOUNTERJOURNAL\UI-EJ-BOSS-Kargath Bladefist]],
Tercio@0 75
Tercio@0 76 --> spell list
Tercio@0 77 continuo = {},
Tercio@0 78 },
Tercio@0 79
Tercio@0 80 [2] = {
Tercio@0 81 boss = "The Butcher",
Tercio@0 82 portrait = [[Interface\ENCOUNTERJOURNAL\UI-EJ-BOSS-The Butcher]],
Tercio@0 83
Tercio@0 84 --> spell list
Tercio@0 85 continuo = {},
Tercio@0 86 },
Tercio@0 87
Tercio@0 88 [3] = {
Tercio@0 89 boss = "Tectus",
Tercio@0 90 portrait = [[Interface\ENCOUNTERJOURNAL\UI-EJ-BOSS-Tectus The Living Mountain]],
Tercio@0 91
Tercio@0 92 --> spell list
Tercio@0 93 continuo = {},
Tercio@0 94
Tercio@0 95 funcType = 0x2,
Tercio@0 96 func = function (combat)
Tercio@0 97 local removed = false
Tercio@0 98 local list = combat:GetActorList (DETAILS_ATTRIBUTE_DAMAGE)
Tercio@0 99 for i = #list, 1, -1 do
Tercio@0 100 local id = _detalhes:GetNpcIdFromGuid (list[i].serial)
Tercio@0 101 if (trash_mobs_ids [id]) then
Tercio@0 102 tremove (list, i)
Tercio@0 103 combat.totals [DETAILS_ATTRIBUTE_DAMAGE] = combat.totals [DETAILS_ATTRIBUTE_DAMAGE] - list[i].total
Tercio@0 104 removed = true
Tercio@0 105 end
Tercio@0 106 end
Tercio@0 107 if (removed) then
Tercio@0 108 combat[DETAILS_ATTRIBUTE_DAMAGE]:Remap()
Tercio@0 109 end
Tercio@0 110 end,
Tercio@0 111 },
Tercio@0 112
Tercio@0 113 [4] = {
Tercio@0 114 boss = "Brackenspore",
Tercio@0 115 portrait = [[Interface\ENCOUNTERJOURNAL\UI-EJ-BOSS-Brackenspore]],
Tercio@0 116
Tercio@0 117 --> spell list
Tercio@0 118 continuo = {},
Tercio@0 119 },
Tercio@0 120
Tercio@0 121 [5] = {
Tercio@0 122 boss = "Twin Ogron",
Tercio@0 123 portrait = [[Interface\ENCOUNTERJOURNAL\UI-EJ-BOSS-Twin Ogron]],
Tercio@0 124
Tercio@0 125 --> spell list
Tercio@0 126 continuo = {},
Tercio@0 127 },
Tercio@0 128
Tercio@0 129 [6] = {
Tercio@0 130 boss = "Ko'ragh",
Tercio@0 131 portrait = [[Interface\ENCOUNTERJOURNAL\UI-EJ-BOSS-Fel Breaker]],
Tercio@0 132
Tercio@0 133 --> spell list
Tercio@0 134 continuo = {},
Tercio@0 135 },
Tercio@0 136
Tercio@0 137 [7] = {
Tercio@0 138 boss = "Imperator Mar'gok",
Tercio@0 139 portrait = [[Interface\ENCOUNTERJOURNAL\UI-EJ-BOSS-Imperator Margok]],
Tercio@0 140
Tercio@0 141 --> spell list
Tercio@0 142 continuo = {},
Tercio@0 143 },
Tercio@0 144
Tercio@0 145 },
Tercio@0 146
Tercio@0 147 }
Tercio@0 148
Tercio@0 149 _detalhes:InstallEncounter (highmaul)