Compare commits

...

3 Commits

Author SHA1 Message Date
Anton Simakov 32ea5ef29a fix test issues 2026-11-13 14:41:24 +01:00
Anton Simakov a842fe4385 Lint 2026-11-13 14:07:49 +01:00
Anton Simakov 58b2799974 cleanup explosive materials and requirements 2026-11-13 13:19:20 +01:00
8 changed files with 64 additions and 64 deletions
+6 -5
View File
@@ -767,8 +767,8 @@
"ammo_type": "gunpowder",
"id": "gunpowder",
"category": "chems",
"price": "5 USD",
"price_postapoc": "20 USD",
"price": "14 cent",
"price_postapoc": "4 USD",
"name": { "str_sp": "mixed smokeless gunpowder" },
"display_type": "BY_WEIGHT",
"symbol": "=",
@@ -777,11 +777,12 @@
"sealed": false,
"material": [ "powder" ],
"flags": [ "TINDER" ],
"volume": "250 ml",
"volume": "55 ml",
"weight": "100 mg",
"count": 4540,
"//": "tnt equivalent 1.08 g/tnt",
"count": 1000,
"explode_in_fire": true,
"explosion": { "power": 42 }
"explosion": { "power": 10 }
},
{
"type": "ITEM",
+18 -22
View File
@@ -981,21 +981,6 @@
{
"type": "ITEM",
"id": "chem_ammonium_nitrate",
"category": "chems",
"price": "1 cent",
"price_postapoc": "1 cent",
"name": { "str_sp": "ammonium nitrate powder" },
"symbol": "=",
"color": "white",
"description": "A handful of ammonium nitrate powder. This white, crystalline powder is commonly used as a component of fertilizers and explosives. Could also be dissolved in water to sharply lower its temperature, but is there any use for this quality in this new world?",
"material": [ "powder_nonflam" ],
"volume": "1 ml",
"weight": "1 g",
"container": "bag_canvas"
},
{
"type": "ITEM",
"id": "chem_ammonium_nitrate_pellets",
"looks_like": "fertilizer_commercial",
"category": "chems",
"price": "1 cent",
@@ -1004,9 +989,19 @@
"symbol": "=",
"color": "white",
"description": "A handful of ammonium nitrate pellets. These pellets are commonly used as a component of fertilizers and explosives. Could also be dissolved in water to sharply lower its temperature, but is there any use for this quality in this new world?",
"material": [ "powder_nonflam" ],
"variant_type": "generic",
"variants": [
{
"id": "powder",
"name": { "str": "ammonium nitrate powder" },
"description": "A handful of ammonium nitrate powder. This white, crystalline powder is commonly used as a component of fertilizers and explosives. Could also be dissolved in water to sharply lower its temperature, but is there any use for this quality in this new world?.",
"weight": 0
}
],
"material": [ "dense_powder_nonflam" ],
"volume": "1 ml",
"weight": "1 g",
"weight": "1725 mg",
"//": "tnt equivalent 0.38 g/tnt",
"container": "bag_canvas"
},
{
@@ -1119,6 +1114,7 @@
"material": [ "powder" ],
"volume": "1 ml",
"weight": "1 g",
"//": "tnt equivalent 0.74 g/tnt",
"container": "bag_canvas"
},
{
@@ -1133,7 +1129,7 @@
"color": "dark_gray",
"description": "A handful of black gunpowder, a mix of saltpeter, charcoal, and sulfur. Pretty useless for making modern cartridges, as the soot produced when it burns will quickly clog any firearm, but it could be used to make some vicious bombs.",
"material": [ "powder" ],
"volume": "89 ml",
"volume": "83 ml",
"weight": "151 mg",
"ammo_type": "chem_black_powder",
"container": "bag_plastic_small",
@@ -1150,7 +1146,7 @@
"color": "white",
"description": "A handful of Hexogen powder or RDX, commonly known as cyclonite: a military-grade, shelf-stable high explosive white, crystalline powder. Can be cast into shaped charges, or mixed with scrap to pepper the blast area with high-velocity shrapnel.",
"material": [ "dense_powder" ],
"//": "Density of RDX/Hexogen is 1.858 g/cm3",
"//": [ "Density of RDX/Hexogen is 1.858 g/cm3", "tnt equivalent 1.38 g/tnt" ],
"volume": "1 ml",
"weight": "1858 mg"
},
@@ -1165,7 +1161,7 @@
"color": "brown",
"description": "Composition B is an explosive consisting of castable mixtures of Hexogen/RDX and TNT. It is used as the main explosive filling in artillery projectiles, rockets, land mines, hand grenades, and various other munitions.",
"material": [ "dense_powder" ],
"//": "Density of composition B is 1.65 g/cm3",
"//": [ "Density of composition B is 1.65 g/cm3", "tnt equivalent 1.32 g/tnt" ],
"volume": "1 ml",
"weight": "1650 mg"
},
@@ -1180,7 +1176,7 @@
"color": "white",
"description": "Hexamine peroxide: this fine, yellowish powder is a powerful primary explosive, used to initiate detonation of more stable explosives, such as RDX. Relatively stable, but best not store it for too long. Widely used pre-Cataclysm in amateur-made blasting caps.",
"material": [ "dense_powder" ],
"//": "Density of RDX is 1.57 g/cm3",
"//": [ "Density of RDX is 1.57 g/cm3", "tnt equivalent 0.8 g/tnt" ],
"volume": "1 ml",
"weight": "1570 mg",
"container": "bag_plastic_small"
@@ -1196,7 +1192,7 @@
"color": "white",
"description": "Acetone peroxide, also called APEX or Mother of Satan: this fine, white crystalline powder is a powerful primary explosive, used to initiate detonation of more stable explosives, such as RDX. Relatively stable, with a fruit-like smell when pure.",
"material": [ "powder" ],
"//": "Detonation velocity about 2500–3000 m/s near 0.5 g/cm3",
"//": [ "Detonation velocity about 2500–3000 m/s near 0.5 g/cm3", "tnt equivalent 0.8 g/tnt" ],
"volume": "1 ml",
"weight": "500 mg",
"container": "bag_plastic_small"
+2 -2
View File
@@ -107,7 +107,7 @@
"material": [ "powder" ],
"volume": "1 ml",
"weight": "442 mg",
"//": "density: 4.42 g/cm3"
"//": [ "density: 4.42 g/cm3", "tnt equivalent 0.40 g/tnt" ]
},
{
"type": "ITEM",
@@ -162,7 +162,7 @@
"material": [ "powder" ],
"volume": "1 ml",
"weight": "471 mg",
"//": "density: 4.71 g/cm3"
"//": [ "density: 4.71 g/cm3", "tnt equivalent 0.33 g/tnt" ]
},
{
"type": "ITEM",
+2 -2
View File
@@ -768,7 +768,7 @@
"copy-from": "half_barrel_bomb",
"name": { "str": "military explosive 50 L barrel bomb" },
"description": "A metal keg filled with military explosives. Once it has been activated, it will explode after 100 seconds, raining fire and steel on everything in sight.",
"weight": "135 kg",
"weight": "95 kg",
"explosion": { "power": 100000, "shrapnel": { "casing_mass": 12600, "fragment_mass": 600 } },
"use_action": {
"target": "military_explosive_half_barrel_bomb_act",
@@ -802,7 +802,7 @@
"copy-from": "full_barrel_bomb",
"name": { "str": "military explosive 100 L barrel bomb" },
"description": "A 100 L metal barrel filled with military explosives. Once it has been activated it will explode after 100 seconds, raining fire and steel on everything in sight.",
"weight": "252 kg",
"weight": "172 kg",
"explosion": { "power": 200000, "shrapnel": { "casing_mass": 12000, "fragment_mass": 600 } },
"use_action": {
"target": "military_explosive_full_barrel_bomb_act",
@@ -4,6 +4,11 @@
"id": "methed_alcohol",
"replace": "denat_alcohol"
},
{
"type": "MIGRATION",
"id": "chem_ammonium_nitrate_pellets",
"replace": "chem_ammonium_nitrate"
},
{
"type": "MIGRATION",
"id": "reloaded_338lapua_api",
+4 -17
View File
@@ -959,7 +959,7 @@
"time": "1 s",
"autolearn": true,
"flags": [ "BLIND_EASY" ],
"components": [ [ [ "chem_ammonium_nitrate_pellets", 27 ] ] ]
"components": [ [ [ "chem_ammonium_nitrate", 27 ] ] ]
},
{
"type": "recipe",
@@ -1344,6 +1344,7 @@
"type": "recipe",
"activity_level": "LIGHT_EXERCISE",
"result": "chem_ammonium_nitrate",
"variant": "powder",
"charges": 500,
"byproducts": [ [ "water" ] ],
"category": "CC_CHEM",
@@ -1361,24 +1362,10 @@
"tools": [ [ [ "surface_heat", 25, "LIST" ] ] ],
"components": [ [ [ "chem_nitric_acid", 5 ] ], [ [ "ammonia_liquid", 5 ] ] ]
},
{
"type": "recipe",
"activity_level": "LIGHT_EXERCISE",
"result": "chem_ammonium_nitrate",
"id_suffix": "from_pellets",
"name": "%s from pellets",
"category": "CC_CHEM",
"subcategory": "CSC_CHEM_CHEMICALS",
"charges": 100,
"time": "5 m",
"autolearn": true,
"qualities": [ { "id": "FINE_GRIND", "level": 1 }, { "id": "SIEVE", "level": 1 } ],
"components": [ [ [ "chem_ammonium_nitrate_pellets", 100 ] ] ]
},
{
"type": "recipe",
"activity_level": "NO_EXERCISE",
"result": "chem_ammonium_nitrate_pellets",
"result": "chem_ammonium_nitrate",
"category": "CC_CHEM",
"subcategory": "CSC_CHEM_CHEMICALS",
"charges": 27,
@@ -1584,7 +1571,7 @@
"book_learn": [ [ "textbook_anarch", 0 ], [ "recipe_labchem", 5 ], [ "textbook_chemistry", 7 ] ],
"qualities": [ { "id": "CONTAIN", "level": 1 } ],
"using": [ [ "fuel_liquid", 6 ] ],
"components": [ [ [ "chem_ammonium_nitrate", 94 ], [ "chem_ammonium_nitrate_pellets", 94 ] ] ]
"components": [ [ [ "chem_ammonium_nitrate", 94 ] ] ]
},
{
"type": "recipe",
+1 -1
View File
@@ -447,7 +447,7 @@
"autolearn": true,
"proficiencies": [ { "proficiency": "prof_handloading" } ],
"qualities": [ { "id": "SAW_M", "level": 1 } ],
"using": [ [ "volatile_explosive", 30 ] ],
"using": [ [ "volatile_explosive_potent", 30 ] ],
"//": [
"As someone explained to me in the discord server, you could ",
"only realistically use only volatile explosives to make a bomb ",
+26 -15
View File
@@ -46,36 +46,47 @@
{
"id": "volatile_explosive",
"type": "requirement",
"name": "Volatile explosives",
"//": "This should contain all the explosives you can set off with only a fuse, 10g tnt equivalent.",
"components": [
[
[ "chem_black_powder", 90 ],
[ "gunpowder", 90 ],
[ "red_phosphorous_small", 100 ],
[ "red_phosphorous", 1 ],
[ "gunpowder_pistol", 90 ],
[ "gunpowder_shotgun", 90 ],
[ "gunpowder_magnum_pistol", 80 ],
[ "gunpowder_artillery", 90 ],
[ "gunpowder_rifle", 70 ],
[ "chem_hmtd", 14 ],
[ "chem_apex", 7 ],
[ "chem_mercury_fulminate", 21 ],
[ "chem_lead_azide", 21 ]
[ "chem_black_powder", 201 ],
[ "chem_mercury_fulminate", 57 ],
[ "chem_lead_azide", 65 ],
[ "volatile_explosive_potent", 1, "LIST" ]
]
]
},
{
"id": "volatile_explosive_potent",
"type": "requirement",
"name": "Potent volatile explosives",
"//": "Same as volatile_explosive, but only one that are strong enough to be effective in smaller quantities, as a standalone explosive (threshold is around 0.8 g/tnt), 10g tnt equivalent.",
"components": [
[
[ "gunpowder", 93 ],
[ "gunpowder_pistol", 93 ],
[ "gunpowder_shotgun", 93 ],
[ "gunpowder_magnum_pistol", 93 ],
[ "gunpowder_artillery", 93 ],
[ "gunpowder_rifle", 93 ],
[ "chem_hmtd", 8 ],
[ "chem_apex", 25 ]
]
]
},
{
"id": "stable_explosive",
"type": "requirement",
"name": "Stable explosives",
"//": "This should contain all the explosives you need to set off with an explosive primer, but can be used without casting in a crucible. 10g tnt equivalent.",
"components": [ [ [ "chem_ammonium_nitrate", 24 ], [ "chem_ammonium_nitrate_pellets", 24 ], [ "chem_anfo", 14 ], [ "chem_rdx", 6 ] ] ]
"components": [ [ [ "chem_ammonium_nitrate", 16 ], [ "chem_anfo", 14 ], [ "chem_rdx", 4 ] ] ]
},
{
"id": "military_explosive",
"type": "requirement",
"//": "This should contain all the explosives you need to set off with an explosive primer or a fuze, and also need casting in a crucible. 10g tnt equivalent.",
"components": [ [ [ "chem_compositionb", 8 ] ] ]
"components": [ [ [ "chem_compositionb", 5 ] ] ]
},
{
"id": "small_gas_canister_case",