Skip to content

Commit

Permalink
Merge branch 'main' into CMMG-MkG-Guard
Browse files Browse the repository at this point in the history
  • Loading branch information
chaosvolt committed Jun 20, 2024
2 parents ec2e35c + 0e34548 commit 28abcfb
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 2 deletions.
12 changes: 12 additions & 0 deletions data/json/itemgroups/Weapons_Mods_Ammo/everydaycarry_guns.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,18 @@
{ "group": "nested_glock22_mag", "charges-min": 0, "prob": 50 }
]
},
{
"id": "everyday_asr_10mm",
"type": "item_group",
"//": "this is a distribution for the gun, reasonable number of backup mags, and some ammo to repack",
"subtype": "collection",
"ammo": 100,
"entries": [
{ "item": "asr_10mm", "ammo-group": "on_hand_10mm", "charges": [ 0, 15 ] },
{ "group": "nested_glock20_mag", "charges-min": 0 },
{ "group": "nested_glock20_mag", "charges-min": 0, "prob": 50 }
]
},
{
"id": "everyday_m1911",
"type": "item_group",
Expand Down
3 changes: 3 additions & 0 deletions data/json/itemgroups/Weapons_Mods_Ammo/guns.json
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@
{ "group": "nested_ar10", "prob": 20 },
{ "group": "nested_ar15", "prob": 30 },
{ "group": "nested_cx4", "prob": 45 },
{ "group": "nested_asr_10mm", "prob": 15 },
{ "group": "nested_ksub2000", "prob": 30 },
{ "group": "nested_m1a", "prob": 50 },
{ "group": "nested_marlin_9a", "prob": 80 },
Expand All @@ -450,6 +451,7 @@
{ "group": "everyday_ar10", "prob": 20 },
{ "group": "everyday_ar15", "prob": 30 },
{ "group": "everyday_cx4", "prob": 45 },
{ "group": "everyday_asr_10mm", "prob": 15 },
{ "group": "everyday_ksub2000", "prob": 30 },
{ "group": "everyday_m1a", "prob": 50 },
{ "group": "everyday_marlin_9a", "prob": 80 },
Expand All @@ -475,6 +477,7 @@
{ "item": "ar10", "prob": 20, "charges-min": 0, "charges-max": 0 },
{ "item": "ar15", "prob": 30, "charges-min": 0, "charges-max": 0 },
{ "item": "cx4", "prob": 45, "charges-min": 0, "charges-max": 0 },
{ "item": "asr_10mm", "prob": 15, "charges-min": 0, "charges-max": 0 },
{ "item": "ksub2000", "prob": 30, "charges-min": 0, "charges-max": 0 },
{ "item": "m1a", "prob": 50, "charges-min": 0, "charges-max": 0 },
{ "item": "marlin_9a", "prob": 80, "charges-min": 0, "charges-max": 0 },
Expand Down
15 changes: 14 additions & 1 deletion data/json/itemgroups/Weapons_Mods_Ammo/nested_guns.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"subtype": "collection",
"ammo": 100,
"entries": [
{ "item": "glock_20", "ammo-group": "on_hand_10mm", "charges": [ 0, 6 ] },
{ "item": "glock_20", "ammo-group": "on_hand_10mm", "charges": [ 0, 15 ] },
{ "group": "nested_glock20_mag" },
{ "group": "nested_glock20_mag", "prob": 50 },
{ "group": "on_hand_10mm" }
Expand Down Expand Up @@ -78,6 +78,19 @@
{ "group": "on_hand_357sig" }
]
},
{
"id": "nested_asr_10mm",
"type": "item_group",
"//": "this is a distribution for the gun, reasonable number of backup mags, and some ammo to repack",
"subtype": "collection",
"ammo": 100,
"entries": [
{ "item": "asr_10mm", "ammo-group": "on_hand_10mm", "charges": [ 0, 15 ] },
{ "group": "nested_glock20_mag" },
{ "group": "nested_glock20_mag", "prob": 50 },
{ "group": "on_hand_10mm" }
]
},
{
"id": "nested_m1911",
"type": "item_group",
Expand Down
24 changes: 24 additions & 0 deletions data/json/items/gun/10mm.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,29 @@
"blackpowder_tolerance": 48,
"min_cycle_recoil": 570,
"magazines": [ [ "10mm", [ "glock20mag", "glock20bigmag", "glock20drum50rd" ] ] ]
},
{
"id": "asr_10mm",
"looks_like": "cx4",
"copy-from": "rifle_manual",
"type": "GUN",
"name": { "str": "TNW Aero Survival Rifle" },
"description": "A pistol caliber carbine made of aircraft aluminum. This is the 10mm version and can use Glock 20 magazines.",
"weight": "2580 g",
"volume": "1500 ml",
"price": "600 USD",
"price_postapoc": "50 USD",
"bashing": 8,
"material": [ "steel", "plastic" ],
"color": "dark_gray",
"ammo": "10mm",
"range": 20,
"ranged_damage": { "damage_type": "bullet", "amount": 2 },
"dispersion": 170,
"durability": 10,
"min_cycle_recoil": 500,
"barrel_length": "250 ml",
"magazine_well": "150 ml",
"magazines": [ [ "10mm", [ "glock20mag", "glock20bigmag", "glock20drum50rd" ] ] ]
}
]
2 changes: 1 addition & 1 deletion data/mods/Generic_Guns/firearms/gg_firearms_migration.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
"replace": "pistol_medium"
},
{
"id": [ "cx4", "hk_mp5_semi_pistol", "ksub2000", "calico", "mkg_guard" ],
"id": [ "asr_10mm", "cx4", "hk_mp5_semi_pistol", "ksub2000", "calico", "mkg_guard" ],
"type": "MIGRATION",
"replace": "pistol_pcc"
},
Expand Down

0 comments on commit 28abcfb

Please sign in to comment.