Skip to content

Commit

Permalink
Merge branch 'CleverRaven:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
BX442 authored Apr 9, 2024
2 parents ab04888 + e37e471 commit 8a2ec29
Show file tree
Hide file tree
Showing 74 changed files with 846 additions and 783 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CBA.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
ClangBuildAnalyzer --stop . buildAnalysis
- name: Analyze
run: ClangBuildAnalyzer --analyze buildAnalysis
- uses: actions/upload-artifact@v3.1.2
- uses: actions/upload-artifact@v4
with:
name: ClangBuildAnalyzer-traces
path: "**/obj/*.json"
2 changes: 1 addition & 1 deletion .github/workflows/astyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
cancel_others: 'true'
paths: '[".github/workflows/astyle.yml", "Makefile", ".astylerc", "**.cpp", "**.h", "**.c"]'
- run: echo ${{ github.event.number }} > pull_request_id
- uses: actions/upload-artifact@v3.1.2
- uses: actions/upload-artifact@v4
with:
name: pull_request_id
path: pull_request_id
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-branch-name.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
if: github.head_ref == 'master' && github.repository == 'CleverRaven/Cataclysm-DDA'
steps:
- name: Post warning
uses: actions/github-script@v6.3.3
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/clang-tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
run: bash ./build-scripts/requirements.sh
- name: determine changed files
if: ${{ github.event_name == 'pull_request' }}
uses: actions/github-script@v6.3.3
uses: actions/github-script@v7
with:
script: |
var fs = require('fs');
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/comment-commands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
uses: actions/checkout@v4

- name: Set-up Comvent
uses: rytswd/comvent@v0.5.2
uses: rytswd/comvent@main
id: comvent
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
uses: actions/checkout@v4

- name: Set-up Comvent
uses: rytswd/comvent@v0.5.2
uses: rytswd/comvent@main
id: comvent
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/detect-translation-file-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: "Detect translation file changes"
uses: actions/github-script@v6.3.3
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/format_emscripten.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
run: ls -a

- name: Upload zipped html as artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: formatter
path: formatter.html
Expand All @@ -40,7 +40,7 @@ jobs:
with:
ref: gh-pages

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v3.1.4
with:
name: formatter

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/json.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
cancel_others: 'true'
paths: '["**.json", ".github/workflows/json.yml"]'
- run: echo ${{ github.event.number }} > pull_request_id
- uses: actions/upload-artifact@v3.1.2
- uses: actions/upload-artifact@v4
with:
name: pull_request_id
path: pull_request_id
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -333,18 +333,18 @@ jobs:
echo ${{ github.event.number }} > pull_request_id
echo "false" > ${{ env.ARCHIVE_SUCCESS }}
if: ${{ env.ARCHIVE_SUCCESS && failure() }}
- uses: actions/upload-artifact@v3.1.2
- uses: actions/upload-artifact@v4
if: ${{ always() && env.ARCHIVE_SUCCESS }}
with:
name: pull_request_id
path: pull_request_id
- uses: actions/upload-artifact@v3.1.2
- uses: actions/upload-artifact@v4
if: ${{ always() && env.ARCHIVE_SUCCESS }}
with:
name: ${{ env.ARCHIVE_SUCCESS }}
path: ${{ env.ARCHIVE_SUCCESS }}
- name: upload artifacts if failed
uses: actions/upload-artifact@v3.1.2
uses: actions/upload-artifact@v4
if: failure()
with:
name: cata_test
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/msvc-full-features.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
make
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.3.1
uses: microsoft/setup-msbuild@v2

