Skip to content

Commit

Permalink
Changes Classic Wrath interface to 30401. Corrects problem where atte…
Browse files Browse the repository at this point in the history
…mpting to use modern achievement name in Classic causes crash.
  • Loading branch information
smaitch committed Feb 6, 2023
1 parent 0efc354 commit 6bf0f3b
Show file tree
Hide file tree
Showing 33 changed files with 39 additions and 35 deletions.
2 changes: 1 addition & 1 deletion Grail-Achievements/Grail-Achievements_Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 30400
## Interface: 30401
## Title: Grail |r|cff69ccf0Achievements|r
## Author: Scott M Harrison
## Notes: Provides achievement information to Grail
Expand Down
2 changes: 1 addition & 1 deletion Grail-NPCs-deDE/Grail-NPCs-deDE_Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 30400
## Interface: 30401
## Title: Grail |cff69ccf0NPCs |r|cffeda55fClassic|r|cff69ccf0 deDE|r
## Author: Scott M Harrison
## Notes: Provides localized deDE NPCs to Grail for Classic
Expand Down
2 changes: 1 addition & 1 deletion Grail-NPCs-enUS/Grail-NPCs-enUS_Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 30400
## Interface: 30401
## Title: Grail |cff69ccf0NPCs |r|cffeda55fClassic|r|cff69ccf0 enUS|r
## Author: Scott M Harrison
## Notes: Provides localized enUS NPCs to Grail for Classic
Expand Down
2 changes: 1 addition & 1 deletion Grail-NPCs-esES/Grail-NPCs-esES_Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 30400
## Interface: 30401
## Title: Grail |cff69ccf0NPCs |r|cffeda55fClassic|r|cff69ccf0 esES|r
## Author: Scott M Harrison
## Notes: Provides localized esES NPCs to Grail for Classic
Expand Down
2 changes: 1 addition & 1 deletion Grail-NPCs-esMX/Grail-NPCs-esMX_Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 30400
## Interface: 30401
## Title: Grail |cff69ccf0NPCs |r|cffeda55fClassic|r|cff69ccf0 esMX|r
## Author: Scott M Harrison
## Notes: Provides localized esMX NPCs to Grail for Classic
Expand Down
2 changes: 1 addition & 1 deletion Grail-NPCs-frFR/Grail-NPCs-frFR_Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 30400
## Interface: 30401
## Title: Grail |cff69ccf0NPCs |r|cffeda55fClassic|r|cff69ccf0 frFR|r
## Author: Scott M Harrison
## Notes: Provides localized frFR NPCs to Grail for Classic
Expand Down
2 changes: 1 addition & 1 deletion Grail-NPCs-itIT/Grail-NPCs-itIT_Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 30400
## Interface: 30401
## Title: Grail |cff69ccf0NPCs |r|cffeda55fClassic|r|cff69ccf0 itIT|r
## Author: Scott M Harrison
## Notes: Provides localized itIT NPCs to Grail for Classic
Expand Down
2 changes: 1 addition & 1 deletion Grail-NPCs-koKR/Grail-NPCs-koKR_Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 30400
## Interface: 30401
## Title: Grail |cff69ccf0NPCs |r|cffeda55fClassic|r|cff69ccf0 koKR|r
## Author: Scott M Harrison
## Notes: Provides localized koKR NPCs to Grail for Classic
Expand Down
2 changes: 1 addition & 1 deletion Grail-NPCs-ptBR/Grail-NPCs-ptBR_Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 30400
## Interface: 30401
## Title: Grail |cff69ccf0NPCs |r|cffeda55fClassic|r|cff69ccf0 ptBR|r
## Author: Scott M Harrison
## Notes: Provides localized ptBR NPCs to Grail for Classic
Expand Down
2 changes: 1 addition & 1 deletion Grail-NPCs-ruRU/Grail-NPCs-ruRU_Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 30400
## Interface: 30401
## Title: Grail |cff69ccf0NPCs |r|cffeda55fClassic|r|cff69ccf0 ruRU|r
## Author: Scott M Harrison
## Notes: Provides localized ruRU NPCs to Grail for Classic
Expand Down
2 changes: 1 addition & 1 deletion Grail-NPCs-zhCN/Grail-NPCs-zhCN_Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 30400
## Interface: 30401
## Title: Grail |cff69ccf0NPCs |r|cffeda55fClassic|r|cff69ccf0 zhCN|r
## Author: Scott M Harrison
## Notes: Provides localized zhCN NPCs to Grail for Classic
Expand Down
2 changes: 1 addition & 1 deletion Grail-NPCs-zhTW/Grail-NPCs-zhTW_Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 30400
## Interface: 30401
## Title: Grail |cff69ccf0NPCs |r|cffeda55fClassic|r|cff69ccf0 zhTW|r
## Author: Scott M Harrison
## Notes: Provides localized zhTW NPCs to Grail for Classic
Expand Down
2 changes: 1 addition & 1 deletion Grail-NPCs/Grail-NPCs_Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 30400
## Interface: 30401
## Title: Grail |cff69ccf0NPCs |r|cffeda55fClassic (WotLK)|r
## Author: Scott M Harrison
## Notes: Provides NPCs to Grail for Classic
Expand Down
2 changes: 1 addition & 1 deletion Grail-Quests-deDE/Grail-Quests-deDE_Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 30400
## Interface: 30401
## Title: Grail |cff69ccf0Quests |r|cffeda55fClassic|r|cff69ccf0 deDE|r
## Author: Scott M Harrison
## Notes: Provides localized deDE quest names to Grail for Classic
Expand Down
2 changes: 1 addition & 1 deletion Grail-Quests-enUS/Grail-Quests-enUS_Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 30400
## Interface: 30401
## Title: Grail |cff69ccf0Quests |r|cffeda55fClassic|r|cff69ccf0 enUS|r
## Author: Scott M Harrison
## Notes: Provides localized enUS quest names to Grail for Classic
Expand Down
2 changes: 1 addition & 1 deletion Grail-Quests-esES/Grail-Quests-esES_Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 30400
## Interface: 30401
## Title: Grail |cff69ccf0Quests |r|cffeda55fClassic|r|cff69ccf0 esES|r
## Author: Scott M Harrison
## Notes: Provides localized esES quest names to Grail for Classic
Expand Down
2 changes: 1 addition & 1 deletion Grail-Quests-esMX/Grail-Quests-esMX_Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 30400
## Interface: 30401
## Title: Grail |cff69ccf0Quests |r|cffeda55fClassic|r|cff69ccf0 esMX|r
## Author: Scott M Harrison
## Notes: Provides localized esMX quest names to Grail for Classic
Expand Down
2 changes: 1 addition & 1 deletion Grail-Quests-frFR/Grail-Quests-frFR_Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 30400
## Interface: 30401
## Title: Grail |cff69ccf0Quests |r|cffeda55fClassic|r|cff69ccf0 frFR|r
## Author: Scott M Harrison
## Notes: Provides localized frFR quest names to Grail for Classic
Expand Down
2 changes: 1 addition & 1 deletion Grail-Quests-itIT/Grail-Quests-itIT_Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 30400
## Interface: 30401
## Title: Grail |cff69ccf0Quests |r|cffeda55fClassic|r|cff69ccf0 itIT|r
## Author: Scott M Harrison
## Notes: Provides localized itIT quest names to Grail for Classic
Expand Down
2 changes: 1 addition & 1 deletion Grail-Quests-koKR/Grail-Quests-koKR_Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 30400
## Interface: 30401
## Title: Grail |cff69ccf0Quests |r|cffeda55fClassic|r|cff69ccf0 koKR|r
## Author: Scott M Harrison
## Notes: Provides localized koKR quest names to Grail for Classic
Expand Down
2 changes: 1 addition & 1 deletion Grail-Quests-ptBR/Grail-Quests-ptBR_Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 30400
## Interface: 30401
## Title: Grail |cff69ccf0Quests |r|cffeda55fClassic|r|cff69ccf0 ptBR|r
## Author: Scott M Harrison
## Notes: Provides localized ptBR quest names to Grail for Classic
Expand Down
2 changes: 1 addition & 1 deletion Grail-Quests-ruRU/Grail-Quests-ruRU_Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 30400
## Interface: 30401
## Title: Grail |cff69ccf0Quests |r|cffeda55fClassic|r|cff69ccf0 ruRU|r
## Author: Scott M Harrison
## Notes: Provides localized ruRU quest names to Grail for Classic
Expand Down
2 changes: 1 addition & 1 deletion Grail-Quests-zhCN/Grail-Quests-zhCN_Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 30400
## Interface: 30401
## Title: Grail |cff69ccf0Quests |r|cffeda55fClassic|r|cff69ccf0 zhCN|r
## Author: Scott M Harrison
## Notes: Provides localized zhCN quest names to Grail for Classic
Expand Down
2 changes: 1 addition & 1 deletion Grail-Quests-zhTW/Grail-Quests-zhTW_Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 30400
## Interface: 30401
## Title: Grail |cff69ccf0Quests |r|cffeda55fClassic|r|cff69ccf0 zhTW |r
## Author: Scott M Harrison
## Notes: Provides localized zhTW quest names to Grail for Classic
Expand Down
2 changes: 1 addition & 1 deletion Grail-Quests/Grail-Quests_Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 30400
## Interface: 30401
## Title: Grail |cff69ccf0Quests |r|cffeda55fClassic (WotLK)|r
## Author: Scott M Harrison
## Notes: Provides quests to Grail for Classic
Expand Down
2 changes: 1 addition & 1 deletion Grail-Reputations/Grail-Reputations_Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 30400
## Interface: 30401
## Title: Grail |cff69ccf0Reputations |r|cffeda55fClassic|r
## Author: Scott M Harrison
## Notes: Provides reputation award information to Grail for Classic
Expand Down
2 changes: 1 addition & 1 deletion Grail-Rewards/Grail-Rewards_Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 30400
## Interface: 30401
## Title: Grail |r|cff69ccf0Rewards|r
## Author: Scott M Harrison
## Notes: Provides (non-reputation) reward award information to Grail
Expand Down
2 changes: 1 addition & 1 deletion Grail-When/Grail-When_Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 30400
## Interface: 30401
## Title: Grail |r|cff69ccf0When|r
## Author: Scott M Harrison
## Notes: Provides completion date information to Grail
Expand Down
8 changes: 6 additions & 2 deletions Grail/Grail.lua
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,8 @@
-- Adds support for items with specific counts as prerequisites.
-- Changes retail interface to 100005.
-- Adds support group membership completion counts being exact (to support Dragon Isles Waygate quests).
-- 121 Changes Classic Wrath interface to 30401.
-- Corrects problem where attempting to use modern achievement name in Classic causes crash.
--
-- Known Issues
--
Expand Down Expand Up @@ -606,7 +608,6 @@ local C_PetJournal = C_PetJournal
local CreateFrame = CreateFrame
local debugprofilestop = debugprofilestop
local GetAchievementCriteriaInfoByID = GetAchievementCriteriaInfoByID
local GetAchievementInfo = GetAchievementInfo
local GetAddOnMetadata = GetAddOnMetadata
local GetAverageItemLevel = GetAverageItemLevel
local GetBuildInfo = GetBuildInfo
Expand Down Expand Up @@ -3609,6 +3610,9 @@ end,
},

