Skip to content

Commit

Permalink
Merge pull request #272 from artscout/master
Browse files Browse the repository at this point in the history
Make underground level for lower maps in TWW
  • Loading branch information
IrcDirk authored Sep 12, 2024
2 parents 7661603 + 9aaeac1 commit 1e03bf5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
4 changes: 4 additions & 0 deletions NxMap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6232,6 +6232,10 @@ function Nx.Map:CheckWorldHotspotsType (wx, wy, quad)
local curId = self:GetCurrentMapId()

if spot.MapId ~= curId then
local winfo = self.MapWorldInfo[curId]
if winfo and winfo.Underground then
return false
end

-- Nx.prt ("hotspot %s %s %s %s %s", spot.MapId, spot.WX1, spot.WX2, spot.WY1, spot.WY2)
self:SetCurrentMap (spot.MapId)
Expand Down
18 changes: 12 additions & 6 deletions NxMapData.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1865,13 +1865,16 @@ Map.MapWorldInfo = {
Y = 950,
Name = L["Azj-Kahet"],
Overlay = "azjkahet",
MapLevel = 1,
},
[2256] = {
Scale = 19.48,
X = -195.58,
Y = 2300,
Scale = 16.7,
X = 244.5,
Y = 950,
Name = L["Azj-Kahet - Lower"],
Overlay = "azjkahet_lower",
Underground = true,
MapLevel = 2,
},
[2339] = {
Scale = 5.63,
Expand All @@ -1892,16 +1895,19 @@ Map.MapWorldInfo = {
City = true,
TileX = 15,
TileY = 10,
MapLevel = 1,
},
[2216] = {
Scale = 4.79999212646484,
X = -63.333197021484,
Y = 286.66599121094,
Scale = 5.8,
X = 770.333197021484,
Y = 1675.66599121094,
Name = L["City of Threads - Lower"],
Overlay = "nerubar_lower",
Underground = true,
City = true,
TileX = 15,
TileY = 10,
MapLevel = 2,
},

-- 1726 NPE SHIP
Expand Down

0 comments on commit 1e03bf5

Please sign in to comment.