Skip to content

Commit

Permalink
Sanity-checking construction components yet again (#2969)
Browse files Browse the repository at this point in the history
* Sanity-checking construction components yet again

* Update construction.json

* Glorious, delicious fixes

With thanks to @olanti-p and @KheirFerrum for putting up with my lack of knowledge of how to python.

* Finish up stick usage

* Apply suggestions from code review

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* And now standardize log usage

* Thatch and mortar stuff

* Adobe adjustments

* Also fix more basecamps

* And finally update rammed earth

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
chaosvolt and github-actions[bot] authored Jun 18, 2023
1 parent ef15050 commit 5f2414f
Show file tree
Hide file tree
Showing 45 changed files with 1,936 additions and 1,134 deletions.
97 changes: 66 additions & 31 deletions data/json/construction.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"required_skills": [ [ "survival", 2 ] ],
"time": "60 m",
"qualities": [ [ { "id": "CUT", "level": 1 } ], [ { "id": "HAMMER", "level": 1 } ] ],
"components": [ [ [ "stick", 12 ], [ "2x4", 6 ], [ "wood_panel", 1 ] ], [ [ "pine_bough", 24 ], [ "willowbark", 24 ] ] ],
"components": [ [ [ "wood_structural", 3, "LIST" ], [ "wood_panel", 1 ] ], [ [ "pine_bough", 24 ], [ "willowbark", 24 ] ] ],
"pre_terrain": "t_pit_shallow",
"dark_craftable": true,
"post_terrain": "t_improvised_shelter"
Expand Down Expand Up @@ -126,7 +126,7 @@
"required_skills": [ [ "fabrication", 2 ] ],
"time": "30 m",
"qualities": [ [ { "id": "CUT", "level": 1 } ] ],
"components": [ [ [ "2x4", 6 ], [ "stick", 6 ], [ "wood_panel", 1 ] ], [ [ "rope_makeshift_6", 2 ], [ "rope_6", 2 ] ] ],
"components": [ [ [ "wood_structural", 3, "LIST" ], [ "wood_panel", 1 ] ], [ [ "rope_makeshift_6", 2 ], [ "rope_6", 2 ] ] ],
"pre_note": "Can be deconstructed without tools.",
"pre_terrain": "t_door_frame",
"post_terrain": "t_door_makeshift_c"
Expand Down Expand Up @@ -646,10 +646,17 @@
"time": "50 m",
"qualities": [ { "id": "CUT", "level": 1 }, { "id": "HAMMER", "level": 1 } ],
"components": [
[ [ "2x4", 5 ], [ "stick", 10 ] ],
[ [ "material_quicklime", 4 ], [ "material_limestone", 4 ], [ "clay_lump", 4 ] ],
[ [ "pebble", 10 ], [ "material_sand", 10 ] ],
[ [ "straw_pile", 4 ], [ "cattail_stalk", 4 ], [ "dogbane", 4 ], [ "pine_bough", 4 ] ],
[ [ "wood_structural_small", 5, "LIST" ] ],
[ [ "material_quicklime", 4 ], [ "material_limestone", 4 ], [ "clay_lump", 4 ], [ "material_soil", 20 ] ],
[
[ "withered", 4 ],
[ "straw_pile", 4 ],
[ "cattail_stalk", 4 ],
[ "dogbane", 4 ],
[ "pine_bough", 4 ],
[ "pebble", 10 ],
[ "material_sand", 10 ]
],
[ [ "water", 5 ], [ "water_clean", 5 ] ]
],
"pre_special": "check_empty",
Expand All @@ -665,10 +672,17 @@
"time": "50 m",
"qualities": [ { "id": "CUT", "level": 1 }, { "id": "HAMMER", "level": 1 } ],
"components": [
[ [ "2x4", 5 ], [ "stick", 10 ] ],
[ [ "material_quicklime", 4 ], [ "material_limestone", 4 ], [ "clay_lump", 4 ] ],
[ [ "pebble", 10 ], [ "material_sand", 10 ] ],
[ [ "straw_pile", 4 ], [ "cattail_stalk", 4 ], [ "dogbane", 4 ], [ "pine_bough", 4 ] ],
[ [ "wood_structural_small", 5, "LIST" ] ],
[ [ "material_quicklime", 4 ], [ "material_limestone", 4 ], [ "clay_lump", 4 ], [ "material_soil", 20 ] ],
[
[ "withered", 4 ],
[ "straw_pile", 4 ],
[ "cattail_stalk", 4 ],
[ "dogbane", 4 ],
[ "pine_bough", 4 ],
[ "pebble", 10 ],
[ "material_sand", 10 ]
],
[ [ "water", 5 ], [ "water_clean", 5 ] ]
],
"pre_terrain": "t_wall_wattle_half",
Expand All @@ -683,7 +697,7 @@
"time": "30 m",
"qualities": [ { "id": "CUT", "level": 1 }, { "id": "HAMMER", "level": 1 } ],
"components": [
[ [ "2x4", 2 ], [ "stick", 4 ] ],
[ [ "wood_structural_small", 2, "LIST" ] ],
[ [ "material_quicklime", 2 ], [ "material_limestone", 2 ], [ "clay_lump", 2 ] ],
[ [ "pebble", 4 ], [ "material_sand", 4 ] ],
[ [ "straw_pile", 2 ], [ "cattail_stalk", 2 ], [ "dogbane", 2 ], [ "pine_bough", 2 ] ],
Expand Down Expand Up @@ -766,7 +780,7 @@
"required_skills": [ [ "fabrication", 3 ] ],
"time": "60 m",
"qualities": [ [ { "id": "DIG", "level": 2 } ] ],
"components": [ [ [ "log", 2 ] ], [ [ "stick", 3 ], [ "2x4", 6 ] ] ],
"components": [ [ [ "log", 2 ] ], [ [ "wood_structural_small", 3, "LIST" ] ] ],
"pre_terrain": "t_pit_shallow",
"post_terrain": "t_wall_log_half"
},
Expand Down Expand Up @@ -1228,7 +1242,7 @@
"required_skills": [ [ "fabrication", 6 ] ],
"time": "180 m",
"qualities": [ [ { "id": "HAMMER", "level": 2 } ], [ { "id": "DIG", "level": 2 } ] ],
"components": [ [ [ "rock", 12 ] ], [ [ "pebble", 50 ] ], [ [ "mortar_build", 1 ] ] ],
"components": [ [ [ "rock", 12 ] ], [ [ "pebble", 50 ] ], [ [ "mortar_build", 1 ], [ "mortar_adobe", 1 ] ] ],
"pre_special": "check_empty",
"post_terrain": "t_rock_wall_half"
},
Expand All @@ -1241,7 +1255,7 @@
"required_skills": [ [ "fabrication", 6 ] ],
"time": "180 m",
"qualities": [ [ { "id": "HAMMER", "level": 2 } ], [ { "id": "DIG", "level": 2 } ] ],
"components": [ [ [ "rock", 12 ] ], [ [ "mortar_build", 1 ] ] ],
"components": [ [ [ "rock", 12 ] ], [ [ "mortar_build", 1 ], [ "mortar_adobe", 1 ] ] ],
"pre_terrain": "t_rock_wall_half",
"post_terrain": "t_rock_wall"
},
Expand Down Expand Up @@ -1305,7 +1319,11 @@
"required_skills": [ [ "fabrication", 5 ], [ "survival", 3 ] ],
"time": "120 m",
"qualities": [ { "id": "CUT", "level": 1 } ],
"components": [ [ [ "2x4", 8 ], [ "stick", 8 ] ], [ [ "straw_pile", 24 ], [ "withered", 24 ] ], [ [ "cordage", 2, "LIST" ] ] ],
"components": [
[ [ "wood_structural", 4, "LIST" ] ],
[ [ "straw_pile", 24 ], [ "withered", 24 ], [ "pine_bough", 24 ] ],
[ [ "cordage", 2, "LIST" ] ]
],
"pre_special": "check_support",
"post_terrain": "t_dirtfloor_thatchroof"
},
Expand All @@ -1319,7 +1337,7 @@
"qualities": [ [ { "id": "HAMMER", "level": 2 } ] ],
"components": [
[ [ "log", 2 ] ],
[ [ "stick", 4 ], [ "2x4", 4 ] ],
[ [ "wood_structural", 2, "LIST" ] ],
[ [ "material_soil", 40 ] ],
[ [ "birchbark", 12 ], [ "pine_bough", 12 ] ]
],
Expand Down Expand Up @@ -1347,7 +1365,7 @@
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 5 ], [ "mechanics", 2 ] ],
"time": "60 m",
"components": [ [ [ "rope_makeshift_30", 1 ], [ "rope_30", 1 ], [ "vine_30", 1 ] ], [ [ "stick", 8 ], [ "2x4", 8 ] ] ],
"components": [ [ [ "rope_makeshift_30", 1 ], [ "rope_30", 1 ], [ "vine_30", 1 ] ], [ [ "wood_structural", 4, "LIST" ] ] ],
"pre_note": "Can be deconstructed without tools. Must be adjacent to a palisade wall that is itself adjacent to a palisade gate in order to open said gate.",
"pre_special": "check_empty",
"post_terrain": "t_palisade_pulley"
Expand All @@ -1360,7 +1378,11 @@
"required_skills": [ [ "fabrication", 4 ] ],
"time": "120 m",
"qualities": [ [ { "id": "DIG", "level": 2 } ] ],
"components": [ [ [ "log", 2 ] ], [ [ "2x4", 3 ] ], [ [ "rope_makeshift_6", 2 ], [ "rope_6", 2 ], [ "vine_30", 1 ] ] ],
"components": [
[ [ "log", 2 ] ],
[ [ "wood_structural_small", 3, "LIST" ] ],
[ [ "rope_makeshift_6", 2 ], [ "rope_6", 2 ], [ "vine_30", 1 ] ]
],
"pre_note": "Must be between palisade walls to function, and at least one wall must have an adjacent rope & pulley system.",
"pre_terrain": "t_pit",
"post_terrain": "t_palisade_gate"
Expand Down Expand Up @@ -1856,7 +1878,7 @@
"category": "FURN",
"required_skills": [ [ "fabrication", 1 ] ],
"time": "30 m",
"components": [ [ [ "2x4", 4 ], [ "stick", 4 ] ], [ [ "straw_pile", 8 ], [ "withered", 8 ], [ "pine_bough", 8 ] ] ],
"components": [ [ [ "wood_structural", 2, "LIST" ] ], [ [ "straw_pile", 8 ], [ "withered", 8 ], [ "pine_bough", 8 ] ] ],
"pre_note": "Can be deconstructed without tools.",
"pre_special": "check_empty",
"dark_craftable": true,
Expand Down Expand Up @@ -2558,7 +2580,10 @@
[ { "id": "DIG", "level": 2 } ]
],
"tools": [ [ [ "pickaxe", -1 ], [ "jackhammer", 140 ], [ "elec_jackhammer", 7000 ] ] ],
"components": [ [ [ "2x4", 8 ], [ "log", 8 ] ], [ [ "rope_makeshift_30", 1 ], [ "rope_30", 1 ], [ "vine_30", 1 ] ] ],
"components": [
[ [ "wood_structural", 4, "LIST" ], [ "log", 1 ] ],
[ [ "rope_makeshift_30", 1 ], [ "rope_30", 1 ], [ "vine_30", 1 ] ]
],
"pre_flags": "DIGGABLE",
"pre_special": "check_down_OK",
"post_special": "done_dig_stair"
Expand All @@ -2576,7 +2601,10 @@
[ { "id": "DIG", "level": 2 } ]
],
"tools": [ [ [ "pickaxe", -1 ], [ "jackhammer", 160 ], [ "elec_jackhammer", 7000 ] ] ],
"components": [ [ [ "2x4", 12 ], [ "log", 12 ] ], [ [ "rope_makeshift_30", 1 ], [ "rope_30", 1 ], [ "vine_30", 1 ] ] ],
"components": [
[ [ "wood_structural", 6, "LIST" ], [ "log", 2 ] ],
[ [ "rope_makeshift_30", 1 ], [ "rope_30", 1 ], [ "vine_30", 1 ] ]
],
"pre_special": "check_down_OK",
"pre_terrain": "t_rock_floor",
"post_special": "done_mine_downstair"
Expand Down Expand Up @@ -2655,7 +2683,10 @@
]
],
"//": "Helmets are essential because you're digging up and things may fall on you.",
"components": [ [ [ "2x4", 12 ], [ "log", 12 ] ], [ [ "rope_makeshift_30", 1 ], [ "rope_30", 1 ], [ "vine_30", 1 ] ] ],
"components": [
[ [ "wood_structural", 6, "LIST" ], [ "log", 2 ] ],
[ [ "rope_makeshift_30", 1 ], [ "rope_30", 1 ], [ "vine_30", 1 ] ]
],
"pre_special": "check_up_OK",
"pre_terrain": "t_rock",
"post_special": "done_mine_upstair"
Expand Down Expand Up @@ -2988,7 +3019,7 @@
"required_skills": [ [ "fabrication", 3 ], [ "cooking", 2 ] ],
"time": "90 m",
"qualities": [ [ { "id": "HAMMER", "level": 2 } ], [ { "id": "CUT", "level": 1 } ], [ { "id": "SAW_W", "level": 1 } ] ],
"components": [ [ [ "stick", 16 ], [ "2x4", 16 ] ], [ [ "rock", 8 ] ] ],
"components": [ [ [ "wood_structural", 8, "LIST" ] ], [ [ "rock", 8 ] ] ],
"pre_note": "Can be deconstructed without tools.",
"pre_special": "check_empty",
"post_furniture": "f_smoking_rack"
Expand All @@ -3015,7 +3046,7 @@
"qualities": [ [ { "id": "HAMMER", "level": 2 } ] ],
"components": [
[ [ "rock", 40 ] ],
[ [ "material_cement", 50 ], [ "mortar_build", 1 ], [ "clay_lump", 12 ] ],
[ [ "material_cement", 50 ], [ "mortar_build", 1 ], [ "mortar_adobe", 1 ], [ "clay_lump", 12 ] ],
[ [ "water", 2 ], [ "water_clean", 2 ] ]
],
"pre_note": "Can be deconstructed without tools.",
Expand Down Expand Up @@ -3069,7 +3100,11 @@
"required_skills": [ [ "fabrication", 4 ] ],
"time": "130 m",
"qualities": [ [ { "id": "DIG", "level": 2 } ], [ { "id": "HAMMER", "level": 2 } ] ],
"components": [ [ [ "rock", 40 ], [ "brick", 40 ] ], [ [ "2x4", 6 ], [ "stick", 6 ] ], [ [ "withered", 12 ], [ "straw_pile", 12 ] ] ],
"components": [
[ [ "rock", 40 ], [ "brick", 40 ] ],
[ [ "wood_structural", 3, "LIST" ] ],
[ [ "withered", 12 ], [ "straw_pile", 12 ] ]
],
"pre_note": "You need a deep pit to construct a root cellar.",
"pre_terrain": "t_pit",
"post_terrain": "t_rootcellar"
Expand Down Expand Up @@ -3269,12 +3304,12 @@
"group": "build_rammed_earth_wall",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 2 ] ],
"time": "360 m",
"qualities": [ { "id": "HAMMER", "level": 2 } ],
"tools": [ [ "frame_wood_light" ], [ "log" ] ],
"time": "240 m",
"qualities": [ { "id": "HAMMER", "level": 2 }, { "id": "SMOOTH", "level": 1 } ],
"tools": [ [ "log" ] ],
"components": [
[ [ "material_soil", 240 ] ],
[ [ "water", 100 ], [ "water_clean", 100 ] ],
[ [ "material_soil", 100 ] ],
[ [ "water", 50 ], [ "water_clean", 50 ] ],
[ [ "material_sand", 20 ], [ "material_quicklime", 20 ], [ "concrete", 1 ] ]
],
"pre_terrain": "t_fence_post",
Expand Down Expand Up @@ -3455,7 +3490,7 @@
"required_skills": [ [ "fabrication", 2 ] ],
"time": "90m",
"qualities": [ { "id": "CUT", "level": 1 }, { "id": "HAMMER", "level": 1 } ],
"components": [ [ [ "stick", 6 ], [ "2x4", 3 ] ] ],
"components": [ [ [ "wood_structural_small", 3, "LIST" ] ] ],
"pre_terrain": "t_tree_pine",
"post_terrain": "t_leanto"
},
Expand Down
6 changes: 3 additions & 3 deletions data/json/items/generic.json
Original file line number Diff line number Diff line change
Expand Up @@ -1965,22 +1965,22 @@
"symbol": ",",
"color": "brown",
"name": { "str": "soft adobe brick" },
"description": "A compacted mass of soil and natural fibers, still too wet to build with. Load it onto a pallet and leave it to dry.",
"description": "A compacted mass of soil and natural fibers, still too wet to build with. You could load it onto a pallet and leave it to dry to process them in bulk.",
"price": 0,
"price_postapoc": 0,
"material": "soil",
"weight": "1750 g",
"volume": "750 ml",
"bashing": 2,
"to_hit": -3,
"flags": [ "ALLOWS_REMOTE_USE" ],
"use_action": {
"target": "adobe_brick",
"msg": "You test the brick, and it seems solid enough to use.",
"moves": 50,
"type": "delayed_transform",
"transform_age": 100800,
"not_ready_msg": "The brick is still too damp to bear weight.",
"//": "Should be about a week. Irl it's ten days, so make big batches."
"not_ready_msg": "The brick is still too damp to bear weight."
}
},
{
Expand Down
5 changes: 2 additions & 3 deletions data/json/items/tool/workshop.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,15 @@
"moves": 50,
"type": "delayed_transform",
"transform_age": 100800,
"not_ready_msg": "The bricks are still too damp to bear weight.",
"//": "Should be about a week. Irl it's ten days, so make big batches."
"not_ready_msg": "The bricks are still too damp to bear weight."
}
},
{
"id": "adobe_pallet_done",
"type": "GENERIC",
"category": "tools",
"name": { "str": "pallet of dry adobe bricks", "str_pl": "pallets of dry adobe bricks" },
"description": "A pallet of humble mud bricks that have dried for a week, while you were out risking your life. Disassemble it to retrieve your frame and building supplies.",
"description": "A pallet of humble mud bricks that have dried out while you were out risking your life. Disassemble it to retrieve your frame and building supplies.",
"weight": "30000 g",
"volume": "12500 ml",
"price": 40000,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,11 @@
"blueprint_resources": [ "fake_char_smoker", "fake_char_smoker", "fake_char_smoker", "fake_char_kiln" ],
"blueprint_needs": {
"time": "6 h 30 m",
"skills": [ [ "cooking", 2 ], [ "fabrication", 3 ] ],
"skills": [ [ "fabrication", 3 ], [ "cooking", 2 ] ],
"inline": {
"tools": [ ],
"qualities": [ [ { "id": "SAW_W" } ], [ { "id": "CUT" } ], [ { "id": "HAMMER", "level": 2 } ] ],
"components": [ [ [ "2x4", 48 ], [ "stick", 48 ] ], [ [ "material_soil", 2 ] ], [ [ "rock", 64 ] ] ]
"qualities": [ [ { "id": "CUT" } ], [ { "id": "HAMMER", "level": 2 } ], [ { "id": "SAW_W" } ] ],
"components": [ [ [ "2x4", 48 ], [ "stick", 48 ], [ "stick_long", 24 ] ], [ [ "material_soil", 2 ] ], [ [ "rock", 64 ] ] ]
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"tools": [ ],
"qualities": [ [ { "id": "DIG", "level": 2 } ], [ { "id": "HAMMER", "level": 2 } ], [ { "id": "SAW_W", "level": 2 } ] ],
"components": [
[ [ "2x4", 131 ] ],
[ [ "2x4", 95 ] ],
[ [ "glass_sheet", 3 ] ],
[ [ "hinge", 2 ] ],
[ [ "log", 24 ] ],
Expand Down Expand Up @@ -49,7 +49,7 @@
"tools": [ ],
"qualities": [ [ { "id": "DIG", "level": 2 } ], [ { "id": "HAMMER", "level": 2 } ], [ { "id": "SAW_W", "level": 2 } ] ],
"components": [
[ [ "2x4", 151 ] ],
[ [ "2x4", 97 ] ],
[ [ "glass_sheet", 1 ] ],
[ [ "hinge", 4 ] ],
[ [ "log", 36 ] ],
Expand Down Expand Up @@ -78,7 +78,7 @@
"inline": {
"tools": [ ],
"qualities": [ [ { "id": "DIG", "level": 2 } ], [ { "id": "HAMMER", "level": 2 } ], [ { "id": "SAW_W", "level": 2 } ] ],
"components": [ [ [ "2x4", 252 ] ], [ [ "log", 24 ] ], [ [ "nail", 448 ] ], [ [ "wood_panel", 22 ] ] ]
"components": [ [ [ "2x4", 216 ] ], [ [ "log", 24 ] ], [ [ "nail", 448 ] ], [ [ "wood_panel", 22 ] ] ]
}
}
},
Expand All @@ -101,7 +101,7 @@
"inline": {
"tools": [ ],
"qualities": [ [ { "id": "DIG", "level": 2 } ], [ { "id": "HAMMER", "level": 2 } ] ],
"components": [ [ [ "log", 64 ] ], [ [ "2x4", 180 ], [ "stick", 90 ] ], [ [ "glass_sheet", 2 ] ], [ [ "nail", 60 ] ] ]
"components": [ [ [ "log", 64 ] ], [ [ "2x4", 90 ], [ "stick", 90 ] ], [ [ "glass_sheet", 2 ] ], [ [ "nail", 60 ] ] ]
}
}
},
Expand All @@ -125,7 +125,7 @@
"tools": [ ],
"qualities": [ [ { "id": "DIG", "level": 2 } ], [ { "id": "HAMMER", "level": 2 } ], [ { "id": "SAW_W", "level": 2 } ] ],
"components": [
[ [ "2x4", 128 ] ],
[ [ "2x4", 92 ] ],
[ [ "glass_sheet", 2 ] ],
[ [ "hinge", 2 ] ],
[ [ "log", 24 ] ],
Expand Down Expand Up @@ -154,7 +154,7 @@
"inline": {
"tools": [ ],
"qualities": [ [ { "id": "DIG", "level": 2 } ], [ { "id": "HAMMER", "level": 2 } ] ],
"components": [ [ [ "2x4", 141 ] ], [ [ "glass_sheet", 3 ] ], [ [ "log", 28 ] ], [ [ "nail", 120 ] ] ]
"components": [ [ [ "2x4", 99 ] ], [ [ "glass_sheet", 3 ] ], [ [ "log", 28 ] ], [ [ "nail", 120 ] ] ]
}
}
},
Expand All @@ -178,7 +178,7 @@
"tools": [ ],
"qualities": [ [ { "id": "DIG", "level": 2 } ], [ { "id": "HAMMER", "level": 2 } ], [ { "id": "SAW_W", "level": 2 } ] ],
"components": [
[ [ "2x4", 53 ] ],
[ [ "2x4", 41 ] ],
[ [ "glass_sheet", 1 ] ],
[ [ "hinge", 2 ] ],
[ [ "log", 8 ] ],
Expand Down
Loading

0 comments on commit 5f2414f

Please sign in to comment.