Skip to content

Commit

Permalink
STI Tactical DS 2011 10mm, now fixed (CleverRaven#69580)
Browse files Browse the repository at this point in the history
* STI Tactical DS 2011 10mm

* Update data/json/items/gun/10mm.json

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

* Update data/json/items/gun/10mm.json

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

* Update data/json/items/gun/10mm.json

Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>

* Update data/json/items/magazine/10mm.json

Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>

* Update data/json/items/magazine/10mm.json

Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>

* Update generic_guns_validator.py

* Update generic_guns_validator.py

* Update gg_firearms_migration.json

* Update data/json/items/gun/10mm.json

Co-authored-by: Anton Simakov <67688115+GuardianDll@users.noreply.github.com>

* add itemgroup, add the variant

* Update data/json/itemgroups/Weapons_Mods_Ammo/nested_guns.json

* fix what actually should be fixed

* migrate mags

---------

Co-authored-by: Cataclysmo091 <116690226+Cataclysmo091@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: TheShadowFerret <99621099+TheShadowFerret@users.noreply.github.com>
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
  • Loading branch information
5 people authored Nov 22, 2023
1 parent a23d68a commit deff799
Show file tree
Hide file tree
Showing 7 changed files with 91 additions and 0 deletions.
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 @@ -15,6 +15,7 @@
{ "group": "nested_glock_40", "prob": 2 },
{ "group": "nested_m1911", "prob": 50 },
{ "group": "nested_m1911_10", "prob": 15 },
{ "group": "nested_STI_DS_10", "prob": 15 },
{ "group": "nested_m9", "prob": 30 },
{ "group": "nested_px4", "prob": 24 },
{ "group": "nested_px4_40", "prob": 20 },
Expand Down Expand Up @@ -67,6 +68,7 @@
{ "item": "glock_20", "variant": "glock_40", "prob": 2, "charges-min": 0 },
{ "item": "m1911", "prob": 50, "charges-min": 0 },
{ "item": "m1911_10", "prob": 15, "charges-min": 0 },
{ "item": "STI_DS_10", "prob": 15, "charges-min": 0 },
{ "item": "m9", "variant": "m9", "prob": 30, "charges-min": 0 },
{ "item": "px4", "prob": 24, "charges-min": 0 },
{ "item": "px4_40", "prob": 20, "charges-min": 0 },
Expand Down Expand Up @@ -119,6 +121,7 @@
{ "item": "glock_20", "variant": "glock_40", "prob": 2 },
{ "item": "m1911", "prob": 50 },
{ "item": "m1911_10", "prob": 15 },
{ "item": "STI_DS_10", "prob": 15, "charges-min": 0 },
{ "item": "m9", "variant": "m9", "prob": 30 },
{ "item": "px4", "prob": 24 },
{ "item": "px4_40", "prob": 20 },
Expand Down
2 changes: 2 additions & 0 deletions data/json/itemgroups/Weapons_Mods_Ammo/magazines.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@
[ "glock_29mag", 2 ],
[ "m1911mag", 25 ],
[ "m1911_10mag", 2 ],
[ "2011_17_mag", 2 ],
[ "2011_22_mag", 1 ],
[ "mosquitomag", 10 ],
[ "kpf9mag", 5 ],
[ "kpf9mag_8rd", 2 ],
Expand Down
13 changes: 13 additions & 0 deletions data/json/itemgroups/Weapons_Mods_Ammo/nested_guns.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,19 @@
{ "group": "on_hand_10mm" }
]
},
{
"id": "nested_STI_DS_10",
"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": "STI_DS_10", "charges-min": 0, "charges-max": 7 },
{ "item": "2011_17_mag" },
{ "item": "2011_17_mag", "prob": 50 },
{ "group": "on_hand_10mm" }
]
},
{
"id": "nested_m9",
"type": "item_group",
Expand Down
34 changes: 34 additions & 0 deletions data/json/items/gun/10mm.json
Original file line number Diff line number Diff line change
Expand Up @@ -301,5 +301,39 @@
"min_cycle_recoil": 675,
"modes": [ [ "DEFAULT", "semi-auto", 1 ] ],
"pocket_data": [ { "pocket_type": "MAGAZINE_WELL", "magazine_well": "103 ml", "item_restriction": [ "glock_20mag", "tdi_10mm_mag" ] } ]
},
{
"id": "STI_DS_10",
"copy-from": "pistol_base",
"looks_like": "m1911_10",
"type": "GUN",
"name": { "str": "double-stack 10mm 1911" },
"description": "An updated version of the M1911 pistol, chambered in 10mm Auto, that uses double-stack magazines for greater capacity.",
"variant_type": "gun",
"variants": [
{
"id": "STI_DS_10",
"name": { "str": "STI Tactical 2011 DS 10mm" },
"description": "A next-gen model of the venerable 1911, ready to win World War Z. Modernized and manufactured by Staccato, sporting a double-stack magwell, sleek solid-steel frame, and ergonomic grip; favored by certain dog-loving assassins. This model is chambered in 10mm Auto.",
"weight": 1
}
],
"weight": "1191 g",
"volume": "430 ml",
"longest_side": "231 mm",
"price": 269900,
"price_postapoc": 3000,
"to_hit": -2,
"material": [ "steel" ],
"symbol": "(",
"color": "dark_gray",
"ammo": "10mm",
"dispersion": 460,
"durability": 6,
"min_cycle_recoil": 570,
"blackpowder_tolerance": 48,
"flags": [ "ALLOWS_BODY_BLOCK" ],
"pocket_data": [ { "magazine_well": "60 ml", "pocket_type": "MAGAZINE_WELL", "item_restriction": [ "2011_17_mag", "2011_22_mag" ] } ],
"melee_damage": { "bash": 12 }
}
]
36 changes: 36 additions & 0 deletions data/json/items/magazine/10mm.json
Original file line number Diff line number Diff line change
Expand Up @@ -194,5 +194,41 @@
"ammo_type": [ "10mm" ],
"flags": [ "MAG_COMPACT" ],
"pocket_data": [ { "pocket_type": "MAGAZINE", "rigid": true, "ammo_restriction": { "10mm": 15 } } ]
},
{
"id": "2011_17_mag",
"looks_like": "glock17_17",
"type": "MAGAZINE",
"name": { "str": "2011 10mm 17-round magazine" },
"description": "A lightweight, 17-round, steel magazine with a polymer baseplate. Used in 2011 pistols chambered for 10mm Auto.",
"weight": "70 g",
"volume": "110 ml",
"longest_side": "140 mm",
"price": 10000,
"price_postapoc": 100,
"material": [ "plastic", "steel" ],
"symbol": "#",
"color": "light_gray",
"ammo_type": [ "10mm" ],
"flags": [ "MAG_COMPACT" ],
"pocket_data": [ { "pocket_type": "MAGAZINE", "rigid": true, "ammo_restriction": { "10mm": 17 } } ]
},
{
"id": "2011_22_mag",
"looks_like": "glock17_17",
"type": "MAGAZINE",
"name": { "str": "2011 10mm 22-round magazine" },
"description": "A lightweight, 22-round, steel magazine with a polymer baseplate. Used in 2011 pistols chambered for 10mm Auto.",
"weight": "85 g",
"volume": "125 ml",
"longest_side": "170 mm",
"price": 10000,
"price_postapoc": 100,
"material": [ "plastic", "steel" ],
"symbol": "#",
"color": "light_gray",
"ammo_type": [ "10mm" ],
"flags": [ "MAG_COMPACT" ],
"pocket_data": [ { "pocket_type": "MAGAZINE", "rigid": true, "ammo_restriction": { "10mm": 22 } } ]
}
]
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 @@ -103,6 +103,7 @@
"walther_p38",
"walther_ccp",
"makarov",
"STI_DS_10",
"af2011a1_38super",
"m1911a1_38super",
"glock_22",
Expand Down
2 changes: 2 additions & 0 deletions data/mods/Generic_Guns/magazines/gg_magazines_migration.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
"m9mag_20rd",
"makarovmag",
"glock40mag",
"2011_17_mag",
"2011_22_mag",
"sig40mag",
"bhp40mag",
"ppq40mag_10rd",
Expand Down

0 comments on commit deff799

Please sign in to comment.