From 5ac843d7da46c6dc3becdbef7f93da48d5743a2e Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Sat, 27 Mar 2010 05:34:41 -0400 Subject: [PATCH] Renamed acquire-type "MOB" to "MOB_DROP" for consistency. --- ARL.lua | 4 ++-- Constants.lua | 4 ++-- Database/Smelting.lua | 2 +- Datamine.lua | 4 ++-- Frame.lua | 6 +++--- Waypoint.lua | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/ARL.lua b/ARL.lua index c3a52d4..a4d5f67 100644 --- a/ARL.lua +++ b/ARL.lua @@ -951,7 +951,7 @@ do vendor.item_list = vendor.item_list or {} vendor.item_list[spell_id] = true end - elseif acquire_type == A.MOB then + elseif acquire_type == A.MOB_DROP then local mob_list = private.mob_list if not mob_list[acquire_id] then @@ -1092,7 +1092,7 @@ do end function addon:AddRecipeMobDrop(spell_id, ...) - GenericAddRecipeAcquire(spell_id, A.MOB, "Mob", private.mob_list, ...) + GenericAddRecipeAcquire(spell_id, A.MOB_DROP, "Mob", private.mob_list, ...) end function addon:AddRecipeTrainer(spell_id, ...) diff --git a/Constants.lua b/Constants.lua index 3090b19..890ffd8 100644 --- a/Constants.lua +++ b/Constants.lua @@ -139,7 +139,7 @@ private.filter_strings = { private.acquire_types = { ["TRAINER"] = 1, ["VENDOR"] = 2, - ["MOB"] = 3, + ["MOB_DROP"] = 3, ["QUEST"] = 4, ["SEASONAL"] = 5, ["REPUTATION"] = 6, @@ -150,7 +150,7 @@ private.acquire_types = { private.acquire_strings = { [1] = "TRAINER", [2] = "VENDOR", - [3] = "MOB", + [3] = "MOB_DROP", [4] = "QUEST", [5] = "SEASONAL", [6] = "REPUTATION", diff --git a/Database/Smelting.lua b/Database/Smelting.lua index b085a59..ecbf746 100644 --- a/Database/Smelting.lua +++ b/Database/Smelting.lua @@ -124,7 +124,7 @@ function addon:InitSmelting() -- Smelt Elementium -- 22967 AddRecipe(22967, 300, 17771, 5, 0, 300, 350, 362, 375) self:AddRecipeFlags(22967, F.ALLIANCE, F.HORDE, F.RAID, F.MOB_DROP, F.IBOE, F.RBOP) - self:AddRecipeAcquire(22967, A.MOB, 14401) + self:AddRecipeAcquire(22967, A.MOB_DROP, 14401) -- Smelt Fel Iron -- 29356 AddRecipe(29356, 275, 23445, 1, 1, 275, 275, 300, 325) diff --git a/Datamine.lua b/Datamine.lua index 49bb745..77d8a4d 100644 --- a/Datamine.lua +++ b/Datamine.lua @@ -1476,7 +1476,7 @@ do local FUNCTION_FORMATS = { [A.TRAINER] = "self:AddRecipeTrainer(%d, %s)", [A.VENDOR] = "self:AddRecipeVendor(%d, %s)", - [A.MOB] = "self:AddRecipeMobDrop(%d, %s)", + [A.MOB_DROP] = "self:AddRecipeMobDrop(%d, %s)", } local function RecipeDump(id, single) @@ -2249,7 +2249,7 @@ do local output = {} local ACQUIRE_TO_FILTER_MAP = { - [A.MOB] = F.MOB_DROP, + [A.MOB_DROP] = F.MOB_DROP, [A.QUEST] = F.QUEST, [A.SEASONAL] = F.SEASONAL, [A.WORLD_DROP] = F.WORLD_DROP, diff --git a/Frame.lua b/Frame.lua index 931eea7..6399aa1 100644 --- a/Frame.lua +++ b/Frame.lua @@ -738,7 +738,7 @@ do ttAdd(0, -1, false, vendor.faction.." "..L["Vendor"], color_1) end end - elseif acquire_type == A.MOB then + elseif acquire_type == A.MOB_DROP then for id_num in pairs(acquire_info) do local mob = private.mob_list[id_num] local coord_text = "" @@ -3170,7 +3170,7 @@ do entry_index = ExpandTrainerData(entry_index, entry_type, id_num, recipe_id, hide_location, hide_type) elseif acquire_type == A.VENDOR and (obtain_filters.vendor or obtain_filters.pvp) then entry_index = ExpandVendorData(entry_index, entry_type, id_num, recipe_id, hide_location, hide_type) - elseif acquire_type == A.MOB and (obtain_filters.mobdrop or obtain_filters.instance or obtain_filters.raid) then + elseif acquire_type == A.MOB_DROP and (obtain_filters.mobdrop or obtain_filters.instance or obtain_filters.raid) then entry_index = ExpandMobData(entry_index, entry_type, id_num, recipe_id, hide_location, hide_type) elseif acquire_type == A.QUEST and obtain_filters.quest then entry_index = ExpandQuestData(entry_index, entry_type, id_num, recipe_id, hide_location, hide_type) @@ -3286,7 +3286,7 @@ do entry_index = ExpandTrainerData(entry_index, "subentry", id_num, list_entry.recipe_id, true) elseif acquire_type == A.VENDOR and private.vendor_list[id_num].location == location_id then entry_index = ExpandVendorData(entry_index, "subentry", id_num, list_entry.recipe_id, true) - elseif acquire_type == A.MOB and private.mob_list[id_num].location == location_id then + elseif acquire_type == A.MOB_DROP and private.mob_list[id_num].location == location_id then entry_index = ExpandMobData(entry_index, "subentry", id_num, list_entry.recipe_id, true) elseif acquire_type == A.QUEST and private.quest_list[id_num].location == location_id then entry_index = ExpandQuestData(entry_index, "subentry", id_num, list_entry.recipe_id, true) diff --git a/Waypoint.lua b/Waypoint.lua index 2ad68c0..f12ac79 100644 --- a/Waypoint.lua +++ b/Waypoint.lua @@ -346,7 +346,7 @@ local function GetWaypoint(acquire_type, id_num, flags) if vendor.faction == BFAC[player_faction] or vendor.faction == FACTION_NEUTRAL then waypoint = vendor end - elseif acquire_type == A.MOB and mapmob then + elseif acquire_type == A.MOB_DROP and mapmob then waypoint = private.mob_list[id_num] elseif acquire_type == A.QUEST and mapquest then local quest = private.quest_list[id_num] -- 1.7.9.5