Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
ls- committed Sep 28, 2024
2 parents 6643d8f + 5d45e5e commit bbc8443
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 92 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# CHANGELOG

## Version 110002.03

- Removed the workaround for the guild achievement spam. It's finally fixed by Blizzard. An ancient bug that had been
ignored for years got fixed asap after it showed up multiple times during RWF streams and caused a few wipes.

## Version 110002.02

- Reworked the workaround for the guild achievement spam. After further investigating the issue it became apparent that
Expand Down
8 changes: 2 additions & 6 deletions ls_Toasts/core/changelog.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ local _G = getfenv(0)

-- Mine
E.CHANGELOG = [[
- Reworked the workaround for the guild achievement spam. After further investigating the issue it became apparent that
it's impossible to reliably automate it without affecting newer smaller guilds that might want to see toasts for these
achievements. For this reason I'm adding a toggle to enable filtering for guild achievements if your guild is
experiencing it. This will block toasts for a bunch of faction-specific PvP and reputation achievements. Can be found
at /LST > Toast Types > Achievement > Filter Guild Achievements, disabled by default.
- Updated Traditional Chinese translation. Translated by BNS333@Curse.
- Removed the workaround for the guild achievement spam. It's finally fixed by Blizzard. An ancient bug that had been
ignored for years got fixed asap after it showed up multiple times during RWF streams and caused a few wipes.
]]
9 changes: 9 additions & 0 deletions ls_Toasts/core/modernize.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,14 @@ function P:Modernize(data, name, key)
data.point = nil
data.version = 8010005
end

-- ->110002.03
if data.version < 11000203 then
if data.types and data.types.achievement then
data.types.achievement.filter_guild = nil
end

data.version = 11000203
end
end
end
2 changes: 0 additions & 2 deletions ls_Toasts/locales/enUS.lua
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,6 @@ L["YOU_RECEIVED"] = "You Received"

-- Retail
L["CURRENCY_THRESHOLD_DESC"] = "Enter |cffffd200-1|r to ignore the currency, |cffffd2000|r to disable the filter, or |cffffd200any number above 0|r to set the threshold below which no toasts will be created."
L["FILTER_GUILD_ACHIEVEMENTS"] = "Filter Guild Achievements"
L["FILTER_GUILD_ACHIEVEMENTS_DESC"] = "Enabling this option will block toasts for faction-specific guild achievements. They're the cause of the achievement spam in big cross-faction guilds."
L["HANDLE_LEFT_CLICK"] = "Handle Left Click"
L["NEW_CURRENCY_FILTER_DESC"] = "Enter a currency ID."
L["SHOW_QUEST_ITEMS"] = "Show Quest Items"
Expand Down
2 changes: 0 additions & 2 deletions ls_Toasts/locales/ruRU.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ L["YOU_RECEIVED"] = "Вы получили"

-- Retail
L["CURRENCY_THRESHOLD_DESC"] = "Введите |cffffd200-1|r, чтобы игнорировать валюту, |cffffd2000|r, чтобы отключить фильтр, или |cffffd200любое число больше 0|r, чтобы установить порог, ниже которого уведомления не будут показываться."
L["FILTER_GUILD_ACHIEVEMENTS"] = "Фильтр достижений гильдии"
L["FILTER_GUILD_ACHIEVEMENTS_DESC"] = "Включение данной настройки заблокирует уведомления для достижений гильдии, которые связанны с фракциями. Они являются причиной спама достижений в крупных межфракционных гильдиях."
L["HANDLE_LEFT_CLICK"] = "Обрабатывать левый щелчок"
L["NEW_CURRENCY_FILTER_DESC"] = "Введите ID валюты."
L["SHOW_QUEST_ITEMS"] = "Показывать кв. пр."
Expand Down
2 changes: 1 addition & 1 deletion ls_Toasts/ls_Toasts.toc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Interface: 110002, 110005
## Author: lightspark
## Version: 110002.02
## Version: 110002.03
## Title: LS: |cff00cc99Toasts|r
## Notes: Better toasts, cheers!
## IconTexture: Interface\AddOns\ls_Toasts\assets\logo-64
Expand Down
81 changes: 0 additions & 81 deletions ls_Toasts/systems/achievement.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,75 +5,6 @@ local E, L, C = addonTable.E, addonTable.L, addonTable.C
local _G = getfenv(0)

