From 875f467f63eff2ce18a659626d419c7f1848c368 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Thu, 26 Feb 2026 00:44:31 +0100 Subject: [PATCH 1/8] add resilience --- .luacheckrc | 3 +++ Modules/Config/DefenseSection.lua | 16 +++++++++++++++- Modules/Data/Data.lua | 3 ++- Modules/Data/Defense.lua | 16 ++++++++++++++-- Modules/Migration.lua | 5 +++-- Modules/Profile.lua | 9 +++++++-- Modules/Stats.lua | 3 ++- .../DefenseConfigTranslations.lua | 10 ++++++++++ Modules/i18n/translations/StatTranslations.lua | 10 ++++++++++ 9 files changed, 66 insertions(+), 9 deletions(-) diff --git a/.luacheckrc b/.luacheckrc index 2e903fee..14a6d71e 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -819,6 +819,8 @@ stds.ecs = { "CR_HIT_RANGED", "CR_HIT_SPELL", "CR_PARRY", + "CR_RESILIENCE_CRIT_TAKEN", + "CR_RESILIENCE_PLAYER_DAMAGE_TAKEN", "CR_WEAPON_SKILL", "CreateFont", "CreateFrame", @@ -1196,6 +1198,7 @@ stds.ecs = { "GetMirrorTimerProgress", "GetModifiedClick", "GetModifiedClickAction", + "GetModResilienceDamageReduction", "GetMoney", "GetMonitorAspectRatio", "GetMonitorCount", diff --git a/Modules/Config/DefenseSection.lua b/Modules/Config/DefenseSection.lua index 50303f1c..0d0cc7f9 100755 --- a/Modules/Config/DefenseSection.lua +++ b/Modules/Config/DefenseSection.lua @@ -189,9 +189,23 @@ function _Config:LoadDefenseSection() Stats.RebuildStatInfos() end, }, - resilience = { + resilienceRating = { type = "toggle", order = 7, + name = function() return i18n("Resilience rating") end, + desc = function() return i18n("Shows/Hides the resilience rating.") end, + width = 1.5, + hidden = function() return ECS.IsClassic end, + disabled = function() return (not ExtendedCharacterStats.profile.defense.display); end, + get = function () return ExtendedCharacterStats.profile.defense.resilienceRating.display; end, + set = function (_, value) + ExtendedCharacterStats.profile.defense.resilienceRating.display = value + Stats.RebuildStatInfos() + end, + }, + resilience = { + type = "toggle", + order = 8, name = function() return i18n("Resilience") end, desc = function() return i18n("Shows/Hides the resilience value.") end, width = 1.5, diff --git a/Modules/Data/Data.lua b/Modules/Data/Data.lua index 4d1f3fe1..09eddebe 100755 --- a/Modules/Data/Data.lua +++ b/Modules/Data/Data.lua @@ -66,7 +66,8 @@ dataFunctionRefs = { ["ParryChance"] = function() return Data:GetParryChance() end, ["BlockChance"] = function() return Data:GetBlockChance() end, ["BlockValue"] = function() return Data:GetBlockValue() end, - ["ResilienceValue"] = function() return ECS.IsClassic and 0 or Data:GetResilienceRating() end, + ["ResilienceRating"] = function() return ECS.IsClassic and 0 or Data:GetResilienceRating() end, + ["Resilience"] = function() return ECS.IsClassic and 0 or Data:GetResilience() end, -- Spell ["SpellHitRating"] = function() return ECS.IsClassic and 0 or Data:SpellHitRating() end, ["SpellHitBonus"] = function() return Data.SpellHitBonus(Data.HOLY_SCHOOL) end, diff --git a/Modules/Data/Defense.lua b/Modules/Data/Defense.lua index f9511d57..cdd15976 100755 --- a/Modules/Data/Defense.lua +++ b/Modules/Data/Defense.lua @@ -27,6 +27,7 @@ function _Defense:GetCritReduction() local meleeCritReduction = 0 local rangedCritReduction = 0 local spellCritReduction = 0 + local critReducingFromResilience = 0 local i = 1 repeat local aura = C_UnitAuras.GetAuraDataByIndex("player", i, "HELPFUL") @@ -60,7 +61,9 @@ function _Defense:GetCritReduction() if critReductionFromDefense < 0 then critReductionFromDefense = 0 end - local critReducingFromResilience = GetCombatRatingBonus(15) + if CR_RESILIENCE_CRIT_TAKEN then + critReducingFromResilience = GetCombatRatingBonus(CR_RESILIENCE_CRIT_TAKEN) + end if classId == Data.DRUID then local coeff = ECS.IsWotlk and 2 or 1 @@ -219,7 +222,16 @@ end ---@return number function Data:GetResilienceRating() - return DataUtils:Round(GetCombatRating(15), 2) + local rating = 0 + if CR_RESILIENCE_PLAYER_DAMAGE_TAKEN then + rating = GetCombatRating(CR_RESILIENCE_PLAYER_DAMAGE_TAKEN) + end + return DataUtils:Round(rating, 2) +end + +---@return number +function Data:GetResilience() + return DataUtils:Round(GetModResilienceDamageReduction(), 2) end ---@return number diff --git a/Modules/Migration.lua b/Modules/Migration.lua index dc199b2f..84d32cbb 100644 --- a/Modules/Migration.lua +++ b/Modules/Migration.lua @@ -15,7 +15,8 @@ function Migration:ToLatestProfileVersion(profileVersion) return end - if profileVersion < 24 then - ExtendedCharacterStats.profile.defense.resilienceRating = ExtendedCharacterStats.profile.defense.resilience + if profileVersion < 26 then + ExtendedCharacterStats.profile.defense.resilience = ExtendedCharacterStats.profile.defense.resilience + ExtendedCharacterStats.profile.defense.resilienceRating = ExtendedCharacterStats.profile.defense.resilienceRating end end diff --git a/Modules/Profile.lua b/Modules/Profile.lua index 579feab4..affcc521 100755 --- a/Modules/Profile.lua +++ b/Modules/Profile.lua @@ -6,7 +6,7 @@ local Utils = ECSLoader:ImportModule("Utils") ---@return number function Profile.GetProfileVersion() - return 24 + return 26 end ---@return ECSProfile @@ -286,7 +286,12 @@ local function GetDefaultStatsProfile() dodge = {display = true, refName = "DodgeChance", text = "Dodge Chance"}, resilienceRating = { display = true, - refName = "ResilienceValue", + refName = "ResilienceRating", + text = "Resilience rating" + }, + resilience = { + display = true, + refName = "Resilience", text = "Resilience" }, }, diff --git a/Modules/Stats.lua b/Modules/Stats.lua index acac2a0b..ac06bbb3 100755 --- a/Modules/Stats.lua +++ b/Modules/Stats.lua @@ -290,7 +290,8 @@ _CreateStatInfos = function() DataUtils:CanParry() and category.parry or nil, (not ECS.IsClassic) and category.dodgeRating or nil, category.dodge or nil, - (not ECS.IsClassic) and category.resilienceRating or nil + ECS.IsClassic and nil or category.resilienceRating, + ECS.IsClassic and nil or category.resilience ) if UnitHasMana("player") then diff --git a/Modules/i18n/translations/ConfigTranslations/DefenseConfigTranslations.lua b/Modules/i18n/translations/ConfigTranslations/DefenseConfigTranslations.lua index 8d2a36cb..44b5bb2a 100644 --- a/Modules/i18n/translations/ConfigTranslations/DefenseConfigTranslations.lua +++ b/Modules/i18n/translations/ConfigTranslations/DefenseConfigTranslations.lua @@ -182,6 +182,16 @@ local defenseConfigTranslations = { ["esMX"] = false, ["ptBR"] = false }, + ["Shows/Hides the resilience rating."] = { + ["enUS"] = true, + ["deDE"] = false, + ["frFR"] = false, + ["zhCN"] = false, + ["ruRU"] = false, + ["esES"] = false, + ["esMX"] = false, + ["ptBR"] = false, + }, } for k, v in pairs(defenseConfigTranslations) do diff --git a/Modules/i18n/translations/StatTranslations.lua b/Modules/i18n/translations/StatTranslations.lua index 6bf9140e..c8cdfe39 100644 --- a/Modules/i18n/translations/StatTranslations.lua +++ b/Modules/i18n/translations/StatTranslations.lua @@ -362,6 +362,16 @@ local statTranslations = { ["esMX"] = "Probabilidad de esquivar", ["ptBR"] = "Chance de esquivar" }, + ["Resilience rating"] = { + ["enUS"] = true, + ["deDE"] = false, + ["frFR"] = false, + ["zhCN"] = false, + ["ruRU"] = false, + ["esES"] = false, + ["esMX"] = false, + ["ptBR"] = false, + }, ["Resilience"] = { ["enUS"] = true, ["deDE"] = "Abhärtung", From b167961e6828aaeb66b8767ea980a5ddcf87581f Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Sat, 28 Feb 2026 04:43:28 +0100 Subject: [PATCH 2/8] set default --- Modules/Migration.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Modules/Migration.lua b/Modules/Migration.lua index 84d32cbb..31e1329a 100644 --- a/Modules/Migration.lua +++ b/Modules/Migration.lua @@ -15,8 +15,10 @@ function Migration:ToLatestProfileVersion(profileVersion) return end + local defaultProfile = Profile:GetDefaultProfile() + if profileVersion < 26 then - ExtendedCharacterStats.profile.defense.resilience = ExtendedCharacterStats.profile.defense.resilience - ExtendedCharacterStats.profile.defense.resilienceRating = ExtendedCharacterStats.profile.defense.resilienceRating + ExtendedCharacterStats.profile.defense.resilience = defaultProfile.profile.defense.resilience + ExtendedCharacterStats.profile.defense.resilienceRating = defaultProfile.profile.defense.resilienceRating end end From b1f368371a0367f28d7414960ed24ec01013c47e Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Mon, 2 Mar 2026 20:56:37 +0100 Subject: [PATCH 3/8] revert --- Modules/Stats.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/Stats.lua b/Modules/Stats.lua index ac06bbb3..965c4800 100755 --- a/Modules/Stats.lua +++ b/Modules/Stats.lua @@ -290,8 +290,8 @@ _CreateStatInfos = function() DataUtils:CanParry() and category.parry or nil, (not ECS.IsClassic) and category.dodgeRating or nil, category.dodge or nil, - ECS.IsClassic and nil or category.resilienceRating, - ECS.IsClassic and nil or category.resilience + (not ECS.IsClassic) and category.resilienceRating or nil, + (not ECS.IsClassic) and category.resilience or nil ) if UnitHasMana("player") then From 074d9c7cb0c5f4a687a184f5cd004e54edea96f6 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Tue, 3 Mar 2026 04:15:59 +0100 Subject: [PATCH 4/8] wip --- Modules/Data/Data.lua | 6 ++++-- Modules/Stats.lua | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Modules/Data/Data.lua b/Modules/Data/Data.lua index 09eddebe..3b2970f3 100755 --- a/Modules/Data/Data.lua +++ b/Modules/Data/Data.lua @@ -1,3 +1,5 @@ +local IsClassic = ECS.IsClassic + ---@class Data local Data = ECSLoader:CreateModule("Data") @@ -66,8 +68,8 @@ dataFunctionRefs = { ["ParryChance"] = function() return Data:GetParryChance() end, ["BlockChance"] = function() return Data:GetBlockChance() end, ["BlockValue"] = function() return Data:GetBlockValue() end, - ["ResilienceRating"] = function() return ECS.IsClassic and 0 or Data:GetResilienceRating() end, - ["Resilience"] = function() return ECS.IsClassic and 0 or Data:GetResilience() end, + ["ResilienceRating"] = function() return IsClassic and 0 or Data:GetResilienceRating() end, + ["Resilience"] = function() return IsClassic and 0 or Data:GetResilience() end, -- Spell ["SpellHitRating"] = function() return ECS.IsClassic and 0 or Data:SpellHitRating() end, ["SpellHitBonus"] = function() return Data.SpellHitBonus(Data.HOLY_SCHOOL) end, diff --git a/Modules/Stats.lua b/Modules/Stats.lua index 965c4800..3546a637 100755 --- a/Modules/Stats.lua +++ b/Modules/Stats.lua @@ -1,3 +1,5 @@ +local IsClassic = ECS.IsClassic + ------------------------------------------------------------------ -- Modules ------------------------------------------------------------------ @@ -290,8 +292,8 @@ _CreateStatInfos = function() DataUtils:CanParry() and category.parry or nil, (not ECS.IsClassic) and category.dodgeRating or nil, category.dodge or nil, - (not ECS.IsClassic) and category.resilienceRating or nil, - (not ECS.IsClassic) and category.resilience or nil + (not IsClassic) and category.resilienceRating or nil, + (not IsClassic) and category.resilience or nil ) if UnitHasMana("player") then From eb86ee30fdaa1d954cb0958ef9665c57f5be210c Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Wed, 4 Mar 2026 18:49:56 +0100 Subject: [PATCH 5/8] upvalue --- Modules/Config/DefenseSection.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Modules/Config/DefenseSection.lua b/Modules/Config/DefenseSection.lua index d02a4c7c..bdc27b5d 100755 --- a/Modules/Config/DefenseSection.lua +++ b/Modules/Config/DefenseSection.lua @@ -1,3 +1,5 @@ +local IsClassic = ECS.IsClassic + ---@class Config local Config = ECSLoader:ImportModule("Config") local _Config = Config.private @@ -195,7 +197,7 @@ function _Config:LoadDefenseSection() name = function() return i18n("Resilience rating") end, desc = function() return i18n("Shows/Hides the resilience rating.") end, width = 1.5, - hidden = function() return ECS.IsClassic end, + hidden = function() return IsClassic end, disabled = function() return (not ExtendedCharacterStats.profile.defense.display); end, get = function () return ExtendedCharacterStats.profile.defense.resilienceRating.display; end, set = function (_, value) From e3aac19616633a0835a2198db01220c7586a90f1 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Wed, 4 Mar 2026 18:52:29 +0100 Subject: [PATCH 6/8] upvalues --- Modules/Data/Defense.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Modules/Data/Defense.lua b/Modules/Data/Defense.lua index cdd15976..0ae5c5af 100755 --- a/Modules/Data/Defense.lua +++ b/Modules/Data/Defense.lua @@ -1,3 +1,7 @@ +local GetCombatRating = GetCombatRating +local GetCombatRatingBonus = GetCombatRatingBonus +local GetModResilienceDamageReduction = GetModResilienceDamageReduction + ---@class Data local Data = ECSLoader:ImportModule("Data") ---@type DataUtils From 8f2d4bd51cc2b44a67cae39e7daa7f82e521fc7b Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Sat, 14 Mar 2026 21:26:19 +0100 Subject: [PATCH 7/8] fix case --- Modules/Config/DefenseSection.lua | 2 +- Modules/Profile.lua | 2 +- Modules/i18n/translations/StatTranslations.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Modules/Config/DefenseSection.lua b/Modules/Config/DefenseSection.lua index bdc27b5d..c1fe2547 100755 --- a/Modules/Config/DefenseSection.lua +++ b/Modules/Config/DefenseSection.lua @@ -194,7 +194,7 @@ function _Config:LoadDefenseSection() resilienceRating = { type = "toggle", order = 7, - name = function() return i18n("Resilience rating") end, + name = function() return i18n("Resilience Rating") end, desc = function() return i18n("Shows/Hides the resilience rating.") end, width = 1.5, hidden = function() return IsClassic end, diff --git a/Modules/Profile.lua b/Modules/Profile.lua index affcc521..c9b9ae8f 100755 --- a/Modules/Profile.lua +++ b/Modules/Profile.lua @@ -287,7 +287,7 @@ local function GetDefaultStatsProfile() resilienceRating = { display = true, refName = "ResilienceRating", - text = "Resilience rating" + text = "Resilience Rating" }, resilience = { display = true, diff --git a/Modules/i18n/translations/StatTranslations.lua b/Modules/i18n/translations/StatTranslations.lua index c8cdfe39..e925c64a 100644 --- a/Modules/i18n/translations/StatTranslations.lua +++ b/Modules/i18n/translations/StatTranslations.lua @@ -362,7 +362,7 @@ local statTranslations = { ["esMX"] = "Probabilidad de esquivar", ["ptBR"] = "Chance de esquivar" }, - ["Resilience rating"] = { + ["Resilience Rating"] = { ["enUS"] = true, ["deDE"] = false, ["frFR"] = false, From 29689789a58cf369bcb3dea52ee76d006f139ec0 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Mon, 16 Mar 2026 01:25:54 +0100 Subject: [PATCH 8/8] keep-sorted --- .luacheckrc | 42 +++++++++++++++++++++---------- Modules/Config/DefenseSection.lua | 2 ++ Modules/Data/Data.lua | 2 ++ Modules/Data/Defense.lua | 2 ++ Modules/Stats.lua | 2 ++ 5 files changed, 37 insertions(+), 13 deletions(-) diff --git a/.luacheckrc b/.luacheckrc index 14a6d71e..0b381bff 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -17,6 +17,7 @@ stds.ecs = { read_globals = {}, -- these globals can only be accessed. globals = { "----> GlobalAPI", + -- keep-sorted start case=no "AbandonQuest", "AbandonSkill", "AcceptAreaSpiritHeal", @@ -117,8 +118,8 @@ stds.ecs = { "C_ActionBar.IsEnabledAutoCastPetAction", "C_ActionBar.IsOnBarOrSpecialBar", "C_ActionBar.ToggleAutoCastPetAction", - "C_AddOns.GetAddOnInfo", "C_AddOns", + "C_AddOns.GetAddOnInfo", "C_AreaPoiInfo.GetAreaPOIForMap", "C_AreaPoiInfo.GetAreaPOIInfo", "C_AreaPoiInfo.IsAreaPOITimed", @@ -135,6 +136,7 @@ stds.ecs = { "C_CharacterServices.SetAutomaticBoostCharacter", "C_CharacterServicesPublic.ShouldSeeControlPopup", "C_ChatBubbles.GetAllChatBubbles", + "C_ChatInfo", "C_ChatInfo.GetChannelRosterInfo", "C_ChatInfo.GetNumActiveChannels", "C_ChatInfo.GetRegisteredAddonMessagePrefixes", @@ -145,7 +147,6 @@ stds.ecs = { "C_ChatInfo.ReportServerLag", "C_ChatInfo.SendAddonMessage", "C_ChatInfo.SendAddonMessageLogged", - "C_ChatInfo", "C_Club.AcceptInvitation", "C_Club.AddClubStreamChatChannel", "C_Club.AdvanceStreamViewMarker", @@ -389,6 +390,7 @@ stds.ecs = { "C_GuildInfo.RemoveFromGuild", "C_GuildInfo.SetGuildRankOrder", "C_GuildInfo.SetNote", + "C_Item", "C_Item.DoesItemExist", "C_Item.DoesItemExistByID", "C_Item.GetCurrentItemLevel", @@ -411,7 +413,6 @@ stds.ecs = { "C_Item.RequestLoadItemData", "C_Item.RequestLoadItemDataByID", "C_Item.UnlockItem", - "C_Item", "C_KeyBindings.GetCustomBindingType", "C_LootHistory.CanMasterLoot", "C_LootHistory.GetExpiration", @@ -424,6 +425,7 @@ stds.ecs = { "C_LossOfControl.GetNumEvents", "C_Mail.HasInboxMoney", "C_Mail.IsCommandPending", + "C_Map", "C_Map.GetAreaInfo", "C_Map.GetBestMapForUnit", "C_Map.GetBountySetIDForMap", @@ -449,10 +451,9 @@ stds.ecs = { "C_Map.GetWorldPosFromMapPos", "C_Map.MapHasArt", "C_Map.RequestPreloadMap", - "C_Map", + "C_MapExplorationInfo", "C_MapExplorationInfo.GetExploredAreaIDsAtPosition", "C_MapExplorationInfo.GetExploredMapTextures", - "C_MapExplorationInfo", "C_MerchantFrame.GetBuybackItemID", "C_ModelInfo.AddActiveModelScene", "C_ModelInfo.AddActiveModelSceneActor", @@ -462,6 +463,7 @@ stds.ecs = { "C_ModelInfo.GetModelSceneActorInfoByID", "C_ModelInfo.GetModelSceneCameraInfoByID", "C_ModelInfo.GetModelSceneInfoByID", + "C_NamePlate", "C_NamePlate.GetNamePlateEnemyClickThrough", "C_NamePlate.GetNamePlateEnemyPreferredClickInsets", "C_NamePlate.GetNamePlateEnemySize", @@ -485,16 +487,15 @@ stds.ecs = { "C_NamePlate.SetNamePlateSelfPreferredClickInsets", "C_NamePlate.SetNamePlateSelfSize", "C_NamePlate.SetTargetClampingInsets", - "C_NamePlate", "C_NewItems.ClearAll", "C_NewItems.IsNewItem", "C_NewItems.RemoveNewItem", + "C_PaperDollInfo", "C_PaperDollInfo.GetArmorEffectiveness", "C_PaperDollInfo.GetArmorEffectivenessAgainstTarget", "C_PaperDollInfo.GetMinItemLevel", "C_PaperDollInfo.OffhandHasShield", "C_PaperDollInfo.OffhandHasWeapon", - "C_PaperDollInfo", "C_PartyInfo.GetActiveCategories", "C_PartyInfo.GetInviteConfirmationInvalidQueues", "C_PlayerInfo.GetClass", @@ -507,13 +508,13 @@ stds.ecs = { "C_ProductChoice.GetProducts", "C_ProductChoice.MakeSelection", "C_PvP.IsPVPMap", + "C_QuestLog", "C_QuestLog.GetMaxNumQuests", "C_QuestLog.GetMaxNumQuestsCanAccept", "C_QuestLog.GetQuestInfo", "C_QuestLog.GetQuestObjectives", "C_QuestLog.IsOnQuest", "C_QuestLog.ShouldShowQuestRewards", - "C_QuestLog", "C_RecruitAFriend.CheckEmailEnabled", "C_RecruitAFriend.GetRecruitInfo", "C_RecruitAFriend.IsSendingEnabled", @@ -544,15 +545,15 @@ stds.ecs = { "C_Spell.DoesSpellExist", "C_Spell.IsSpellDataCached", "C_Spell.RequestLoadSpellData", - "C_SpellBook.IsSpellKnown", "C_SpellBook", + "C_SpellBook.IsSpellKnown", "C_StorePublic.DoesGroupHavePurchaseableProducts", "C_StorePublic.IsDisabledByParentalControls", "C_StorePublic.IsEnabled", "C_TaxiMap.GetAllTaxiNodes", "C_TaxiMap.GetTaxiNodesForMap", - "C_Timer.After", "C_Timer", + "C_Timer.After", "C_UI.Reload", "C_UIWidgetManager.GetAllWidgetsBySetID", "C_UIWidgetManager.GetBelowMinimapWidgetSetID", @@ -2271,14 +2272,16 @@ stds.ecs = { "UseHearthstone", "UseInventoryItem", "UseItemByName", + -- keep-sorted end "----------------------------------------------------->LUA API", - "bit", + -- keep-sorted start case=no "abs", "acos", "asin", "assert", "atan", "atan2", + "bit", "bit.arshift", "bit.band", "bit.bnot", @@ -2418,7 +2421,9 @@ stds.ecs = { "unpack", "wipe", "xpcall", + -- keep-sorted end "------------------------------------------------------> FRAMES", + -- keep-sorted start case=no "ActionBarActionEventsFrame", "ActionBarButtonEventsFrame", "ActionBarController", @@ -2477,7 +2482,6 @@ stds.ecs = { "ChatConfigFrame", "ChatEdit_GetActiveWindow", "ChatEdit_InsertLink", - "ChatFrame_AddMessageEventFilter", "ChatFrame1", "ChatFrame10", "ChatFrame10EditBox", @@ -2506,6 +2510,7 @@ stds.ecs = { "ChatFrame9", "ChatFrame9EditBox", "ChatFrame9Tab", + "ChatFrame_AddMessageEventFilter", "ChatFrameChannelButton", "ChatFrameMenuButton", "ChatMenu", @@ -2699,11 +2704,11 @@ stds.ecs = { "SpellBookFrame", "StackSplitFrame", "STANDARD_TEXT_FONT", - "StaticPopup_Show", "StaticPopup1", "StaticPopup2", "StaticPopup3", "StaticPopup4", + "StaticPopup_Show", "StaticPopupDialogs", "StatsFrame", "StopwatchFrame", @@ -2755,7 +2760,9 @@ stds.ecs = { "WorldMapTooltip", "WorldStateScoreFrame", "ZoneTextFrame", + -- keep-sorted end "-----------------------------------------------------> Blizzard Data", + -- keep-sorted start case=no "CALENDAR_FULLDATE_MONTH_NAMES", "CALENDAR_WEEKDAY_NAMES", "QUEST_ITEMS_NEEDED", @@ -2768,19 +2775,27 @@ stds.ecs = { "WOW_PROJECT_ID", "WOW_PROJECT_MAINLINE", "WOW_PROJECT_WRATH_CLASSIC", + -- keep-sorted end "-----------------------------------------------------> Enums", + -- keep-sorted start case=no "LE_EXPANSION_BURNING_CRUSADE", + -- keep-sorted end "-----------------------------------------------------> GlobalStrings", + -- keep-sorted start case=no "CLOSE", "DEFENSE", + -- keep-sorted end "-----------------------------------------------------> External Addons", + -- keep-sorted start case=no "LeaPlusDB", "LibStub", "OutfitterButton", "OutfitterButtonFrame", "OutfitterFrame", "PawnInitialize", + -- keep-sorted end "-----------------------------------------------------> Project Specific", + -- keep-sorted start case=no "assert.are_same", "assert.is_nil", "assert.spy", @@ -2794,6 +2809,7 @@ stds.ecs = { "SLASH_ECS1", "SlashCmdList", "spy", + -- keep-sorted end } } std = "max+ecs" diff --git a/Modules/Config/DefenseSection.lua b/Modules/Config/DefenseSection.lua index c1fe2547..5c2d3dc8 100755 --- a/Modules/Config/DefenseSection.lua +++ b/Modules/Config/DefenseSection.lua @@ -1,4 +1,6 @@ +-- keep-sorted start case=no local IsClassic = ECS.IsClassic +-- keep-sorted end ---@class Config local Config = ECSLoader:ImportModule("Config") diff --git a/Modules/Data/Data.lua b/Modules/Data/Data.lua index 3b2970f3..7b95f3f7 100755 --- a/Modules/Data/Data.lua +++ b/Modules/Data/Data.lua @@ -1,4 +1,6 @@ +-- keep-sorted start case=no local IsClassic = ECS.IsClassic +-- keep-sorted end ---@class Data local Data = ECSLoader:CreateModule("Data") diff --git a/Modules/Data/Defense.lua b/Modules/Data/Defense.lua index 0ae5c5af..d68058a8 100755 --- a/Modules/Data/Defense.lua +++ b/Modules/Data/Defense.lua @@ -1,6 +1,8 @@ +-- keep-sorted start case=no local GetCombatRating = GetCombatRating local GetCombatRatingBonus = GetCombatRatingBonus local GetModResilienceDamageReduction = GetModResilienceDamageReduction +-- keep-sorted end ---@class Data local Data = ECSLoader:ImportModule("Data") diff --git a/Modules/Stats.lua b/Modules/Stats.lua index 3546a637..e93002ae 100755 --- a/Modules/Stats.lua +++ b/Modules/Stats.lua @@ -1,4 +1,6 @@ +-- keep-sorted start case=no local IsClassic = ECS.IsClassic +-- keep-sorted end ------------------------------------------------------------------ -- Modules