|
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@17
|
42 ]]
|
|
Aaron@17
|
43 RECIPEPROFIT_location_cache = {
|
|
Aaron@17
|
44 ["Aaron Hollman"] = {
|
|
Aaron@17
|
45 ["y"] = 0.7215260863304138,
|
|
Aaron@17
|
46 ["x"] = 0.6404642462730408,
|
|
Aaron@17
|
47 },
|
|
Aaron@17
|
48 ["Madame Ruby"] = {
|
|
Aaron@17
|
49 ["y"] = 0.7101468443870544,
|
|
Aaron@17
|
50 ["x"] = 0.6331429481506348,
|
|
Aaron@17
|
51 },
|
|
Aaron@17
|
52 ["Endora Moorehead"] = {
|
|
Aaron@17
|
53 ["y"] = 0.5554489493370056,
|
|
Aaron@17
|
54 ["x"] = 0.386496365070343,
|
|
Aaron@17
|
55 },
|
|
Aaron@17
|
56 ["Larana Drome"] = {
|
|
Aaron@17
|
57 ["y"] = 0.3669505119323731,
|
|
Aaron@17
|
58 ["x"] = 0.41370689868927,
|
|
Aaron@17
|
59 },
|
|
Aaron@17
|
60 ["Wind Trader Lathrai"] = {
|
|
Aaron@17
|
61 ["y"] = 0.3077846765518189,
|
|
Aaron@17
|
62 ["x"] = 0.7226132750511169,
|
|
Aaron@17
|
63 },
|
|
Aaron@17
|
64 ["Eiin"] = {
|
|
Aaron@17
|
65 ["y"] = 0.6892650127410889,
|
|
Aaron@17
|
66 ["x"] = 0.6627683639526367,
|
|
Aaron@17
|
67 },
|
|
Aaron@17
|
68 ["Bryan Landers"] = {
|
|
Aaron@17
|
69 ["y"] = 0.245055764913559,
|
|
Aaron@17
|
70 ["x"] = 0.3892331123352051,
|
|
Aaron@17
|
71 },
|
|
Aaron@17
|
72 ["Fyldan"] = {
|
|
Aaron@17
|
73 ["y"] = 0.215785413980484,
|
|
Aaron@17
|
74 ["x"] = 0.4854764640331268,
|
|
Aaron@17
|
75 },
|
|
Aaron@17
|
76 ["Ulthir"] = {
|
|
Aaron@17
|
77 ["y"] = 0.2445829063653946,
|
|
Aaron@17
|
78 ["x"] = 0.5585364103317261,
|
|
Aaron@17
|
79 },
|
|
Aaron@17
|
80 }
|
|
Aaron@17
|
81
|
|
Aaron@18
|
82 --[[
|
|
Aaron@18
|
83 Replaces the X and Y coordinates in the coordinate cached database.
|
|
Aaron@18
|
84 ]]
|
|
Aaron@18
|
85 local function fix_coords(note, cdb)
|
|
Aaron@18
|
86 for name, coord in pairs(cdb) do
|
|
Aaron@17
|
87 if(note.vendor == name) then
|
|
Aaron@17
|
88 note.x = coord.x * 100
|
|
Aaron@17
|
89 note.y = coord.y * 100
|
|
Aaron@17
|
90 end
|
|
Aaron@17
|
91 end
|
|
Aaron@17
|
92 end
|
|
Aaron@17
|
93
|
|
Aaron@17
|
94 --[[
|
|
Aaron@17
|
95 Overwrites RECIPEPROFIT_alliance and RECIPEPROFIT_horde dbs.
|
|
Aaron@17
|
96 ]]
|
|
Aaron@20
|
97 for _, note in pairs(RECIPEPROFIT_alliance) do
|
|
Aaron@20
|
98 fix_coords(note, RECIPEPROFIT_location_cache)
|
|
Aaron@17
|
99 end
|
|
Aaron@17
|
100
|
|
Aaron@20
|
101 for _, note in pairs(RECIPEPROFIT_horde) do
|
|
Aaron@20
|
102 fix_coords(note, RECIPEPROFIT_location_cache)
|
|
Aaron@17
|
103 end
|