Skip to content

Commit

Permalink
Support Cataclysm Classic
Browse files Browse the repository at this point in the history
  • Loading branch information
parnic committed May 1, 2024
1 parent a721368 commit aebaa54
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,9 @@ jobs:
uses: BigWigsMods/packager@v2
with:
args: -g wrath -w 0

- name: Package and release for Cataclysm
uses: BigWigsMods/packager@v2
with:
args: -g cata -w 0

5 changes: 5 additions & 0 deletions Breakables.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,17 @@ local WowVer = select(4, GetBuildInfo())
local IsClassic = false
local IsClassicBC = false
local IsClassicWrath = false
local IsClassicCataclysm = false
if GetClassicExpansionLevel then
IsClassic = GetClassicExpansionLevel() == 0
IsClassicBC = GetClassicExpansionLevel() == 1
IsClassicWrath = GetClassicExpansionLevel() == 2
IsClassicCataclysm = GetClassicExpansionLevel() == 3
else
IsClassic = WOW_PROJECT_ID and WOW_PROJECT_ID == WOW_PROJECT_CLASSIC
IsClassicBC = false
IsClassicWrath = false
IsClassicCataclysm = false
if WOW_PROJECT_ID and WOW_PROJECT_ID == WOW_PROJECT_BURNING_CRUSADE_CLASSIC then
if not LE_EXPANSION_LEVEL_CURRENT or LE_EXPANSION_LEVEL_CURRENT == LE_EXPANSION_BURNING_CRUSADE then
IsClassicBC = true
Expand All @@ -59,6 +62,8 @@ else
end
elseif WOW_PROJECT_WRATH_CLASSIC and WOW_PROJECT_ID == WOW_PROJECT_WRATH_CLASSIC then
IsClassicWrath = true
elseif WOW_PROJECT_CATACLYSM_CLASSIC and WOW_PROJECT_ID == WOW_PROJECT_CATACLYSM_CLASSIC then
IsClassicCataclysm = true
end
end

Expand Down
1 change: 1 addition & 0 deletions Breakables.toc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Interface-Classic: 11502
## Interface-BCC: 20504
## Interface-Wrath: 30403
## Interface-Cata: 40400
## Author: Parnic
## Name: Breakables
## Title: Breakables |cff7fff7f-Ace3-|r
Expand Down
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v1.9.25:

- Support Cataclysm Classic 4.4.0

v1.9.24:

- Update TOCs
Expand Down

0 comments on commit aebaa54

Please sign in to comment.