Skip to content

Commit

Permalink
Update to HBD 2.13-release-3-g6a0a022
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludovicus-Maior committed Apr 24, 2024
1 parent 9325681 commit 72b4dc6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
18 changes: 6 additions & 12 deletions WoWPro/Libraries/HereBeDragons/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
# Lib: HereBeDragons

## [2.13-release](https://github.com/Nevcairiel/HereBeDragons/tree/2.13-release) (2023-07-12)
[Full Changelog](https://github.com/Nevcairiel/HereBeDragons/compare/2.12-release...2.13-release) [Previous Releases](https://github.com/Nevcairiel/HereBeDragons/releases)
## [2.13-release-3-g6a0a022](https://github.com/Nevcairiel/HereBeDragons/tree/6a0a022e97aab278e0f41e150ffc9d59313dde90) (2024-04-20)
[Full Changelog](https://github.com/Nevcairiel/HereBeDragons/compare/2.13-release...6a0a022e97aab278e0f41e150ffc9d59313dde90) [Previous Releases](https://github.com/Nevcairiel/HereBeDragons/releases)

- Update TOC for 10.1.5
- HBD-Pins-2.0: Hack around combat limitations in 10.1.5
SetPassThroughButtons can no longer be called in combat, but we allow
creating pins at any time during play. Until such a point when this is
fixed by Blizzard, noop out the function so that creating pins no longer
errors.
This function is called on the pin by Blizzards pin handler, which is of
course insecure on addon-created pins.
- Update TOC for 10.1
- Update TOC for 10.0.7
- Update Library version, forgotten in previous commit
Also force a data update for Cataclysm
- Update for Cataclysm Classic
- Update TOC for 10.2.6
19 changes: 14 additions & 5 deletions WoWPro/Libraries/HereBeDragons/HereBeDragons-2.0.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-- HereBeDragons is a data API for the World of Warcraft mapping system

local MAJOR, MINOR = "HereBeDragons-2.0", 22
local MAJOR, MINOR = "HereBeDragons-2.0", 23
assert(LibStub, MAJOR .. " requires LibStub")

local HereBeDragons, oldversion = LibStub:NewLibrary(MAJOR, MINOR)
Expand All @@ -15,10 +15,10 @@ HereBeDragons.worldMapData = HereBeDragons.worldMapData or {}
HereBeDragons.transforms = HereBeDragons.transforms or {}
HereBeDragons.callbacks = HereBeDragons.callbacks or CBH:New(HereBeDragons, nil, nil, false)

local WOW_INTERFACE_VER = select(4, GetBuildInfo())
local WoWClassic = (WOW_PROJECT_ID == WOW_PROJECT_CLASSIC)
local WoWBC = (WOW_PROJECT_ID ~= WOW_PROJECT_MAINLINE) and WOW_INTERFACE_VER >= 20500 and WOW_INTERFACE_VER < 30000
local WoWWrath = (WOW_PROJECT_ID ~= WOW_PROJECT_MAINLINE) and WOW_INTERFACE_VER >= 30400 and WOW_INTERFACE_VER < 40000
local WoWBC = (WOW_PROJECT_ID == WOW_PROJECT_BURNING_CRUSADE_CLASSIC)
local WoWWrath = (WOW_PROJECT_ID == WOW_PROJECT_WRATH_CLASSIC)
local WoWCata = (WOW_PROJECT_ID == WOW_PROJECT_CATACLYSM_CLASSIC)

-- Data Constants
local COSMIC_MAP_ID = 946
Expand Down Expand Up @@ -83,7 +83,7 @@ local function overrideInstance(instance) return instanceIDOverrides[instance] o
HereBeDragons.___DIIDO = dynamicInstanceIDOverrides

-- gather map info, but only if this isn't an upgrade (or the upgrade version forces a re-map)
if not oldversion or oldversion < 21 then
if not oldversion or oldversion < 23 then
-- wipe old data, if required, otherwise the upgrade path isn't triggered
if oldversion then
wipe(mapData)
Expand All @@ -107,6 +107,11 @@ if not oldversion or oldversion < 21 then
{ 530, 1, -6933.33, 533.33, -16000, -8000, 10339.7, 17600 },
{ 609, 0, -10000, 10000, -10000, 10000, 0, 0 },
}
elseif WoWCata then
transformData = {
{ 530, 0, 4800, 16000, -10133.3, -2666.67, -2400, 2662.8 },
{ 530, 1, -6933.33, 533.33, -16000, -8000, 10339.7, 17600 },
}
else
transformData = {
{ 530, 1, -6933.33, 533.33, -16000, -8000, 9916, 17600 },
Expand Down Expand Up @@ -225,6 +230,10 @@ if not oldversion or oldversion < 21 then
worldMapData[0] = { 48033.24, 32020.8, 36867.97, 14848.84 }
worldMapData[1] = { 47908.72, 31935.28, 8552.61, 18467.83 }
worldMapData[571] = { 47662.7, 31772.19, 25198.53, 11072.07 }
elseif WoWCata then
worldMapData[0] = { 48033.24, 32020.8, 36867.97, 14848.84 }
worldMapData[1] = { 47908.72, 31935.28, 8552.61, 18467.83 }
worldMapData[571] = { 47662.7, 31772.19, 25198.53, 11072.07 }
else
worldMapData[0] = { 76153.14, 50748.62, 65008.24, 23827.51 }
worldMapData[1] = { 77621.13, 51854.98, 18576.47, 28030.61 }
Expand Down

0 comments on commit 72b4dc6

Please sign in to comment.