GetBasicAchievementInfo = function(self, achievementId)
if not GetAchievementInfo then
return nil, false, false
end
local id, name, points, completed, month, day, year, description, flags, icon, rewardText, isGuild, wasEarnedByMe, earnedBy = GetAchievementInfo(achievementId)
if nil == id then
-- Attempt to look up the achievement in our own limited list of supported achievements.
Expand Down Expand Up @@ -8610,7 +8614,7 @@ end
self.quest.name[62019]=SPELL_FAILED_CUSTOM_ERROR_521 -- Night Fae
self.quest.name[62020]=SPELL_FAILED_CUSTOM_ERROR_520 -- Venthyr
self.quest.name[62023]=SPELL_FAILED_CUSTOM_ERROR_522 -- Kyrian
self.quest.name[70872]="~ " .. self:GetBasicAchievementInfo(16409) .. " ~" -- Let's Get Quacking
self.quest.name[70872]="~ " .. (self:GetBasicAchievementInfo(16409) or "") .. " ~" -- Let's Get Quacking
end,

---
Expand Down
2 changes: 1 addition & 1 deletion Grail/Grail.toc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## Title: Grail
## Author: Scott M Harrison
## Notes: Knows about quests
## Version: 120
## Version: 121
## SavedVariables: GrailDatabase
## SavedVariablesPerCharacter: GrailDatabasePlayer

Expand Down
2 changes: 1 addition & 1 deletion Grail/Grail_BCC.toc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## Title: Grail
## Author: Scott M Harrison
## Notes: Knows about quests
## Version: 120
## Version: 121
## SavedVariables: GrailDatabase
## SavedVariablesPerCharacter: GrailDatabasePlayer

Expand Down
2 changes: 1 addition & 1 deletion Grail/Grail_Vanilla.toc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## Title: Grail
## Author: Scott M Harrison
## Notes: Knows about quests
## Version: 120
## Version: 121
## SavedVariables: GrailDatabase
## SavedVariablesPerCharacter: GrailDatabasePlayer

Expand Down
4 changes: 2 additions & 2 deletions Grail/Grail_Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## Interface: 30400
## Interface: 30401
## Title: Grail
## Author: Scott M Harrison
## Notes: Knows about quests
## Version: 120
## Version: 121
## SavedVariables: GrailDatabase
## SavedVariablesPerCharacter: GrailDatabasePlayer

Expand Down

0 comments on commit 6bf0f3b

Please sign in to comment.