From 4cf12f605c5333b0e7538bf1bf7d4db80e778ebf Mon Sep 17 00:00:00 2001 From: Gene Nazarov Date: Tue, 24 Sep 2024 18:59:59 -0700 Subject: [PATCH] nit: tabs-to-spaces cleanup --- SmartBuff.buffs.lua | 236 +- SmartBuff.globals.lua | 26 +- SmartBuff.lua | 6 +- SmartBuff.xml | 6312 ++++++++++++++++++++--------------------- localization.cn.lua | 20 +- localization.de.lua | 20 +- localization.en.lua | 20 +- localization.es.lua | 28 +- localization.fr.lua | 20 +- localization.ru.lua | 20 +- localization.tw.lua | 20 +- 11 files changed, 3364 insertions(+), 3364 deletions(-) diff --git a/SmartBuff.buffs.lua b/SmartBuff.buffs.lua index 8357c99..71436af 100644 --- a/SmartBuff.buffs.lua +++ b/SmartBuff.buffs.lua @@ -68,25 +68,25 @@ local function AddItem(itemId, spellId, duration, link) end local function LoadToys() - C_ToyBox.SetCollectedShown(true) - C_ToyBox.SetAllSourceTypeFilters(true) - C_ToyBox.SetFilterString("") - local nTotal = C_ToyBox.GetNumTotalDisplayedToys(); - local nLearned = C_ToyBox.GetNumLearnedDisplayedToys() or 0; - if (nLearned <= 0) then - return; - end - - for i = 1, nTotal do - local num = C_ToyBox.GetToyFromIndex(i); - local id, name, icon = C_ToyBox.GetToyInfo(num); - if (id) then - if (PlayerHasToy(id)) then - _,name = C_Item.GetItemInfo(id) - S.Toybox[tostring(name)] = {id, icon}; - end - end - end + C_ToyBox.SetCollectedShown(true) + C_ToyBox.SetAllSourceTypeFilters(true) + C_ToyBox.SetFilterString("") + local nTotal = C_ToyBox.GetNumTotalDisplayedToys(); + local nLearned = C_ToyBox.GetNumLearnedDisplayedToys() or 0; + if (nLearned <= 0) then + return; + end + + for i = 1, nTotal do + local num = C_ToyBox.GetToyFromIndex(i); + local id, name, icon = C_ToyBox.GetToyInfo(num); + if (id) then + if (PlayerHasToy(id)) then + _,name = C_Item.GetItemInfo(id) + S.Toybox[tostring(name)] = {id, icon}; + end + end + end SMARTBUFF_AddMsgD("Toys initialized"); end @@ -143,24 +143,24 @@ function SMARTBUFF_InitItemList() _,SMARTBUFF_PrimalWhetstone_q2 = C_Item.GetItemInfo(191939); -- Primal Whestone (Quality 2) _,SMARTBUFF_PrimalWhetstone_q3 = C_Item.GetItemInfo(191940); -- Primal Whestone (Quality 3) -- The War Within - _,SMARTBUFF_TWWWeaponEnhance1_q1 = C_Item.GetItemInfo(222503); -- Ironclaw Razorstone - _,SMARTBUFF_TWWWeaponEnhance1_q2 = C_Item.GetItemInfo(222504); -- Ironclaw Razorstone - _,SMARTBUFF_TWWWeaponEnhance1_q3 = C_Item.GetItemInfo(222505); -- Ironclaw Razorstone - _,SMARTBUFF_TWWWeaponEnhance2_q1 = C_Item.GetItemInfo(222506); -- Ironclaw Weightstone - _,SMARTBUFF_TWWWeaponEnhance2_q2 = C_Item.GetItemInfo(222506); -- Ironclaw Weightstone - _,SMARTBUFF_TWWWeaponEnhance2_q3 = C_Item.GetItemInfo(222507); -- Ironclaw Weightstone - _,SMARTBUFF_TWWWeaponEnhance3_q1 = C_Item.GetItemInfo(222508); -- Ironclaw Whetstone - _,SMARTBUFF_TWWWeaponEnhance3_q2 = C_Item.GetItemInfo(222509); -- Ironclaw Whetstone - _,SMARTBUFF_TWWWeaponEnhance3_q3 = C_Item.GetItemInfo(222510); -- Ironclaw Whetstone - _,SMARTBUFF_TWWWeaponEnhance4_q1 = C_Item.GetItemInfo(224105); -- Oil of Beledar's Grace - _,SMARTBUFF_TWWWeaponEnhance4_q2 = C_Item.GetItemInfo(224106); -- Oil of Beledar's Grace - _,SMARTBUFF_TWWWeaponEnhance4_q3 = C_Item.GetItemInfo(224107); -- Oil of Beledar's Grace - _,SMARTBUFF_TWWWeaponEnhance5_q1 = C_Item.GetItemInfo(224108); -- Oil of Deep Toxins - _,SMARTBUFF_TWWWeaponEnhance5_q2 = C_Item.GetItemInfo(224109); -- Oil of Deep Toxins - _,SMARTBUFF_TWWWeaponEnhance5_q3 = C_Item.GetItemInfo(224109); -- Oil of Deep Toxins - _,SMARTBUFF_TWWWeaponEnhance6_q1 = C_Item.GetItemInfo(224110); -- Algari Mana Oil - _,SMARTBUFF_TWWWeaponEnhance6_q2 = C_Item.GetItemInfo(224111); -- Algari Mana Oil - _,SMARTBUFF_TWWWeaponEnhance6_q3 = C_Item.GetItemInfo(224113); -- Algari Mana Oil + _,SMARTBUFF_TWWWeaponEnhance1_q1 = C_Item.GetItemInfo(222503); -- Ironclaw Razorstone + _,SMARTBUFF_TWWWeaponEnhance1_q2 = C_Item.GetItemInfo(222504); -- Ironclaw Razorstone + _,SMARTBUFF_TWWWeaponEnhance1_q3 = C_Item.GetItemInfo(222505); -- Ironclaw Razorstone + _,SMARTBUFF_TWWWeaponEnhance2_q1 = C_Item.GetItemInfo(222506); -- Ironclaw Weightstone + _,SMARTBUFF_TWWWeaponEnhance2_q2 = C_Item.GetItemInfo(222506); -- Ironclaw Weightstone + _,SMARTBUFF_TWWWeaponEnhance2_q3 = C_Item.GetItemInfo(222507); -- Ironclaw Weightstone + _,SMARTBUFF_TWWWeaponEnhance3_q1 = C_Item.GetItemInfo(222508); -- Ironclaw Whetstone + _,SMARTBUFF_TWWWeaponEnhance3_q2 = C_Item.GetItemInfo(222509); -- Ironclaw Whetstone + _,SMARTBUFF_TWWWeaponEnhance3_q3 = C_Item.GetItemInfo(222510); -- Ironclaw Whetstone + _,SMARTBUFF_TWWWeaponEnhance4_q1 = C_Item.GetItemInfo(224105); -- Oil of Beledar's Grace + _,SMARTBUFF_TWWWeaponEnhance4_q2 = C_Item.GetItemInfo(224106); -- Oil of Beledar's Grace + _,SMARTBUFF_TWWWeaponEnhance4_q3 = C_Item.GetItemInfo(224107); -- Oil of Beledar's Grace + _,SMARTBUFF_TWWWeaponEnhance5_q1 = C_Item.GetItemInfo(224108); -- Oil of Deep Toxins + _,SMARTBUFF_TWWWeaponEnhance5_q2 = C_Item.GetItemInfo(224109); -- Oil of Deep Toxins + _,SMARTBUFF_TWWWeaponEnhance5_q3 = C_Item.GetItemInfo(224109); -- Oil of Deep Toxins + _,SMARTBUFF_TWWWeaponEnhance6_q1 = C_Item.GetItemInfo(224110); -- Algari Mana Oil + _,SMARTBUFF_TWWWeaponEnhance6_q2 = C_Item.GetItemInfo(224111); -- Algari Mana Oil + _,SMARTBUFF_TWWWeaponEnhance6_q3 = C_Item.GetItemInfo(224113); -- Algari Mana Oil -- Food @@ -255,8 +255,8 @@ function SMARTBUFF_InitItemList() -- 62651, 62652, 62653, 62654, 62655, 62656, 62657, 62658, 62659, 62660, 62661, 62662, 62663, 62664, 62665, 62666, 62667, 62668, 62669, 62670, 62671, 62649, -- MoP -- Deprecating -- 74645, 74646, 74647, 74648, 74649, 74650, 74652, 74653, 74655, 74656, 86069, 86070, 86073, 86074, 81400, 81401, 81402, 81403, 81404, 81405, 81406, 81408, 81409, 81410, 81411, 81412, 81413, 81414, - -- WoD -- Deprecating - -- 111431, 111432, 111433, 111434, 111435, 111436, 111437, 111438, 111439, 111440, 11441, 111442, 111443, 111444, 111445, 111446, 111447, 111448, 111449, 111450, 111451, 111452, 111453, 111454,127991, 111457, 111458, 118576, + -- WoD -- Deprecating + -- 111431, 111432, 111433, 111434, 111435, 111436, 111437, 111438, 111439, 111440, 11441, 111442, 111443, 111444, 111445, 111446, 111447, 111448, 111449, 111450, 111451, 111452, 111453, 111454,127991, 111457, 111458, 118576, -- TWW almost all food items 222733, 222728, 222732, 222720, 222735, 222731, 222721, 222730, 225855, 222729, 225592, 222736, 222726, 222718, 222724, 222745, 222725, 222703, 222715, 222710, 222712, 222704, 222727, 222722, 222711, 222705, 222708, 222707, 223968, 222713, 222723, 222714, 222702, 222709, 222719, 222717, 222716, 222706, @@ -511,52 +511,52 @@ function SMARTBUFF_InitItemList() _,SMARTBUFF_FLASKTWW2_Q1 = C_Item.GetItemInfo(212272); --"Flask of Tempered Swiftness" _,SMARTBUFF_FLASKTWW2_Q2 = C_Item.GetItemInfo(212273); --"Flask of Tempered Swiftness" _,SMARTBUFF_FLASKTWW2_Q3 = C_Item.GetItemInfo(212274); --"Flask of Tempered Swiftness" - _,SMARTBUFF_FLASKTWW3_Q1 = C_Item.GetItemInfo(212275); --"Flask of Tempered Versatility" - _,SMARTBUFF_FLASKTWW3_Q2 = C_Item.GetItemInfo(212276); --"Flask of Tempered Versatility" - _,SMARTBUFF_FLASKTWW3_Q3 = C_Item.GetItemInfo(212277); --"Flask of Tempered Versatility" - _,SMARTBUFF_FLASKTWW4_Q1 = C_Item.GetItemInfo(212278); --"Flask of Tempered Mastery" - _,SMARTBUFF_FLASKTWW4_Q2 = C_Item.GetItemInfo(212279); --"Flask of Tempered Mastery" - _,SMARTBUFF_FLASKTWW4_Q3 = C_Item.GetItemInfo(212280); --"Flask of Tempered Mastery" - _,SMARTBUFF_FLASKTWW5_Q1 = C_Item.GetItemInfo(212281); --"Flask of Alchemical Chaos" - _,SMARTBUFF_FLASKTWW5_Q2 = C_Item.GetItemInfo(212282); --"Flask of Alchemical Chaos" - _,SMARTBUFF_FLASKTWW5_Q3 = C_Item.GetItemInfo(212283); --"Flask of Alchemical Chaos" - _,SMARTBUFF_FLASKTWWPvP_1 = C_Item.GetItemInfo(212289); --"Vicious Flask of Classical Spirits" - _,SMARTBUFF_FLASKTWWPvP_2 = C_Item.GetItemInfo(212292); --"Vicious Flask of Honor" - _,SMARTBUFF_FLASKTWWPvP_3 = C_Item.GetItemInfo(212295); --"Vicious Flask of Manifested Fury" - _,SMARTBUFF_FLASKTWWPvP_4 = C_Item.GetItemInfo(212298); --"Vicious Flask of the Wrecking Ball" + _,SMARTBUFF_FLASKTWW3_Q1 = C_Item.GetItemInfo(212275); --"Flask of Tempered Versatility" + _,SMARTBUFF_FLASKTWW3_Q2 = C_Item.GetItemInfo(212276); --"Flask of Tempered Versatility" + _,SMARTBUFF_FLASKTWW3_Q3 = C_Item.GetItemInfo(212277); --"Flask of Tempered Versatility" + _,SMARTBUFF_FLASKTWW4_Q1 = C_Item.GetItemInfo(212278); --"Flask of Tempered Mastery" + _,SMARTBUFF_FLASKTWW4_Q2 = C_Item.GetItemInfo(212279); --"Flask of Tempered Mastery" + _,SMARTBUFF_FLASKTWW4_Q3 = C_Item.GetItemInfo(212280); --"Flask of Tempered Mastery" + _,SMARTBUFF_FLASKTWW5_Q1 = C_Item.GetItemInfo(212281); --"Flask of Alchemical Chaos" + _,SMARTBUFF_FLASKTWW5_Q2 = C_Item.GetItemInfo(212282); --"Flask of Alchemical Chaos" + _,SMARTBUFF_FLASKTWW5_Q3 = C_Item.GetItemInfo(212283); --"Flask of Alchemical Chaos" + _,SMARTBUFF_FLASKTWWPvP_1 = C_Item.GetItemInfo(212289); --"Vicious Flask of Classical Spirits" + _,SMARTBUFF_FLASKTWWPvP_2 = C_Item.GetItemInfo(212292); --"Vicious Flask of Honor" + _,SMARTBUFF_FLASKTWWPvP_3 = C_Item.GetItemInfo(212295); --"Vicious Flask of Manifested Fury" + _,SMARTBUFF_FLASKTWWPvP_4 = C_Item.GetItemInfo(212298); --"Vicious Flask of the Wrecking Ball" _,SMARTBUFF_FLASKTWW6_Q1 = C_Item.GetItemInfo(212299); --"Flask of Saving Graces" - _,SMARTBUFF_FLASKTWW6_Q2 = C_Item.GetItemInfo(212300); --"Flask of Saving Graces" - _,SMARTBUFF_FLASKTWW6_Q3 = C_Item.GetItemInfo(212301); --"Flask of Saving Graces" + _,SMARTBUFF_FLASKTWW6_Q2 = C_Item.GetItemInfo(212300); --"Flask of Saving Graces" + _,SMARTBUFF_FLASKTWW6_Q3 = C_Item.GetItemInfo(212301); --"Flask of Saving Graces" _,SMARTBUFF_FLASKTWW7_Q1 = C_Item.GetItemInfo(212305); --"Phial of Concentrated Ingenuity" _,SMARTBUFF_FLASKTWW7_Q2 = C_Item.GetItemInfo(212306); --"Phial of Concentrated Ingenuity" _,SMARTBUFF_FLASKTWW7_Q3 = C_Item.GetItemInfo(212307); --"Phial of Concentrated Ingenuity" _,SMARTBUFF_FLASKTWW8_Q1 = C_Item.GetItemInfo(212308); --"Phial of Truesight" _,SMARTBUFF_FLASKTWW8_Q2 = C_Item.GetItemInfo(212309); --"Phial of Truesight" _,SMARTBUFF_FLASKTWW8_Q3 = C_Item.GetItemInfo(212310); --"Phial of Truesight" - _,SMARTBUFF_FLASKTWW9_Q1 = C_Item.GetItemInfo(212311); --"Phial of Enhanced Ambidexterity" - _,SMARTBUFF_FLASKTWW9_Q2 = C_Item.GetItemInfo(212312); --"Phial of Enhanced Ambidexterity" - _,SMARTBUFF_FLASKTWW9_Q3 = C_Item.GetItemInfo(212313); --"Phial of Enhanced Ambidexterity" - _,SMARTBUFF_FLASKTWW10_Q1 = C_Item.GetItemInfo(212314); --"Phial of Bountiful Seasons" - _,SMARTBUFF_FLASKTWW10_Q2 = C_Item.GetItemInfo(212315); --"Phial of Bountiful Seasons" - _,SMARTBUFF_FLASKTWW10_Q3 = C_Item.GetItemInfo(212316); --"Phial of Bountiful Seasons" - _,SMARTBUFF_FLASKTWW11_Q1 = C_Item.GetItemInfo(212725); --"Fleeting Flask of Tempered Aggression" - _,SMARTBUFF_FLASKTWW11_Q2 = C_Item.GetItemInfo(212727); --"Fleeting Flask of Tempered Aggression" - _,SMARTBUFF_FLASKTWW11_Q3 = C_Item.GetItemInfo(212728); --"Fleeting Flask of Tempered Aggression" - _,SMARTBUFF_FLASKTWW12_Q1 = C_Item.GetItemInfo(212729); --"Fleeting Flask of Tempered Swiftness" - _,SMARTBUFF_FLASKTWW12_Q2 = C_Item.GetItemInfo(212730); --"Fleeting Flask of Tempered Swiftness" - _,SMARTBUFF_FLASKTWW12_Q3 = C_Item.GetItemInfo(212731); --"Fleeting Flask of Tempered Swiftness" - _,SMARTBUFF_FLASKTWW13_Q1 = C_Item.GetItemInfo(212732); --"Fleeting Flask of Tempered Versatility" - _,SMARTBUFF_FLASKTWW13_Q2 = C_Item.GetItemInfo(212733); --"Fleeting Flask of Tempered Versatility" - _,SMARTBUFF_FLASKTWW13_Q3 = C_Item.GetItemInfo(212734); --"Fleeting Flask of Tempered Versatility" - _,SMARTBUFF_FLASKTWW14_Q1 = C_Item.GetItemInfo(212735); --"Fleeting Flask of Tempered Mastery" - _,SMARTBUFF_FLASKTWW14_Q2 = C_Item.GetItemInfo(212736); --"Fleeting Flask of Tempered Mastery" - _,SMARTBUFF_FLASKTWW14_Q3 = C_Item.GetItemInfo(212738); --"Fleeting Flask of Tempered Mastery" - _,SMARTBUFF_FLASKTWW15_Q1 = C_Item.GetItemInfo(212739); --"Fleeting Flask of Alchemical Chaos" - _,SMARTBUFF_FLASKTWW15_Q2 = C_Item.GetItemInfo(212740); --"Fleeting Flask of Alchemical Chaos" - _,SMARTBUFF_FLASKTWW15_Q3 = C_Item.GetItemInfo(212741); --"Fleeting Flask of Alchemical Chaos" - _,SMARTBUFF_FLASKTWW16_Q1 = C_Item.GetItemInfo(212745); --"Fleeting Flask of Saving Graces" - _,SMARTBUFF_FLASKTWW16_Q2 = C_Item.GetItemInfo(212746); --"Fleeting Flask of Saving Graces" - _,SMARTBUFF_FLASKTWW16_Q3 = C_Item.GetItemInfo(212747); --"Fleeting Flask of Saving Graces" + _,SMARTBUFF_FLASKTWW9_Q1 = C_Item.GetItemInfo(212311); --"Phial of Enhanced Ambidexterity" + _,SMARTBUFF_FLASKTWW9_Q2 = C_Item.GetItemInfo(212312); --"Phial of Enhanced Ambidexterity" + _,SMARTBUFF_FLASKTWW9_Q3 = C_Item.GetItemInfo(212313); --"Phial of Enhanced Ambidexterity" + _,SMARTBUFF_FLASKTWW10_Q1 = C_Item.GetItemInfo(212314); --"Phial of Bountiful Seasons" + _,SMARTBUFF_FLASKTWW10_Q2 = C_Item.GetItemInfo(212315); --"Phial of Bountiful Seasons" + _,SMARTBUFF_FLASKTWW10_Q3 = C_Item.GetItemInfo(212316); --"Phial of Bountiful Seasons" + _,SMARTBUFF_FLASKTWW11_Q1 = C_Item.GetItemInfo(212725); --"Fleeting Flask of Tempered Aggression" + _,SMARTBUFF_FLASKTWW11_Q2 = C_Item.GetItemInfo(212727); --"Fleeting Flask of Tempered Aggression" + _,SMARTBUFF_FLASKTWW11_Q3 = C_Item.GetItemInfo(212728); --"Fleeting Flask of Tempered Aggression" + _,SMARTBUFF_FLASKTWW12_Q1 = C_Item.GetItemInfo(212729); --"Fleeting Flask of Tempered Swiftness" + _,SMARTBUFF_FLASKTWW12_Q2 = C_Item.GetItemInfo(212730); --"Fleeting Flask of Tempered Swiftness" + _,SMARTBUFF_FLASKTWW12_Q3 = C_Item.GetItemInfo(212731); --"Fleeting Flask of Tempered Swiftness" + _,SMARTBUFF_FLASKTWW13_Q1 = C_Item.GetItemInfo(212732); --"Fleeting Flask of Tempered Versatility" + _,SMARTBUFF_FLASKTWW13_Q2 = C_Item.GetItemInfo(212733); --"Fleeting Flask of Tempered Versatility" + _,SMARTBUFF_FLASKTWW13_Q3 = C_Item.GetItemInfo(212734); --"Fleeting Flask of Tempered Versatility" + _,SMARTBUFF_FLASKTWW14_Q1 = C_Item.GetItemInfo(212735); --"Fleeting Flask of Tempered Mastery" + _,SMARTBUFF_FLASKTWW14_Q2 = C_Item.GetItemInfo(212736); --"Fleeting Flask of Tempered Mastery" + _,SMARTBUFF_FLASKTWW14_Q3 = C_Item.GetItemInfo(212738); --"Fleeting Flask of Tempered Mastery" + _,SMARTBUFF_FLASKTWW15_Q1 = C_Item.GetItemInfo(212739); --"Fleeting Flask of Alchemical Chaos" + _,SMARTBUFF_FLASKTWW15_Q2 = C_Item.GetItemInfo(212740); --"Fleeting Flask of Alchemical Chaos" + _,SMARTBUFF_FLASKTWW15_Q3 = C_Item.GetItemInfo(212741); --"Fleeting Flask of Alchemical Chaos" + _,SMARTBUFF_FLASKTWW16_Q1 = C_Item.GetItemInfo(212745); --"Fleeting Flask of Saving Graces" + _,SMARTBUFF_FLASKTWW16_Q2 = C_Item.GetItemInfo(212746); --"Fleeting Flask of Saving Graces" + _,SMARTBUFF_FLASKTWW16_Q3 = C_Item.GetItemInfo(212747); --"Fleeting Flask of Saving Graces" -- Draught of Ten Lands _,SMARTBUFF_EXP_POTION = C_Item.GetItemInfo(166750); --"Draught of Ten Lands" @@ -628,7 +628,7 @@ function SMARTBUFF_InitSpellIDs() SMARTBUFF_BLAZBARRIER = getSpellBookItemByName(235313);--"Blazing Barrier" SMARTBUFF_ARCANEFAMILIAR = getSpellBookItemByName(205022);--"Arcane Familiar" - SMARTBUFF_CREATEMG = getSpellBookItemByName(759); --"Conjure Mana Gem" + SMARTBUFF_CREATEMG = getSpellBookItemByName(759); --"Conjure Mana Gem" -- Mage buff links S.ChainMageArmor = { SMARTBUFF_FROSTARMOR, SMARTBUFF_MAGEARMOR, SMARTBUFF_MOLTENARMOR }; @@ -646,17 +646,17 @@ function SMARTBUFF_InitSpellIDs() SMARTBUFF_INQUISITORGAZE = getSpellBookItemByName(386344);--"Inquisitor's Gaze" -- Warlock pets - SMARTBUFF_SUMMONIMP = getSpellBookItemByName(688); --"Summon Imp" - SMARTBUFF_SUMMONFELHUNTER = getSpellBookItemByName(691); --"Summon Fellhunter" + SMARTBUFF_SUMMONIMP = getSpellBookItemByName(688); --"Summon Imp" + SMARTBUFF_SUMMONFELHUNTER = getSpellBookItemByName(691); --"Summon Fellhunter" SMARTBUFF_SUMMONVOIDWALKER= getSpellBookItemByName(697); --"Summon Voidwalker" - SMARTBUFF_SUMMONSUCCUBUS = getSpellBookItemByName(712); --"Summon Succubus" - SMARTBUFF_SUMMONINFERNAL = getSpellBookItemByName(1122); --"Summon Infernal" - SMARTBUFF_SUMMONDOOMGUARD = getSpellBookItemByName(18540); --"Summon Doomguard" + SMARTBUFF_SUMMONSUCCUBUS = getSpellBookItemByName(712); --"Summon Succubus" + SMARTBUFF_SUMMONINFERNAL = getSpellBookItemByName(1122); --"Summon Infernal" + SMARTBUFF_SUMMONDOOMGUARD = getSpellBookItemByName(18540); --"Summon Doomguard" SMARTBUFF_SUMMONFELGUARD = getSpellBookItemByName(30146); --"Summon Felguard" - SMARTBUFF_SUMMONFELIMP = getSpellBookItemByName(112866); --"Summon Fel Imp" - SMARTBUFF_SUMMONVOIDLORD = getSpellBookItemByName(112867); --"Summon Voidlord" - SMARTBUFF_SUMMONSHIVARRA = getSpellBookItemByName(112868); --"Summon Shivarra" - SMARTBUFF_SUMMONOBSERVER = getSpellBookItemByName(112869); --"Summon Observer" + SMARTBUFF_SUMMONFELIMP = getSpellBookItemByName(112866); --"Summon Fel Imp" + SMARTBUFF_SUMMONVOIDLORD = getSpellBookItemByName(112867); --"Summon Voidlord" + SMARTBUFF_SUMMONSHIVARRA = getSpellBookItemByName(112868); --"Summon Shivarra" + SMARTBUFF_SUMMONOBSERVER = getSpellBookItemByName(112869); --"Summon Observer" SMARTBUFF_SUMMONWRATHGUARD= getSpellBookItemByName(112870); --"Summon Wrathguard" -- Hunter @@ -669,7 +669,7 @@ function SMARTBUFF_InitSpellIDs() SMARTBUFF_AOTC = getSpellBookItemByName(186257); --"Aspect of the Cheetah" --SMARTBUFF_AOTP = getSpellBookItemByName(13159); --"Aspect of the Pack" --SMARTBUFF_AOTF = getSpellBookItemByName(172106); --"Aspect of the Fox" - SMARTBUFF_AOTW = getSpellBookItemByName(193530); --"Aspect of the Wild" + SMARTBUFF_AOTW = getSpellBookItemByName(193530); --"Aspect of the Wild" SMARTBUFF_AMMOI = getSpellBookItemByName(162536); --"Incendiary Ammo" SMARTBUFF_AMMOP = getSpellBookItemByName(162537); --"Poisoned Ammo" SMARTBUFF_AMMOF = getSpellBookItemByName(162539); --"Frozen Ammo" @@ -1121,15 +1121,15 @@ function SMARTBUFF_InitSpellList() {SMARTBUFF_MASSBARRIER, 1, SMARTBUFF_CONST_SELF}, {SMARTBUFF_COMBUSTION, -1, SMARTBUFF_CONST_SELF}, {SMARTBUFF_ICYVEINS, 0.333, SMARTBUFF_CONST_SELF}, - {SMARTBUFF_ARCANEFAMILIAR, 60, SMARTBUFF_CONST_SELF}, + {SMARTBUFF_ARCANEFAMILIAR, 60, SMARTBUFF_CONST_SELF}, {SMARTBUFF_ARCANEPOWER, 0.25, SMARTBUFF_CONST_SELF}, {SMARTBUFF_PRESENCEOFMIND, 0.165, SMARTBUFF_CONST_SELF}, - {SMARTBUFF_PRISBARRIER, 1, SMARTBUFF_CONST_SELF}, + {SMARTBUFF_PRISBARRIER, 1, SMARTBUFF_CONST_SELF}, {SMARTBUFF_IMPPRISBARRIER, 1, SMARTBUFF_CONST_SELF}, {SMARTBUFF_BLAZBARRIER, 1, SMARTBUFF_CONST_SELF}, {SMARTBUFF_REFRESHMENT, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_CONJUREDMANA, nil, S.FoodMage}, - {SMARTBUFF_CREATEMG, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_MANAGEM}, --- {SMARTBUFF_ARCANEINTELLECT, 60, SMARTBUFF_CONST_GROUP, {32}, "HPET;WPET;DKPET"} + {SMARTBUFF_CREATEMG, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_MANAGEM}, + -- {SMARTBUFF_ARCANEINTELLECT, 60, SMARTBUFF_CONST_GROUP, {32}, "HPET;WPET;DKPET"} }; end @@ -1153,7 +1153,7 @@ function SMARTBUFF_InitSpellList() {SMARTBUFF_SUMMONSUCCUBUS, -1, SMARTBUFF_CONST_SELF, nil, S.CheckPet}, {SMARTBUFF_SUMMONINFERNAL, -1, SMARTBUFF_CONST_SELF, nil, S.CheckPet}, {SMARTBUFF_SUMMONDOOMGUARD, -1, SMARTBUFF_CONST_SELF, nil, S.CheckPet}, - {SMARTBUFF_SUMMONFELGUARD, -1, SMARTBUFF_CONST_SELF, nil, S.CheckPet}, + {SMARTBUFF_SUMMONFELGUARD, -1, SMARTBUFF_CONST_SELF, nil, S.CheckPet}, {SMARTBUFF_SUMMONFELIMP, -1, SMARTBUFF_CONST_SELF, nil, S.CheckPet}, {SMARTBUFF_SUMMONVOIDLORD, -1, SMARTBUFF_CONST_SELF, nil, S.CheckPet}, {SMARTBUFF_SUMMONSHIVARRA, -1, SMARTBUFF_CONST_SELF, nil, S.CheckPet}, @@ -1374,21 +1374,21 @@ function SMARTBUFF_InitSpellList() {SMARTBUFF_PrimalWhetstone_q2, 120, SMARTBUFF_CONST_INV}, {SMARTBUFF_PrimalWhetstone_q3, 120, SMARTBUFF_CONST_INV}, -- TWW - {SMARTBUFF_TWWWeaponEnhance1_q1, 60, SMARTBUFF_CONST_INV}, - {SMARTBUFF_TWWWeaponEnhance1_q2, 60, SMARTBUFF_CONST_INV}, - {SMARTBUFF_TWWWeaponEnhance1_q3, 60, SMARTBUFF_CONST_INV}, - {SMARTBUFF_TWWWeaponEnhance2_q1, 60, SMARTBUFF_CONST_INV}, - {SMARTBUFF_TWWWeaponEnhance2_q2, 60, SMARTBUFF_CONST_INV}, - {SMARTBUFF_TWWWeaponEnhance2_q3, 60, SMARTBUFF_CONST_INV}, - {SMARTBUFF_TWWWeaponEnhance3_q1, 60, SMARTBUFF_CONST_INV}, - {SMARTBUFF_TWWWeaponEnhance3_q2, 60, SMARTBUFF_CONST_INV}, - {SMARTBUFF_TWWWeaponEnhance3_q3, 60, SMARTBUFF_CONST_INV}, - {SMARTBUFF_TWWWeaponEnhance4_q1, 120, SMARTBUFF_CONST_INV}, - {SMARTBUFF_TWWWeaponEnhance4_q2, 120, SMARTBUFF_CONST_INV}, - {SMARTBUFF_TWWWeaponEnhance4_q3, 120, SMARTBUFF_CONST_INV}, - {SMARTBUFF_TWWWeaponEnhance5_q1, 120, SMARTBUFF_CONST_INV}, - {SMARTBUFF_TWWWeaponEnhance5_q2, 120, SMARTBUFF_CONST_INV}, - {SMARTBUFF_TWWWeaponEnhance5_q3, 120, SMARTBUFF_CONST_INV}, + {SMARTBUFF_TWWWeaponEnhance1_q1, 60, SMARTBUFF_CONST_INV}, + {SMARTBUFF_TWWWeaponEnhance1_q2, 60, SMARTBUFF_CONST_INV}, + {SMARTBUFF_TWWWeaponEnhance1_q3, 60, SMARTBUFF_CONST_INV}, + {SMARTBUFF_TWWWeaponEnhance2_q1, 60, SMARTBUFF_CONST_INV}, + {SMARTBUFF_TWWWeaponEnhance2_q2, 60, SMARTBUFF_CONST_INV}, + {SMARTBUFF_TWWWeaponEnhance2_q3, 60, SMARTBUFF_CONST_INV}, + {SMARTBUFF_TWWWeaponEnhance3_q1, 60, SMARTBUFF_CONST_INV}, + {SMARTBUFF_TWWWeaponEnhance3_q2, 60, SMARTBUFF_CONST_INV}, + {SMARTBUFF_TWWWeaponEnhance3_q3, 60, SMARTBUFF_CONST_INV}, + {SMARTBUFF_TWWWeaponEnhance4_q1, 120, SMARTBUFF_CONST_INV}, + {SMARTBUFF_TWWWeaponEnhance4_q2, 120, SMARTBUFF_CONST_INV}, + {SMARTBUFF_TWWWeaponEnhance4_q3, 120, SMARTBUFF_CONST_INV}, + {SMARTBUFF_TWWWeaponEnhance5_q1, 120, SMARTBUFF_CONST_INV}, + {SMARTBUFF_TWWWeaponEnhance5_q2, 120, SMARTBUFF_CONST_INV}, + {SMARTBUFF_TWWWeaponEnhance5_q3, 120, SMARTBUFF_CONST_INV}, {SMARTBUFF_TWWWeaponEnhance6_q1, 120, SMARTBUFF_CONST_INV}, {SMARTBUFF_TWWWeaponEnhance6_q2, 120, SMARTBUFF_CONST_INV}, {SMARTBUFF_TWWWeaponEnhance6_q3, 120, SMARTBUFF_CONST_INV}, @@ -1426,7 +1426,7 @@ function SMARTBUFF_InitSpellList() {SMARTBUFF_BAKEDPORTTATO, 60, SMARTBUFF_CONST_FOOD}, {SMARTBUFF_BANANABEEFPUDDING, 60, SMARTBUFF_CONST_FOOD}, {SMARTBUFF_BARRACUDAMRGLGAGH, 60, SMARTBUFF_CONST_FOOD}, - {SMARTBUFF_BATBITES, 15, SMARTBUFF_CONST_FOOD}, + {SMARTBUFF_BATBITES, 15, SMARTBUFF_CONST_FOOD}, {SMARTBUFF_BEARTARTARE, 60, SMARTBUFF_CONST_FOOD}, {SMARTBUFF_BILTONG, 60, SMARTBUFF_CONST_FOOD}, {SMARTBUFF_BIGMECH, 60, SMARTBUFF_CONST_FOOD}, @@ -1435,11 +1435,11 @@ function SMARTBUFF_InitSpellList() {SMARTBUFF_BROILEDBLOODFIN, 30, SMARTBUFF_CONST_FOOD}, {SMARTBUFF_BUTTERSCOTCHRIBS, 60, SMARTBUFF_CONST_FOOD}, {SMARTBUFF_BUZZARDBITES, 30, SMARTBUFF_CONST_FOOD}, - {SMARTBUFF_CHARREDBEARKABOBS, 15, SMARTBUFF_CONST_FOOD}, + {SMARTBUFF_CHARREDBEARKABOBS, 15, SMARTBUFF_CONST_FOOD}, {SMARTBUFF_CINNAMONBONEFISH, 60, SMARTBUFF_CONST_FOOD}, {SMARTBUFF_CLAMBAR, 30, SMARTBUFF_CONST_FOOD}, {SMARTBUFF_CRUNCHYSERPENT, 30, SMARTBUFF_CONST_FOOD}, - {SMARTBUFF_CRUNCHYSPIDER, 15, SMARTBUFF_CONST_FOOD}, + {SMARTBUFF_CRUNCHYSPIDER, 15, SMARTBUFF_CONST_FOOD}, {SMARTBUFF_DEEPFRIEDMOSSGILL, 60, SMARTBUFF_CONST_FOOD}, {SMARTBUFF_DROGBARSTYLESALMON, 60, SMARTBUFF_CONST_FOOD}, {SMARTBUFF_EXTRALEMONYFILET, 20, SMARTBUFF_CONST_FOOD}, @@ -1454,12 +1454,12 @@ function SMARTBUFF_InitSpellList() {SMARTBUFF_HEARTSBANEHEXWURST, 5, SMARTBUFF_CONST_FOOD}, {SMARTBUFF_HONEYHAUNCHES, 60, SMARTBUFF_CONST_FOOD}, {SMARTBUFF_IRIDESCENTRAVIOLI, 60, SMARTBUFF_CONST_FOOD}, - {SMARTBUFF_JUICYBEARBURGER, 15, SMARTBUFF_CONST_FOOD}, - {SMARTBUFF_KIBLERSBITS, 20, SMARTBUFF_CONST_FOOD}, + {SMARTBUFF_JUICYBEARBURGER, 15, SMARTBUFF_CONST_FOOD}, + {SMARTBUFF_KIBLERSBITS, 20, SMARTBUFF_CONST_FOOD}, {SMARTBUFF_KULTIRAMISU, 60, SMARTBUFF_CONST_FOOD}, {SMARTBUFF_LEGIONCHILI, 60, SMARTBUFF_CONST_FOOD}, {SMARTBUFF_LOALOAF, 60, SMARTBUFF_CONST_FOOD}, - {SMARTBUFF_LYNXSTEAK, 15, SMARTBUFF_CONST_FOOD}, + {SMARTBUFF_LYNXSTEAK, 15, SMARTBUFF_CONST_FOOD}, {SMARTBUFF_MEATYAPPLEDUMPLINGS, 60, SMARTBUFF_CONST_FOOD}, {SMARTBUFF_MOKNATHALSHORTRIBS, 30, SMARTBUFF_CONST_FOOD}, {SMARTBUFF_MONDAZI, 60, SMARTBUFF_CONST_FOOD}, @@ -1469,7 +1469,7 @@ function SMARTBUFF_InitSpellList() {SMARTBUFF_RAVAGERDOG, 30, SMARTBUFF_CONST_FOOD}, {SMARTBUFF_RAVENBERRYTARTS, 60, SMARTBUFF_CONST_FOOD}, {SMARTBUFF_ROASTEDCLEFTHOOF, 30, SMARTBUFF_CONST_FOOD}, - {SMARTBUFF_ROASTEDMOONGRAZE, 15, SMARTBUFF_CONST_FOOD}, + {SMARTBUFF_ROASTEDMOONGRAZE, 15, SMARTBUFF_CONST_FOOD}, {SMARTBUFF_SAGEFISHDELIGHT, 15, SMARTBUFF_CONST_FOOD}, {SMARTBUFF_SAILORSPIE, 60, SMARTBUFF_CONST_FOOD}, {SMARTBUFF_SALTPEPPERSHANK, 60, SMARTBUFF_CONST_FOOD}, @@ -1481,7 +1481,7 @@ function SMARTBUFF_InitSpellList() {SMARTBUFF_SPICYHOTTALBUK, 30, SMARTBUFF_CONST_FOOD}, {SMARTBUFF_SPINEFISHSOUFFLE, 60, SMARTBUFF_CONST_FOOD}, {SMARTBUFF_STEAKALAMODE, 60, SMARTBUFF_CONST_FOOD}, - {SMARTBUFF_STORMCHOPS, 30, SMARTBUFF_CONST_FOOD}, + {SMARTBUFF_STORMCHOPS, 30, SMARTBUFF_CONST_FOOD}, {SMARTBUFF_SWAMPFISHNCHIPS, 60, SMARTBUFF_CONST_FOOD}, {SMARTBUFF_SWEETSILVERGILL, 60, SMARTBUFF_CONST_FOOD}, {SMARTBUFF_TALBUKSTEAK, 30, SMARTBUFF_CONST_FOOD}, @@ -1492,7 +1492,7 @@ function SMARTBUFF_InitSpellList() {SMARTBUFF_FiletOfFangs, 60, SMARTBUFF_CONST_FOOD}, {SMARTBUFF_SeamothSurprise, 60, SMARTBUFF_CONST_FOOD}, {SMARTBUFF_SaltBakedFishcake, 60, SMARTBUFF_CONST_FOOD}, - {SMARTBUFF_FeistyFishSticks, 60, SMARTBUFF_CONST_FOOD}, + {SMARTBUFF_FeistyFishSticks, 60, SMARTBUFF_CONST_FOOD}, {SMARTBUFF_SeafoodPlatter, 60, SMARTBUFF_CONST_FOOD}, {SMARTBUFF_SeafoodMedley, 60, SMARTBUFF_CONST_FOOD}, {SMARTBUFF_RevengeServedCold, 60, SMARTBUFF_CONST_FOOD}, diff --git a/SmartBuff.globals.lua b/SmartBuff.globals.lua index 4f25b16..7c6b8cc 100644 --- a/SmartBuff.globals.lua +++ b/SmartBuff.globals.lua @@ -63,13 +63,13 @@ NumberFontNormalHuge ---@return table function Enum.MakeEnum(...) return tInvert({...}) - -- for i = 1, #t do - -- local v = t[i] - -- --t[i] = nil - -- t[v] = i - -- end - -- return t - end + -- for i = 1, #t do + -- local v = t[i] + -- --t[i] = nil + -- t[v] = i + -- end + -- return t + end -- Returns an unumerated table from an existing table. ---## Example @@ -91,11 +91,11 @@ end ---@param tbl table ---@return table function Enum.MakeDict(tbl) - local t = {}; - for k, v in ipairs(tbl) do - t[v] = v; - end - return t; + local t = {}; + for k, v in ipairs(tbl) do + t[v] = v; + end + return t; end -- Returns a copy of `list` with `keys` and `values` inverted @@ -155,7 +155,7 @@ end --- [View documents](command:extension.lua.doc?["en-us/51/manual.html/pdf-print"]) --- function printd(...) - print(" ",SMARTBUFF_TITLE,"::",...) + print(" ",SMARTBUFF_TITLE,"::",...) end --- Prints the value of any global variable, table value, frame, function result, or any valid Lua expression. Output is color coded for easier reading. Tables display up to 30 values, the rest are skipped and a message is shown. diff --git a/SmartBuff.lua b/SmartBuff.lua index 6cc7410..92dfab0 100644 --- a/SmartBuff.lua +++ b/SmartBuff.lua @@ -901,7 +901,7 @@ function SMARTBUFF_SetTemplate() -- attempt to announce the addon version (if they have it) -- seems to be an issue with cross-realm, need to look at this later -- but in the meantime I am disabling it... CM - -- if online then SendSmartbuffVersion(name, sRUnit) end + -- if online then SendSmartbuffVersion(name, sRUnit) end end end --end for @@ -4533,9 +4533,9 @@ local function CreateScrollButton(name, parent, cBtn, onClick, onDragStop) local btn = CreateFrame("CheckButton", name, parent, "UICheckButtonTemplate"); btn:SetWidth(ScrBtnSize); btn:SetHeight(ScrBtnSize); - --btn:RegisterForClicks("LeftButtonUp"); + -- btn:RegisterForClicks("LeftButtonUp"); btn:SetScript("OnClick", onClick); - -- btn:SetScript("OnMouseUp", onClick); + -- btn:SetScript("OnMouseUp", onClick); if (onDragStop ~= nil) then btn:SetMovable(true); diff --git a/SmartBuff.xml b/SmartBuff.xml index 10f0f3a..3ee16db 100644 --- a/SmartBuff.xml +++ b/SmartBuff.xml @@ -1,3166 +1,3166 @@ -