Skip to content

Commit

Permalink
clean up deployable items with pseudo-item tools
Browse files Browse the repository at this point in the history
- Consolidate butter churn and brazier items into deployable file.
- Fix a bug where a butter churn could be used while packed (simply deleted tag).
- Start adding simple pulley for storage battery lifting, per CleverRaven#23094. Needs recipe.
  • Loading branch information
OddSkollar committed Apr 6, 2020
1 parent 95973f8 commit 8ef2241
Show file tree
Hide file tree
Showing 4 changed files with 150 additions and 75 deletions.
25 changes: 0 additions & 25 deletions data/json/furniture_and_terrain/furniture-fireplaces.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,31 +41,6 @@
},
"deconstruct": { "items": [ { "item": "metal_tank", "count": 1 }, { "item": "pipe", "count": 1 } ] }
},
{
"type": "furniture",
"id": "f_brazier",
"name": "brazier",
"description": "A raised metal dish in which to safely burn things.",
"symbol": "#",
"color": "red",
"move_cost_mod": 2,
"coverage": 35,
"required_str": 8,
"flags": [ "PLACE_ITEM", "TRANSPARENT", "FIRE_CONTAINER", "EASY_DECONSTRUCT" ],
"deployed_item": "brazier",
"examine_action": "fireplace",
"bash": {
"str_min": 8,
"str_max": 30,
"sound": "metal screeching!",
"sound_fail": "clang!",
"items": [
{ "item": "scrap", "count": [ 5, 15 ] },
{ "item": "steel_chunk", "count": [ 2, 6 ] },
{ "item": "sheet_metal_small", "count": [ 2, 6 ] }
]
}
},
{
"type": "furniture",
"id": "f_55gal_firebarrel",
Expand Down
30 changes: 0 additions & 30 deletions data/json/furniture_and_terrain/furniture-storage.json
Original file line number Diff line number Diff line change
Expand Up @@ -900,35 +900,5 @@
{ "item": "pipe", "count": [ 1, 2 ] }
]
}
},
{
"type": "furniture",
"id": "f_butter_churn",
"name": "butter churn",
"description": "A pedal driven butter churn.",
"symbol": "H",
"color": "light_cyan",
"crafting_pseudo_item": "butter_churn",
"move_cost_mod": -1,
"coverage": 70,
"required_str": -1,
"flags": [ "NOITEM", "SEALED", "ALLOW_FIELD_EFFECT", "TRANSPARENT", "FLAMMABLE", "CONTAINER", "LIQUIDCONT", "EASY_DECONSTRUCT" ],
"examine_action": "keg",
"keg_capacity": 45,
"deconstruct": { "items": [ { "item": "churn", "count": 1 } ] },
"bash": {
"str_min": 12,
"str_max": 50,
"sound": "smash!",
"sound_fail": "whump.",
"items": [
{ "item": "2x4", "count": [ 6, 12 ] },
{ "item": "nail", "charges": [ 4, 8 ] },
{ "item": "water_faucet", "prob": 50 },
{ "item": "sheet_metal_small", "count": [ 6, 12 ] },
{ "item": "scrap", "count": [ 10, 20 ] },
{ "item": "splinter", "count": [ 1, 20 ] }
]
}
}
]
16 changes: 0 additions & 16 deletions data/json/items/tool/cooking.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,6 @@
"//": "It would be nice if this could have a use action to thaw frozen stuff. It's not hot enough to work as a hotplate.",
"flags": [ "LEAK_DAM", "RADIOACTIVE", "DURABLE_MELEE" ]
},
{
"id": "butter_churn",
"type": "TOOL",
"name": { "str": "pseudo butter churn" },
"description": "This is a crafting_pseudo_item if you have it something is wrong.",
"weight": "6464 g",
"volume": "9 L",
"price": 20000,
"to_hit": -2,
"bashing": 9,
"material": "wood",
"qualities": [ [ "CHURN", 1 ] ],
"symbol": "H",
"color": "light_cyan",
"flags": [ "ALLOWS_REMOTE_USE" ]
},
{
"id": "can_sealer",
"type": "GENERIC",
Expand Down
154 changes: 150 additions & 4 deletions data/json/items/tool/deployable.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,45 @@
[
{
"id": "brazier_pseudo",
"type": "TOOL",
"name": { "str": "brazier" },
"description": "This is a crafting_pseudo_item if you have it something is wrong.",
"weight": "5000 g",
"volume": "2500 ml",
"price": 5000,
"to_hit": -4,
"bashing": 7,
"material": [ "steel" ],
"symbol": ";",
"color": "light_gray",
"qualities": [ [ "COOK", 1 ], [ "BOIL", 2 ], [ "CONTAIN", 1 ] ]
},
{
"type": "furniture",
"id": "f_brazier",
"name": "brazier",
"description": "A raised metal dish in which to safely burn things.",
"symbol": "#",
"color": "red",
"move_cost_mod": 2,
"coverage": 35,
"required_str": 8,
"flags": [ "PLACE_ITEM", "TRANSPARENT", "FIRE_CONTAINER", "EASY_DECONSTRUCT" ],
"deployed_item": "brazier",
"examine_action": "fireplace",
"crafting_pseudo_item": "brazier_pseudo",
"bash": {
"str_min": 8,
"str_max": 30,
"sound": "metal screeching!",
"sound_fail": "clang!",
"items": [
{ "item": "scrap", "count": [ 5, 15 ] },
{ "item": "steel_chunk", "count": [ 2, 6 ] },
{ "item": "sheet_metal_small", "count": [ 2, 6 ] }
]
}
},
{
"id": "brazier",
"type": "TOOL",
Expand All @@ -12,8 +53,7 @@
"material": [ "steel" ],
"symbol": ";",
"color": "light_gray",
"use_action": { "type": "deploy_furn", "furn_type": "f_brazier" },
"qualities": [ [ "COOK", 1 ], [ "BOIL", 2 ], [ "CONTAIN", 1 ] ]
"use_action": { "type": "deploy_furn", "furn_type": "f_brazier" }
},
{
"id": "55gal_firebarrel",
Expand Down Expand Up @@ -197,6 +237,67 @@
"color": "brown",
"use_action": { "type": "deploy_furn", "furn_type": "f_leather_tarp" }
},
{
"id": "simple_pulley_pseudo",
"type": "TOOL",
"name": { "str": "pseudo simple pulley" },
"description": "This is a crafting_pseudo_item if you have it something is wrong.",
"weight": "12000 g",
"volume": "30000 ml",
"price": 20000,
"to_hit": -2,
"bashing": 9,
"material": "wood",
"qualities": [ [ "LIFT", 1 ] ],
"symbol": "A",
"color": "light_brown",
"flags": [ "ALLOWS_REMOTE_USE" ]
},
{
"type": "furniture",
"id": "f_simple_pulley",
"name": "simple pulley (deployed)",
"description": "A tall and rickety A-frame stepladder without the steps. Instead, it has a small wheel secured at the top and a two-ended grappling hook wrapped around the pulley. It's ready to be used.",
"symbol": "A",
"color": "light_brown",
"looks_like": "cantilever_small",
"crafting_pseudo_item": "butter_churn_pseudo",
"move_cost_mod": -1,
"coverage": 40,
"required_str": -1,
"flags": [ "NOITEM", "TRANSPARENT", "FLAMMABLE", "EASY_DECONSTRUCT" ],
"examine_action": "deployed_furniture",
"deconstruct": { "items": [ { "item": "simple_pulley", "count": 1 } ] },
"bash": {
"str_min": 8,
"str_max": 50,
"sound": "smash!",
"sound_fail": "whump.",
"items": [
{ "item": "2x4", "count": [ 3, 6 ] },
{ "item": "nail", "charges": [ 4, 12 ] },
{ "item": "scrap", "count": [ 1, 4 ] },
{ "item": "splinter", "count": [ 1, 10 ] }
]
}
},
{
"id": "simple_pulley",
"type": "TOOL",
"name": { "str": "simple pulley" },
"description": "A tall and rickety folded A-frame stepladder without the steps. Instead, it has a small wheel secured at the top and a two-ended grappling hook wrapped around the pulley. When deployed, you could use it to temporarily lift something heavy.",
"weight": "12000 g",
"volume": "30000 ml",
"price": 50,
"price_postapoc": 100,
"to_hit": -4,
"bashing": 7,
"material": [ "wood" ],
"looks_like": "wheel_bicycle",
"symbol": "A",
"color": "light_brown",
"use_action": { "type": "deploy_furn", "furn_type": "f_simple_pulley" }
},
{
"id": "fiber_mat",
"type": "TOOL",
Expand All @@ -212,6 +313,52 @@
"color": "yellow",
"use_action": { "type": "deploy_furn", "furn_type": "f_fiber_mat" }
},
{
"id": "butter_churn_pseudo",
"type": "TOOL",
"name": { "str": "pseudo butter churn" },
"description": "This is a crafting_pseudo_item if you have it something is wrong.",
"weight": "6464 g",
"volume": "9 L",
"price": 20000,
"to_hit": -2,
"bashing": 9,
"material": "wood",
"qualities": [ [ "CHURN", 1 ] ],
"symbol": "H",
"color": "light_cyan",
"flags": [ "ALLOWS_REMOTE_USE" ]
},
{
"type": "furniture",
"id": "f_butter_churn",
"name": "butter churn",
"description": "A pedal driven butter churn.",
"symbol": "H",
"color": "light_cyan",
"crafting_pseudo_item": "butter_churn_pseudo",
"move_cost_mod": -1,
"coverage": 70,
"required_str": -1,
"flags": [ "NOITEM", "SEALED", "ALLOW_FIELD_EFFECT", "TRANSPARENT", "FLAMMABLE", "CONTAINER", "LIQUIDCONT", "EASY_DECONSTRUCT" ],
"examine_action": "keg",
"keg_capacity": 45,
"deconstruct": { "items": [ { "item": "churn", "count": 1 } ] },
"bash": {
"str_min": 12,
"str_max": 50,
"sound": "smash!",
"sound_fail": "whump.",
"items": [
{ "item": "2x4", "count": [ 6, 12 ] },
{ "item": "nail", "charges": [ 4, 8 ] },
{ "item": "water_faucet", "prob": 50 },
{ "item": "sheet_metal_small", "count": [ 6, 12 ] },
{ "item": "scrap", "count": [ 10, 20 ] },
{ "item": "splinter", "count": [ 1, 20 ] }
]
}
},
{
"id": "churn",
"type": "TOOL",
Expand All @@ -227,8 +374,7 @@
"looks_like": "f_wood_keg",
"symbol": "u",
"color": "light_gray",
"use_action": { "type": "deploy_furn", "furn_type": "f_butter_churn" },
"qualities": [ [ "CONTAIN", 1 ], [ "CHURN", 1 ] ]
"use_action": { "type": "deploy_furn", "furn_type": "f_butter_churn" }
},
{
"id": "water_mill",
Expand Down

0 comments on commit 8ef2241

Please sign in to comment.