Skip to content

Commit

Permalink
Finish modernizing volume and weight (#41627)
Browse files Browse the repository at this point in the history
  • Loading branch information
hexagonrecursion authored Jun 30, 2020
1 parent 537b773 commit d750f3c
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 24 deletions.
6 changes: 3 additions & 3 deletions data/json/items/gun/50.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@
[ "underbarrel mount", 1 ]
],
"relative": {
"weight": -21500,
"volume": -6,
"weight": "-21500 g",
"volume": "-1500 ml",
"price": -1210000,
"ranged_damage": { "damage_type": "bullet", "amount": -4 },
"dispersion": 60,
"barrel_length": -1
"barrel_length": "-250 ml"
},
"flags": [ "RELOAD_EJECT" ],
"pocket_data": [ { "pocket_type": "MAGAZINE", "holster": true, "rigid": true, "ammo_restriction": { "50": 1 } } ]
Expand Down
4 changes: 2 additions & 2 deletions data/json/items/gun/762R.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
"price": 23000,
"price_postapoc": 3000,
"relative": {
"volume": -2,
"volume": "-500 ml",
"range": -6,
"ranged_damage": { "damage_type": "bullet", "amount": -3 },
"dispersion": 60,
"barrel_length": -2
"barrel_length": "-500 ml"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion data/json/items/gun/flintlock.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"clip_size": 2,
"price_postapoc": 2750,
"proportional": { "dispersion": 1.3, "weight": 1.25, "volume": 1.25 },
"relative": { "weight": 400, "range": -1, "ranged_damage": { "damage_type": "bullet", "amount": -2 } },
"relative": { "weight": "400 g", "range": -1, "ranged_damage": { "damage_type": "bullet", "amount": -2 } },
"extend": { "flags": [ "RELOAD_ONE" ] },
"pocket_data": [ { "pocket_type": "MAGAZINE", "rigid": true, "ammo_restriction": { "flintlock": 2 } } ]
},
Expand Down
2 changes: 1 addition & 1 deletion data/json/items/gun/shot.json
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@
"description": "A home-made double-barreled shotgun. It is simply two pipes attached to a stock, with a pair of hammers to strike the two rounds it holds.",
"clip_size": 2,
"modes": [ [ "DEFAULT", "single", 1 ], [ "DOUBLE", "double", 2 ] ],
"relative": { "weight": 500, "volume": 1, "price": 5000 },
"relative": { "weight": "500 g", "volume": "250 ml", "price": 5000 },
"barrel_length": "72 ml",
"valid_mod_locations": [
[ "accessories", 2 ],
Expand Down
6 changes: 3 additions & 3 deletions data/json/items/melee/swords_and_blades.json
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,7 @@
"looks_like": "fencing_foil",
"name": { "str": "sharpened foil" },
"description": "This once mostly harmless fencing foil has had its electrical plunger assembly removed and has been crudely sharpened to a point. Though it still lacks a cutting edge, it is now somewhat more lethal, yet still familiar to the practiced fencer.",
"relative": { "weight": -25, "cutting": 2 }
"relative": { "weight": "-25 g", "cutting": 2 }
},
{
"id": "fencing_epee_sharpened",
Expand All @@ -1122,7 +1122,7 @@
"looks_like": "fencing_epee",
"name": { "str": "sharpened épée" },
"description": "This once mostly harmless fencing épée has had its electrical plunger assembly removed and has been crudely sharpened to a point. Though it still lacks a cutting edge, it is now considerably more lethal, yet still familiar to the practiced fencer.",
"relative": { "weight": -35, "cutting": 5 }
"relative": { "weight": "-35 g", "cutting": 5 }
},
{
"id": "fencing_sabre_sharpened",
Expand All @@ -1131,7 +1131,7 @@
"looks_like": "fencing_sabre",
"name": { "str": "sharpened saber" },
"description": "This once mostly harmless fencing saber has had its rounded tip snapped off and has been crudely sharpened to a point. Though it still lacks a cutting edge, it is now considerably more lethal, yet still familiar to the practiced fencer.",
"relative": { "weight": -10, "cutting": 5 }
"relative": { "weight": "-10 g", "cutting": 5 }
},
{
"id": "shock_foil",
Expand Down
2 changes: 1 addition & 1 deletion data/json/items/obsolete.json
Original file line number Diff line number Diff line change
Expand Up @@ -2282,7 +2282,7 @@
[ "rail mount", 1 ],
[ "underbarrel mount", 1 ]
],
"relative": { "weight": 1000, "volume": 6, "range": 3, "ranged_damage": { "damage_type": "stab", "amount": 4 } },
"relative": { "weight": "1 kg", "volume": "1500 ml", "range": 3, "ranged_damage": { "damage_type": "stab", "amount": 4 } },
"proportional": { "price": 3, "dispersion": 0.5 },
"pocket_data": [
{
Expand Down
2 changes: 1 addition & 1 deletion data/json/items/vehicle/wheel.json
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,6 @@
"type": "WHEEL",
"name": { "str": "banded wooden cart wheel" },
"description": "A wooden cart wheel with metal bands for durability, hand made.",
"relative": { "weight": 500 }
"relative": { "weight": "500 g" }
}
]
22 changes: 11 additions & 11 deletions data/json/traps.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
{
"type": "trap",
"id": "tr_beartrap",
"trigger_weight": 200,
"trigger_weight": "200 g",
"name": "bear trap",
"color": "blue",
"symbol": "^",
Expand All @@ -161,7 +161,7 @@
{
"type": "trap",
"id": "tr_beartrap_buried",
"trigger_weight": 200,
"trigger_weight": "200 g",
"name": "buried bear trap",
"color": "blue",
"symbol": "^",
Expand Down Expand Up @@ -234,7 +234,7 @@
{
"type": "trap",
"id": "tr_crossbow",
"trigger_weight": 200,
"trigger_weight": "200 g",
"name": "crossbow trap",
"color": "green",
"symbol": "^",
Expand All @@ -257,7 +257,7 @@
{
"type": "trap",
"id": "tr_shotgun_2",
"trigger_weight": 200,
"trigger_weight": "200 g",
"name": "shotgun trap",
"color": "red",
"symbol": "^",
Expand All @@ -279,7 +279,7 @@
{
"type": "trap",
"id": "tr_shotgun_2_1",
"trigger_weight": 200,
"trigger_weight": "200 g",
"name": "shotgun trap",
"color": "red",
"symbol": "^",
Expand All @@ -302,7 +302,7 @@
{
"type": "trap",
"id": "tr_shotgun_1",
"trigger_weight": 200,
"trigger_weight": "200 g",
"name": "shotgun trap",
"color": "red",
"symbol": "^",
Expand All @@ -325,7 +325,7 @@
{
"type": "trap",
"id": "tr_engine",
"trigger_weight": 200,
"trigger_weight": "200 g",
"name": "spinning blade engine",
"color": "light_red",
"symbol": "_",
Expand All @@ -351,7 +351,7 @@
{
"type": "trap",
"id": "tr_landmine",
"trigger_weight": 200,
"trigger_weight": "200 g",
"name": "land mine",
"color": "red",
"symbol": "^",
Expand All @@ -373,7 +373,7 @@
{
"type": "trap",
"id": "tr_landmine_buried",
"trigger_weight": 200,
"trigger_weight": "200 g",
"name": "buried land mine",
"color": "red",
"symbol": "_",
Expand All @@ -395,7 +395,7 @@
{
"type": "trap",
"id": "tr_telepad",
"trigger_weight": 200,
"trigger_weight": "200 g",
"name": "teleport pad",
"color": "magenta",
"symbol": "_",
Expand Down Expand Up @@ -502,7 +502,7 @@
{
"type": "trap",
"id": "tr_boobytrap",
"trigger_weight": 200,
"trigger_weight": "200 g",
"name": "booby trap",
"color": "light_cyan",
"symbol": "^",
Expand Down
2 changes: 1 addition & 1 deletion data/json/vehicleparts/wheel.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"broken_symbol": "X",
"broken_color": "light_gray",
"damage_modifier": 40,
"folded_volume": 1,
"folded_volume": "250 ml",
"durability": 80,
"description": "A piece of wood with holes suitable for a bike or motorbike wheel.",
"item": "wheel_mount_wood",
Expand Down

0 comments on commit d750f3c

Please sign in to comment.