Skip to content

Commit

Permalink
Matchhead powder loaded bullets (#67453)
Browse files Browse the repository at this point in the history
* add 38 matchhead bullets

* comma

* Update data/json/items/ammo/38.json

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

* Update data/json/items/ammo/38.json

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

* Update 38.json

* matchhead bullets can cause pressure damage

* document MATCHHEAD

* extend and delete

* red phosphorus adjustments

* Update chemicals_and_resources.json

* red phosphorus recipe

* Update src/ranged.cpp

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

* matchhead 22lr bullets

* 10mm matchhead

* 30 carbine blackpowder

* matchhead 32 acp

* fix issue

* matchhead 357 magnum

* 357 sig matchheads

* matchhead .380

* matchhead .40

* matchhead 45 acp

* matchhead 9mm

* matchhead 9x18mm

* fix description

* matchhead 45 acp

* matchhead 762x25

* Update 380.json

* Update 38.json

* Update 38.json

* matchhead recipes

* matchhead recipes

* add missing recipe

* Update dictionary.txt

* red_phosphorous

* Update rifle.json

* Update 38.json

* Update 38.json

* describe matchhead

* increase red phosphorous requirements

* increase red phosphorous req

* red phosphorus spawns

* readd muzzle smoke

* readd muzzle smoke

* readd muzzle smoke

* readd muzzle smoke

* readd muzzle smoke

* readd muzzle smoke

* readd muzzle smoke

* readd muzzle smoke

* readd muzzle smoke

* readd muzzle smoke

* readd muzzle smoke

* readd muzzle smoke

* readd muzzle smoke

* readd muzzle smoke

* astyle

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

* phosphorous

* phosphorous

* phosphorous

* phosphorous

* phosphorous

* phosphorous

* phosphorous

* phosphorous

* phosphorous

* phosphorous

* phosphorous

* phosphorous

* phosphorous

* phosphorous

* migrations

* matchhead generic ammos

* matchhead tiny pistol ammos

* 30 carbine migration

* pistol handloads with matchheadpowder

* Apply suggestions from code review

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
anoobindisguise and github-actions[bot] authored Aug 8, 2023
1 parent eec0cf5 commit 007f9bf
Show file tree
Hide file tree
Showing 29 changed files with 796 additions and 14 deletions.
1 change: 1 addition & 0 deletions data/json/itemgroups/supplies.json
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@
[ "chem_aluminium_powder", 10 ],
[ "chem_aluminium_sulphate", 10 ],
[ "chem_saltpetre", 10 ],
{ "item": "red_phosphorous", "prob": 5, "charges-min": 100 },
{ "item": "bismuth", "prob": 5, "charges-min": 1 },
{ "item": "chem_benzene", "prob": 10, "charges-min": 1 },
{ "item": "chem_toluene", "prob": 10, "charges-min": 1 },
Expand Down
11 changes: 11 additions & 0 deletions data/json/items/ammo/10mm.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,16 @@
"proportional": { "price": 0.7, "damage": { "damage_type": "bullet", "amount": 0.9 }, "dispersion": 1.1 },
"extend": { "effects": [ "RECYCLED" ] },
"delete": { "effects": [ "NEVER_MISFIRES" ], "flags": [ "IRREPLACEABLE_CONSUMABLE" ] }
},
{
"id": "matchhead_10mm_fmj",
"copy-from": "bp_10mm_fmj",
"type": "AMMO",
"//": "matchhead bullets assumed to have about 75% of the muzzle energy of black powder",
"name": { "str_sp": "10mm Auto FMJ, matchhead powder" },
"description": "Jacketed 10mm Auto ammunition with a 180gr bullet. The 10mm Auto cartridge is a rather powerful handgun round and the progenitor to the more popular .40 S&W. This one was a victim of a truly desperate survivor, being loaded with powder from ground match heads. Red phosphorous is less energetic than even black powder, but its fast burn rate also limits the amount that can be used due to the danger of blowing up the gun from overpressure. As a result, it's even weaker than its black powder counterpart, and the ammo is still dirty and corrosive meaning it needs to be cleaned quickly or else the gun will suffer.",
"proportional": { "price": 0.5, "damage": { "damage_type": "bullet", "amount": 0.85 }, "dispersion": 1.1 },
"looks_like": "bp_10mm_fmj",
"extend": { "effects": [ "MATCHHEAD" ] }
}
]
22 changes: 22 additions & 0 deletions data/json/items/ammo/22.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,5 +111,27 @@
"proportional": { "price": 0.7, "damage": { "damage_type": "bullet", "amount": 0.9 }, "dispersion": 1.1 },
"extend": { "effects": [ "RECYCLED" ] },
"delete": { "effects": [ "NEVER_MISFIRES" ], "flags": [ "IRREPLACEABLE_CONSUMABLE" ] }
},
{
"id": "matchhead_22_fmj",
"copy-from": "bp_22_fmj",
"type": "AMMO",
"//": "matchhead bullets assumed to have about 75% of the muzzle energy of black powder",
"name": { "str_sp": ".22 FMJ, matchhead powder" },
"description": ".22 Long Rifle ammunition with a 30gr FMJ bullet. The .22LR round is extremely weak, with short range and negligible recoil. This one was a victim of a truly desperate survivor, being loaded with powder from ground match heads. Red phosphorous is less energetic than even black powder, but its fast burn rate also limits the amount that can be used due to the danger of blowing up the gun from overpressure. As a result, it's even weaker than its black powder counterpart, and the ammo is still dirty and corrosive meaning it needs to be cleaned quickly or else the gun will suffer.",
"proportional": { "price": 0.5, "damage": { "damage_type": "bullet", "amount": 0.85 }, "dispersion": 1.1 },
"looks_like": "bp_22_fmj",
"extend": { "effects": [ "MATCHHEAD" ] }
},
{
"id": "matchhead_22_lr",
"copy-from": "bp_22_lr",
"type": "AMMO",
"//": "matchhead bullets assumed to have about 75% of the muzzle energy of black powder",
"name": { "str_sp": ".22 LR, matchhead powder" },
"description": ".22 Long Rifle ammunition with a 30gr FMJ bullet. The .22LR round is extremely weak, with short range and negligible recoil. This one was a victim of a truly desperate survivor, being loaded with powder from ground match heads. Red phosphorous is less energetic than even black powder, but its fast burn rate also limits the amount that can be used due to the danger of blowing up the gun from overpressure. As a result, it's even weaker than its black powder counterpart, and the ammo is still dirty and corrosive meaning it needs to be cleaned quickly or else the gun will suffer.",
"proportional": { "price": 0.5, "damage": { "damage_type": "bullet", "amount": 0.85 }, "dispersion": 1.1 },
"looks_like": "bp_22_lr",
"extend": { "effects": [ "MATCHHEAD" ] }
}
]
11 changes: 11 additions & 0 deletions data/json/items/ammo/30carbine.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,16 @@
"name": { "str_sp": ".30 Carbine, reloaded" },
"description": ".30 Carbine ammunition with a 110gr full metal jacket bullet. This one has been hand-reloaded, leading to slightly inferior performance compared to factory-produced ammo.",
"proportional": { "price": 0.7, "damage": { "damage_type": "bullet", "amount": 0.9 }, "dispersion": 1.1, "recoil": 0.9 }
},
{
"id": "matchhead_30carbine",
"copy-from": "bp_30carbine",
"type": "AMMO",
"//": "matchhead bullets assumed to have about 75% of the muzzle energy of black powder",
"name": { "str_sp": ".30 Carbine, matchhead powder" },
"description": ".30 Carbine ammunition with a 110gr full metal jacket bullet. This one was a victim of a truly desperate survivor, being loaded with powder from ground match heads. Red phosphorous is less energetic than even black powder, but its fast burn rate also limits the amount that can be used due to the danger of blowing up the gun from overpressure. As a result, it's even weaker than its black powder counterpart, and the ammo is still dirty and corrosive meaning it needs to be cleaned quickly or else the gun will suffer.",
"proportional": { "price": 0.5, "damage": { "damage_type": "bullet", "amount": 0.85 }, "dispersion": 1.1 },
"looks_like": "bp_30carbine",
"extend": { "effects": [ "MATCHHEAD" ] }
}
]
11 changes: 11 additions & 0 deletions data/json/items/ammo/32.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,16 @@
"proportional": { "price": 0.7, "damage": { "damage_type": "bullet", "amount": 0.9 }, "dispersion": 1.1 },
"extend": { "effects": [ "RECYCLED" ] },
"delete": { "effects": [ "NEVER_MISFIRES" ], "flags": [ "IRREPLACEABLE_CONSUMABLE" ] }
},
{
"id": "matchhead_32_acp",
"copy-from": "bp_32_acp",
"type": "AMMO",
"//": "matchhead bullets assumed to have about 75% of the muzzle energy of black powder",
"name": { "str_sp": ".32 ACP, matchhead powder" },
"description": "A .32 ACP round, once a popular handgun cartridge in the 20th century. This one was a victim of a truly desperate survivor, being loaded with powder from ground match heads. Red phosphorous is less energetic than even black powder, but its fast burn rate also limits the amount that can be used due to the danger of blowing up the gun from overpressure. As a result, it's even weaker than its black powder counterpart, and the ammo is still dirty and corrosive meaning it needs to be cleaned quickly or else the gun will suffer.",
"proportional": { "price": 0.5, "damage": { "damage_type": "bullet", "amount": 0.85 }, "dispersion": 1.1 },
"looks_like": "bp_32_acp",
"extend": { "effects": [ "MATCHHEAD" ] }
}
]
22 changes: 22 additions & 0 deletions data/json/items/ammo/357mag.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,27 @@
"name": { "str_sp": ".357 Magnum JHP, reloaded" },
"description": "Jacketed hollow point .357 Magnum ammunition. This one has been hand-reloaded by a survivor or perhaps a pre-Cataclysm hobbyist, leading to slightly inferior performance compared to factory-produced ammo.",
"proportional": { "price": 0.7, "damage": { "damage_type": "bullet", "amount": 0.9 }, "dispersion": 1.1, "recoil": 0.9 }
},
{
"id": "matchhead_357mag_fmj",
"copy-from": "bp_357mag_fmj",
"type": "AMMO",
"//": "matchhead bullets assumed to have about 75% of the muzzle energy of black powder",
"name": { "str_sp": ".357 Magnum FMJ, matchhead powder" },
"description": "Jacketed .357 Magnum ammunition. This one was a victim of a truly desperate survivor, being loaded with powder from ground match heads. Red phosphorous is less energetic than even black powder, but its fast burn rate also limits the amount that can be used due to the danger of blowing up the gun from overpressure. As a result, it's even weaker than its black powder counterpart, and the ammo is still dirty and corrosive meaning it needs to be cleaned quickly or else the gun will suffer.",
"proportional": { "price": 0.5, "damage": { "damage_type": "bullet", "amount": 0.85 }, "dispersion": 1.1 },
"looks_like": "bp_357mag_fmj",
"extend": { "effects": [ "MATCHHEAD" ] }
},
{
"id": "matchhead_357mag_jhp",
"copy-from": "bp_357mag_jhp",
"type": "AMMO",
"//": "matchhead bullets assumed to have about 75% of the muzzle energy of black powder",
"name": { "str_sp": ".357 Magnum JHP, matchhead powder" },
"description": "Jacketed hollow point .357 Magnum ammunition. This one was a victim of a truly desperate survivor, being loaded with powder from ground match heads. Red phosphorous is less energetic than even black powder, but its fast burn rate also limits the amount that can be used due to the danger of blowing up the gun from overpressure. As a result, it's even weaker than its black powder counterpart, and the ammo is still dirty and corrosive meaning it needs to be cleaned quickly or else the gun will suffer.",
"proportional": { "price": 0.5, "damage": { "damage_type": "bullet", "amount": 0.85 }, "dispersion": 1.1 },
"looks_like": "bp_357mag_jhp",
"extend": { "effects": [ "MATCHHEAD" ] }
}
]
22 changes: 22 additions & 0 deletions data/json/items/ammo/357sig.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,27 @@
},
"extend": { "effects": [ "RECYCLED", "BLACKPOWDER", "MUZZLE_SMOKE" ] },
"delete": { "effects": [ "NEVER_MISFIRES" ], "flags": [ "IRREPLACEABLE_CONSUMABLE" ] }
},
{
"id": "matchhead_357sig_fmj",
"copy-from": "bp_357sig_fmj",
"type": "AMMO",
"//": "matchhead bullets assumed to have about 75% of the muzzle energy of black powder",
"name": { "str_sp": ".357 SIG FMJ, matchhead powder" },
"description": "Jacketed .357 SIG ammunition. The .357 SIG round is a high velocity pistol cartridge, giving it a flatter trajectory than many handgun rounds. This one was a victim of a truly desperate survivor, being loaded with powder from ground match heads. Red phosphorous is less energetic than even black powder, but its fast burn rate also limits the amount that can be used due to the danger of blowing up the gun from overpressure. As a result, it's even weaker than its black powder counterpart, and the ammo is still dirty and corrosive meaning it needs to be cleaned quickly or else the gun will suffer.",
"proportional": { "price": 0.5, "damage": { "damage_type": "bullet", "amount": 0.85 }, "dispersion": 1.1 },
"looks_like": "bp_357sig_fmj",
"extend": { "effects": [ "MATCHHEAD" ] }
},
{
"id": "matchhead_357sig_jhp",
"copy-from": "bp_357sig_jhp",
"type": "AMMO",
"//": "matchhead bullets assumed to have about 75% of the muzzle energy of black powder",
"name": { "str_sp": ".357 SIG JHP, matchhead powder" },
"description": "Jacketed hollow point .357 SIG ammunition. The .357 SIG round is a high velocity pistol cartridge, giving it a flatter trajectory than many handgun rounds. This one was a victim of a truly desperate survivor, being loaded with powder from ground match heads. Red phosphorous is less energetic than even black powder, but its fast burn rate also limits the amount that can be used due to the danger of blowing up the gun from overpressure. As a result, it's even weaker than its black powder counterpart, and the ammo is still dirty and corrosive meaning it needs to be cleaned quickly or else the gun will suffer.",
"proportional": { "price": 0.5, "damage": { "damage_type": "bullet", "amount": 0.85 }, "dispersion": 1.1 },
"looks_like": "bp_357sig_jhp",
"extend": { "effects": [ "MATCHHEAD" ] }
}
]
22 changes: 22 additions & 0 deletions data/json/items/ammo/38.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,27 @@
},
"extend": { "effects": [ "RECYCLED", "BLACKPOWDER", "MUZZLE_SMOKE" ] },
"delete": { "effects": [ "NEVER_MISFIRES" ], "flags": [ "IRREPLACEABLE_CONSUMABLE" ] }
},
{
"id": "matchhead_38_fmj",
"copy-from": "bp_38_fmj",
"type": "AMMO",
"//": "matchhead bullets assumed to have about 75% of the muzzle energy of black powder",
"name": { "str_sp": ".38 FMJ, matchhead powder" },
"description": ".38 Special ammunition with a brass jacketed 130gr FMJ bullet. This one was a victim of a truly desperate survivor, being loaded with powder from ground match heads. Red phosphorous is less energetic than even black powder, but its fast burn rate also limits the amount that can be used due to the danger of blowing up the gun from overpressure. As a result, it's even weaker than its black powder counterpart, and the ammo is still dirty and corrosive meaning it needs to be cleaned quickly or else the gun will suffer.",
"proportional": { "price": 0.5, "damage": { "damage_type": "bullet", "amount": 0.85 }, "dispersion": 1.1 },
"looks_like": "bp_38_fmj",
"extend": { "effects": [ "MATCHHEAD" ] }
},
{
"id": "matchhead_38_special",
"copy-from": "bp_38_special",
"type": "AMMO",
"//": "matchhead bullets assumed to have about 75% of the muzzle energy of black powder",
"name": { "str_sp": ".38 Special, matchhead powder" },
"description": ".38 Special ammunition with a 130gr FMJ bullet. This one was a victim of a truly desperate survivor, being loaded with powder from ground match heads. Red phosphorous is less energetic than even black powder, but its fast burn rate also limits the amount that can be used due to the danger of blowing up the gun from overpressure. As a result, it's even weaker than its black powder counterpart, and the ammo is still dirty and corrosive meaning it needs to be cleaned quickly or else the gun will suffer.",
"proportional": { "price": 0.5, "damage": { "damage_type": "bullet", "amount": 0.85 }, "dispersion": 1.1 },
"looks_like": "bp_38_special",
"extend": { "effects": [ "MATCHHEAD" ] }
}
]
22 changes: 22 additions & 0 deletions data/json/items/ammo/380.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,27 @@
"proportional": { "price": 0.7, "damage": { "damage_type": "bullet", "amount": 0.9 }, "dispersion": 1.1 },
"extend": { "effects": [ "RECYCLED" ] },
"delete": { "effects": [ "NEVER_MISFIRES" ], "flags": [ "IRREPLACEABLE_CONSUMABLE" ] }
},
{
"id": "matchhead_380_FMJ",
"copy-from": "bp_380_FMJ",
"type": "AMMO",
"//": "matchhead bullets assumed to have about 75% of the muzzle energy of black powder",
"name": { "str_sp": ".380 ACP FMJ, matchhead powder" },
"description": ".380 ACP ammunition with a brass jacketed 95gr bullet. Popular in pocket pistols for over a century, it is often considered the weakest caliber to consider for self-defense. This one was a victim of a truly desperate survivor, being loaded with powder from ground match heads. Red phosphorous is less energetic than even black powder, but its fast burn rate also limits the amount that can be used due to the danger of blowing up the gun from overpressure. As a result, it's even weaker than its black powder counterpart, and the ammo is still dirty and corrosive meaning it needs to be cleaned quickly or else the gun will suffer.",
"proportional": { "price": 0.5, "damage": { "damage_type": "bullet", "amount": 0.85 }, "dispersion": 1.1 },
"looks_like": "bp_380_FMJ",
"extend": { "effects": [ "MATCHHEAD" ] }
},
{
"id": "matchhead_380_JHP",
"copy-from": "bp_380_JHP",
"type": "AMMO",
"//": "matchhead bullets assumed to have about 75% of the muzzle energy of black powder",
"name": { "str_sp": ".380 ACP JHP, matchhead powder" },
"description": ".380 ACP ammunition with a jacketed hollow point 95gr bullet. Popular in pocket pistols for over a century, it is often considered the weakest caliber to consider for self-defense. This one was a victim of a truly desperate survivor, being loaded with powder from ground match heads. Red phosphorous is less energetic than even black powder, but its fast burn rate also limits the amount that can be used due to the danger of blowing up the gun from overpressure. As a result, it's even weaker than its black powder counterpart, and the ammo is still dirty and corrosive meaning it needs to be cleaned quickly or else the gun will suffer.",
"proportional": { "price": 0.5, "damage": { "damage_type": "bullet", "amount": 0.85 }, "dispersion": 1.1 },
"looks_like": "bp_380_JHP",
"extend": { "effects": [ "MATCHHEAD" ] }
}
]
22 changes: 22 additions & 0 deletions data/json/items/ammo/40.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,27 @@
"proportional": { "price": 0.7, "damage": { "damage_type": "bullet", "amount": 0.9 }, "dispersion": 1.1 },
"extend": { "effects": [ "RECYCLED" ] },
"delete": { "effects": [ "NEVER_MISFIRES" ], "flags": [ "IRREPLACEABLE_CONSUMABLE" ] }
},
{
"id": "matchhead_40fmj",
"copy-from": "bp_40fmj",
"type": "AMMO",
"//": "matchhead bullets assumed to have about 75% of the muzzle energy of black powder",
"name": { "str_sp": ".40 S&W FMJ, matchhead powder" },
"description": ".40 S&W ammunition with a 180gr FMJ bullet. Designed to retain the 10mm Auto cartridge's power with lower recoil, the .40 S&W round became popular for law enforcement and personal defense. This one was a victim of a truly desperate survivor, being loaded with powder from ground match heads. Red phosphorous is less energetic than even black powder, but its fast burn rate also limits the amount that can be used due to the danger of blowing up the gun from overpressure. As a result, it's even weaker than its black powder counterpart, and the ammo is still dirty and corrosive meaning it needs to be cleaned quickly or else the gun will suffer.",
"proportional": { "price": 0.5, "damage": { "damage_type": "bullet", "amount": 0.85 }, "dispersion": 1.1 },
"looks_like": "bp_40fmj",
"extend": { "effects": [ "MATCHHEAD" ] }
},
{
"id": "matchhead_40sw",
"copy-from": "bp_40sw",
"type": "AMMO",
"//": "matchhead bullets assumed to have about 75% of the muzzle energy of black powder",
"name": { "str_sp": ".40 S&W JHP, matchhead powder" },
"description": ".40 S&W ammunition with a 135gr JHP bullet. The .40 S&W round is descended from the 10mm Auto cartridge and maintains most of its predecessor's strengths while reducing recoil. This one was a victim of a truly desperate survivor, being loaded with powder from ground match heads. Red phosphorous is less energetic than even black powder, but its fast burn rate also limits the amount that can be used due to the danger of blowing up the gun from overpressure. As a result, it's even weaker than its black powder counterpart, and the ammo is still dirty and corrosive meaning it needs to be cleaned quickly or else the gun will suffer.",
"proportional": { "price": 0.5, "damage": { "damage_type": "bullet", "amount": 0.85 }, "dispersion": 1.1 },
"looks_like": "bp_40sw",
"extend": { "effects": [ "MATCHHEAD" ] }
}
]
Loading

0 comments on commit 007f9bf

Please sign in to comment.