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