From 1bf4b92bdfa1e862da270500999522dba318d477 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Sun, 13 Mar 2011 10:52:24 -0500 Subject: [PATCH] Seasons are now identified by a string instead of a number. Example: recipe:AddSeason(1) is now recipe:AddSeason("WINTER_VEIL") --- Database/Alchemy.lua | 2 +- Database/Blacksmithing.lua | 2 +- Database/Cooking.lua | 28 ++++++++++++++-------------- Database/Enchanting.lua | 4 ++-- Database/Engineering.lua | 30 +++++++++++++++--------------- Database/Leatherworking.lua | 4 ++-- Database/Seasonal.lua | 11 +++++------ Database/Tailoring.lua | 10 +++++----- 8 files changed, 45 insertions(+), 46 deletions(-) diff --git a/Database/Alchemy.lua b/Database/Alchemy.lua index e3a90e1..87233ff 100644 --- a/Database/Alchemy.lua +++ b/Database/Alchemy.lua @@ -837,7 +837,7 @@ function addon:InitAlchemy() recipe:SetCraftedItemID(17708) recipe:SetSkillLevels(190, 190, 210, 230, 250) recipe:AddFilters(F.ALLIANCE, F.HORDE, F.SEASONAL, F.IBOE, F.RBOE, F.HEALER, F.CASTER) - recipe:AddSeason(1) + recipe:AddSeason("WINTER_VEIL") -- Major Rejuvenation Potion -- 22732 recipe = AddRecipe(22732, V.ORIG, Q.RARE) diff --git a/Database/Blacksmithing.lua b/Database/Blacksmithing.lua index be22971..d17c00a 100644 --- a/Database/Blacksmithing.lua +++ b/Database/Blacksmithing.lua @@ -1588,7 +1588,7 @@ function addon:InitBlacksmithing() recipe:SetCraftedItemID(17704) recipe:SetSkillLevels(190, 190, 215, 227, 240) recipe:AddFilters(F.ALLIANCE, F.HORDE, F.SEASONAL, F.IBOE, F.RBOE, F.ONE_HAND, F.AXE) - recipe:AddSeason(1) + recipe:AddSeason("WINTER_VEIL") -- Elemental Sharpening Stone -- 22757 recipe = AddRecipe(22757, V.ORIG, Q.RARE) diff --git a/Database/Cooking.lua b/Database/Cooking.lua index 139f2cb..ff8b1ef 100644 --- a/Database/Cooking.lua +++ b/Database/Cooking.lua @@ -619,7 +619,7 @@ function addon:InitCooking() recipe:SetSkillLevels(1, 1, 45, 65, 85) recipe:AddFilters(F.ALLIANCE, F.HORDE, F.VENDOR, F.SEASONAL, F.IBOE, F.RBOE, F.HEALER, F.CASTER) recipe:AddVendor(13420, 13429, 13432, 13433, 13435, 23010, 23012, 23064) - recipe:AddSeason(1) + recipe:AddSeason("WINTER_VEIL") -- Egg Nog -- 21144 recipe = AddRecipe(21144, V.ORIG, Q.COMMON) @@ -628,7 +628,7 @@ function addon:InitCooking() recipe:SetSkillLevels(35, 35, 75, 95, 115) recipe:AddFilters(F.ALLIANCE, F.HORDE, F.VENDOR, F.SEASONAL, F.IBOE, F.RBOE, F.HEALER, F.CASTER) recipe:AddVendor(13420, 13429, 13432, 13433, 13435, 23010, 23012, 23064) - recipe:AddSeason(1) + recipe:AddSeason("WINTER_VEIL") -- Spider Sausage -- 21175 recipe = AddRecipe(21175, V.ORIG, Q.COMMON) @@ -954,7 +954,7 @@ function addon:InitCooking() recipe:SetSkillLevels(325, 325, 325, 325, 325) recipe:AddFilters(F.ALLIANCE, F.HORDE, F.VENDOR, F.SEASONAL, F.IBOE, F.RBOP, F.HEALER, F.CASTER) recipe:AddVendor(13420, 13433) - recipe:AddSeason(1) + recipe:AddSeason("WINTER_VEIL") -- Mammoth Meal -- 45549 recipe = AddRecipe(45549, V.WOTLK, Q.COMMON) @@ -1324,7 +1324,7 @@ function addon:InitCooking() recipe:SetSkillLevels(100, 100, 150, 162, 175) recipe:SetRequiredFaction("Alliance") recipe:AddFilters(F.ALLIANCE, F.SEASONAL, F.IBOE, F.RBOP, F.HEALER, F.CASTER) - recipe:AddSeason(5) + recipe:AddSeason("PILGRIMS_BOUNTY") -- Slow-Roasted Turkey -- 62045 recipe = AddRecipe(62045, V.WOTLK, Q.COMMON) @@ -1332,7 +1332,7 @@ function addon:InitCooking() recipe:SetSkillLevels(330, 330, 330, 342, 355) recipe:SetRequiredFaction("Alliance") recipe:AddFilters(F.ALLIANCE, F.SEASONAL, F.IBOE, F.RBOP, F.DPS) - recipe:AddSeason(5) + recipe:AddSeason("PILGRIMS_BOUNTY") -- Cranberry Chutney -- 62049 recipe = AddRecipe(62049, V.WOTLK, Q.COMMON) @@ -1340,7 +1340,7 @@ function addon:InitCooking() recipe:SetSkillLevels(210, 210, 210, 222, 235) recipe:SetRequiredFaction("Alliance") recipe:AddFilters(F.ALLIANCE, F.SEASONAL, F.IBOE, F.RBOP, F.HEALER, F.CASTER) - recipe:AddSeason(5) + recipe:AddSeason("PILGRIMS_BOUNTY") -- Spice Bread Stuffing -- 62050 recipe = AddRecipe(62050, V.WOTLK, Q.COMMON) @@ -1348,7 +1348,7 @@ function addon:InitCooking() recipe:SetSkillLevels(90, 90, 90, 102, 115) recipe:SetRequiredFaction("Alliance") recipe:AddFilters(F.ALLIANCE, F.SEASONAL, F.IBOE, F.RBOE) - recipe:AddSeason(5) + recipe:AddSeason("PILGRIMS_BOUNTY") -- Candied Sweet Potato -- 62051 recipe = AddRecipe(62051, V.WOTLK, Q.COMMON) @@ -1356,7 +1356,7 @@ function addon:InitCooking() recipe:SetSkillLevels(270, 270, 270, 282, 295) recipe:SetRequiredFaction("Alliance") recipe:AddFilters(F.ALLIANCE, F.SEASONAL, F.IBOE, F.RBOP) - recipe:AddSeason(5) + recipe:AddSeason("PILGRIMS_BOUNTY") -- Worg Tartare -- 62350 recipe = AddRecipe(62350, V.WOTLK, Q.UNCOMMON) @@ -1385,7 +1385,7 @@ function addon:InitCooking() recipe:SetCraftedItemID(46691) recipe:SetSkillLevels(45, 45, 55, 60, 65) recipe:AddFilters(F.ALLIANCE, F.HORDE, F.SEASONAL, F.IBOE, F.RBOP, F.HEALER, F.CASTER) - recipe:AddSeason(6) + recipe:AddSeason("DAY_OF_THE_DEAD") -- Candied Sweet Potato -- 66034 recipe = AddRecipe(66034, V.WOTLK, Q.COMMON) @@ -1393,7 +1393,7 @@ function addon:InitCooking() recipe:SetSkillLevels(270, 270, 270, 282, 295) recipe:SetRequiredFaction("Horde") recipe:AddFilters(F.HORDE, F.SEASONAL, F.IBOE, F.RBOP) - recipe:AddSeason(5) + recipe:AddSeason("PILGRIMS_BOUNTY") -- Cranberry Chutney -- 66035 recipe = AddRecipe(66035, V.WOTLK, Q.COMMON) @@ -1401,7 +1401,7 @@ function addon:InitCooking() recipe:SetSkillLevels(210, 210, 210, 222, 235) recipe:SetRequiredFaction("Horde") recipe:AddFilters(F.HORDE, F.SEASONAL, F.IBOE, F.RBOP, F.HEALER, F.CASTER) - recipe:AddSeason(5) + recipe:AddSeason("PILGRIMS_BOUNTY") -- Pumpkin Pie -- 66036 recipe = AddRecipe(66036, V.WOTLK, Q.COMMON) @@ -1409,7 +1409,7 @@ function addon:InitCooking() recipe:SetSkillLevels(100, 100, 150, 162, 175) recipe:SetRequiredFaction("Horde") recipe:AddFilters(F.HORDE, F.SEASONAL, F.IBOE, F.RBOP, F.HEALER, F.CASTER) - recipe:AddSeason(5) + recipe:AddSeason("PILGRIMS_BOUNTY") -- Slow-Roasted Turkey -- 66037 recipe = AddRecipe(66037, V.WOTLK, Q.COMMON) @@ -1417,7 +1417,7 @@ function addon:InitCooking() recipe:SetSkillLevels(330, 330, 330, 342, 355) recipe:SetRequiredFaction("Horde") recipe:AddFilters(F.HORDE, F.SEASONAL, F.IBOE, F.RBOP, F.DPS) - recipe:AddSeason(5) + recipe:AddSeason("PILGRIMS_BOUNTY") -- Spice Bread Stuffing -- 66038 recipe = AddRecipe(66038, V.WOTLK, Q.COMMON) @@ -1425,7 +1425,7 @@ function addon:InitCooking() recipe:SetSkillLevels(90, 90, 90, 102, 115) recipe:SetRequiredFaction("Horde") recipe:AddFilters(F.HORDE, F.SEASONAL, F.IBOE, F.RBOE) - recipe:AddSeason(5) + recipe:AddSeason("PILGRIMS_BOUNTY") -- Baked Rockfish -- 88003 recipe = AddRecipe(88003, V.CATA, Q.UNCOMMON) diff --git a/Database/Enchanting.lua b/Database/Enchanting.lua index 39e8beb..f694f1c 100644 --- a/Database/Enchanting.lua +++ b/Database/Enchanting.lua @@ -855,7 +855,7 @@ function addon:InitEnchanting() recipe:SetRecipeItemID(17725) recipe:SetSkillLevels(190, 190, 210, 230, 250) recipe:AddFilters(F.ALLIANCE, F.HORDE, F.SEASONAL, F.IBOE, F.RBOE, F.HEALER, F.CASTER, F.ONE_HAND, F.TWO_HAND) - recipe:AddSeason(1) + recipe:AddSeason("WINTER_VEIL") -- Enchant Weapon - Spellpower -- 22749 recipe = AddRecipe(22749, V.ORIG, Q.RARE) @@ -1797,7 +1797,7 @@ function addon:InitEnchanting() recipe:SetCraftedItemID(35498) recipe:SetSkillLevels(350, 350, 350, 357, 365) recipe:AddFilters(F.ALLIANCE, F.HORDE, F.SEASONAL, F.IBOE, F.RBOP, F.ONE_HAND, F.TWO_HAND) - recipe:AddSeason(4) + recipe:AddSeason("MIDSUMMER") -- Enchant Chest - Defense -- 46594 recipe = AddRecipe(46594, V.WOTLK, Q.COMMON) diff --git a/Database/Engineering.lua b/Database/Engineering.lua index 90255b1..5e09281 100644 --- a/Database/Engineering.lua +++ b/Database/Engineering.lua @@ -944,7 +944,7 @@ function addon:InitEngineering() recipe:SetCraftedItemID(17716) recipe:SetSkillLevels(190, 190, 190, 210, 230) recipe:AddFilters(F.ALLIANCE, F.HORDE, F.SEASONAL, F.IBOE, F.RBOE) - recipe:AddSeason(1) + recipe:AddSeason("WINTER_VEIL") -- Field Repair Bot 74A -- 22704 recipe = AddRecipe(22704, V.ORIG, Q.COMMON) @@ -1145,7 +1145,7 @@ function addon:InitEngineering() recipe:SetSkillLevels(125, 125, 125, 137, 150) recipe:AddFilters(F.ALLIANCE, F.HORDE, F.VENDOR, F.SEASONAL, F.IBOE, F.RBOP) recipe:AddVendor(15909) - recipe:AddSeason(2) + recipe:AddSeason("LUNAR_FESTIVAL") -- Small Green Rocket -- 26417 recipe = AddRecipe(26417, V.ORIG, Q.UNCOMMON) @@ -1154,7 +1154,7 @@ function addon:InitEngineering() recipe:SetSkillLevels(125, 125, 125, 137, 150) recipe:AddFilters(F.ALLIANCE, F.HORDE, F.VENDOR, F.SEASONAL, F.IBOE, F.RBOP) recipe:AddVendor(15909) - recipe:AddSeason(2) + recipe:AddSeason("LUNAR_FESTIVAL") -- Small Red Rocket -- 26418 recipe = AddRecipe(26418, V.ORIG, Q.UNCOMMON) @@ -1163,7 +1163,7 @@ function addon:InitEngineering() recipe:SetSkillLevels(125, 125, 125, 137, 150) recipe:AddFilters(F.ALLIANCE, F.HORDE, F.VENDOR, F.SEASONAL, F.IBOE, F.RBOP) recipe:AddVendor(15909) - recipe:AddSeason(2) + recipe:AddSeason("LUNAR_FESTIVAL") -- Large Blue Rocket -- 26420 recipe = AddRecipe(26420, V.ORIG, Q.UNCOMMON) @@ -1172,7 +1172,7 @@ function addon:InitEngineering() recipe:SetSkillLevels(175, 175, 175, 187, 200) recipe:AddFilters(F.ALLIANCE, F.HORDE, F.VENDOR, F.SEASONAL, F.IBOE, F.RBOP) recipe:AddVendor(15909) - recipe:AddSeason(2) + recipe:AddSeason("LUNAR_FESTIVAL") -- Large Green Rocket -- 26421 recipe = AddRecipe(26421, V.ORIG, Q.UNCOMMON) @@ -1181,7 +1181,7 @@ function addon:InitEngineering() recipe:SetSkillLevels(175, 175, 175, 187, 200) recipe:AddFilters(F.ALLIANCE, F.HORDE, F.VENDOR, F.SEASONAL, F.IBOE, F.RBOP) recipe:AddVendor(15909) - recipe:AddSeason(2) + recipe:AddSeason("LUNAR_FESTIVAL") -- Large Red Rocket -- 26422 recipe = AddRecipe(26422, V.ORIG, Q.UNCOMMON) @@ -1190,7 +1190,7 @@ function addon:InitEngineering() recipe:SetSkillLevels(175, 175, 175, 187, 200) recipe:AddFilters(F.ALLIANCE, F.HORDE, F.VENDOR, F.SEASONAL, F.IBOE, F.RBOP) recipe:AddVendor(15909) - recipe:AddSeason(2) + recipe:AddSeason("LUNAR_FESTIVAL") -- Blue Rocket Cluster -- 26423 recipe = AddRecipe(26423, V.ORIG, Q.UNCOMMON) @@ -1199,7 +1199,7 @@ function addon:InitEngineering() recipe:SetSkillLevels(225, 225, 225, 237, 250) recipe:AddFilters(F.ALLIANCE, F.HORDE, F.VENDOR, F.SEASONAL, F.IBOE, F.RBOP) recipe:AddVendor(15909) - recipe:AddSeason(2) + recipe:AddSeason("LUNAR_FESTIVAL") -- Green Rocket Cluster -- 26424 recipe = AddRecipe(26424, V.ORIG, Q.UNCOMMON) @@ -1208,7 +1208,7 @@ function addon:InitEngineering() recipe:SetSkillLevels(225, 225, 225, 237, 250) recipe:AddFilters(F.ALLIANCE, F.HORDE, F.VENDOR, F.SEASONAL, F.IBOE, F.RBOP) recipe:AddVendor(15909) - recipe:AddSeason(2) + recipe:AddSeason("LUNAR_FESTIVAL") -- Red Rocket Cluster -- 26425 recipe = AddRecipe(26425, V.ORIG, Q.UNCOMMON) @@ -1217,7 +1217,7 @@ function addon:InitEngineering() recipe:SetSkillLevels(225, 225, 225, 237, 250) recipe:AddFilters(F.ALLIANCE, F.HORDE, F.VENDOR, F.SEASONAL, F.IBOE, F.RBOP) recipe:AddVendor(15909) - recipe:AddSeason(2) + recipe:AddSeason("LUNAR_FESTIVAL") -- Large Blue Rocket Cluster -- 26426 recipe = AddRecipe(26426, V.ORIG, Q.UNCOMMON) @@ -1226,7 +1226,7 @@ function addon:InitEngineering() recipe:SetSkillLevels(275, 275, 275, 280, 285) recipe:AddFilters(F.ALLIANCE, F.HORDE, F.VENDOR, F.SEASONAL, F.IBOE, F.RBOP) recipe:AddVendor(15909) - recipe:AddSeason(2) + recipe:AddSeason("LUNAR_FESTIVAL") -- Large Green Rocket Cluster -- 26427 recipe = AddRecipe(26427, V.ORIG, Q.UNCOMMON) @@ -1235,7 +1235,7 @@ function addon:InitEngineering() recipe:SetSkillLevels(275, 275, 275, 280, 285) recipe:AddFilters(F.ALLIANCE, F.HORDE, F.VENDOR, F.SEASONAL, F.IBOE, F.RBOP) recipe:AddVendor(15909) - recipe:AddSeason(2) + recipe:AddSeason("LUNAR_FESTIVAL") -- Large Red Rocket Cluster -- 26428 recipe = AddRecipe(26428, V.ORIG, Q.UNCOMMON) @@ -1244,7 +1244,7 @@ function addon:InitEngineering() recipe:SetSkillLevels(275, 275, 275, 280, 285) recipe:AddFilters(F.ALLIANCE, F.HORDE, F.VENDOR, F.SEASONAL, F.IBOE, F.RBOP) recipe:AddVendor(15909) - recipe:AddSeason(2) + recipe:AddSeason("LUNAR_FESTIVAL") -- Firework Launcher -- 26442 recipe = AddRecipe(26442, V.ORIG, Q.UNCOMMON) @@ -1253,7 +1253,7 @@ function addon:InitEngineering() recipe:SetSkillLevels(225, 225, 245, 255, 265) recipe:AddFilters(F.ALLIANCE, F.HORDE, F.VENDOR, F.SEASONAL, F.IBOE, F.RBOP) recipe:AddVendor(15909) - recipe:AddSeason(2) + recipe:AddSeason("LUNAR_FESTIVAL") -- Cluster Launcher -- 26443 recipe = AddRecipe(26443, V.ORIG, Q.UNCOMMON) @@ -1262,7 +1262,7 @@ function addon:InitEngineering() recipe:SetSkillLevels(275, 275, 295, 305, 315) recipe:AddFilters(F.ALLIANCE, F.HORDE, F.VENDOR, F.SEASONAL, F.IBOE, F.RBOP) recipe:AddVendor(15909) - recipe:AddSeason(2) + recipe:AddSeason("LUNAR_FESTIVAL") -- Steam Tonk Controller -- 28327 recipe = AddRecipe(28327, V.ORIG, Q.COMMON) diff --git a/Database/Leatherworking.lua b/Database/Leatherworking.lua index 350348f..fee2265 100644 --- a/Database/Leatherworking.lua +++ b/Database/Leatherworking.lua @@ -1438,7 +1438,7 @@ function addon:InitLeatherworking() recipe:SetCraftedItemID(17721) recipe:SetSkillLevels(190, 190, 210, 220, 230) recipe:AddFilters(F.ALLIANCE, F.HORDE, F.SEASONAL, F.IBOE, F.RBOE, F.HEALER, F.CASTER, F.LEATHER) - recipe:AddSeason(1) + recipe:AddSeason("WINTER_VEIL") -- Rugged Leather -- 22331 recipe = AddRecipe(22331, V.ORIG, Q.COMMON) @@ -2750,7 +2750,7 @@ function addon:InitLeatherworking() recipe:SetSkillLevels(285, 285, 285, 285, 285) recipe:AddFilters(F.ALLIANCE, F.HORDE, F.VENDOR, F.SEASONAL, F.IBOE, F.RBOP, F.CLOTH) recipe:AddVendor(13420, 13433) - recipe:AddSeason(1) + recipe:AddSeason("WINTER_VEIL") -- Heavy Knothide Armor Kit -- 44970 recipe = AddRecipe(44970, V.TBC, Q.COMMON) diff --git a/Database/Seasonal.lua b/Database/Seasonal.lua index 31e59d7..0e867fa 100644 --- a/Database/Seasonal.lua +++ b/Database/Seasonal.lua @@ -30,10 +30,9 @@ function addon:InitSeasons(DB) local function AddSeason(identifier, name) addon:AddListEntry(DB, identifier, name, GetCategoryInfo(155)) end - AddSeason(1, GetCategoryInfo(156)) -- Winter's Veil - AddSeason(2, GetCategoryInfo(160)) -- Lunar Festival - AddSeason(3, L["Darkmoon Faire"]) - AddSeason(4, GetCategoryInfo(161)) -- Midsummer - AddSeason(5, GetCategoryInfo(14981)) -- Pilgrim's Bounty - AddSeason(6, L["Day of the Dead"]) + AddSeason("WINTER_VEIL", GetCategoryInfo(156)) + AddSeason("LUNAR_FESTIVAL", GetCategoryInfo(160)) + AddSeason("MIDSUMMER", GetCategoryInfo(161)) + AddSeason("PILGRIMS_BOUNTY", GetCategoryInfo(14981)) + AddSeason("DAY_OF_THE_DEAD", L["Day of the Dead"]) end diff --git a/Database/Tailoring.lua b/Database/Tailoring.lua index 8840966..e7aa2c4 100644 --- a/Database/Tailoring.lua +++ b/Database/Tailoring.lua @@ -1471,7 +1471,7 @@ function addon:InitTailoring() recipe:SetCraftedItemID(17723) recipe:SetSkillLevels(190, 190, 200, 205, 210) recipe:AddFilters(F.ALLIANCE, F.HORDE, F.SEASONAL, F.IBOE, F.RBOE) - recipe:AddSeason(1) + recipe:AddSeason("WINTER_VEIL") -- Flarecore Wraps -- 22759 recipe = AddRecipe(22759, V.ORIG, Q.RARE) @@ -1663,7 +1663,7 @@ function addon:InitTailoring() recipe:SetSkillLevels(250, 250, 265, 280, 295) recipe:AddFilters(F.ALLIANCE, F.HORDE, F.VENDOR, F.SEASONAL, F.IBOE, F.RBOP, F.CLOTH) recipe:AddVendor(15909) - recipe:AddSeason(2) + recipe:AddSeason("LUNAR_FESTIVAL") -- Festival Suit -- 26407 recipe = AddRecipe(26407, V.ORIG, Q.UNCOMMON) @@ -1672,7 +1672,7 @@ function addon:InitTailoring() recipe:SetSkillLevels(250, 250, 265, 280, 295) recipe:AddFilters(F.ALLIANCE, F.HORDE, F.VENDOR, F.SEASONAL, F.IBOE, F.RBOP) recipe:AddVendor(15909) - recipe:AddSeason(2) + recipe:AddSeason("LUNAR_FESTIVAL") -- Bolt of Netherweave -- 26745 recipe = AddRecipe(26745, V.TBC, Q.COMMON) @@ -2399,7 +2399,7 @@ function addon:InitTailoring() recipe:SetSkillLevels(250, 250, 250, 250, 250) recipe:AddFilters(F.ALLIANCE, F.HORDE, F.VENDOR, F.SEASONAL, F.IBOE, F.RBOP, F.CLOTH) recipe:AddVendor(13420) - recipe:AddSeason(1) + recipe:AddSeason("WINTER_VEIL") -- Red Winter Clothes -- 44958 recipe = AddRecipe(44958, V.TBC, Q.UNCOMMON) @@ -2408,7 +2408,7 @@ function addon:InitTailoring() recipe:SetSkillLevels(250, 250, 250, 250, 250) recipe:AddFilters(F.ALLIANCE, F.HORDE, F.VENDOR, F.SEASONAL, F.IBOE, F.RBOP, F.CLOTH) recipe:AddVendor(13433) - recipe:AddSeason(1) + recipe:AddSeason("WINTER_VEIL") -- Sunfire Handwraps -- 46128 recipe = AddRecipe(46128, V.TBC, Q.EPIC) -- 1.7.9.5