Skip to content

Commit

Permalink
Colt Python (#74576)
Browse files Browse the repository at this point in the history
* colt python

* finalize the gun

* generic guns + typo

* descriptive gun name

* spawns

* Update guns_by_calibre.json

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* fuck you

* fucking merge it already

* fuck you

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
KeremBabaG and github-actions[bot] authored Jun 23, 2024
1 parent 34a1905 commit 014078a
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 6 deletions.
7 changes: 5 additions & 2 deletions data/json/itemgroups/Weapons_Mods_Ammo/guns.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
{ "item": "glock_40", "variant": "glock_40", "prob": 1 },
{ "item": "sw_610", "prob": 1 },
{ "item": "sw_619", "prob": 40 },
{ "item": "colt_python", "prob": 40 },
{ "item": "bfr", "prob": 10 },
{ "item": "raging_bull", "prob": 15 },
{ "item": "sw_500", "prob": 10 },
Expand Down Expand Up @@ -1667,7 +1668,8 @@
{ "item": "m9", "variant": "m9", "prob": 5, "charges": [ 0, 15 ] },
{ "item": "sig_40", "prob": 20, "charges": [ 0, 12 ] },
{ "item": "usp_45", "prob": 10, "charges": [ 0, 12 ] },
{ "item": "usp_9mm", "prob": 10, "charges": [ 0, 15 ] }
{ "item": "usp_9mm", "prob": 10, "charges": [ 0, 15 ] },
{ "item": "colt_python", "prob": 5, "charges": [ 0, 6 ] }
]
},
{
Expand Down Expand Up @@ -1752,7 +1754,8 @@
{ "item": "garand", "prob": 1, "charges": [ 0, 8 ] },
{ "item": "mk47", "prob": 1, "charges": [ 0, 30 ] },
{ "item": "ak556", "prob": 2, "charges": [ 0, 30 ] },
{ "item": "ak556", "variant": "zpapm90", "prob": 1 }
{ "item": "ak556", "variant": "zpapm90", "prob": 1 },
{ "item": "colt_python", "prob": 1, "charges": [ 0, 6 ] }
]
}
]
6 changes: 3 additions & 3 deletions data/json/itemgroups/Weapons_Mods_Ammo/guns_by_calibre.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
{
"type": "item_group",
"id": "guns_pistol_common_357mag",
"items": [ { "group": "nested_sw_619", "prob": 3 } ]
"items": [ { "group": "nested_sw_619", "prob": 3 }, { "group": "nested_colt_python", "prob": 3 } ]
},
{
"type": "item_group",
Expand Down Expand Up @@ -145,7 +145,7 @@
{
"type": "item_group",
"id": "guns_pistol_common_everyday_carry_357mag",
"items": [ { "item": "sw_619", "prob": 5, "charges": [ 0, -1 ] } ]
"items": [ { "item": "sw_619", "prob": 5, "charges": [ 0, -1 ] }, { "item": "colt_python", "prob": 5, "charges": [ 0, -1 ] } ]
},
{
"type": "item_group",
Expand Down Expand Up @@ -232,7 +232,7 @@
{
"type": "item_group",
"id": "guns_pistol_common_display_357mag",
"items": [ { "item": "sw_619", "prob": 1 } ]
"items": [ { "item": "sw_619", "prob": 1 }, { "item": "colt_python", "prob": 2 } ]
},
{
"type": "item_group",
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 @@ -283,6 +283,14 @@
"ammo": 100,
"entries": [ { "item": "sw_619", "charges": [ 0, 7 ] }, { "group": "on_hand_38" } ]
},
{
"id": "nested_colt_python",
"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": "colt_python", "charges": [ 0, 6 ] }, { "group": "on_hand_357" } ]
},
{
"id": "nested_model_10_revolver",
"type": "item_group",
Expand Down
52 changes: 52 additions & 0 deletions data/json/items/gun/38.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,58 @@
],
"melee_damage": { "bash": 8 }
},
{
"id": "colt_python",
"copy-from": "pistol_revolver",
"looks_like": "sw_619",
"type": "GUN",
"name": { "str_sp": ".357 revolver" },
"//": "This is the Colt Python 2020 6-inch version.",
"description": "A six inch revolver chambered in .357 Magnum/.38 Special. Favorite of sheriffs and post-Cataclysm survivor group leaders.",
"//s": "omg twd reference :O",
"weight": "1300 g",
"volume": "703 ml",
"longest_side": "292 mm",
"barrel_length": "152 mm",
"symbol": "(",
"color": "light_gray",
"//2": "Price of one according to colt's own website. Goddamn.",
"price": "1 kUSD 599 USD",
"price_postapoc": "20 USD",
"to_hit": { "grip": "solid", "length": "short", "balance": "neutral", "surface": "point" },
"material": [ "steel", "wood" ],
"ammo": [ "357mag", "38" ],
"dispersion": 280,
"durability": 10,
"blackpowder_tolerance": 48,
"clip_size": 6,
"valid_mod_locations": [
[ "barrel", 1 ],
[ "grip", 1 ],
[ "mechanism", 2 ],
[ "rail mount", 1 ],
[ "sights", 1 ],
[ "stocks mount", 1 ],
[ "underbarrel mount", 1 ]
],
"pocket_data": [
{
"pocket_type": "MAGAZINE",
"rigid": true,
"ammo_restriction": { "357mag": 6, "38": 6 },
"allowed_speedloaders": [ "38_speedloader" ]
}
],
"variant_type": "gun",
"variants": [
{
"id": "colt_python",
"name": { "str_sp": "Colt Python" },
"description": "Made by Colt, this six inch six-shooter is one of the most lauded revolvers ever produced. Can fire .38 Special and .357 Magnum."
}
],
"melee_damage": { "bash": 9 }
},
{
"id": "sw_619",
"copy-from": "pistol_revolver",
Expand Down
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 @@ -71,7 +71,7 @@
"replace": "pistol_magnum_pipe"
},
{
"id": [ "sw_619", "sw629", "bfr", "sw_500", "raging_bull", "chiappa_rhino" ],
"id": [ "sw_619", "sw629", "bfr", "sw_500", "raging_bull", "chiappa_rhino", "colt_python" ],
"type": "MIGRATION",
"replace": "pistol_magnum_revolver"
},
Expand Down

0 comments on commit 014078a

Please sign in to comment.