Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lever action rifles #77409

Merged
merged 11 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Adds Uberti 1873
  • Loading branch information
Holli-Git committed Oct 28, 2024
commit 36607f8f3b88f563c5b7647d1d4a27ce4abdd942
2 changes: 2 additions & 0 deletions data/json/itemgroups/Weapons_Mods_Ammo/guns.json
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@
{ "group": "guns_rifle_common_762", "prob": 230 },
{ "group": "guns_rifle_common_9mm", "prob": 180 },
{ "group": "guns_rifle_common_3006", "prob": 149 },
{ "group": "guns_rifle_common_357", "prob": 108 },
{ "group": "guns_rifle_common_44", "prob": 81 },
{ "group": "guns_rifle_common_762R", "prob": 70 },
{ "group": "guns_rifle_common_270win", "prob": 57 },
Expand Down Expand Up @@ -231,6 +232,7 @@
{ "group": "guns_rifle_common_display_762", "prob": 230 },
{ "group": "guns_rifle_common_display_9mm", "prob": 180 },
{ "group": "guns_rifle_common_display_3006", "prob": 149 },
{ "group": "guns_rifle_common_display_357", "prob": 108 },
{ "group": "guns_rifle_common_display_44", "prob": 81 },
{ "group": "guns_rifle_common_display_762R", "prob": 70 },
{ "group": "guns_rifle_common_display_270win", "prob": 57 },
Expand Down
14 changes: 14 additions & 0 deletions data/json/itemgroups/Weapons_Mods_Ammo/guns_by_calibre.json
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,13 @@
{ "group": "nested_m1903", "prob": 26 }
]
},
{
"type": "item_group",
"id": "guns_rifle_common_357",
"items": [
{ "group": "nested_uberti_1873", "prob": 100 }
]
},
{
"type": "item_group",
"id": "guns_rifle_common_44",
Expand Down Expand Up @@ -721,6 +728,13 @@
{ "item": "m1903", "prob": 26 }
]
},
{
"type": "item_group",
"id": "guns_rifle_common_display_357",
"items": [
{ "item": "uberti_1873", "prob": 100 }
]
},
{
"type": "item_group",
"id": "guns_rifle_common_display_44",
Expand Down
8 changes: 8 additions & 0 deletions data/json/itemgroups/Weapons_Mods_Ammo/nested_guns.json
Original file line number Diff line number Diff line change
Expand Up @@ -1665,6 +1665,14 @@
"ammo": 100,
"entries": [ { "item": "rossi_r92_44_20", "charges": [ 0, 10 ] }, { "group": "on_hand_44" } ]
},
{
"id": "nested_uberti_1873",
"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": "uberti_1873", "charges": [ 0, 10 ] }, { "group": "on_hand_357" } ]
},
{
"id": "nested_m14ebr",
"type": "item_group",
Expand Down
44 changes: 44 additions & 0 deletions data/json/items/gun/38.json
Original file line number Diff line number Diff line change
Expand Up @@ -351,5 +351,49 @@
}
],
"melee_damage": { "bash": 6 }
},
{
"id": "uberti_1873",
"copy-from": "rifle_manual",
"looks_like": "modular_ar15",
"type": "GUN",
"name": { "str": ".357 lever-action rifle" },
"description": "This fine lever-action rifle is chambered in the powerful .44 Magnum cartridge, with an 20\" barrel with a tube fed magazine. Go get 'em cowboy!",
"variant_type": "gun",
"variants": [
{
"id": "uberti_1873",
"name": { "str": "Uberti 1873" },
"description": "The 1873 is a rifle platform developed all the way in, unsurprisingly, 1873. This one is a fairly faithful Uberti reproduction, although the original 1873s pre-dated .357 Magnum, and even .38 Special. This one has a case-hardened finish, wood furniture, and octagonal barrel."
}
],
"//": "Stats from the .357 Short Rifle https://www.uberti-usa.com/cartridge-rifles/1873-rifle-and-carbine",
"weight": "3719 g",
"volume": "2718 ml",
"longest_side": "1117 cm",
"barrel_length": "508 mm",
"price": "1429 USD",
"price_postapoc": "15 USD",
"to_hit": { "grip": "none", "length": "hand", "surface": "line", "balance": "uneven" },
"material": [ "steel", "wood" ],
"color": "dark_gray",
"range": 7,
"ammo": [ "357mag", "38" ],
"dispersion": 140,
"durability": 8,
"blackpowder_tolerance": 32,
"clip_size": 10,
"valid_mod_locations": [
[ "grip", 1 ],
[ "mechanism", 2 ],
[ "sights mount", 1 ],
[ "sling", 1 ],
[ "stock mount", 1 ],
[ "rail mount", 1 ],
[ "underbarrel mount", 1 ]
],
"flags": [ "NO_TURRET" ],
"pocket_data": [ { "pocket_type": "MAGAZINE", "rigid": true, "ammo_restriction": { "357mag": 10, "38": 10 } } ],
"melee_damage": { "bash": 12 }
}
]
12 changes: 11 additions & 1 deletion data/mods/Generic_Guns/firearms/gg_firearms_migration.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,17 @@
"replace": "pistol_medium"
},
{
"id": [ "hk_mp5_semi_pistol", "ksub2000", "calico", "hk_mp5_10_semi", "TDI_10", "mp40semi", "hpt3895", "draco_9mm" ],
"id": [
"hk_mp5_semi_pistol",
"ksub2000",
"calico",
"hk_mp5_10_semi",
"TDI_10",
"mp40semi",
"hpt3895",
"draco_9mm",
"uberti_1873"
],
"type": "MIGRATION",
"replace": "pistol_pcc"
},
Expand Down
3 changes: 2 additions & 1 deletion data/mods/TEST_DATA/item_demographics.json
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@
"bren2_762": 1
}
},
{ "type": "357mag", "weight": 34, "items": { "sw_619": 1, "rp63": 1, "chiappa_rhino": 1 } },
{ "type": "357mag", "weight": 34, "items": { "sw_619": 1, "rp63": 1, "chiappa_rhino": 1, "uberti_1873": 1 } },
{
"type": "shot",
"weight": 26,
Expand Down Expand Up @@ -1173,6 +1173,7 @@
"tac338": 1,
"tac50": 1,
"trex_gun": 1,
"uberti_1873": 1,
"vz58_p": 1,
"vz58ts": 1,
"weatherby_5": 1,
Expand Down