diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 6e07988..21c24da 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -84,3 +84,18 @@ jobs: env: NODE_OPTIONS: '--experimental-fetch' + - name: Announce Release + uses: tsickert/discord-webhook@v7.0.0 + with: + webhook-url: ${{ secrets.WEBHOOK_URL }} + content: "New Beta Release" + username: "Spearhead Release Bot" + #TODO: avatar-url spearhead avatar + thread-id: 1538520596802175037 + embed-title: "Spearhead Release" + embed-color: 3093247 + embed-description: + ${{ steps.release_notes.outputs.body }} + embed-url: + https://git.dutchie031.com/Spearhead/spearhead/releases/tag/${{ steps.read_version.outputs.tag }} + diff --git a/RELEASENOTES.md b/RELEASENOTES.md index 0637357..effc01c 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -5,6 +5,16 @@ ### New Features +### Bug Fixes + +## [0.13.0] 2026-08 + +A good first release that finally has all major bugs fixed that were caused by the migration from both the underlying script transpiler and the migration to Gitea.
+ +### Breaking Changes + +### New Features + - Issue #26 Possibility to have Stage Overview briefings (which include current missions sorted by distance) to be shown on spawning of a player. PR #31 diff --git a/src/classes/stageClasses/drawings/helper/DrawingHelper.lua b/src/classes/stageClasses/drawings/helper/DrawingHelper.lua index 67fdd87..8432890 100644 --- a/src/classes/stageClasses/drawings/helper/DrawingHelper.lua +++ b/src/classes/stageClasses/drawings/helper/DrawingHelper.lua @@ -269,6 +269,11 @@ end ---@param rgba table ---@return string function DrawingHelper.ColorTableToColorString(rgba) + if rgba == nil or #rgba < 4 or rgba[1] == nil or rgba[2] == nil or rgba[3] == nil or rgba[4] == nil then + drawingLogger:warn("ColorTableToColorString called with invalid rgba table, returning default color string '0x00000000'") + return "0x00000000" + end + local r = string.format("%02X", math.floor(rgba[1] * 255)) local g = string.format("%02X", math.floor(rgba[2] * 255)) local b = string.format("%02X", math.floor(rgba[3] * 255)) diff --git a/version.txt b/version.txt index aac2dac..51de330 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.12.1 \ No newline at end of file +0.13.0 \ No newline at end of file