Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change "storage" volume to metric units #33462

Merged
merged 21 commits into from
Aug 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
f164cb4
pull origin and update
ampersand55 Aug 19, 2019
b9dcad2
Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA…
ampersand55 Aug 19, 2019
6b63c8d
add script used to tools/json_tools
ampersand55 Aug 19, 2019
6489457
Update data/json/items/armor.json
ampersand55 Aug 19, 2019
682a07e
Update data/json/items/armor.json
ampersand55 Aug 19, 2019
64ef034
Update data/json/items/armor.json
ampersand55 Aug 19, 2019
baf99c8
Update data/json/items/armor.json
ampersand55 Aug 19, 2019
3759b6e
formatting in cddaUpdateJsonVolume.js
ampersand55 Aug 19, 2019
656184b
change tool to not update volume 0
ampersand55 Aug 19, 2019
9d055ce
do not update volume 0
ampersand55 Aug 19, 2019
ac5c734
don't update volume 0
ampersand55 Aug 19, 2019
4d49516
reapply anothersimulacrums suggestions
ampersand55 Aug 19, 2019
a606d9f
Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA…
ampersand55 Aug 19, 2019
7e79215
Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA…
ampersand55 Aug 19, 2019
a349cf7
Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA…
ampersand55 Aug 20, 2019
3263ebb
add other volume values to script
ampersand55 Aug 20, 2019
099741a
run script again and update files
ampersand55 Aug 20, 2019
16c2fb9
Merge branch 'change_volume_to_metric' of https://github.com/ampersan…
ampersand55 Aug 20, 2019
e467357
resolve merge conflict
ampersand55 Aug 22, 2019
f20526c
update 'storage' to metric
ampersand55 Aug 22, 2019
2945615
update tool
ampersand55 Aug 22, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
264 changes: 132 additions & 132 deletions data/json/items/armor.json

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions data/json/items/armor/ammo_pouch.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"coverage": 20,
"encumbrance": 2,
"material_thickness": 2,
"storage": 12,
"storage": "3 L",
"use_action": {
"type": "holster",
"holster_prompt": "Stash ammo",
Expand Down Expand Up @@ -177,7 +177,7 @@
"covers": [ "TORSO" ],
"coverage": 85,
"encumbrance": 7,
"storage": 10,
"storage": "2500 ml",
"warmth": 15,
"material_thickness": 4,
"use_action": {
Expand Down Expand Up @@ -210,7 +210,7 @@
"covers": [ "TORSO" ],
"coverage": 85,
"encumbrance": 15,
"storage": 4,
"storage": "1 L",
"warmth": 15,
"material_thickness": 5,
"use_action": {
Expand Down Expand Up @@ -243,7 +243,7 @@
"covers": [ "TORSO" ],
"coverage": 85,
"encumbrance": 45,
"storage": 4,
"storage": "1 L",
"warmth": 15,
"material_thickness": 4,
"use_action": {
Expand Down Expand Up @@ -276,7 +276,7 @@
"covers": [ "TORSO" ],
"coverage": 85,
"encumbrance": 8,
"storage": 4,
"storage": "1 L",
"warmth": 15,
"material_thickness": 5,
"use_action": {
Expand Down Expand Up @@ -309,7 +309,7 @@
"covers": [ "TORSO" ],
"coverage": 85,
"encumbrance": 30,
"storage": 4,
"storage": "1 L",
"warmth": 15,
"material_thickness": 5,
"use_action": {
Expand Down Expand Up @@ -342,7 +342,7 @@
"covers": [ "TORSO" ],
"coverage": 85,
"encumbrance": 15,
"storage": 4,
"storage": "1 L",
"warmth": 15,
"material_thickness": 5,
"use_action": {
Expand Down Expand Up @@ -375,7 +375,7 @@
"covers": [ "TORSO" ],
"coverage": 85,
"encumbrance": 17,
"storage": 10,
"storage": "2500 ml",
"warmth": 15,
"material_thickness": 4,
"use_action": {
Expand Down
46 changes: 23 additions & 23 deletions data/json/items/armor/backpacks.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"covers": [ "TORSO" ],
"coverage": 30,
"encumbrance": 10,
"storage": 40,
"storage": "10 L",
"warmth": 6,
"material_thickness": 2,
"flags": [ "BELTED" ]
Expand All @@ -32,7 +32,7 @@
"covers": [ "TORSO" ],
"coverage": 50,
"encumbrance": 55,
"storage": 220,
"storage": "55 L",
"warmth": 10,
"material_thickness": 2,
"use_action": {
Expand Down Expand Up @@ -61,7 +61,7 @@
"covers": [ "TORSO", "LEGS" ],
"coverage": 75,
"encumbrance": 100,
"storage": 140,
"storage": "35 L",
"warmth": 5,
"material_thickness": 2,
"flags": [ "BELTED" ]
Expand All @@ -80,7 +80,7 @@
"covers": [ "TORSO" ],
"coverage": 30,
"encumbrance": 11,
"storage": 40,
"storage": "10 L",
"warmth": 9,
"material_thickness": 3,
"flags": [ "BELTED", "WATER_FRIENDLY" ]
Expand All @@ -99,7 +99,7 @@
"covers": [ "TORSO" ],
"coverage": 50,
"encumbrance": 65,
"storage": 260,
"storage": "65 L",
"warmth": 10,
"material_thickness": 2,
"flags": [ "BELTED", "WATERPROOF", "ONLY_ONE", "OVERSIZE" ]
Expand All @@ -118,7 +118,7 @@
"covers": [ "TORSO" ],
"coverage": 50,
"encumbrance": 100,
"storage": 400,
"storage": "100 L",
"warmth": 10,
"material_thickness": 2,
"flags": [ "BELTED", "WATERPROOF", "ONLY_ONE", "OVERSIZE" ]
Expand All @@ -137,7 +137,7 @@
"covers": [ "TORSO" ],
"coverage": 40,
"encumbrance": 10,
"storage": 38,
"storage": "9500 ml",
"material_thickness": 1,
"flags": [ "WATER_FRIENDLY", "BELTED" ]
},
Expand All @@ -155,7 +155,7 @@
"covers": [ "TORSO" ],
"coverage": 50,
"encumbrance": 30,
"storage": 120,
"storage": "30 L",
"warmth": 10,
"material_thickness": 2,
"flags": [ "BELTED", "WATER_FRIENDLY" ]
Expand All @@ -174,7 +174,7 @@
"covers": [ "TORSO" ],
"coverage": 40,
"encumbrance": 14,
"storage": 15,
"storage": "3750 ml",
"warmth": 8,
"material_thickness": 2,
"properties": [ [ "monster_size_capacity", "SMALL" ] ],
Expand Down Expand Up @@ -215,7 +215,7 @@
"covers": [ "TORSO" ],
"coverage": 30,
"encumbrance": 10,
"storage": 20,
"storage": "5 L",
"warmth": 5,
"material_thickness": 1,
"flags": [ "BELTED", "WATER_FRIENDLY" ]
Expand All @@ -235,7 +235,7 @@
"covers": [ "TORSO" ],
"coverage": 40,
"encumbrance": 40,
"storage": 30,
"storage": "7500 ml",
"warmth": 10,
"material_thickness": 1,
"flags": [ "OVERSIZE", "BELTED", "WATER_FRIENDLY" ]
Expand All @@ -257,7 +257,7 @@
"covers": [ "TORSO" ],
"coverage": 30,
"encumbrance": 5,
"storage": 25,
"storage": "6250 ml",
"material_thickness": 1,
"flags": [ "BELTED", "WATER_FRIENDLY" ]
},
Expand All @@ -275,7 +275,7 @@
"covers": [ "TORSO" ],
"coverage": 35,
"encumbrance": 9,
"storage": 48,
"storage": "12 L",
"warmth": 10,
"material_thickness": 2,
"flags": [ "BELTED", "WATER_FRIENDLY" ]
Expand All @@ -296,7 +296,7 @@
"covers": [ "TORSO" ],
"coverage": 10,
"encumbrance": 7,
"storage": 20,
"storage": "5 L",
"material_thickness": 2,
"flags": [ "FANCY", "BELTED", "WATER_FRIENDLY" ]
},
Expand All @@ -314,7 +314,7 @@
"covers": [ "TORSO" ],
"coverage": 40,
"encumbrance": 20,
"storage": 80,
"storage": "20 L",
"warmth": 8,
"material_thickness": 2,
"flags": [ "BELTED", "WATER_FRIENDLY" ]
Expand All @@ -335,7 +335,7 @@
"covers": [ "TORSO" ],
"coverage": 20,
"encumbrance": 3,
"storage": 16,
"storage": "4 L",
"warmth": 2,
"material_thickness": 1,
"flags": [ "BELTED", "WATER_FRIENDLY" ]
Expand All @@ -356,7 +356,7 @@
"covers": [ "TORSO" ],
"coverage": 30,
"encumbrance": 7,
"storage": 32,
"storage": "8 L",
"warmth": 2,
"material_thickness": 1,
"flags": [ "BELTED", "WATER_FRIENDLY" ]
Expand All @@ -375,7 +375,7 @@
"covers": [ "TORSO" ],
"coverage": 40,
"encumbrance": 25,
"storage": 150,
"storage": "37500 ml",
"material_thickness": 2,
"flags": [ "WATER_FRIENDLY", "STURDY", "BELTED", "OVERSIZE" ]
},
Expand All @@ -393,7 +393,7 @@
"covers": [ "TORSO" ],
"coverage": 30,
"encumbrance": 8,
"storage": 50,
"storage": "12500 ml",
"material_thickness": 2,
"flags": [ "WATER_FRIENDLY", "STURDY", "BELTED" ]
},
Expand All @@ -411,7 +411,7 @@
"covers": [ "TORSO" ],
"coverage": 40,
"encumbrance": 18,
"storage": 100,
"storage": "25 L",
"material_thickness": 2,
"flags": [ "WATER_FRIENDLY", "STURDY", "BELTED", "OVERSIZE" ]
},
Expand All @@ -429,7 +429,7 @@
"covers": [ "TORSO" ],
"coverage": 30,
"encumbrance": 2,
"storage": 18,
"storage": "4500 ml",
"material_thickness": 2,
"flags": [ "WATER_FRIENDLY", "STURDY", "BELTED" ]
},
Expand All @@ -447,7 +447,7 @@
"covers": [ "TORSO" ],
"coverage": 35,
"encumbrance": 16,
"storage": 60,
"storage": "15 L",
"warmth": 5,
"material_thickness": 3,
"flags": [ "BELTED", "OVERSIZE" ],
Expand All @@ -474,7 +474,7 @@
"covers": [ "TORSO" ],
"coverage": 40,
"encumbrance": 25,
"storage": 100,
"storage": "25 L",
"warmth": 8,
"material_thickness": 2,
"flags": [ "BELTED", "WATERPROOF" ]
Expand Down
2 changes: 1 addition & 1 deletion data/json/items/armor/holster.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
"covers": [ "TORSO" ],
"coverage": 20,
"encumbrance": 2,
"storage": 12,
"storage": "3 L",
"material_thickness": 2,
"use_action": { "type": "holster", "max_volume": 15, "min_volume": 5, "skills": [ "smg", "shotgun", "rifle" ] },
"flags": [ "WATER_FRIENDLY", "STURDY", "WAIST" ]
Expand Down
4 changes: 2 additions & 2 deletions data/json/items/armor/pets_dog_armor.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"to_hit": -1,
"flags": [ "IS_PET_ARMOR", "NO_SALVAGE" ],
"material_thickness": 2,
"storage": 50,
"storage": "12500 ml",
"max_pet_vol": "35000 ml",
"min_pet_vol": "25000 ml",
"pet_bodytype": "dog"
Expand Down Expand Up @@ -114,7 +114,7 @@
"price_postapoc": 13000,
"material": [ "superalloy" ],
"weight": 3125,
"storage": 100,
"storage": "25 L",
"min_pet_vol": "20000 ml"
}
]
2 changes: 1 addition & 1 deletion data/json/items/armor/pets_horse_armor.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
"covers": [ "HANDS" ],
"coverage": 50,
"encumbrance": 30,
"storage": 120,
"storage": "30 L",
"warmth": 10,
"material_thickness": 2,
"flags": [ "BELTED", "WATER_FRIENDLY" ]
Expand Down
10 changes: 5 additions & 5 deletions data/json/items/armor/power_armor.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"covers": [ "TORSO", "ARMS", "HANDS", "LEGS", "FEET" ],
"coverage": 95,
"encumbrance": 40,
"storage": 10,
"storage": "2500 ml",
"warmth": 50,
"material_thickness": 8,
"environmental_protection": 6,
Expand Down Expand Up @@ -63,7 +63,7 @@
"covers": [ "TORSO", "ARMS", "HANDS", "LEGS", "FEET" ],
"coverage": 100,
"encumbrance": 50,
"storage": 10,
"storage": "2500 ml",
"warmth": 90,
"power_armor": true,
"material_thickness": 11,
Expand All @@ -87,7 +87,7 @@
"color": "light_gray",
"coverage": 100,
"encumbrance": 40,
"storage": 120,
"storage": "30 L",
"power_armor": true,
"material_thickness": 10,
"flags": [ "WATERPROOF", "STURDY", "BELTED" ]
Expand All @@ -109,7 +109,7 @@
"covers": [ "TORSO", "ARMS", "HANDS", "LEGS", "FEET" ],
"coverage": 100,
"encumbrance": 60,
"storage": 16,
"storage": "4 L",
"warmth": 60,
"power_armor": true,
"material_thickness": 12,
Expand Down Expand Up @@ -206,7 +206,7 @@
"covers": [ "TORSO", "ARMS", "HANDS", "LEGS", "FEET" ],
"coverage": 100,
"encumbrance": 40,
"storage": 16,
"storage": "4 L",
"warmth": 60,
"power_armor": true,
"material_thickness": 9,
Expand Down
4 changes: 2 additions & 2 deletions data/json/items/tool_armor.json
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@
"ammo": "plutonium",
"use_action": "RM13ARMOR_OFF",
"covers": [ "HEAD", "MOUTH", "EYES", "TORSO", "ARMS", "HANDS", "LEGS", "FEET" ],
"storage": 32,
"storage": "8 L",
"warmth": 30,
"environmental_protection": 15,
"encumbrance": 30,
Expand Down Expand Up @@ -1319,7 +1319,7 @@
"weight": 3390,
"color": "brown",
"covers": [ "TORSO" ],
"storage": 2,
"storage": "500 ml",
"symbol": "[",
"description": "A custom-built leather utility belt covered with straps and pouches containing many useful hand tools and a sheath to carry a smaller blade. Durable and carefully crafted to be comfortable to wear. Activate to sheathe/draw a weapon.",
"price": 50000,
Expand Down
2 changes: 1 addition & 1 deletion tools/json_tools/cddaUpdateJsonVolume.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const PATH = require('path');
const pad = (str, n = 3) => String(str).padStart(n);
const L = (str, ...args) => console.info(pad(str, 30), ...args);

const matchVolume = /( *)("(?:min_|max_|min_pet_|min_pet_|integral_)?volume": )(\d+)(,\r?\n)/g;
const matchVolume = /( *)("(?:min_|max_|min_pet_|min_pet_|integral_)?volume|storage": )(\d+)(,\r?\n)/g;

if (process.argv.length !== 3) {
L('must have exactly one argument');
Expand Down