Quantcast

Added a registration for the proper achievement event.

pschifferer [11-06-09 - 17:05]
Added a registration for the proper achievement event.
Filename
CauldronMain.lua
diff --git a/CauldronMain.lua b/CauldronMain.lua
index b94bf31..7830967 100644
--- a/CauldronMain.lua
+++ b/CauldronMain.lua
@@ -205,6 +205,7 @@ function Cauldron:OnEnable()
 --	self:RegisterEvent("PLAYER_LOGOUT");
 	self:RegisterEvent("UI_ERROR_MESSAGE", "OnError");
 	self:RegisterEvent("UNIT_QUEST_LOG_CHANGED", "OnQuestLogChanged");
+	self:RegisterEvent("ACHIEVEMENT_EARNED", "OnAchievementEarned");

 	-- setup hooks for tooltips
 	self:HookTooltips();
@@ -560,11 +561,23 @@ function Cauldron:OnQuestLogChanged()
 	self:debug("OnQuestLogChanged enter");
 --@end-alpha@

+	-- TODO
+
+--@alpha@
+	self:debug("OnQuestLogChanged exit");
+--@end-alpha@
+end
+
+function Cauldron:OnAchievementEarned()
+--@alpha@
+	self:debug("OnAchievementEarned enter");
+--@end-alpha@
+
 	-- update the achievement skill map
 	Cauldron:CreateAchievementSkillMap();

 --@alpha@
-	self:debug("OnQuestLogChanged exit");
+	self:debug("OnAchievementEarned exit");
 --@end-alpha@
 end