Mercurial > wow > recipeprofit
view location_cache.lua @ 26:19e007e5eca9 v1.05
Fixed item count so in most cases when an item is not cached the correct count is displayed on the minimap.
| author | Aaron@Aaron-PC |
|---|---|
| date | Sun, 22 Aug 2010 10:22:09 -0500 |
| parents | bc8c0631172b |
| children | 0ea3ff6465de |
line wrap: on
line source
--[[--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--)) RecipeProfit by -[@project-author@]- Rev: @project-revision@ Updated: @file-date-iso@ --))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--)) URL: http://www.wrathguides.com/ License: This file is a part of "RecipeProfit for GatherMate." This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Foobar. If not, see <http://www.gnu.org/licenses/>. Note: This program's source code is specifically designed to work with World of Warcraft's interpreted AddOn system. You have an implicit license to use this program with these facilities since that is it's designated purpose as per: http://www.fsf.org/licensing/licenses/gpl-faq.html#InterpreterIncompat --]]--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--)) --[[ This file contains location fix overrides for data. ]] RECIPEPROFIT_location_cache = { ["Aaron Hollman"] = { ["y"] = 0.7215260863304138, ["x"] = 0.6404642462730408, }, ["Madame Ruby"] = { ["y"] = 0.7101468443870544, ["x"] = 0.6331429481506348, }, ["Endora Moorehead"] = { ["y"] = 0.5554489493370056, ["x"] = 0.386496365070343, }, ["Larana Drome"] = { ["y"] = 0.3669505119323731, ["x"] = 0.41370689868927, }, ["Wind Trader Lathrai"] = { ["y"] = 0.3077846765518189, ["x"] = 0.7226132750511169, }, ["Eiin"] = { ["y"] = 0.6892650127410889, ["x"] = 0.6627683639526367, }, ["Bryan Landers"] = { ["y"] = 0.245055764913559, ["x"] = 0.3892331123352051, }, ["Fyldan"] = { ["y"] = 0.215785413980484, ["x"] = 0.4854764640331268, }, ["Ulthir"] = { ["y"] = 0.2445829063653946, ["x"] = 0.5585364103317261, }, } --[[ Replaces the X and Y coordinates in the coordinate cached database. ]] local function fix_coords(note, cdb) for name, coord in pairs(cdb) do if(note.vendor == name) then note.x = coord.x * 100 note.y = coord.y * 100 end end end --[[ Overwrites RECIPEPROFIT_alliance and RECIPEPROFIT_horde dbs. ]] do for _, note in pairs(RECIPEPROFIT_alliance) do fix_coords(note, RECIPEPROFIT_location_cache) end for _, note in pairs(RECIPEPROFIT_horde) do fix_coords(note, RECIPEPROFIT_location_cache) end end