-- Mine
local FACTION_ACHIEVEMENTS = {
[ 4912] = true, -- Guild Level 25 (Alliance)
[ 5014] = true, -- Guild Northrend Dungeon Hero (Alliance)
[ 5031] = true, -- Horde Slayer (Alliance)
[ 5110] = true, -- Heroic: Trial of the Champion Guild Run (Horde)
[ 5111] = true, -- Heroic: Trial of the Champion Guild Run (Alliance)
[ 5124] = true, -- Guild Northrend Dungeon Hero (Horde)
[ 5126] = true, -- Dungeon Diplomat (Alliance)
[ 5128] = true, -- Classic Battles (Horde)
[ 5129] = true, -- Ambassadors (Alliance)
[ 5130] = true, -- Diplomacy (Alliance)
[ 5131] = true, -- Classic Battles (Alliance)
[ 5145] = true, -- Dungeon Diplomat (Horde)
[ 5151] = true, -- Classy Humans (Alliance)
[ 5152] = true, -- Stay Classy (Alliance)
[ 5153] = true, -- Classy Night Elves (Alliance)
[ 5154] = true, -- Classy Gnomes (Alliance)
[ 5155] = true, -- Classy Dwarves (Alliance)
[ 5156] = true, -- Classy Draenei (Alliance)
[ 5157] = true, -- Classy Worgen (Alliance)
[ 5158] = true, -- Stay Classy (Horde)
[ 5160] = true, -- Classy Orcs (Horde)
[ 5161] = true, -- Classy Tauren (Horde)
[ 5162] = true, -- Classy Trolls (Horde)
[ 5163] = true, -- Classy Blood Elves (Horde)
[ 5164] = true, -- Classy Undead (Horde)
[ 5165] = true, -- Classy Goblins (Horde)
[ 5167] = true, -- Orc Slayer (Alliance)
[ 5168] = true, -- Tauren Slayer (Alliance)
[ 5169] = true, -- Undead Slayer (Alliance)
[ 5170] = true, -- Troll Slayer (Alliance)
[ 5171] = true, -- Blood Elf Slayer (Alliance)
[ 5172] = true, -- Goblin Slayer (Alliance)
[ 5173] = true, -- Human Slayer (Horde)
[ 5174] = true, -- Night Elf Slayer (Horde)
[ 5175] = true, -- Dwarf Slayer (Horde)
[ 5176] = true, -- Gnome Slayer (Horde)
[ 5177] = true, -- Draenei Slayer (Horde)
[ 5178] = true, -- Worgen Slayer (Horde)
[ 5179] = true, -- Alliance Slayer (Horde)
[ 5194] = true, -- City Attacker (Horde)
[ 5195] = true, -- City Attacker (Alliance)
[ 5432] = true, -- Guild Commanders (Alliance)
[ 5433] = true, -- Guild Champions (Horde)
[ 5434] = true, -- Guild Marshals (Alliance)
[ 5435] = true, -- Guild Generals (Horde)
[ 5436] = true, -- Guild Field Marshals (Alliance)
[ 5437] = true, -- Guild Warlords (Horde)
[ 5438] = true, -- Guild Grand Marshals (Alliance)
[ 5439] = true, -- Guild High Warlords (Horde)
[ 5440] = true, -- Guild Battlemasters (Horde)
[ 5441] = true, -- Guild Battlemasters (Alliance)
[ 5492] = true, -- Guild Level 25 (Horde)
[ 5812] = true, -- United Nations (Alliance)
[ 5892] = true, -- United Nations (Horde)
[ 6532] = true, -- Pandaren Slayer (Alliance)
[ 6533] = true, -- Pandaren Slayer (Horde)
[ 6624] = true, -- Classy Pandaren (Alliance)
[ 6625] = true, -- Classy Pandaren (Horde)
[ 6644] = true, -- Pandaren Embassy (Alliance)
[ 6664] = true, -- Pandaren Embassy (Horde)
[ 7448] = true, -- Scenario Roundup (Alliance)
[ 7449] = true, -- Scenario Roundup (Horde)
[ 7843] = true, -- Diplomacy (Horde)
[ 7844] = true, -- Ambassadors (Horde)
[13319] = true, -- Battle of Dazar'alor Guild Run (Horde)
[13320] = true, -- Battle of Dazar'alor Guild Run (Alliance)
}

local function Toast_OnClick(self)
if self._data.ach_id and not InCombatLockdown() then
if not AchievementFrame then
Expand Down Expand Up @@ -108,10 +39,6 @@ end

local function Toast_SetUp(event, achievementID, eventArg, isCriteria) -- eventArg is alreadyEarned or criteriaString
local _, name, points, _, _, _, _, _, _, icon, _, isGuildAchievement = GetAchievementInfo(achievementID)
if isGuildAchievement and FACTION_ACHIEVEMENTS[achievementID] and C.db.profile.types.achievement.filter_guild then
return
end

local toast = E:GetToast()

if isCriteria then
Expand Down Expand Up @@ -193,7 +120,6 @@ E:RegisterOptions("achievement", {
anchor = 1,
dnd = false,
tooltip = true,
filter_guild = false,
}, {
name = L["TYPE_ACHIEVEMENT"],
get = function(info)
Expand Down Expand Up @@ -228,13 +154,6 @@ E:RegisterOptions("achievement", {
type = "toggle",
name = L["TOOLTIPS"],
},
filter_guild = {
order = 4,
type = "toggle",
name = L["FILTER_GUILD_ACHIEVEMENTS"],
desc = L["FILTER_GUILD_ACHIEVEMENTS_DESC"],
width = 1.25,
},
test = {
type = "execute",
order = 99,
Expand Down

0 comments on commit bbc8443

Please sign in to comment.