Skip to content

Commit

Permalink
Add wattle fences (#49156)
Browse files Browse the repository at this point in the history
  • Loading branch information
Delta5861 authored and ZhilkinSerg committed Jun 21, 2021
1 parent dad6201 commit a272a53
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 0 deletions.
44 changes: 44 additions & 0 deletions data/json/construction.json
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,31 @@
"pre_terrain": "t_floor",
"post_terrain": "t_bars"
},
{
"type": "construction",
"id": "constr_wall_wattle_post",
"group": "build_woven_wattle_fence",
"//": "Step 1: narrow fence posts for a woven wattle wall",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 0 ], [ "survival", 1 ] ],
"time": "20 m",
"qualities": [ [ { "id": "CUT", "level": 1 } ], [ { "id": "HAMMER", "level": 1 } ], [ { "id": "DIG", "level": 1 } ] ],
"components": [ [ [ "stick", 4 ], [ "pointy_stick", 4 ] ] ],
"pre_flags": "DIGGABLE",
"post_terrain": "t_wattle_fence_posts"
},
{
"type": "construction",
"id": "constr_wall_wattle_woven",
"group": "build_woven_wattle_fence",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 2 ], [ "survival", 2 ] ],
"time": "50 m",
"qualities": [ [ { "id": "CUT", "level": 1 } ], [ { "id": "HAMMER", "level": 1 } ] ],
"components": [ [ [ "stick", 10 ] ] ],
"pre_terrain": "t_wattle_fence_posts",
"post_terrain": "t_wattle_fence"
},
{
"type": "construction",
"id": "constr_wall_wattle_half",
Expand Down Expand Up @@ -694,6 +719,25 @@
"pre_terrain": "t_wall_wattle_half",
"post_terrain": "t_wall_wattle"
},
{
"type": "construction",
"id": "constr_wall_wattle_from_fence",
"group": "build_wattle_and_daub_wall",
"//": "Upgrade a woven wattle fence to a full wall",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 3 ], [ "survival", 3 ] ],
"time": "60 m",
"qualities": [ [ { "id": "CUT", "level": 1 } ], [ { "id": "HAMMER", "level": 1 } ] ],
"components": [
[ [ "2x4", 5 ], [ "stick", 10 ] ],
[ [ "material_quicklime", 8 ], [ "material_limestone", 8 ], [ "clay_lump", 8 ] ],
[ [ "pebble", 10 ], [ "material_sand", 10 ] ],
[ [ "straw_pile", 8 ], [ "cattail_stalk", 8 ], [ "dogbane", 8 ], [ "pine_bough", 8 ] ],
[ [ "water", 10 ], [ "water_clean", 10 ] ]
],
"pre_terrain": "t_wattle_fence",
"post_terrain": "t_wall_wattle"
},
{
"type": "construction",
"id": "constr_repair_wall_wattle",
Expand Down
5 changes: 5 additions & 0 deletions data/json/construction_group.json
Original file line number Diff line number Diff line change
Expand Up @@ -804,6 +804,11 @@
"id": "build_workbench",
"name": "Build Workbench"
},
{
"type": "construction_group",
"id": "build_woven_wattle_fence",
"name": "Build Woven Wattle Fence"
},
{
"type": "construction_group",
"id": "carpet_floor_green",
Expand Down
54 changes: 54 additions & 0 deletions data/json/furniture_and_terrain/terrain-fences-gates.json
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,60 @@
"items": [ { "item": "2x4", "count": [ 1, 3 ] }, { "item": "nail", "charges": [ 2, 6 ] }, { "item": "splinter", "count": 1 } ]
}
},
{
"type": "terrain",
"id": "t_wattle_fence",
"alias": [ "t_wattle_fence_h", "t_wattle_fence_v" ],
"name": "woven wattle fence",
"description": "A flimsy barrier made of woven sticks. Suitable for small animals.",
"symbol": "LINE_OXOX",
"color": "brown",
"looks_like": "t_fence",
"move_cost": 0,
"examine_action": "chainfence",
"flags": [
"TRANSPARENT",
"DIGGABLE",
"FLAMMABLE_ASH",
"THIN_OBSTACLE",
"SHORT",
"NOITEM",
"PERMEABLE",
"UNSTABLE",
"CLIMBABLE",
"AUTO_WALL_SYMBOL",
"BURROWABLE"
],
"connects_to": "WOODFENCE",
"deconstruct": { "ter_set": "t_fence_post", "items": [ { "item": "splinter", "count": 20 } ] },
"bash": {
"str_min": 4,
"str_max": 20,
"sound": "crack.",
"sound_fail": "wham.",
"ter_set": "t_null",
"items": [ { "item": "pointy_stick", "count": [ 0, 2 ] }, { "item": "splinter", "count": [ 5, 15 ] } ]
}
},
{
"type": "terrain",
"id": "t_wattle_fence_posts",
"name": "narrow fence posts",
"description": "A set of narrow wooden posts for a woven wattle fence.",
"symbol": "#",
"color": "brown",
"looks_like": "t_fence_post",
"move_cost": 2,
"flags": [ "TRANSPARENT", "THIN_OBSTACLE", "SHORT" ],
"bash": {
"str_min": 4,
"str_max": 20,
"sound": "crack.",
"sound_fail": "wham.",
"ter_set": "t_null",
"items": [ { "item": "stick", "count": [ 1, 4 ] } ]
}
},
{
"type": "terrain",
"id": "t_chainfence",
Expand Down

0 comments on commit a272a53

Please sign in to comment.