Skip to content

Commit

Permalink
Move project ID checks to PallyPower.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
EsreverWoW committed Aug 29, 2022
1 parent d12ed70 commit 3905f86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions PallyPower.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
PallyPower = LibStub("AceAddon-3.0"):NewAddon("PallyPower", "AceConsole-3.0", "AceEvent-3.0", "AceBucket-3.0", "AceTimer-3.0")

PallyPower.isVanilla = (_G.WOW_PROJECT_ID == _G.WOW_PROJECT_CLASSIC)
PallyPower.isBCC = ((_G.WOW_PROJECT_ID == _G.WOW_PROJECT_BURNING_CRUSADE_CLASSIC) and select(4, GetBuildInfo()) < 30000)
PallyPower.isWrath = (select(4, GetBuildInfo()) >= 30400 and select(4, GetBuildInfo()) < 40000) -- TODO: Change when there is a project ID

local L = LibStub("AceLocale-3.0"):GetLocale("PallyPower")
local LSM3 = LibStub("LibSharedMedia-3.0")
local AceGUI = LibStub("AceGUI-3.0")
Expand Down
3 changes: 0 additions & 3 deletions PallyPowerValues.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ local L = LibStub("AceLocale-3.0"):GetLocale("PallyPower")
PallyPower.commPrefix = "PLPWR"
C_ChatInfo.RegisterAddonMessagePrefix(PallyPower.commPrefix)

PallyPower.isVanilla = (_G.WOW_PROJECT_ID == _G.WOW_PROJECT_CLASSIC)
PallyPower.isBCC = ((_G.WOW_PROJECT_ID == _G.WOW_PROJECT_BURNING_CRUSADE_CLASSIC) and select(4, GetBuildInfo()) < 30000)
PallyPower.isWrath = (select(4, GetBuildInfo()) >= 30400 and select(4, GetBuildInfo()) < 40000) -- TODO: Change when there is a project ID
PallyPower.petsShareBaseClass = PallyPower.isBCC or PallyPower.isWrath

PALLYPOWER_MAXCLASSES = PallyPower.isWrath and 10 or 9
Expand Down

0 comments on commit 3905f86

Please sign in to comment.