Skip to content

Commit

Permalink
Minor changes for better code readability
Browse files Browse the repository at this point in the history
  • Loading branch information
ahakola committed Nov 4, 2024
1 parent 9903b24 commit 2f7112f
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions DMFQuest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@
32175, -- Jeremy Feasel - Darkmoon Pet Battle!
36471 -- Christoph VonFeasel - A New Darkmoon Challenger!
},
QuestAvailableCount = (isRetail) and 2 or 0 -- Patch 5.0.4 (2012-08-28) / Patch 6.0.2 (2014-10-14)
QuestAvailableCount = isRetail and 2 or 0 -- Patch 5.0.4 (2012-08-28) / Patch 6.0.2 (2014-10-14)
},
DeathMetalKnight = {
Icon = 236362,
Expand Down Expand Up @@ -1020,10 +1020,12 @@
Debug(" -- ", i, "/", #subZoneAreaIDs[uiMapID], "-", subZoneAreaIDs[uiMapID][i], C_Map.GetAreaInfo(subZoneAreaIDs[uiMapID][i]))
local areaName = cacheAreaNames[subZoneAreaIDs[uiMapID][i]] or C_Map.GetAreaInfo(subZoneAreaIDs[uiMapID][i]) -- Check if we have cached this areaName already
if
(areaName == subZone)
or
(areaName == subZone) or
(
((isRetail and uiMapID == 7) or (isCataClassic and uiMapID == 1412))
(
(isRetail and uiMapID == 7) or
(isCataClassic and uiMapID == 1412)
)
and
info.name == subZone
)
Expand Down Expand Up @@ -1065,7 +1067,10 @@
end
end

if ((isRetail and uiMapID == 7) or (isCataClassic and uiMapID == 1412)) then -- Weird stuff happens in Mulgore
if (
(isRetail and uiMapID == 7) or
(isCataClassic and uiMapID == 1412)
) then -- Weird stuff happens in Mulgore
return _isPortalInRange(-1472, 196, UnitPosition("player"))
end

Expand Down

0 comments on commit 2f7112f

Please sign in to comment.