You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
845 B

---@class DBMCoreNamespace
local private = select(2, ...)
private.wowTOC = (select(4, GetBuildInfo()))
private.testBuild = IsTestBuild()
private.isRetail = WOW_PROJECT_ID == (WOW_PROJECT_MAINLINE or 1)
private.isClassic = WOW_PROJECT_ID == (WOW_PROJECT_CLASSIC or 2)
private.isHardcoreServer = C_GameRules and C_GameRules.IsHardcoreActive and C_GameRules.IsHardcoreActive()
private.currentSeason = WOW_PROJECT_ID == (WOW_PROJECT_CLASSIC or 2) and C_Seasons and C_Seasons.HasActiveSeason() and C_Seasons.GetActiveSeason()
private.isBCC = WOW_PROJECT_ID == (WOW_PROJECT_BURNING_CRUSADE_CLASSIC or 5)
private.isWrath = WOW_PROJECT_ID == (WOW_PROJECT_WRATH_CLASSIC or 11)
private.isCata = WOW_PROJECT_ID == (WOW_PROJECT_CATACLYSM_CLASSIC or 14)
private.newShit = (private.wowTOC >= 11503) and not private.isWrath and not private.isBCC