Skip to content

Commit

Permalink
Containers to pockets (CleverRaven#108)
Browse files Browse the repository at this point in the history
* Containers to pockets

* Lint JSON

* Lint tool_armor.json

* Remove redundant info

Co-Authored-By: Curtis Merrill <[email protected]>

* Update data/json/items/tool/container.json

Co-Authored-By: Curtis Merrill <[email protected]>

* Update data/json/items/tool/container.json

Co-Authored-By: Curtis Merrill <[email protected]>

* Update data/json/items/tool/med.json

Co-Authored-By: Curtis Merrill <[email protected]>

* Update data/json/items/generic/dining_kitchen.json

Co-Authored-By: Curtis Merrill <[email protected]>

Co-authored-by: Curtis Merrill <[email protected]>
  • Loading branch information
wapcaplet and KorGgenT authored Mar 20, 2020
1 parent 51eb741 commit 62cd263
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 111 deletions.
107 changes: 12 additions & 95 deletions data/json/items/containers.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,7 @@
"to_hit": -5,
"rigid": false,
"material": "cotton",
"pocket_data": [
{
"pocket_type": "CONTAINER",
"max_contains_volume": "1 L",
"max_contains_weight": "3 kg",
"moves": 400
}
],
"pocket_data": [ { "pocket_type": "CONTAINER", "max_contains_volume": "1 L", "max_contains_weight": "3 kg", "moves": 400 } ],
"symbol": ")",
"color": "brown",
"contains": "15 L",
Expand All @@ -136,14 +129,7 @@
"price": 0,
"to_hit": -5,
"material": "cotton",
"pocket_data": [
{
"pocket_type": "CONTAINER",
"max_contains_volume": "1 L",
"max_contains_weight": "3 kg",
"moves": 400
}
],
"pocket_data": [ { "pocket_type": "CONTAINER", "max_contains_volume": "1 L", "max_contains_weight": "3 kg", "moves": 400 } ],
"symbol": ")",
"color": "brown"
},
Expand Down Expand Up @@ -381,14 +367,7 @@
"material": "paper",
"symbol": ")",
"color": "white",
"pocket_data": [
{
"pocket_type": "CONTAINER",
"rigid": true,
"max_contains_volume": "250 ml",
"max_contains_weight": "3 kg"
}
]
"pocket_data": [ { "pocket_type": "CONTAINER", "rigid": true, "max_contains_volume": "250 ml", "max_contains_weight": "3 kg" } ]
},
{
"id": "box_small",
Expand All @@ -398,14 +377,7 @@
"description": "A small cardboard box. No bigger than a foot in dimension.",
"weight": "151 g",
"volume": "1 L",
"pocket_data": [
{
"pocket_type": "CONTAINER",
"rigid": true,
"max_contains_volume": "990 ml",
"max_contains_weight": "4 kg"
}
],
"pocket_data": [ { "pocket_type": "CONTAINER", "rigid": true, "max_contains_volume": "990 ml", "max_contains_weight": "4 kg" } ],
"price": 0,
"material": "cardboard",
"symbol": ")",
Expand Down Expand Up @@ -1230,14 +1202,7 @@
"material": "gutskin",
"symbol": ")",
"color": "brown",
"pocket_data": [
{
"pocket_type": "CONTAINER",
"watertight": true,
"max_contains_volume": "3 L",
"max_contains_weight": "6 kg"
}
]
"pocket_data": [ { "pocket_type": "CONTAINER", "watertight": true, "max_contains_volume": "3 L", "max_contains_weight": "6 kg" } ]
},
{
"id": "metal_tank",
Expand Down Expand Up @@ -1329,14 +1294,7 @@
"material": "gutskin",
"symbol": ")",
"color": "brown",
"pocket_data": [
{
"pocket_type": "CONTAINER",
"watertight": true,
"max_contains_volume": "1500 ml",
"max_contains_weight": "3 kg"
}
]
"pocket_data": [ { "pocket_type": "CONTAINER", "watertight": true, "max_contains_volume": "1500 ml", "max_contains_weight": "3 kg" } ]
},
{
"id": "waterskin",
Expand All @@ -1352,14 +1310,7 @@
"material": "leather",
"symbol": ")",
"color": "brown",
"pocket_data": [
{
"pocket_type": "CONTAINER",
"watertight": true,
"max_contains_volume": "1500 ml",
"max_contains_weight": "3 kg"
}
],
"pocket_data": [ { "pocket_type": "CONTAINER", "watertight": true, "max_contains_volume": "1500 ml", "max_contains_weight": "3 kg" } ],
"armor_data": { "covers": [ "LEG_EITHER" ], "coverage": 5, "material_thickness": 2 },
"flags": [ "WAIST", "WATER_FRIENDLY" ]
},
Expand All @@ -1377,14 +1328,7 @@
"material": "leather",
"symbol": ")",
"color": "brown",
"pocket_data": [
{
"pocket_type": "CONTAINER",
"watertight": true,
"max_contains_volume": "3 L",
"max_contains_weight": "6 kg"
}
],
"pocket_data": [ { "pocket_type": "CONTAINER", "watertight": true, "max_contains_volume": "3 L", "max_contains_weight": "6 kg" } ],
"armor_data": { "covers": [ "TORSO" ], "coverage": 10, "material_thickness": 2 },
"flags": [ "WAIST", "WATER_FRIENDLY" ]
},
Expand All @@ -1402,14 +1346,7 @@
"material": "leather",
"symbol": ")",
"color": "brown",
"pocket_data": [
{
"pocket_type": "CONTAINER",
"watertight": true,
"max_contains_volume": "5 L",
"max_contains_weight": "10 kg"
}
],
"pocket_data": [ { "pocket_type": "CONTAINER", "watertight": true, "max_contains_volume": "5 L", "max_contains_weight": "10 kg" } ],
"armor_data": { "covers": [ "TORSO" ], "coverage": 15, "material_thickness": 2 },
"flags": [ "BELTED", "WATER_FRIENDLY" ]
},
Expand All @@ -1427,14 +1364,7 @@
"material": [ "wood", "steel" ],
"symbol": ")",
"color": "brown",
"pocket_data": [
{
"pocket_type": "CONTAINER",
"watertight": true,
"max_contains_volume": "100 L",
"max_contains_weight": "200 kg"
}
],
"pocket_data": [ { "pocket_type": "CONTAINER", "watertight": true, "max_contains_volume": "100 L", "max_contains_weight": "200 kg" } ],
"contains": "100 L",
"seals": true,
"watertight": true,
Expand All @@ -1453,13 +1383,7 @@
"material": "paper",
"symbol": ",",
"color": "light_gray",
"pocket_data": [
{
"pocket_type": "CONTAINER",
"max_contains_volume": "2500 ml",
"max_contains_weight": "6 kg"
}
],
"pocket_data": [ { "pocket_type": "CONTAINER", "max_contains_volume": "2500 ml", "max_contains_weight": "6 kg" } ],
"flags": [ "TRADER_AVOID" ]
},
{
Expand Down Expand Up @@ -1521,14 +1445,7 @@
"material": "plastic",
"symbol": ")",
"color": "white",
"pocket_data": [
{
"pocket_type": "CONTAINER",
"watertight": true,
"max_contains_volume": "3750 ml",
"max_contains_weight": "7 kg"
}
],
"pocket_data": [ { "pocket_type": "CONTAINER", "watertight": true, "max_contains_volume": "3750 ml", "max_contains_weight": "7 kg" } ],
"properties": [ [ "burst_when_filled", "75" ] ]
},
{
Expand Down
12 changes: 10 additions & 2 deletions data/json/items/generic/dining_kitchen.json
Original file line number Diff line number Diff line change
Expand Up @@ -294,14 +294,22 @@
},
{
"id": "bowl_plastic",
"type": "CONTAINER",
"type": "GENERIC",
"category": "other",
"name": "plastic bowl",
"symbol": "u",
"description": "A plastic bowl with a convenient sealing lid. Holds 750 ml of liquid.",
"copy-from": "base_plastic_dish",
"volume": "750 ml",
"container_data": { "contains": "750 ml", "seals": true, "watertight": true },
"pocket_data": [
{
"pocket_type": "CONTAINER",
"watertight": false,
"rigid": true,
"max_contains_volume": "750 ml",
"max_contains_weight": "1 kg"
}
],
"qualities": [ [ "CONTAIN", 1 ] ]
},
{
Expand Down
29 changes: 20 additions & 9 deletions data/json/items/tool/container.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{
"id": "bottle_metal",
"type": "CONTAINER",
"type": "GENERIC",
"category": "other",
"name": { "str": "steel bottle" },
"description": "A stainless steel water bottle, holds 750ml of liquid.",
Expand All @@ -13,27 +13,38 @@
"material": "steel",
"symbol": ")",
"color": "light_cyan",
"contains": "750 ml",
"seals": true,
"watertight": true,
"pocket_data": [
{
"pocket_type": "CONTAINER",
"watertight": true,
"rigid": true,
"max_contains_volume": "750 ml",
"max_contains_weight": "1 kg"
}
],
"qualities": [ [ "CONTAIN", 1 ], [ "BOIL", 2 ] ]
},
{
"id": "bottle_folding",
"type": "CONTAINER",
"type": "GENERIC",
"category": "other",
"name": { "str": "foldable plastic bottle" },
"description": "A non-rigid plastic bottle for easy storage, holds 500 ml of liquid.",
"weight": "13 g",
"volume": "50 ml",
"price": 0,
"to_hit": 1,
"rigid": false,
"material": "plastic",
"symbol": ")",
"color": "light_cyan",
"contains": "500 ml",
"seals": true,
"watertight": true
"pocket_data": [
{
"pocket_type": "CONTAINER",
"watertight": true,
"rigid": false,
"max_contains_volume": "500 ml",
"max_contains_weight": "1 kg"
}
]
}
]
16 changes: 11 additions & 5 deletions data/json/items/tool/med.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
},
{
"id": "vacutainer",
"type": "CONTAINER",
"type": "GENERIC",
"category": "tools",
"name": { "str": "blood draw kit" },
"description": "This is a kit for drawing blood, including a test tube for holding the sample. Use this tool to draw blood, either from yourself or from a corpse you are standing on.",
Expand All @@ -168,11 +168,17 @@
"material": "plastic",
"symbol": ";",
"color": "light_cyan",
"contains": "250 ml",
"seals": true,
"watertight": true,
"use_action": "BLOOD_DRAW",
"flags": [ "SPEAR" ]
"flags": [ "SPEAR" ],
"pocket_data": [
{
"pocket_type": "CONTAINER",
"watertight": true,
"rigid": true,
"max_contains_volume": "250 ml",
"max_contains_weight": "50 g"
}
]
},
{
"id": "wrapped_rad_badge",
Expand Down

0 comments on commit 62cd263

Please sign in to comment.