Skip to content

Commit

Permalink
Update for BCC (closes #1)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ketho committed May 19, 2021
1 parent ecd1777 commit 64f4620
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 15 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ jobs:

- uses: BigWigsMods/packager@master
with:
args: -g 1.13.5
args: -g classic

- uses: BigWigsMods/packager@master
with:
args: -g bc

- uses: BigWigsMods/packager@master
8 changes: 4 additions & 4 deletions .pkgmeta
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package-as: SimpleDing

externals:
Libs/LibStub: svn://svn.wowace.com/wow/ace3/mainline/trunk/LibStub
Libs/CallbackHandler-1.0: svn://svn.wowace.com/wow/callbackhandler/mainline/trunk/CallbackHandler-1.0
Libs/AceConfig-3.0: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceConfig-3.0
Libs/AceGUI-3.0: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceGUI-3.0
Libs/LibStub: https://repos.wowace.com/wow/libstub/trunk
Libs/CallbackHandler-1.0: https://repos.wowace.com/wow/callbackhandler/trunk/CallbackHandler-1.0
Libs/AceConfig-3.0: https://repos.curseforge.com/wow/ace3/trunk/AceConfig-3.0
Libs/AceGUI-3.0: https://repos.curseforge.com/wow/ace3/trunk/AceGUI-3.0
8 changes: 4 additions & 4 deletions SimpleDing.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ local curTPM2, totalTPM2
local crop = ":64:64:4:60:4:60"
local args = {}

local isClassic = (WOW_PROJECT_ID == WOW_PROJECT_CLASSIC)
local isRetail = (WOW_PROJECT_ID == WOW_PROJECT_MAINLINE)

local function GetCompatMaxLevel()
if isClassic then
return MAX_PLAYER_LEVEL_TABLE[GetExpansionLevel()]
else
if isRetail then
return GetMaxLevelForPlayerExpansion()
else
return MAX_PLAYER_LEVEL_TABLE[GetExpansionLevel()]
end
end

Expand Down
9 changes: 3 additions & 6 deletions SimpleDing.toc
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#@retail@
## Interface: 90001
#@end-retail@
#@non-retail@
# ## Interface: 11305
#@end-non-retail@
## Interface-Retail: 90005
## Interface-Classic: 11307
## Interface-BC: 20501
## Version: @project-version@
## Title: SimpleDing
## Notes: Ding!
Expand Down

0 comments on commit 64f4620

Please sign in to comment.