mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-02 03:39:59 +00:00
compat: replace max level var with existing one
This commit is contained in:
@@ -3,7 +3,6 @@ setfenv(1, pfUI:GetEnvironment())
|
||||
if pfUI.expansion ~= "tbc" then return end
|
||||
|
||||
-- [[ Constants ]]--
|
||||
MAX_LEVEL = 70
|
||||
CASTBAR_EVENT_CAST_DELAY = "UNIT_SPELLCAST_DELAYED"
|
||||
CASTBAR_EVENT_CHANNEL_DELAY = "UNIT_SPELLCAST_CHANNEL_UPDATE"
|
||||
EVENTS_MINIMAP_ZONE_UPDATE = {"PLAYER_ENTERING_WORLD", "ZONE_CHANGED_NEW_AREA", "ZONE_CHANGED"}
|
||||
|
||||
@@ -3,7 +3,6 @@ setfenv(1, pfUI:GetEnvironment())
|
||||
if pfUI.expansion ~= "vanilla" then return end
|
||||
|
||||
-- [[ Constants ]]--
|
||||
MAX_LEVEL = 60
|
||||
CASTBAR_EVENT_CAST_DELAY = "SPELLCAST_DELAYED"
|
||||
CASTBAR_EVENT_CHANNEL_DELAY = "SPELLCAST_CHANNEL_UPDATE"
|
||||
EVENTS_MINIMAP_ZONE_UPDATE = {"PLAYER_ENTERING_WORLD", "MINIMAP_ZONE_CHANGED"}
|
||||
|
||||
+3
-3
@@ -33,7 +33,7 @@ local function OnEnter(self)
|
||||
-- set either experience, reputation or flex-rep handler
|
||||
local mode = self.display
|
||||
if self.display == "XPFLEX" then
|
||||
mode = UnitLevel("player") < MAX_LEVEL and "XP" or "REP"
|
||||
mode = UnitLevel("player") < MAX_PLAYER_LEVEL and "XP" or "REP"
|
||||
elseif self.display == "FLEX" then
|
||||
mode = "REP"
|
||||
end
|
||||
@@ -122,7 +122,7 @@ end
|
||||
local mode = self.display
|
||||
if self.display == "XPFLEX" then
|
||||
self.faction = data.faction or nil
|
||||
mode = UnitLevel("player") < MAX_LEVEL and "XP" or "REP"
|
||||
mode = UnitLevel("player") < MAX_PLAYER_LEVEL and "XP" or "REP"
|
||||
elseif self.display == "FLEX" then
|
||||
self.faction = data.faction or nil
|
||||
mode = "REP"
|
||||
@@ -201,7 +201,7 @@ end
|
||||
|
||||
local barStrata = "LOW"
|
||||
local restedStrata = "MEDIUM"
|
||||
|
||||
|
||||
if C.panel.xp.dont_overlap == "1" then
|
||||
barStrata = "MEDIUM"
|
||||
restedStrata = "LOW"
|
||||
|
||||
Reference in New Issue
Block a user