comparison location_cache.lua @ 36:1e73cfb6f363

Updated for 4.0.3 and GatherMate 2
author "Aaron Bregger <killermonkey99@gmail.com>"
date Tue, 04 Jan 2011 17:49:34 -0600
parents 0ea3ff6465de
children 2891ad322db6
comparison
equal deleted inserted replaced
35:23b3fb8f7085 36:1e73cfb6f363
40 --[[ 40 --[[
41 This file contains location fix overrides for data. 41 This file contains location fix overrides for data.
42 Submit data to admin@drinkslurm.com 42 Submit data to admin@drinkslurm.com
43 ]] 43 ]]
44 RECIPEPROFIT_location_cache = { 44 RECIPEPROFIT_location_cache = {
45 ["Aaron Hollman"] = { 45
46 ["y"] = 0.7215260863304138,
47 ["x"] = 0.6404642462730408,
48 },
49 ["Madame Ruby"] = {
50 ["y"] = 0.7101468443870544,
51 ["x"] = 0.6331429481506348,
52 },
53 ["Endora Moorehead"] = {
54 ["y"] = 0.5554489493370056,
55 ["x"] = 0.386496365070343,
56 },
57 ["Larana Drome"] = {
58 ["y"] = 0.3669505119323731,
59 ["x"] = 0.41370689868927,
60 },
61 ["Wind Trader Lathrai"] = {
62 ["y"] = 0.3077846765518189,
63 ["x"] = 0.7226132750511169,
64 },
65 ["Eiin"] = {
66 ["y"] = 0.6892650127410889,
67 ["x"] = 0.6627683639526367,
68 },
69 ["Bryan Landers"] = {
70 ["y"] = 0.245055764913559,
71 ["x"] = 0.3892331123352051,
72 },
73 ["Fyldan"] = {
74 ["y"] = 0.215785413980484,
75 ["x"] = 0.4854764640331268,
76 },
77 ["Ulthir"] = {
78 ["y"] = 0.2445829063653946,
79 ["x"] = 0.5585364103317261,
80 },
81 } 46 }
82 47
83 --[[ 48 --[[
84 Replaces the X and Y coordinates in the coordinate cached database. 49 Replaces the X and Y coordinates in the coordinate cached database.
85 ]] 50 ]--]
86 local function fix_coords(note, cdb) 51 local function fix_coords(note, cdb)
87 for name, coord in pairs(cdb) do 52 for name, coord in pairs(cdb) do
88 if(note.vendor == name) then 53 if(note.vendor == name) then
89 note.x = coord.x * 100 54 note.x = coord.x * 100
90 note.y = coord.y * 100 55 note.y = coord.y * 100
91 end 56 end
92 end 57 end
93 end 58 end
94 59
95 --[[ 60 --[--[
96 Overwrites RECIPEPROFIT_alliance and RECIPEPROFIT_horde dbs. 61 Overwrites RECIPEPROFIT_alliance and RECIPEPROFIT_horde dbs.
97 ]] 62 ]--]
98 do 63 do
99 for _, note in pairs(RECIPEPROFIT_alliance) do 64 for _, note in pairs(RECIPEPROFIT_alliance) do
100 fix_coords(note, RECIPEPROFIT_location_cache) 65 fix_coords(note, RECIPEPROFIT_location_cache)
101 end 66 end
102 67
103 for _, note in pairs(RECIPEPROFIT_horde) do 68 for _, note in pairs(RECIPEPROFIT_horde) do
104 fix_coords(note, RECIPEPROFIT_location_cache) 69 fix_coords(note, RECIPEPROFIT_location_cache)
105 end 70 end
106 end 71 end
72 ]]