Skip to content

Commit eb18cd6

Browse files
committed
chore(lib): updated HereBeDragons and MountsRarity
1 parent 9f28c87 commit eb18cd6

2 files changed

Lines changed: 1321 additions & 1295 deletions

File tree

Libs/HereBeDragons/HereBeDragons-2.0.lua

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
-- HereBeDragons is a data API for the World of Warcraft mapping system
22

3-
local MAJOR, MINOR = "HereBeDragons-2.0", 29
3+
local MAJOR, MINOR = "HereBeDragons-2.0", 30
44
assert(LibStub, MAJOR .. " requires LibStub")
55

66
local HereBeDragons, oldversion = LibStub:NewLibrary(MAJOR, MINOR)
@@ -19,7 +19,7 @@ local WoWClassic = (WOW_PROJECT_ID == WOW_PROJECT_CLASSIC)
1919
local WoWBC = (WOW_PROJECT_ID == WOW_PROJECT_BURNING_CRUSADE_CLASSIC)
2020
local WoWWrath = (WOW_PROJECT_ID == WOW_PROJECT_WRATH_CLASSIC)
2121
local WoWCata = (WOW_PROJECT_ID == WOW_PROJECT_CATACLYSM_CLASSIC)
22-
local TWW = select(4, GetBuildInfo()) >= 110002
22+
local WoWMists = (WOW_PROJECT_ID == WOW_PROJECT_MISTS_CLASSIC)
2323

2424
-- Data Constants
2525
local COSMIC_MAP_ID = 946
@@ -92,7 +92,7 @@ local function overrideInstance(instance) return instanceIDOverrides[instance] o
9292
HereBeDragons.___DIIDO = dynamicInstanceIDOverrides
9393

9494
-- gather map info, but only if this isn't an upgrade (or the upgrade version forces a re-map)
95-
if not oldversion or oldversion < 27 then
95+
if not oldversion or oldversion < 30 then
9696
-- wipe old data, if required, otherwise the upgrade path isn't triggered
9797
if oldversion then
9898
wipe(mapData)
@@ -121,6 +121,13 @@ if not oldversion or oldversion < 27 then
121121
{ 530, 0, 4800, 16000, -10133.3, -2666.67, -2400, 2662.8 },
122122
{ 530, 1, -6933.33, 533.33, -16000, -8000, 10339.7, 17600 },
123123
}
124+
elseif WoWMists then
125+
transformData = {
126+
{ 530, 1, -6933.33, 533.33, -16000, -8000, 10339.7, 17600 },
127+
{ 530, 0, 4800, 16000, -10133.3, -2666.67, -2400, 2662.8 },
128+
{ 1014, 870, 3200, 5333.3, 1066.7, 2666.7, 0, 0 },
129+
{ 1064, 870, 5391, 8148, 3518, 7655, -2134.2, -2286.6 },
130+
}
124131
else
125132
transformData = {
126133
{ 530, 1, -6933.33, 533.33, -16000, -8000, 9916, 17600 },
@@ -261,7 +268,12 @@ if not oldversion or oldversion < 27 then
261268
worldMapData[0] = { 48033.24, 32020.8, 36867.97, 14848.84 }
262269
worldMapData[1] = { 47908.72, 31935.28, 8552.61, 18467.83 }
263270
worldMapData[571] = { 47662.7, 31772.19, 25198.53, 11072.07 }
264-
elseif TWW then
271+
elseif WoWMists then
272+
worldMapData[0] = { 57114.85, 38082.53, 46284.08, 15795.1 }
273+
worldMapData[1] = { 58984.3, 39319.22, 10153.84, 19536.12 }
274+
worldMapData[571] = { 56338.03, 37567.89, 29892.96, 11496.56 }
275+
worldMapData[870] = { 53103.22, 35408.03, 28648.8, 30726.23 }
276+
else
265277
worldMapData[0] = { 76153.14, 50748.62, 65008.24, 23827.51 }
266278
worldMapData[1] = { 77621.12, 51854.98, 12444.4, 28030.61 }
267279
worldMapData[571] = { 71773.64, 50054.05, 36205.94, 12366.81 }
@@ -272,15 +284,6 @@ if not oldversion or oldversion < 27 then
272284
worldMapData[2444] = { 111420.37, 74283, 86088.21, 15682.4 }
273285
worldMapData[2552] = { 82171.44, 54787.67, 21219.3, 47876.05 }
274286
worldMapData[2601] = { 67929.29, 49267.42, 18325.63, 42233.06 }
275-
else
276-
worldMapData[0] = { 76153.14, 50748.62, 65008.24, 23827.51 }
277-
worldMapData[1] = { 77621.13, 51854.98, 18576.47, 28030.61 }
278-
worldMapData[571] = { 71773.64, 50054.05, 36205.94, 12366.81 }
279-
worldMapData[870] = { 67710.54, 45118.08, 33565.89, 38020.67 }
280-
worldMapData[1220] = { 82758.64, 55151.28, 52943.46, 24484.72 }
281-
worldMapData[1642] = { 77933.3, 51988.91, 44262.36, 32835.1 }
282-
worldMapData[1643] = { 76060.47, 50696.96, 55384.8, 25774.35 }
283-
worldMapData[2444] = { 111420.37, 74283, 86088.21, 15682.4 }
284287
end
285288
end
286289

0 commit comments

Comments
 (0)