Skip to content

Commit

Permalink
Add Mossberg 590M (#74613)
Browse files Browse the repository at this point in the history
* add mossberg 590M

* Apply suggestions from code review

Co-authored-by: DoctorBoomstick <[email protected]>

* Update data/json/items/gun/shot.json

* move magazines to rare group

---------

Co-authored-by: DoctorBoomstick <[email protected]>
  • Loading branch information
GuardianDll and DoctorBoomstick authored Jun 18, 2024
1 parent 1e1ac5e commit 25727d8
Show file tree
Hide file tree
Showing 7 changed files with 184 additions and 4 deletions.
10 changes: 7 additions & 3 deletions data/json/itemgroups/Weapons_Mods_Ammo/guns.json
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,7 @@
{ "item": "benelli_sa", "variant": "sbe", "prob": 37 },
{ "item": "benelli_tsa", "variant": "m2_tac", "contents-item": [ "rail_mount" ], "prob": 12 },
{ "item": "mossberg_590", "variant": "slp", "contents-item": [ "rail_mount" ], "prob": 6 },
{ "item": "mossberg_590m", "prob": 1 },
{ "item": "remington_870", "variant": "ithaca37", "prob": 6 },
{ "item": "remington_870", "variant": "remington_1100", "prob": 17 },
{ "item": "mossberg_930", "prob": 15 },
Expand All @@ -564,7 +565,8 @@
{ "group": "nested_ksg", "prob": 50 },
{ "group": "nested_tavor_12", "prob": 5 },
{ "group": "nested_m1014", "prob": 10 },
{ "group": "nested_slp", "prob": 10 }
{ "group": "nested_slp", "prob": 10 },
{ "group": "nested_mossberg_590m", "prob": 2 }
]
},
{
Expand All @@ -577,7 +579,8 @@
{ "item": "ksg", "prob": 50, "charges": [ 0, 7 ] },
{ "item": "tavor_12", "prob": 5, "charges": [ 0, 5 ] },
{ "item": "mossberg_930", "variant": "m1014", "prob": 10, "charges": [ 0, 8 ] },
{ "item": "mossberg_590", "variant": "slp", "contents-item": [ "rail_mount" ], "prob": 10, "charges": [ 0, 9 ] }
{ "item": "mossberg_590", "variant": "slp", "contents-item": [ "rail_mount" ], "prob": 10, "charges": [ 0, 9 ] },
{ "item": "mossberg_590m", "prob": 2, "charges": [ 0, 5 ] }
]
},
{
Expand All @@ -589,7 +592,8 @@
{ "item": "ksg", "prob": 25 },
{ "item": "tavor_12", "prob": 5 },
{ "item": "mossberg_930", "variant": "m1014", "prob": 10 },
{ "item": "mossberg_590", "variant": "slp", "contents-item": [ "rail_mount" ], "prob": 10 }
{ "item": "mossberg_590", "variant": "slp", "contents-item": [ "rail_mount" ], "prob": 10 },
{ "item": "mossberg_590m", "prob": 2 }
]
},
{
Expand Down
6 changes: 5 additions & 1 deletion data/json/itemgroups/Weapons_Mods_Ammo/magazines.json
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,11 @@
{ "item": "saiga10mag", "prob": 50 },
{ "item": "saiga30mag", "prob": 10 },
{ "item": "saiga410mag_10rd", "prob": 30 },
{ "item": "saiga410mag_30rd", "prob": 10 }
{ "item": "saiga410mag_30rd", "prob": 10 },
{ "item": "mossberg_590m_mag_5", "prob": 3, "charges": 0 },
{ "item": "mossberg_590m_mag_10", "prob": 2, "charges": 0 },
{ "item": "mossberg_590m_mag_15", "prob": 1, "charges": 0 },
{ "item": "mossberg_590m_mag_20", "prob": 1, "charges": 0 }
]
},
{
Expand Down
30 changes: 30 additions & 0 deletions data/json/itemgroups/Weapons_Mods_Ammo/nested_guns.json
Original file line number Diff line number Diff line change
Expand Up @@ -2196,6 +2196,36 @@
"ammo": 100,
"entries": [ { "item": "mossberg_590", "charges": [ 0, 9 ] }, { "group": "on_hand_shot" } ]
},
{
"id": "nested_mossberg_590m",
"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": "mossberg_590", "charges": [ 0, 5 ] },
{ "item": "mossberg_590m_mag_10" },
{ "item": "mossberg_590m_mag_10", "prob": 50 },
{
"distribution": [
{ "collection": [ { "item": "mossberg_590m_mag_5" }, { "item": "mossberg_590m_mag_5", "prob": 50 } ], "prob": 3 },
{
"collection": [ { "item": "mossberg_590m_mag_10" }, { "item": "mossberg_590m_mag_10", "prob": 50 } ],
"prob": 2
},
{
"collection": [ { "item": "mossberg_590m_mag_15" }, { "item": "mossberg_590m_mag_15", "prob": 50 } ],
"prob": 1
},
{
"collection": [ { "item": "mossberg_590m_mag_20" }, { "item": "mossberg_590m_mag_20", "prob": 50 } ],
"prob": 1
}
]
},
{ "group": "on_hand_shot" }
]
},
{
"id": "nested_remington_870_breacher",
"type": "item_group",
Expand Down
42 changes: 42 additions & 0 deletions data/json/items/gun/shot.json
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,48 @@
],
"pocket_data": [ { "pocket_type": "MAGAZINE", "rigid": true, "ammo_restriction": { "shot": 9 } } ]
},
{
"id": "mossberg_590m",
"copy-from": "mossberg_590",
"looks_like": "mossberg_590",
"type": "GUN",
"name": { "str": "magazine-fed pump shotgun" },
"description": "A classic pump-action shotgun, all save for the fact that the manufacturer has modified it to use detachable box magazines instead of a standard shotgun tube.",
"variant_type": "gun",
"variants": [
{
"id": "mossberg_590",
"name": { "str": "Mossberg 590M shotgun" },
"description": "A classic Mossberg 590 pump-action shotgun, modified by the manufacturer to utilize box magazines."
}
],
"weight": "3628 g",
"volume": "2548 ml",
"longest_side": "1033 mm",
"barrel_length": "469 mm",
"price": "770 USD",
"price_postapoc": "19 USD",
"valid_mod_locations": [
[ "barrel", 1 ],
[ "bayonet lug", 1 ],
[ "brass catcher", 1 ],
[ "grip mount", 1 ],
[ "mechanism", 2 ],
[ "muzzle", 1 ],
[ "rail mount", 1 ],
[ "sights mount", 1 ],
[ "sling", 1 ],
[ "stock mount", 1 ],
[ "stock accessory", 2 ],
[ "underbarrel mount", 1 ]
],
"pocket_data": [
{
"pocket_type": "MAGAZINE_WELL",
"item_restriction": [ "mossberg_590m_mag_5", "mossberg_590m_mag_10", "mossberg_590m_mag_15", "mossberg_590m_mag_20" ]
}
]
},
{
"id": "mossberg_930",
"copy-from": "shotgun_base",
Expand Down
95 changes: 95 additions & 0 deletions data/json/items/magazine/shot.json
Original file line number Diff line number Diff line change
Expand Up @@ -160,5 +160,100 @@
"ammo_type": [ "shot" ],
"flags": [ "MAG_COMPACT" ],
"pocket_data": [ { "pocket_type": "MAGAZINE", "rigid": true, "ammo_restriction": { "shot": 5 } } ]
},
{
"id": "mossberg_590m_mag_5",
"copy-from": "mossberg_590m_mag_10",
"type": "MAGAZINE",
"name": { "str": "magazine-fed pump shotgun 5-round magazine" },
"description": "A small 5-round box magazine for the magazine-fed pump shotgun.",
"variant_type": "gun",
"variants": [
{
"id": "mossberg_590m_mag_5",
"name": { "str": "Mossberg 590M 5-round magazine" },
"description": "A small 5-round box magazine for the Mossberg 590M shotgun."
}
],
"weight": "445 g",
"volume": "770 ml",
"longest_side": "136 mm",
"price": "88 USD",
"price_postapoc": "4 USD",
"symbol": "#",
"color": "dark_gray",
"flags": [ "MAG_COMPACT" ],
"pocket_data": [ { "pocket_type": "MAGAZINE", "rigid": true, "ammo_restriction": { "shot": 5 } } ]
},
{
"id": "mossberg_590m_mag_10",
"type": "MAGAZINE",
"name": { "str": "magazine-fed pump shotgun 10-round magazine" },
"description": "A 10-round box magazine for the magazine-fed pump shotgun.",
"variant_type": "gun",
"variants": [
{
"id": "mossberg_590m_mag_10",
"name": { "str": "Mossberg 590M 10-round magazine" },
"description": "A 10-round box magazine for the Mossberg 590M shotgun."
}
],
"weight": "607 g",
"volume": "1147 ml",
"longest_side": "203 mm",
"price": "99 USD",
"price_postapoc": "6 USD",
"material": [ "lc_steel" ],
"symbol": "#",
"color": "dark_gray",
"ammo_type": [ "shot" ],
"flags": [ "MAG_BULKY" ],
"pocket_data": [ { "pocket_type": "MAGAZINE", "rigid": true, "ammo_restriction": { "shot": 10 } } ]
},
{
"id": "mossberg_590m_mag_15",
"copy-from": "mossberg_590m_mag_10",
"type": "MAGAZINE",
"name": { "str": "magazine-fed pump shotgun 15-round magazine" },
"description": "A 15-round box magazine for the magazine-fed pump shotgun.",
"variant_type": "gun",
"variants": [
{
"id": "mossberg_590m_mag_15",
"name": { "str": "Mossberg 590M 15-round magazine" },
"description": "A 15-round box magazine for the Mossberg 590M shotgun."
}
],
"weight": "740 g",
"volume": "1487 ml",
"longest_side": "263 mm",
"price": "116 USD",
"price_postapoc": "4 USD",
"symbol": "#",
"color": "dark_gray",
"pocket_data": [ { "pocket_type": "MAGAZINE", "rigid": true, "ammo_restriction": { "shot": 15 } } ]
},
{
"id": "mossberg_590m_mag_20",
"copy-from": "mossberg_590m_mag_10",
"type": "MAGAZINE",
"name": { "str": "magazine-fed pump shotgun 20-round magazine" },
"description": "A 20-round box magazine for the magazine-fed pump shotgun.",
"variant_type": "gun",
"variants": [
{
"id": "mossberg_590m_mag_20",
"name": { "str": "Mossberg 590M 20-round magazine" },
"description": "A 20-round box magazine for the Mossberg 590M shotgun."
}
],
"weight": "817 g",
"volume": "1810 ml",
"longest_side": "320 mm",
"price": "126 USD",
"price_postapoc": "3 USD",
"symbol": "#",
"color": "dark_gray",
"pocket_data": [ { "pocket_type": "MAGAZINE", "rigid": true, "ammo_restriction": { "shot": 20 } } ]
}
]
1 change: 1 addition & 0 deletions data/mods/Generic_Guns/firearms/gg_firearms_migration.json
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@
"aa_12",
"benelli_tsa",
"bigun",
"mossberg_590m",
"USAS_12"
],
"type": "MIGRATION",
Expand Down
4 changes: 4 additions & 0 deletions data/mods/Generic_Guns/magazines/gg_magazines_migration.json
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,10 @@
"aa12_box_mag",
"aa12_drum_mag",
"aa12_vehicle_drum",
"mossberg_590m_mag_5",
"mossberg_590m_mag_10",
"mossberg_590m_mag_15",
"mossberg_590m_mag_20",
"m26_mass_mag_3",
"m26_mass_mag_5"
],
Expand Down

0 comments on commit 25727d8

Please sign in to comment.