- name: Use GNU tar to enable zstd for actions/cache
run: |
Expand All @@ -91,7 +91,7 @@ jobs:
vcpkg integrate install --vcpkg-root '${{ runner.workspace }}\b\vcpkg'
- name: Download ccache
uses: robinraju/release-downloader@v1.4
uses: robinraju/release-downloader@v1.9
with:
repository: 'ccache/ccache'
tag: 'v4.6.1'
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/post-spell-check-result.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ jobs:
github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Download pr id artifact
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v3.1.4
with:
workflow: ${{ github.event.workflow_run.name }}
run_id: ${{ github.event.workflow_run.id }}
name: pull_request_id
- name: Download spell check retcode artifact
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v3.1.4
with:
workflow: ${{ github.event.workflow_run.name }}
run_id: ${{ github.event.workflow_run.id }}
Expand All @@ -32,14 +32,14 @@ jobs:
run: echo "spell-check-retcode=$( cat spell_check_retcode )" >> $GITHUB_OUTPUT
- name: Download spell check output artifact
if: steps.set-spell-check-retcode.outputs.spell-check-retcode >= 1
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v3.1.4
with:
workflow: ${{ github.event.workflow_run.name }}
run_id: ${{ github.event.workflow_run.id }}
name: spell_check_output
- name: 'Comment on PR'
if: steps.set-spell-check-retcode.outputs.spell-check-retcode >= 1
uses: actions/github-script@v6.3.3
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
run: |
curl -sL https://github.com/transifex/cli/releases/download/v1.6.4/tx-linux-amd64.tar.gz | sudo tar zxvf - -C /usr/bin tx
- name: "Delete existing i18n branch"
uses: actions/github-script@v6.3.3
uses: actions/github-script@v7
with:
github-token: ${{ secrets.TX_PR_CREATOR }}
script: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ jobs:
uses: lukka/get-cmake@latest
- name: Install dependencies (windows msvc) (1/4)
if: runner.os == 'Windows'
uses: microsoft/setup-msbuild@v1.3.1
uses: microsoft/setup-msbuild@v2
- name: Install dependencies (windows msvc) (2/4)
if: runner.os == 'Windows'
uses: lukka/run-vcpkg@v11
Expand Down Expand Up @@ -249,7 +249,7 @@ jobs:
uses: mymindstorm/setup-emsdk@v13
- name: Install runtime dependencies (mac)
if: runner.os == 'macOS'
uses: BrettDong/setup-sdl2-frameworks@v1
uses: BrettDong/setup-sdl2-frameworks@v2
with:
sdl2: latest
sdl2-ttf: latest
Expand Down Expand Up @@ -297,7 +297,7 @@ jobs:
(cd build && zip ../cdda-${{ matrix.artifact }}-${{ needs.release.outputs.timestamp }}.${{ matrix.ext }} *)
- name: Login to GitHub Container Registry
if: matrix.artifact == 'windows-objectcreator-x64' || matrix.artifact == 'linux-objectcreator-x64'
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand Down Expand Up @@ -357,7 +357,7 @@ jobs:
mv Cataclysm.dmg cdda-${{ matrix.artifact }}-${{ needs.release.outputs.timestamp }}.dmg
- name: Set up JDK 8 (android)
if: runner.os == 'Linux' && matrix.android != 'none' && matrix.mxe == 'none'
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'adopt'
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test_labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
fi
- name: Download success artifact from basic build
if: ${{ github.event.workflow_run.name == 'General build matrix' }}
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v3.1.4
with:
workflow: ${{ github.event.workflow_run.name }}
run_id: ${{ github.event.workflow_run.id }}
Expand All @@ -33,7 +33,7 @@ jobs:
id: set-basic-build-success
run: echo "basic-build-success=$( cat basic-build )" >> $GITHUB_OUTPUT
- name: Download pr id artifact
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v3.1.4
with:
workflow: ${{ github.event.workflow_run.name }}
run_id: ${{ github.event.workflow_run.id }}
Expand All @@ -43,7 +43,7 @@ jobs:
run: echo "pr-id=$( cat pull_request_id )" >> $GITHUB_OUTPUT
- name: set-label
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.conclusion != 'skipped' || steps.set-basic-build-success.outputs.basic-build-success == 'true' }}
uses: actions/github-script@v6.3.3
uses: actions/github-script@v7
with:
script: |
if ('${{ steps.set-pr-id.outputs.pr-id }}'.trim().length == 0) {
Expand All @@ -58,7 +58,7 @@ jobs:
}
- name: remove-label
if: ${{ github.event.workflow_run.conclusion == 'failure' && steps.set-basic-build-success.outputs.basic-build-success != 'true' }}
uses: actions/github-script@v6.3.3
uses: actions/github-script@v7
with:
script: |
if ('${{ steps.set-pr-id.outputs.pr-id }}'.trim().length == 0) {
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/text-changes-analyzer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ jobs:
wc -c spell_check_output | grep -o '[0-9]*' > spell_check_retcode
echo "length=$(cat spell_check_retcode)" >> $GITHUB_OUTPUT
- run: echo ${{ github.event.number }} > pull_request_id
- uses: actions/upload-artifact@v3.1.2
- uses: actions/upload-artifact@v4
with:
name: pull_request_id
path: pull_request_id
- uses: actions/upload-artifact@v3.1.2
- uses: actions/upload-artifact@v4
with:
name: spell_check_retcode
path: spell_check_retcode
- uses: actions/upload-artifact@v3.1.2
- uses: actions/upload-artifact@v4
if: steps.get_length.outputs.length >= 1
with:
name: spell_check_output
Expand Down
4 changes: 2 additions & 2 deletions data/json/items/armor/storage.json
Original file line number Diff line number Diff line change
Expand Up @@ -2637,8 +2637,8 @@
"pocket_data": [
{
"pocket_type": "CONTAINER",
"max_contains_volume": "25 L",
"max_contains_weight": "30 kg",
"max_contains_volume": "15 L",
"max_contains_weight": "15 kg",
"max_item_length": "60 cm",
"moves": 300
}
Expand Down
26 changes: 13 additions & 13 deletions data/json/mutations/mutations.json
Original file line number Diff line number Diff line change
Expand Up @@ -1130,7 +1130,7 @@
"sleepiness": true,
"kcal": true,
"thirst": true,
"enchantments": [ { "values": [ { "value": "MOVE_COST", "multiply": -0.1 }, { "value": "BONUS_DODGE", "add": 2 } ] } ]
"enchantments": [ { "values": [ { "value": "MOVE_COST", "multiply": -0.1 }, { "value": "DODGE_CHANCE", "add": 2 } ] } ]
},
{
"type": "mutation",
Expand Down Expand Up @@ -4705,7 +4705,7 @@
"restricts_gear": [ "leg_hip_l", "leg_hip_r" ],
"allowed_items": [ "ALLOWS_TAIL" ],
"allow_soft_gear": true,
"enchantments": [ { "values": [ { "value": "BONUS_DODGE", "add": 2 } ] } ]
"enchantments": [ { "values": [ { "value": "DODGE_CHANCE", "add": 2 } ] } ]
},
{
"type": "mutation",
Expand All @@ -4721,7 +4721,7 @@
"restricts_gear": [ "leg_hip_l", "leg_hip_r" ],
"allowed_items": [ "ALLOWS_TAIL" ],
"allow_soft_gear": true,
"enchantments": [ { "values": [ { "value": "BONUS_DODGE", "add": 1 } ] } ]
"enchantments": [ { "values": [ { "value": "DODGE_CHANCE", "add": 1 } ] } ]
},
{
"type": "mutation",
Expand All @@ -4737,7 +4737,7 @@
"restricts_gear": [ "leg_hip_l", "leg_hip_r" ],
"allowed_items": [ "ALLOWS_TAIL" ],
"allow_soft_gear": true,
"enchantments": [ { "values": [ { "value": "BONUS_DODGE", "add": 2 } ] } ]
"enchantments": [ { "values": [ { "value": "DODGE_CHANCE", "add": 2 } ] } ]
},
{
"type": "mutation",
Expand All @@ -4760,7 +4760,7 @@
"chance": 20,
"base_damage": { "damage_type": "bash", "amount": 8 }
},
"enchantments": [ { "values": [ { "value": "BONUS_DODGE", "add": 1 } ] } ]
"enchantments": [ { "values": [ { "value": "DODGE_CHANCE", "add": 1 } ] } ]
},
{
"type": "mutation",
Expand Down Expand Up @@ -4799,7 +4799,7 @@
"restricts_gear": [ "leg_hip_l", "leg_hip_r" ],
"allowed_items": [ "ALLOWS_TAIL" ],
"allow_soft_gear": true,
"enchantments": [ { "values": [ { "value": "BONUS_DODGE", "add": 3 } ] } ]
"enchantments": [ { "values": [ { "value": "DODGE_CHANCE", "add": 3 } ] } ]
},
{
"type": "mutation",
Expand All @@ -4815,7 +4815,7 @@
"allowed_items": [ "ALLOWS_TAIL" ],
"allow_soft_gear": true,
"social_modifiers": { "lie": -20, "persuade": 10 },
"enchantments": [ { "values": [ { "value": "BONUS_DODGE", "add": 4 } ] } ]
"enchantments": [ { "values": [ { "value": "DODGE_CHANCE", "add": 4 } ] } ]
},
{
"type": "mutation",
Expand Down Expand Up @@ -6129,7 +6129,7 @@
"enchantments": [
{
"values": [
{ "value": "BONUS_DODGE", "add": 1 },
{ "value": "DODGE_CHANCE", "add": 1 },
{ "value": "MAX_HP", "multiply": -0.05 },
{ "value": "STOMACH_SIZE_MULTIPLIER", "multiply": -0.5 },
{ "value": "CARRY_WEIGHT", "multiply": -0.2 }
Expand All @@ -6153,7 +6153,7 @@
"enchantments": [
{
"values": [
{ "value": "BONUS_DODGE", "add": 2 },
{ "value": "DODGE_CHANCE", "add": 2 },
{ "value": "MAX_HP", "multiply": -0.3 },
{ "value": "FOOTSTEP_NOISE", "multiply": -1 },
{ "value": "CARRY_WEIGHT", "multiply": -0.5 },
Expand All @@ -6179,7 +6179,7 @@
"enchantments": [
{
"values": [
{ "value": "BONUS_DODGE", "add": 2 },
{ "value": "DODGE_CHANCE", "add": 2 },
{ "value": "MAX_HP", "multiply": -0.25 },
{ "value": "FOOTSTEP_NOISE", "multiply": -1 },
{ "value": "STOMACH_SIZE_MULTIPLIER", "multiply": -0.5 },
Expand Down Expand Up @@ -6404,7 +6404,7 @@
"category": [ "INSECT" ],
"restricts_gear": [ "torso" ],
"social_modifiers": { "lie": 15, "persuade": 5, "intimidate": -20 },
"enchantments": [ { "values": [ { "value": "MOVE_COST", "multiply": -0.1 }, { "value": "BONUS_DODGE", "add": -4 } ] } ],
"enchantments": [ { "values": [ { "value": "MOVE_COST", "multiply": -0.1 }, { "value": "DODGE_CHANCE", "add": -4 } ] } ],
"flags": [ "WINGS_1" ]
},
{
Expand Down Expand Up @@ -6742,7 +6742,7 @@
{ "value": "ATTACK_SPEED", "multiply": 0.05 },
{ "value": "MAX_HP", "add": 4 },
{ "value": "MOVECOST_SWIM_MOD", "multiply": 0.2 },
{ "value": "BONUS_DODGE", "add": -1 },
{ "value": "DODGE_CHANCE", "add": -1 },
{ "value": "CARRY_WEIGHT", "multiply": 0.15 }
]
}
Expand Down Expand Up @@ -9186,7 +9186,7 @@
"points": 2,
"description": "You have fast reflexes, allowing you to dodge attacks more easily.",
"starting_trait": true,
"enchantments": [ { "values": [ { "value": "BONUS_DODGE", "add": 3 } ] } ],
"enchantments": [ { "values": [ { "value": "DODGE_CHANCE", "add": 3 } ] } ],
"category": [ "FELINE" ]
},
{
Expand Down
Loading

0 comments on commit 8a2ec29

Please sign in to comment.