# HG changeset patch # User MMOSimca # Date 1473855661 14400 # Node ID 95e0a5b04d52c6ecebb089847b8ae6aaf9887d40 # Parent b661f10e04d99476bffd02524e1c179aaa28d17f Added a workaround for WoWDB not supporting micro-dungeons - micro-dungeon coordinates are now translated on to the base floor for the world map if possible. diff -r b661f10e04d9 -r 95e0a5b04d52 Main.lua --- a/Main.lua Wed Sep 14 05:49:50 2016 -0400 +++ b/Main.lua Wed Sep 14 08:21:01 2016 -0400 @@ -331,9 +331,15 @@ local function CurrentLocationData() - local x, y, current_area_id, map_level = HereBeDragons:GetPlayerZonePosition(true) + local x, y, current_area_id, map_level, map_file, is_micro_dungeon = HereBeDragons:GetPlayerZonePosition(false) local zone_name = _G.GetRealZoneText() + -- Remove micro-dungeon-ness by translating back to the parent world map (at floor 0) if possible + if (is_micro_dungeon and x and y and current_area_id and map_level and map_level > 0) then + x, y = HereBeDragons:TranslateZoneCoordinates(x, y, current_area_id, map_level, current_area_id, 0, false) + map_level = 0 + end + -- Put coordinates into expected format (as integers, they don't get a billion decimals output in the SavedVariables) local x_int = nil if (x and type(x) == "number") then