Skip to content

Commit 1b40cde

Browse files
authored
Merge pull request #1 from Therkelsen/develop
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.
2 parents b22c072 + 1af75be commit 1b40cde

File tree

10 files changed

+1224
-2
lines changed

10 files changed

+1224
-2
lines changed

.github/workflows/validate-json.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Validate JSON Files
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '**.json'
7+
workflow_dispatch:
8+
9+
jobs:
10+
validate-json:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4 # Update to use Node.js 20
16+
17+
- name: Install jq
18+
run: sudo apt-get update && sudo apt-get install -y jq
19+
20+
- name: Find and validate JSON files
21+
run: |
22+
find . -name "*.json" -type f | while read file; do
23+
echo "Validating $file"
24+
jq . "$file" > /dev/null 2>&1
25+
if [ $? -ne 0 ]; then
26+
echo "Invalid JSON syntax in $file"
27+
exit 1
28+
fi
29+
echo "Successfully validated $file"
30+
done

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
*.zip

Guns_YetAnotherPort_Miralyn/AKX.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"nothing_here_yet": {
3+
"ItemID": "nothing_here_yet",
4+
"Name": "maybe_ill_add_it_later",
5+
"ModType": "",
6+
"VerticalRecoil": 0,
7+
"HorizontalRecoil": 0,
8+
"Dispersion": 0,
9+
"CameraRecoil": 0,
10+
"AimSpeed": 0,
11+
"Ergonomics": 0,
12+
"Accuracy": 0,
13+
"HasShoulderContact": true,
14+
"BlocksFolding": false,
15+
"AutoROF": 0,
16+
"SemiROF": 0,
17+
"ModMalfunctionChance": 0,
18+
"StockAllowADS": false,
19+
"ConflictingItems": [],
20+
"Weight": 0,
21+
"DurabilityBurnModificator": 0,
22+
"LoyaltyLevel": 0,
23+
"Price": 0
24+
}
25+
}

0 commit comments

Comments
 (0)