Skip to content

Commit

Permalink
Merge pull request #1 from Therkelsen/develop
Browse files Browse the repository at this point in the history
First release PR
Added compats for:
AR-15 / M16 stuff
AWM
HK416
MP5K
SVD

Did NOT do compats for all the AK stuff. Might do it at another time.
  • Loading branch information
Therkelsen authored Jun 29, 2024
2 parents b22c072 + 1af75be commit 1b40cde
Show file tree
Hide file tree
Showing 10 changed files with 1,224 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/validate-json.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Validate JSON Files

on:
pull_request:
paths:
- '**.json'
workflow_dispatch:

jobs:
validate-json:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4 # Update to use Node.js 20

- name: Install jq
run: sudo apt-get update && sudo apt-get install -y jq

- name: Find and validate JSON files
run: |
find . -name "*.json" -type f | while read file; do
echo "Validating $file"
jq . "$file" > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo "Invalid JSON syntax in $file"
exit 1
fi
echo "Successfully validated $file"
done
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

*.zip
25 changes: 25 additions & 0 deletions Guns_YetAnotherPort_Miralyn/AKX.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"nothing_here_yet": {
"ItemID": "nothing_here_yet",
"Name": "maybe_ill_add_it_later",
"ModType": "",
"VerticalRecoil": 0,
"HorizontalRecoil": 0,
"Dispersion": 0,
"CameraRecoil": 0,
"AimSpeed": 0,
"Ergonomics": 0,
"Accuracy": 0,
"HasShoulderContact": true,
"BlocksFolding": false,
"AutoROF": 0,
"SemiROF": 0,
"ModMalfunctionChance": 0,
"StockAllowADS": false,
"ConflictingItems": [],
"Weight": 0,
"DurabilityBurnModificator": 0,
"LoyaltyLevel": 0,
"Price": 0
}
}
Loading

0 comments on commit 1b40cde

Please sign in to comment.