Skip to content

Commit 65b6e5d

Browse files
authored
Merge branch 'development' into dpi-fix
2 parents 87af2ef + acb6059 commit 65b6e5d

File tree

11 files changed

+662
-359
lines changed

11 files changed

+662
-359
lines changed

.github/actions/bundle_release/action.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ runs:
2424
- name: Compress Linux Release
2525
shell: bash
2626
run: |
27+
chmod +x "release/CortexCommand (Linux)/CortexCommand.AppImage"
2728
zip --must-match -j CortexCommand.linux.zip \
2829
"release/CortexCommand (Linux)/CortexCommand.AppImage" \
2930
external/lib/linux/x86_64/libfmod.so*
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: 'Get Game version Version'
2+
description: 'Fetches the current game version from the source code'
3+
4+
inputs:
5+
version-file:
6+
description: 'The file containing the version string'
7+
required: false
8+
default: Source/System/GameVersion.h
9+
10+
outputs:
11+
game-version:
12+
description: 'The current version string'
13+
value: ${{ steps.read-version.outputs.game-version }}
14+
15+
runs:
16+
using: "composite"
17+
steps:
18+
- name: Get the current Game Version from the source code
19+
id: read-version
20+
run: echo "game-version=$(grep 'c_VersionString = ' ${{ inputs.version-file }} | awk -F'"' '{print $2}')" >> $GITHUB_OUTPUT
21+
shell: bash

.github/workflows/release.yaml

Lines changed: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@ name: Master Build and Release
22
# Controls when the action will run.
33
on:
44
workflow_dispatch:
5-
inputs:
6-
new_release_version:
7-
description: "New version number to release"
8-
type: string
9-
required: true
105

116
concurrency:
127
group: release-${{ github.ref_name }}
@@ -22,15 +17,13 @@ jobs:
2217
uses: ./.github/workflows/meson.yml
2318
with:
2419
upload_artefacts: true
25-
new_release_version: ${{ github.event.inputs.new_release_version }}
2620

2721
build-msbuild-releases:
2822
name: Windows Release Build
2923

3024
uses: ./.github/workflows/msbuild.yml
3125
with:
3226
upload_artefacts: true
33-
new_release_version: ${{ github.event.inputs.new_release_version }}
3427

3528
release:
3629
name: Publish Release
@@ -45,38 +38,30 @@ jobs:
4538
- name: fetch tags
4639
run: git fetch --tags origin
4740

48-
- name: Set Version
49-
if: ${{ github.event.inputs.new_release_version}}
50-
uses: ./.github/actions/set_version
51-
with:
52-
new_release_version: ${{ github.event.inputs.new_release_version}}
41+
- name: Get Release Version
42+
id: get-release-version
43+
uses: ./.github/actions/get-game-version
5344

5445
- name: Bundle release assets
5546
uses: ./.github/actions/bundle_release
5647

5748
- name: Create a new Release
5849
run: |
59-
gh release create v${{ github.event.inputs.new_release_version }} \
60-
--title "Release ${{ github.event.inputs.new_release_version }}" \
50+
gh release create v${{ steps.get-release-version.outputs.game-version }} \
51+
--title "Release v${{ steps.get-release-version.outputs.game-version }}" \
6152
--generate-notes \
6253
--draft \
6354
--target ${{ github.ref_name }} \
6455
${{format('--notes-start-tag {0}', env.LATEST_TAG) || ''}} \
65-
'CortexCommand.windows.zip#Cortex Command [v${{ github.event.inputs.new_release_version }}] (Windows Release)' \
66-
'CortexCommand.linux.zip#Cortex Command [v${{ github.event.inputs.new_release_version }}] (Linux Release)' \
67-
'CortexCommand.macos.zip#Cortex Command [v${{ github.event.inputs.new_release_version }}] (macOS Release)'
56+
'CortexCommand.windows.zip#Cortex Command [v${{ steps.get-release-version.outputs.game-version }}] (Windows Release)' \
57+
'CortexCommand.linux.zip#Cortex Command [v${{ steps.get-release-version.outputs.game-version }}] (Linux Release)' \
58+
'CortexCommand.macos.zip#Cortex Command [v${{ steps.get-release-version.outputs.game-version }}] (macOS Release)'
6859
env:
6960
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7061

