Skip to content

Commit

Permalink
Give all automatic rifles the martial art weapon category (#53767)
Browse files Browse the repository at this point in the history
Anything that copies from rifle_semi or rifle_auto will be usable with Krav Maga by default, and any other martial arts that use AUTOMATIC_RIFLES

Co-authored-by: Kevin Granade <[email protected]>
  • Loading branch information
AdamChirnside and kevingranade authored Jan 21, 2022
1 parent cb265d0 commit 2b15889
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 18 deletions.
2 changes: 2 additions & 0 deletions data/json/items/classes/gun.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,14 @@
"abstract": "rifle_semi",
"copy-from": "rifle_base",
"type": "GUN",
"weapon_category": [ "AUTOMATIC_RIFLES" ],
"name": { "str": "semi-automatic rifle" }
},
{
"abstract": "rifle_auto",
"copy-from": "rifle_base",
"type": "GUN",
"weapon_category": [ "AUTOMATIC_RIFLES" ],
"name": { "str": "fully automatic rifle" }
},
{
Expand Down
7 changes: 0 additions & 7 deletions data/json/items/gun/223.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"dispersion": 150,
"durability": 7,
"min_cycle_recoil": 1350,
"weapon_category": [ "AUTOMATIC_RIFLES" ],
"pocket_data": [
{
"pocket_type": "MAGAZINE_WELL",
Expand Down Expand Up @@ -225,7 +224,6 @@
"durability": 8,
"min_cycle_recoil": 1350,
"modes": [ [ "DEFAULT", "semi-auto", 1 ], [ "AUTO", "auto", 4 ] ],
"weapon_category": [ "AUTOMATIC_RIFLES" ],
"pocket_data": [
{
"pocket_type": "MAGAZINE_WELL",
Expand Down Expand Up @@ -387,7 +385,6 @@
"durability": 6,
"min_cycle_recoil": 1350,
"modes": [ [ "DEFAULT", "semi-auto", 1 ], [ "AUTO", "auto", 4 ] ],
"weapon_category": [ "AUTOMATIC_RIFLES" ],
"pocket_data": [
{
"pocket_type": "MAGAZINE_WELL",
Expand Down Expand Up @@ -440,7 +437,6 @@
"durability": 7,
"min_cycle_recoil": 1350,
"modes": [ [ "DEFAULT", "semi-auto", 1 ], [ "BURST", "3 rd.", 3 ] ],
"weapon_category": [ "AUTOMATIC_RIFLES" ],
"pocket_data": [
{
"pocket_type": "MAGAZINE_WELL",
Expand Down Expand Up @@ -483,7 +479,6 @@
"description": "This is a shorter M4 carbine with a 10.3 inch barrel, intended for confined spaces and close quarters battle situations."
}
],
"weapon_category": [ "AUTOMATIC_RIFLES" ],
"modes": [ [ "DEFAULT", "semi-auto", 1 ], [ "AUTO", "auto", 4 ] ]
},
{
Expand Down Expand Up @@ -620,7 +615,6 @@
[ "stock mount", 1 ],
[ "underbarrel mount", 1 ]
],
"weapon_category": [ "AUTOMATIC_RIFLES" ],
"pocket_data": [
{
"pocket_type": "MAGAZINE_WELL",
Expand Down Expand Up @@ -726,7 +720,6 @@
[ "sling", 1 ],
[ "underbarrel", 1 ]
],
"weapon_category": [ "AUTOMATIC_RIFLES" ],
"pocket_data": [
{ "pocket_type": "MAGAZINE_WELL", "item_restriction": [ "augmag_30rd", "augmag_10rd", "augmag_42rd", "augmag_100rd" ] }
]
Expand Down
2 changes: 0 additions & 2 deletions data/json/items/gun/300BLK.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"modes": [ [ "DEFAULT", "semi-auto", 1 ], [ "AUTO", "auto", 4 ] ],
"barrel_volume": "250 ml",
"built_in_mods": [ "folding_stock" ],
"weapon_category": [ "AUTOMATIC_RIFLES" ],
"pocket_data": [
{
"pocket_type": "MAGAZINE_WELL",
Expand Down Expand Up @@ -82,7 +81,6 @@
[ "sling", 1 ],
[ "underbarrel", 1 ]
],
"weapon_category": [ "AUTOMATIC_RIFLES" ],
"pocket_data": [
{
"pocket_type": "MAGAZINE_WELL",
Expand Down
7 changes: 0 additions & 7 deletions data/json/items/gun/308.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"min_cycle_recoil": 2700,
"modes": [ [ "DEFAULT", "semi-auto", 1 ], [ "AUTO", "auto", 4 ] ],
"barrel_volume": "500 ml",
"weapon_category": [ "AUTOMATIC_RIFLES" ],
"pocket_data": [ { "pocket_type": "MAGAZINE_WELL", "item_restriction": [ "falmag", "falbigmag", "fal_makeshiftmag" ] } ]
},
{
Expand All @@ -49,7 +48,6 @@
"min_cycle_recoil": 2700,
"durability": 8,
"modes": [ [ "DEFAULT", "semi-auto", 1 ], [ "BURST", "3 rd.", 3 ], [ "AUTO", "auto", 4 ] ],
"weapon_category": [ "AUTOMATIC_RIFLES" ],
"pocket_data": [ { "pocket_type": "MAGAZINE_WELL", "item_restriction": [ "g3mag", "g3bigmag", "g3_makeshiftmag" ] } ]
},
{
Expand Down Expand Up @@ -148,7 +146,6 @@
[ "stock mount", 1 ],
[ "underbarrel mount", 1 ]
],
"weapon_category": [ "AUTOMATIC_RIFLES" ],
"pocket_data": [ { "pocket_type": "MAGAZINE_WELL", "item_restriction": [ "m14mag", "m14smallmag", "m14_makeshiftmag" ] } ]
},
{
Expand Down Expand Up @@ -279,7 +276,6 @@
"ammo": [ "308" ],
"ranged_damage": { "damage_type": "bullet", "amount": -3 },
"min_cycle_recoil": 2700,
"weapon_category": [ "AUTOMATIC_RIFLES" ],
"pocket_data": [
{
"pocket_type": "MAGAZINE_WELL",
Expand Down Expand Up @@ -352,7 +348,6 @@
"min_cycle_recoil": 2700,
"modes": [ [ "DEFAULT", "semi-auto", 1 ], [ "AUTO", "auto", 4 ] ],
"default_mods": [ "adjustable_stock" ],
"weapon_category": [ "AUTOMATIC_RIFLES" ],
"pocket_data": [ { "pocket_type": "MAGAZINE_WELL", "item_restriction": [ "hk417mag_20rd", "hk417mag_10rd", "hk417_makeshiftmag" ] } ]
},
{
Expand All @@ -378,7 +373,6 @@
"durability": 8,
"min_cycle_recoil": 2700,
"default_mods": [ "adjustable_stock", "bipod", "rifle_scope", "suppressor" ],
"weapon_category": [ "AUTOMATIC_RIFLES" ],
"pocket_data": [ { "pocket_type": "MAGAZINE_WELL", "item_restriction": [ "hk417mag_20rd", "hk417mag_10rd", "hk417_makeshiftmag" ] } ]
},
{
Expand All @@ -403,7 +397,6 @@
"dispersion": 150,
"durability": 7,
"min_cycle_recoil": 2700,
"weapon_category": [ "AUTOMATIC_RIFLES" ],
"pocket_data": [ { "pocket_type": "MAGAZINE_WELL", "item_restriction": [ "ar10mag_20rd", "ar10_makeshiftmag" ] } ]
}
]
1 change: 0 additions & 1 deletion data/json/items/gun/545x39.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
[ "underbarrel", 1 ]
],
"flags": [ "NEVER_JAMS" ],
"weapon_category": [ "AUTOMATIC_RIFLES" ],
"pocket_data": [ { "pocket_type": "MAGAZINE_WELL", "item_restriction": [ "ak74mag", "rpk74mag", "casket74mag" ] } ]
},
{
Expand Down
1 change: 0 additions & 1 deletion data/json/items/gun/762.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
[ "stock", 1 ],
[ "underbarrel mount", 1 ]
],
"weapon_category": [ "AUTOMATIC_RIFLES" ],
"pocket_data": [ { "pocket_type": "MAGAZINE_WELL", "item_restriction": [ "akmag30", "akmag10", "akmag20", "akmag40", "akdrum75" ] } ]
},
{
Expand Down
1 change: 1 addition & 0 deletions data/json/items/obsolete.json
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@
"durability": 8,
"min_cycle_recoil": 1350,
"modes": [ [ "DEFAULT", "semi-auto", 1 ], [ "AUTO", "auto", 4 ] ],
"delete": { "weapon_category": [ "AUTOMATIC_RIFLES" ] },
"barrel_volume": "250 ml",
"built_in_mods": [ "folding_stock" ],
"pocket_data": [
Expand Down

0 comments on commit 2b15889

Please sign in to comment.