diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml new file mode 100644 index 0000000..9bf57ca --- /dev/null +++ b/.github/workflows/package.yml @@ -0,0 +1,42 @@ +# description of this workflow, can be anything you want +name: Package and release + +# we need to let GitHub know _when_ we want to release, typically only when we create a new tag. +# this will target only tags, and not all pushes to the master branch. +# this part can be heavily customized to your liking, like targeting only tags that match a certain word, +# other branches or even pullrequests. +on: + push: + tags: + - '**' + +# a workflow is built up as jobs, and within these jobs are steps +jobs: + + # "release" is a job, you can name it anything you want + release: + + # we can run our steps on pretty much anything, but the "ubuntu-latest" image is a safe bet + runs-on: ubuntu-latest + + # specify the environment variables used by the packager, matching the secrets from the project on GitHub + env: + CF_API_KEY: ${{ secrets.CF_API_KEY }} + WAGO_API_TOKEN: ${{ secrets.WAGO_API_TOKEN }} + GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }} # "GITHUB_TOKEN" is a secret always provided to the workflow + # for your own token, the name cannot start with "GITHUB_" + + # "steps" holds a list of all the steps needed to package and release our AddOn + steps: + + # we first have to clone the AddOn project, this is a required step + - name: Clone project + uses: actions/checkout@v3 + with: + fetch-depth: 0 # gets entire git history, needed for automatic changelogs + + # once cloned, we just run the GitHub Action for the packager project + - name: Package and release + uses: BigWigsMods/packager@v2 + with: + args: -n {package-name}-{project-version}:{package-name}-{project-version} diff --git a/TranqRotate.toc b/TranqRotate.toc index 8a53836..e3357df 100644 --- a/TranqRotate.toc +++ b/TranqRotate.toc @@ -1,11 +1,14 @@ -## Interface: 11504 -## Title: TranqRotate |cff00aa002.2.9|r +## Interface: 11505, 20504 +## Title: TranqRotate |cff00aa002.2.10|r ## Notes: A tranqshot rotation assistant ## Author: Slivo -## Version: 2.2.9 +## Version: 2.2.10 ## SavedVariables: TranqRotateDb ## OptionalDeps: Ace3 +## X-Curse-Project-ID: 353296 +## X-Wago-ID: baNDJ8Ko + #@no-lib-strip@ libs\LibStub\LibStub.lua libs\CallbackHandler-1.0\CallbackHandler-1.0.xml diff --git a/TranqRotate_TBC.toc b/TranqRotate_TBC.toc deleted file mode 100644 index 68877bc..0000000 --- a/TranqRotate_TBC.toc +++ /dev/null @@ -1,40 +0,0 @@ -## Interface: 20504 -## Title: TranqRotate |cff00aa002.2.9|r -## Notes: A tranqshot rotation assistant -## Author: Slivo -## Version: 2.2.9 -## SavedVariables: TranqRotateDb -## OptionalDeps: Ace3 - -#@no-lib-strip@ -libs\LibStub\LibStub.lua -libs\CallbackHandler-1.0\CallbackHandler-1.0.xml -libs\AceDB-3.0\AceDB-3.0.xml -libs\AceDBOptions-3.0\AceDBOptions-3.0.xml -libs\AceGUI-3.0\AceGUI-3.0.xml -libs\AceConfig-3.0\AceConfig-3.0.xml -libs\AceComm-3.0\AceComm-3.0.xml -libs\AceSerializer-3.0\AceSerializer-3.0.xml -#@end-no-lib-strip@ - -locales\enUS.lua -locales\frFR.lua -locales\zhCN.lua -locales\zhTW.lua -locales\ruRU.lua - -src\tranqRotate.lua -src\events.lua -src\rotation.lua -src\constants.lua -src\frames.lua -src\gui.lua -src\dragdrop.lua -src\comms.lua -src\defaults.lua -src\settings.lua -src\utils.lua -src\debuff.lua -src\migration.lua -src\raidIcons.lua -src\encounter.lua diff --git a/changelog.md b/changelog.md index efcb005..11437fb 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,10 @@ ## TranqRotate Changelog +#### v2.2.10 + +- Update toc for 1.15.5 +- Add chat messages to explain the reason of an automated backup alert + #### v2.2.9 - Frenzy detection - update spell IDs to match Blizzard changes diff --git a/locales/enUS.lua b/locales/enUS.lua index 5fda013..c171a0d 100644 --- a/locales/enUS.lua +++ b/locales/enUS.lua @@ -139,6 +139,10 @@ local L = { ["PRINT_FAILED_TRANQ_RESIST"] = "%s's tranqshot was resisted!", ["PRINT_FAILED_TRANQ_MISS_OR_RESIST"] = "%s's tranqshot was missed or resisted!", + -- Incapacitated backup call printed messages + ["PRINT_INCAPACITATED_BACKUP_CALL"] = "Backup has been automatically requested because your were incapacitated", + ["PRINT_TIMED_BACKUP_CALL"] = "Backup has been automatically requested because your were too slow", + -- Version check printed messages ["VERSION_CHECK_HEADER"] = "Version check", ["VERSION_CHECK_YOU"] = "You", diff --git a/locales/frFR.lua b/locales/frFR.lua index c0aee19..4986bb7 100644 --- a/locales/frFR.lua +++ b/locales/frFR.lua @@ -141,6 +141,10 @@ local L = { ["PRINT_FAILED_TRANQ_RESIST"] = "Le tranqshot de %s a été résisté!", ["PRINT_FAILED_TRANQ_MISS_OR_RESIST"] = "Le tranqshot de %s a raté ou a été résisté!", + -- Incapacitated backup call printed messages + ["PRINT_INCAPACITATED_BACKUP_CALL"] = "Un backup a été demandé automatiquement parce que vous étiez \"paralysé\"", + ["PRINT_TIMED_BACKUP_CALL"] = "Un backup a été demandé automatiquement parce que vous avez mis trop de temps à tranq", + -- Version check printed messages ["VERSION_CHECK_HEADER"] = "Contrôle des versions", ["VERSION_CHECK_YOU"] = "Vous", diff --git a/locales/ruRU.lua b/locales/ruRU.lua index 4cc0d28..cd6e63a 100644 --- a/locales/ruRU.lua +++ b/locales/ruRU.lua @@ -141,6 +141,10 @@ local L = { ["PRINT_FAILED_TRANQ_RESIST"] = "%s's tranqshot was resisted!", ["PRINT_FAILED_TRANQ_MISS_OR_RESIST"] = "%s's tranqshot was missed or resisted!", + -- Incapacitated backup call printed messages + ["PRINT_INCAPACITATED_BACKUP_CALL"] = "Backup has been automatically requested because your were incapacitated", + ["PRINT_TIMED_BACKUP_CALL"] = "Backup has been automatically requested because your were too slow", + -- Version check printed messages ["VERSION_CHECK_HEADER"] = "Version check", ["VERSION_CHECK_YOU"] = "You", diff --git a/locales/zhCN.lua b/locales/zhCN.lua index 3896e27..f34164c 100644 --- a/locales/zhCN.lua +++ b/locales/zhCN.lua @@ -141,6 +141,10 @@ local L = { ["PRINT_FAILED_TRANQ_RESIST"] = "%s's tranqshot was resisted!", ["PRINT_FAILED_TRANQ_MISS_OR_RESIST"] = "%s's tranqshot was missed or resisted!", + -- Incapacitated backup call printed messages + ["PRINT_INCAPACITATED_BACKUP_CALL"] = "Backup has been automatically requested because your were incapacitated", + ["PRINT_TIMED_BACKUP_CALL"] = "Backup has been automatically requested because your were too slow", + -- Version check printed messages ["VERSION_CHECK_HEADER"] = "Version check", ["VERSION_CHECK_YOU"] = "You", diff --git a/locales/zhTW.lua b/locales/zhTW.lua index 73b60c8..971a766 100644 --- a/locales/zhTW.lua +++ b/locales/zhTW.lua @@ -141,6 +141,10 @@ local L = { ["PRINT_FAILED_TRANQ_RESIST"] = "%s's tranqshot was resisted!", ["PRINT_FAILED_TRANQ_MISS_OR_RESIST"] = "%s's tranqshot was missed or resisted!", + -- Incapacitated backup call printed messages + ["PRINT_INCAPACITATED_BACKUP_CALL"] = "Backup has been automatically requested because your were incapacitated", + ["PRINT_TIMED_BACKUP_CALL"] = "Backup has been automatically requested because your were too slow", + -- Version check printed messages ["VERSION_CHECK_HEADER"] = "Version check", ["VERSION_CHECK_YOU"] = "You", diff --git a/src/events.lua b/src/events.lua index ccbb496..1c4cfcc 100644 --- a/src/events.lua +++ b/src/events.lua @@ -75,6 +75,7 @@ function TranqRotate:COMBAT_LOG_EVENT_UNFILTERED() if (TranqRotate.db.profile.enableIncapacitatedBackupAlert and TranqRotate:isPlayedIncapacitatedByDebuff()) then TranqRotate:alertBackup(TranqRotate.db.profile.unableToTranqMessage) + TranqRotate:printPrefixedMessage(string.format(L['PRINT_INCAPACITATED_BACKUP_CALL'])) end end @@ -158,6 +159,7 @@ function TranqRotate:handleTimedAlert() C_Timer.After(TranqRotate.db.profile.timedBackupAlertDelay, function() if (TranqRotate.frenzy and TranqRotate:isPlayerNextTranq()) then TranqRotate:alertBackup(TranqRotate.db.profile.unableToTranqMessage) + TranqRotate:printPrefixedMessage(string.format(L['PRINT_TIMED_BACKUP_CALL'])) end end) end