7162
- name: Commit and push Version Changes and Update latest tag
7263
shell: bash
7364
run: |
74-
git config --global user.email "[email protected]"
75-
git config --global user.name "GitHub Action"
76-
git add Source/System/GameVersion.h meson.build
77-
git commit -m "Release v${{ inputs.new_release_version }}" || echo "No changes to commit"
78-
git push
79-
8065
RELEASE_COMMIT=$(git rev-parse HEAD)
8166
curl -X PATCH \
8267
-H "Authorization: Bearer ${{ secrets.WORKFLOW_TOKEN }}" \
@@ -86,5 +71,4 @@ jobs:
8671
"sha": "'"$RELEASE_COMMIT"'",
8772
"ref": "${{ github.ref }}"
8873
}'
89-
env:
90-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}}
74+

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1212

1313
<details><summary><b>Changed</b></summary>
1414

15+
- Nerfed the Coalition Grenade Launcher and the Devastator a tiny bit. They are still scary and the Devastator can still one-shot most things on a good hit, but they did not need to be that oppressive.
16+
1517
</details>
1618

1719
<details><summary><b>Fixed</b></summary>
1820

21+
- Reverted a change to pathfinding, that although was technically accurate, caused issues with the AI being too eager to path up-and-over obstacles instead of through them. In the future this will likely be revisited when we get jump-aware pathfinding.
22+
1923
</details>
2024

2125
<details><summary><b>Removed</b></summary>

Data/Coalition.rte/Devices/Weapons/GrenadeLauncher/GrenadeLauncher.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,15 @@ AddEffect = MOSRotating
8686
AddGib = Gib
8787
GibParticle = MOSParticle
8888
CopyOf = Grenade Smoke 2
89-
Count = 18
89+
Count = 9
9090
MaxVelocity = 50
9191
MinVelocity = 25
9292
LifeVariation = 0.50
9393
InheritsVel = 0
9494
AddGib = Gib
9595
GibParticle = MOPixel
9696
CopyOf = Grenade Fragment Gray
97-
Count = 18
97+
Count = 9
9898
MaxVelocity = 80
9999
MinVelocity = 40
100100
InheritsVel = 0
@@ -115,7 +115,7 @@ AddEffect = MOSRotating
115115
AddGib = Gib
116116
GibParticle = MOPixel
117117
CopyOf = Particle Very Heavy Digger Damage
118-
Count = 25
118+
Count = 5
119119
MaxVelocity = 50
120120
MinVelocity = 25
121121
InheritsVel = 0

Data/Imperatus.rte/Devices/Weapons/Devastator/Devastator.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,23 +47,23 @@ AddEffect = MOSRotating
4747
AddGib = Gib
4848
GibParticle = MOPixel
4949
CopyOf = Grenade Fragment Gray
50-
Count = 20
50+
Count = 10
5151
MinVelocity = 75
5252
MaxVelocity = 100
5353
InheritsVel = 0.3
5454
LifeVariation = 0.20
5555
AddGib = Gib
5656
GibParticle = MOPixel
5757
CopyOf = Grenade Fragment Yellow
58-
Count = 20
58+
Count = 10
5959
MinVelocity = 90
6060
MaxVelocity = 120
6161
InheritsVel = 0.3
6262
LifeVariation = 0.20
6363
AddGib = Gib
6464
GibParticle = MOPixel
6565
CopyOf = Grenade Fragment Scripted
66-
Count = 20
66+
Count = 10
6767
MinVelocity = 80
6868
MaxVelocity = 110
6969
InheritsVel = 0.5
@@ -121,7 +121,7 @@ AddEffect = MOSRotating
121121
AddGib = Gib
122122
GibParticle = MOPixel
123123
CopyOf = Particle Very Heavy Digger Damage
124-
Count = 25
124+
Count = 3
125125
MaxVelocity = 50
126126
MinVelocity = 25
127127
InheritsVel = 0.3

0 commit comments

Comments
 (0)