Skip to content

Commit

Permalink
Name to object leave the s, double have decimal
Browse files Browse the repository at this point in the history
  • Loading branch information
snipercup committed Feb 11, 2020
1 parent af70a99 commit 9fc9910
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 37 deletions.
19 changes: 8 additions & 11 deletions data/json/items/ammo.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"ammo_type": "battery",
"count": 100,
"//2": "1 battery is 1 kJ of energy. 40 batteries is an alkaline C-cell.",
"fuel": { "energy": 1.0 }
"fuel": { "energy": 1 }
},
{
"type": "TOOL",
Expand Down Expand Up @@ -221,7 +221,7 @@
"ammo_type": "plutonium",
"count": 5,
"effects": [ "COOKOFF", "NEVER_MISFIRES" ],
"fuel": { "energy": 10.0 }
"fuel": { "energy": 10 }
},
{
"type": "AMMO",
Expand Down Expand Up @@ -472,8 +472,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.0,
"explosion_data": { "chance_hot": 2, "chance_cold": 2, "factor": 1.0, "fiery": true, "size_factor": 0.15 }
"energy": 4000,
"explosion_data": { "chance_hot": 2, "chance_cold": 2, "factor": 1, "fiery": true, "size_factor": 0.15 }
}
},
{
Expand Down Expand Up @@ -856,7 +856,7 @@
"ammo_type": "charcoal",
"count": 250,
"stack_size": 10,
"fuel": { "energy": 30.0 }
"fuel": { "energy": 30 }
},
{
"type": "AMMO",
Expand Down Expand Up @@ -1001,8 +1001,7 @@
"category": "spare_parts",
"price": 12000,
"//": "This seems like the larger medical tank, not an instant-use model with mask attached",
"name": "oxygen",
"name_plural": "oxygen",
"name": { "str": "oxygen", "str_pl": "oxygen" },
"symbol": "=",
"color": "light_gray",
"description": "A canister of oxygen.",
Expand Down Expand Up @@ -1117,8 +1116,7 @@
"id": "nitrox",
"category": "chems",
"price": 500,
"name": "nitrox",
"name_plural": "nitrox",
"name": { "str": "nitrox", "str_pl": "nitrox" },
"symbol": "=",
"color": "white",
"container": "bottle_plastic",
Expand Down Expand Up @@ -1172,8 +1170,7 @@
"type": "AMMO",
"id": "metal_RPG_die",
"price": 50,
"name": "metal RPG die",
"name_plural": "metal RPG dice",
"name": { "str": "metal RPG die", "str_pl": "metal RPG dice" },
"symbol": "=",
"color": "light_gray",
"looks_like": "marble",
Expand Down
15 changes: 5 additions & 10 deletions data/json/items/chemicals_and_resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@
"id": "material_limestone",
"category": "spare_parts",
"price": 50,
"name": "limestone",
"name_plural": "limestone",
"name": { "str": "limestone", "str_pl": "limestone" },
"symbol": "=",
"color": "dark_gray",
"description": "A handful of small chunks of limestone. Useful for experiments at science fairs, but pretty useless as ammo. Maybe something could be crafted from this stuff…",
Expand Down Expand Up @@ -519,8 +518,7 @@
"id": "chem_manganese_dioxide",
"category": "chems",
"price": 600,
"name": "manganese dioxide",
"name_plural": "manganese dioxide",
"name": { "str": "manganese dioxide", "str_pl": "manganese dioxide" },
"symbol": "=",
"color": "white",
"description": "A handful of manganese dioxide powder. Occurring naturally in the mineral pyrolusite, it is used commercially in the production of alkaline and zinc-carbon batteries.",
Expand Down Expand Up @@ -631,8 +629,7 @@
"id": "chem_nitric_acid",
"category": "chems",
"price": 300,
"name": "nitric acid",
"name_plural": "nitric acid",
"name": { "str": "nitric acid", "str_pl": "nitric acid" },
"symbol": "=",
"color": "white",
"flags": [ "DROP_ACTION_ONLY_IF_LIQUID" ],
Expand Down Expand Up @@ -755,8 +752,7 @@
"id": "material_niter",
"category": "spare_parts",
"price": 75,
"name": "niter",
"name_plural": "niter",
"name": { "str": "niter", "str_pl": "niter" },
"symbol": "*",
"color": "white",
"description": "A large crystal of niter, the mineral form of potassium nitrate. It can be processed into saltpeter.",
Expand Down Expand Up @@ -873,8 +869,7 @@
"id": "chem_match_head_powder",
"category": "chems",
"price": 50,
"name": "match head powder",
"name_plural": "match head powder",
"name": { "str": "match head powder", "str_pl": "match head powder" },
"symbol": "=",
"color": "light_red",
"description": "Some match head powder from match heads, similar to black gunpowder but a bit weaker. It can be used in crafting explosives and fuses when other more suitable candidates are less available.",
Expand Down
9 changes: 3 additions & 6 deletions data/json/items/fuel.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,7 @@
{
"id": "lamp_oil",
"type": "AMMO",
"name": "lamp oil",
"name_plural": "lamp oil",
"name": { "str": "lamp oil", "str_pl": "lamp oil" },
"description": "A thin and clean-burning oil made for use in oil lamps.",
"category": "fuel",
"weight": "1 g",
Expand Down Expand Up @@ -141,8 +140,7 @@
{
"id": "motor_oil",
"type": "AMMO",
"name": "motor oil",
"name_plural": "motor oil",
"name": { "str": "motor oil", "str_pl": "motor oil" },
"description": "An oil made for use in car engines.",
"category": "fuel",
"weight": "1 g",
Expand Down Expand Up @@ -170,8 +168,7 @@
{
"id": "napalm",
"type": "AMMO",
"name": "napalm",
"name_plural": "napalm",
"name": { "str": "napalm", "str_pl": "napalm" },
"description": "This is gasoline mixed with some other components to make it stick to the surface and increase burning temperature, meant to be used with a flamethrower.",
"category": "fuel",
"weight": "1 g",
Expand Down
6 changes: 2 additions & 4 deletions data/json/items/resources/metal.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,7 @@
"id": "lead",
"type": "AMMO",
"category": "spare_parts",
"name": "lead",
"name_plural": "lead",
"name": { "str": "lead", "str_pl": "lead" },
"description": "A soft dull metal known since ancient times. Due to its malleability it has a wide variety of uses including the manufacture of ammunition.",
"weight": "3 g",
"//": "Density 11.34g/cm³ ~ 2.8kg/250ml @ stack 1000 = 3g/unit",
Expand All @@ -179,8 +178,7 @@
"id": "magnesium",
"type": "AMMO",
"category": "spare_parts",
"name": "magnesium powder",
"name_plural": "magnesium powder",
"name": { "str": "magnesium powder", "str_pl": "magnesium powder" },
"description": "A gray powder composed of the highly flammable alkaline earth metal magnesium. Useful for constructing flares and similar items.",
"weight": "1120 mg",
"//": "Weight should be 1.12g because magnesium is 64% less dense than aluminum (1.74g/cm³ vs 2.70g/cm³), at 250ml aluminium powder has a weight of ~0.176kg at 250ml, assuming same particle size => magnesium powder has a weight of ~0.112kg at 250ml",
Expand Down
9 changes: 3 additions & 6 deletions data/json/items/resources/tailoring.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@
"id": "scrap_leather",
"copy-from": "scrap_cotton",
"type": "AMMO",
"name": "leather scraps",
"name_plural": "leather scraps",
"name": { "str": "leather scraps", "str_pl": "leather scraps" },
"description": "Oddly-shaped smallish bits of leather, waste material from tailoring projects. Not useful for much and usually disposed of.",
"price": 0,
"material": "leather"
Expand All @@ -63,8 +62,7 @@
"id": "scrap_lycra",
"copy-from": "scrap_cotton",
"type": "AMMO",
"name": "lycra scraps",
"name_plural": "lycra scraps",
"name": { "str": "lycra scraps", "str_pl": "lycra scraps" },
"description": "Oddly-shaped smallish bits of lycra, waste material from tailoring projects. Not useful for much and usually disposed of.",
"price": 0,
"material": "lycra"
Expand All @@ -73,8 +71,7 @@
"id": "scrap_neoprene",
"copy-from": "scrap_cotton",
"type": "AMMO",
"name": "neoprene scraps",
"name_plural": "neoprene scraps",
"name": { "str": "neoprene scraps", "str_pl": "neoprene scraps" },
"description": "Oddly-shaped smallish bits of neoprene, waste material from tailoring projects. Not useful for much and usually disposed of.",
"price": 0,
"material": "neoprene"
Expand Down

0 comments on commit 9fc9910

Please sign in to comment.