Skip to content

Commit

Permalink
Ammo modern json (#37732)
Browse files Browse the repository at this point in the history
* Name to object

* Name to object

* Name to object, double have decimal, flags to array
  • Loading branch information
snipercup authored Feb 5, 2020
1 parent 8b82342 commit e229198
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 34 deletions.
15 changes: 7 additions & 8 deletions data/json/items/ammo.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,19 @@
"id": "battery",
"category": "spare_parts",
"price": 12000,
"name": "battery",
"name_plural": "batteries",
"name": { "str": "battery", "str_pl": "batteries" },
"symbol": "=",
"color": "yellow",
"description": "Some free-floating battery charge. This can be reloaded into rechargable battery cells, but can never be unloaded.",
"flags": "TRADER_AVOID",
"flags": [ "TRADER_AVOID" ],
"material": "iron",
"effects": [ "COOKOFF" ],
"volume": "250 ml",
"//": "Setting battery volume to 0 causes weirdness in vehicle tests. Please don't do that.",
"ammo_type": "battery",
"count": 100,
"//2": "1 battery is 1 kJ of energy. 40 batteries is an alkaline C-cell.",
"fuel": { "energy": 1 }
"fuel": { "energy": 1.0 }
},
{
"type": "TOOL",
Expand Down Expand Up @@ -222,7 +221,7 @@
"ammo_type": "plutonium",
"count": 5,
"effects": [ "COOKOFF", "NEVER_MISFIRES" ],
"fuel": { "energy": 10 }
"fuel": { "energy": 10.0 }
},
{
"type": "AMMO",
Expand Down Expand Up @@ -474,8 +473,8 @@
"flags": [ "UNRECOVERABLE" ],
"fuel": {
"//": "Compressed gaseous hydrogen has 9.2 MJ/L. This stuff has a very high energy density but is also bulky and explosive.",
"energy": 4000,
"explosion_data": { "chance_hot": 2, "chance_cold": 2, "factor": 1, "fiery": true, "size_factor": 0.15 }
"energy": 4000.0,
"explosion_data": { "chance_hot": 2, "chance_cold": 2, "factor": 1.0, "fiery": true, "size_factor": 0.15 }
}
},
{
Expand Down Expand Up @@ -859,7 +858,7 @@
"ammo_type": "charcoal",
"count": 250,
"stack_size": 10,
"fuel": { "energy": 30 }
"fuel": { "energy": 30.0 }
},
{
"type": "AMMO",
Expand Down
24 changes: 8 additions & 16 deletions data/json/items/chemicals_and_resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,7 @@
"id": "chem_aluminium_powder",
"category": "chems",
"price": 500,
"name": "aluminum powder",
"name_plural": "aluminum powder",
"name": { "str": "aluminum powder", "str_pl": "aluminum powder" },
"symbol": "=",
"color": "white",
"description": "A handful of finely ground aluminum powder. This strong reducing agent was used in combination with various oxidants for chemical welding and explosives alike. Just before the Cataclysm, however, it was the basis of virtually all commercial metallic-hued paints and anti-corrosive coatings.",
Expand Down Expand Up @@ -620,8 +619,7 @@
"id": "chem_acetone",
"category": "chems",
"price": 50,
"name": "acetone",
"name_plural": "acetone",
"name": { "str": "acetone", "str_pl": "acetone" },
"symbol": "=",
"color": "white",
"description": "Acetone, best known as the primary constituent of most nail polish removers. Flammable and can be easily used for potent home-made explosives, as demonstrated by the terrorist attacks of 2016.",
Expand Down Expand Up @@ -730,8 +728,7 @@
"id": "chem_ammonium_nitrate",
"category": "chems",
"price": 100,
"name": "ammonium nitrate",
"name_plural": "ammonium nitrate",
"name": { "str": "ammonium nitrate", "str_pl": "ammonium nitrate" },
"symbol": "=",
"color": "white",
"description": "A handful of ammonium nitrate. 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?",
Expand Down Expand Up @@ -782,8 +779,7 @@
"id": "chem_aluminium_sulphate",
"category": "chems",
"price": 300,
"name": "aluminum sulfate",
"name_plural": "aluminum sulfate",
"name": { "str": "aluminum sulfate", "str_pl": "aluminum sulfate" },
"symbol": "=",
"color": "white",
"description": "Several crystals of aluminum sulfate. Historically, an agent for purifying water and as molluscicide, due to the fact that it degenerates their slime. Just before the Cataclysm, its main uses were for adjusting the acidity of the soil and as an additive to baking powder. If mixed with a strong acid, it could be used to saturate the soil with aluminum, causing all but the most resistant of plants to wither and die.",
Expand All @@ -800,8 +796,7 @@
"id": "chem_acetic_acid",
"category": "chems",
"price": 200,
"name": "acetic acid",
"name_plural": "acetic acid",
"name": { "str": "acetic acid", "str_pl": "acetic acid" },
"symbol": "~",
"color": "white",
"description": "Concentrated acetic acid, typically used as a chemical reagent and antifungal agent. Despite its horrid smell, it was used to prepare several types of perfumes, but would making perfume not be too fancy for postapocalyptic New England?",
Expand Down Expand Up @@ -853,8 +848,7 @@
"id": "chem_anfo",
"category": "chems",
"price": 5000,
"name": "ANFO",
"name_plural": "ANFO",
"name": { "str": "ANFO", "str_pl": "ANFO" },
"symbol": "=",
"color": "red",
"description": "Several brownish pellets that were made by absorbing organic fuel on ammonium nitrate. This ammonium nitrate-fuel oil or ANFO, as it is called, mixture is a common industrial explosive due to its stability and low price. Burns fast, but needs an explosive primer to detonate.",
Expand All @@ -871,8 +865,7 @@
"id": "chem_black_powder",
"category": "chems",
"price": 2000,
"name": "black gunpowder",
"name_plural": "black gunpowder",
"name": { "str": "black gunpowder", "str_pl": "black gunpowder" },
"symbol": "=",
"color": "dark_gray",
"description": "A handful of black gunpowder, made by mixing charcoal and sulfur with saltpeter. 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.",
Expand Down Expand Up @@ -907,8 +900,7 @@
"id": "chem_rdx",
"category": "chems",
"price": 7500,
"name": "RDX",
"name_plural": "RDX",
"name": { "str": "RDX", "str_pl": "RDX" },
"symbol": "=",
"color": "white",
"description": "Several off-white crystals of RDX or hexogen: a military-grade, shelf-stable high explosive. Can be cast into shaped charges or mixed with scrap to pepper the blast area with high-velocity shrapnel.",
Expand Down
7 changes: 3 additions & 4 deletions data/json/items/fuel.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@
},
{
"id": "biodiesel",
"name": "biodiesel",
"name_plural": "biodiesel",
"name": { "str": "biodiesel", "str_pl": "biodiesel" },
"copy-from": "diesel",
"type": "AMMO",
"description": "Vegetable oil- or animal fat-based diesel fuel consisting of long-chain alkyl (methyl, ethyl, or propyl) esters.",
Expand Down Expand Up @@ -134,7 +133,7 @@
"ammo_type": "lamp_oil",
"fuel": {
"//": "Roughly equivalent to LPG",
"energy": 26,
"energy": 26.0,
"explosion_data": { "chance_hot": 5, "chance_cold": 10, "factor": 0.2, "fiery": true, "size_factor": 0.1 }
},
"range": 6,
Expand Down Expand Up @@ -163,7 +162,7 @@
"ammo_type": "motor_oil",
"fuel": {
"//": "Roughly equivalent to LPG",
"energy": 26,
"energy": 26.0,
"explosion_data": { "chance_hot": 5, "chance_cold": 10, "factor": 0.2, "fiery": true, "size_factor": 0.1 }
},
"range": 6,
Expand Down
3 changes: 1 addition & 2 deletions data/json/items/ranged/throwing.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"id": "bolas",
"type": "AMMO",
"category": "weapons",
"name": "bolas",
"name_plural": "bolases",
"name": { "str": "bolas", "str_pl": "bolases" },
"description": "Some ropes with weights, designed to tangle the legs of a target when thrown, usually at an animal. Used by the Gauchos of Argentina.",
"weight": "400 g",
"volume": "750 ml",
Expand Down
3 changes: 1 addition & 2 deletions data/json/items/resources/metal.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@
"id": "bismuth",
"type": "AMMO",
"category": "spare_parts",
"name": "bismuth",
"name_plural": "bismuth",
"name": { "str": "bismuth", "str_pl": "bismuth" },
"description": "A dense but brittle metal often used as an alternative to lead.",
"weight": "2 g",
"//": "Density 9.78g/cm³ ~ 2.4kg/250ml @ stack 1000 = 2g/unit",
Expand Down
3 changes: 1 addition & 2 deletions data/json/items/resources/tailoring.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@
"id": "scrap_kevlar",
"copy-from": "scrap_cotton",
"type": "AMMO",
"name": "Kevlar scraps",
"name_plural": "Kevlar scraps",
"name": { "str": "Kevlar scraps", "str_pl": "Kevlar scraps" },
"description": "Oddly-shaped smallish bits of Kevlar fabric, waste material from tailoring projects. Normally it's disposed of, but since Kevlar would be very difficult to make in a post-apocalyptic world, it might be worth recycling it for Kevlar thread.",
"price": 5,
"material": "kevlar"
Expand Down

0 comments on commit e229198

Please sign in to comment.