|
Aaron@17
|
1 --[[--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))
|
|
Aaron@17
|
2
|
|
Aaron@17
|
3 RecipeProfit by -[@project-author@]-
|
|
Aaron@17
|
4
|
|
Aaron@17
|
5 Rev: @project-revision@
|
|
Aaron@17
|
6 Updated: @file-date-iso@
|
|
Aaron@17
|
7
|
|
Aaron@17
|
8 --))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))
|
|
Aaron@17
|
9
|
|
Aaron@22
|
10 URL:
|
|
Aaron@22
|
11 http://www.wrathguides.com/
|
|
Aaron@22
|
12
|
|
Aaron@22
|
13 License:
|
|
Aaron@22
|
14 This file is a part of "RecipeProfit for GatherMate."
|
|
Aaron@22
|
15
|
|
Aaron@22
|
16 This program is free software; you can redistribute it and/or
|
|
Aaron@22
|
17 modify it under the terms of the GNU General Public License
|
|
Aaron@22
|
18 as published by the Free Software Foundation, either version 3
|
|
Aaron@22
|
19 of the License, or (at your option) any later version.
|
|
Aaron@22
|
20
|
|
Aaron@22
|
21 This program is distributed in the hope that it will be useful,
|
|
Aaron@22
|
22 but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Aaron@22
|
23 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Aaron@22
|
24 GNU General Public License for more details.
|
|
Aaron@22
|
25
|
|
Aaron@22
|
26 You should have received a copy of the GNU General Public License
|
|
Aaron@22
|
27 along with Foobar. If not, see <http://www.gnu.org/licenses/>.
|
|
Aaron@22
|
28
|
|
Aaron@22
|
29 Note:
|
|
Aaron@22
|
30 This program's source code is specifically designed to work with
|
|
Aaron@22
|
31 World of Warcraft's interpreted AddOn system.
|
|
Aaron@22
|
32
|
|
Aaron@22
|
33 You have an implicit license to use this program with these facilities
|
|
Aaron@22
|
34 since that is it's designated purpose as per:
|
|
Aaron@22
|
35 http://www.fsf.org/licensing/licenses/gpl-faq.html#InterpreterIncompat
|
|
Aaron@17
|
36
|
|
Aaron@17
|
37 --]]--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))--))
|
|
Aaron@17
|
38
|
|
Aaron@22
|
39
|
|
Aaron@17
|
40 --[[
|
|
Aaron@17
|
41 This file contains location fix overrides for data.
|
|
Aaron@31
|
42 Submit data to admin@drinkslurm.com
|
|
Aaron@17
|
43 ]]
|
|
Aaron@17
|
44 RECIPEPROFIT_location_cache = {
|
|
Aaron@17
|
45 ["Aaron Hollman"] = {
|
|
Aaron@17
|
46 ["y"] = 0.7215260863304138,
|
|
Aaron@17
|
47 ["x"] = 0.6404642462730408,
|
|
Aaron@17
|
48 },
|
|
Aaron@17
|
49 ["Madame Ruby"] = {
|
|
Aaron@17
|
50 ["y"] = 0.7101468443870544,
|
|
Aaron@17
|
51 ["x"] = 0.6331429481506348,
|
|
Aaron@17
|
52 },
|
|
Aaron@17
|
53 ["Endora Moorehead"] = {
|
|
Aaron@17
|
54 ["y"] = 0.5554489493370056,
|
|
Aaron@17
|
55 ["x"] = 0.386496365070343,
|
|
Aaron@17
|
56 },
|
|
Aaron@17
|
57 ["Larana Drome"] = {
|
|
Aaron@17
|
58 ["y"] = 0.3669505119323731,
|
|
Aaron@17
|
59 ["x"] = 0.41370689868927,
|
|
Aaron@17
|
60 },
|
|
Aaron@17
|
61 ["Wind Trader Lathrai"] = {
|
|
Aaron@17
|
62 ["y"] = 0.3077846765518189,
|
|
Aaron@17
|
63 ["x"] = 0.7226132750511169,
|
|
Aaron@17
|
64 },
|
|
Aaron@17
|
65 ["Eiin"] = {
|
|
Aaron@17
|
66 ["y"] = 0.6892650127410889,
|
|
Aaron@17
|
67 ["x"] = 0.6627683639526367,
|
|
Aaron@17
|
68 },
|
|
Aaron@17
|
69 ["Bryan Landers"] = {
|
|
Aaron@17
|
70 ["y"] = 0.245055764913559,
|
|
Aaron@17
|
71 ["x"] = 0.3892331123352051,
|
|
Aaron@17
|
72 },
|
|
Aaron@17
|
73 ["Fyldan"] = {
|
|
Aaron@17
|
74 ["y"] = 0.215785413980484,
|
|
Aaron@17
|
75 ["x"] = 0.4854764640331268,
|
|
Aaron@17
|
76 },
|
|
Aaron@17
|
77 ["Ulthir"] = {
|
|
Aaron@17
|
78 ["y"] = 0.2445829063653946,
|
|
Aaron@17
|
79 ["x"] = 0.5585364103317261,
|
|
Aaron@17
|
80 },
|
|
Aaron@17
|
81 }
|
|
Aaron@17
|
82
|
|
Aaron@18
|
83 --[[
|
|
Aaron@18
|
84 Replaces the X and Y coordinates in the coordinate cached database.
|
|
Aaron@18
|
85 ]]
|
|
Aaron@18
|
86 local function fix_coords(note, cdb)
|
|
Aaron@18
|
87 for name, coord in pairs(cdb) do
|
|
Aaron@17
|
88 if(note.vendor == name) then
|
|
Aaron@17
|
89 note.x = coord.x * 100
|
|
Aaron@17
|
90 note.y = coord.y * 100
|
|
Aaron@17
|
91 end
|
|
Aaron@17
|
92 end
|
|
Aaron@17
|
93 end
|
|
Aaron@17
|
94
|
|
Aaron@17
|
95 --[[
|
|
Aaron@17
|
96 Overwrites RECIPEPROFIT_alliance and RECIPEPROFIT_horde dbs.
|
|
Aaron@17
|
97 ]]
|
|
Aaron@24
|
98 do
|
|
Aaron@24
|
99 for _, note in pairs(RECIPEPROFIT_alliance) do
|
|
Aaron@24
|
100 fix_coords(note, RECIPEPROFIT_location_cache)
|
|
Aaron@24
|
101 end
|
|
Aaron@24
|
102
|
|
Aaron@24
|
103 for _, note in pairs(RECIPEPROFIT_horde) do
|
|
Aaron@24
|
104 fix_coords(note, RECIPEPROFIT_location_cache)
|
|
Aaron@24
|
105 end
|
|
Aaron@17
|
106 end
|