Construction

From The Cataclysm: Dark Days Ahead Wiki
Jump to: navigation, search

Use * to display the construction screen.

Both items in your inventory and all items in 6 square radius are available as construction tools and components. If items needed can be found in both your inventory and on the ground, you will be prompted as to which items you want to use in your crafting.

A completed construction trains character's construction skill by (10 + [construction difficulty] * 10) points. Using a crowbar on certain objects will also give you 1 practice point in the construction skill, but only if your skill level is 0.

In the experimental version the construction skill has been removed, the various constructions now have different skill requirements, related to the type of construction. Such as cloth related constructions are now Tailoring, most of them are Fabrication, etc.

Removing constructions, that keep up a roof, with a low construction skill has a chance of causing a cave-in or the roof to come down on you. High skill removes this chance.

Item Browser

The Item Browser contains a catalog of construction categories, this catalog is built automatically using the game data files so it should be very accurate.

Every item includes a list of constructions it can be used in.

List of constructions

Action D
Description Creates tile T
Tools Materials
Dig Pit 0 Creates pit trap on any diggable tile in two steps 1: shallow pit 10 shovel OR stone shovel OR digging stick
2: pit 10 shovel OR stone shovel
Spike Pit 0 Changes pit trap into spiked pit trap spiked pit 5
Fill Pit 0 Removes pit trap in two steps 1: shallow pit 5 shovel OR stone shovel
2: dirt 5 shovel OR stone shovel
Chop Down Tree 0 Creates 1-8 tree trunk tiles in asked direction, but destroying original underneath tiles which is noisy. dirt 10 wood axe OR chainsaw (on) OR stone axe
Chop Tree trunk into logs 0 Converts tree trunk tiles into logs dirt 20 wood axe OR chainsaw (on) OR stone axe
Chop Tree trunk into planks 0 Converts tree trunk tiles into 10-20 two by four planks dirt 23 wood axe OR chainsaw (on) OR stone axe OR wood saw
Clean Broken Window 0 Removes sharp fragments of glass from broken window. empty window 5
Repair Door 1 Repair broken wooden door (not an empty door frame). closed wood door 10 hammer OR stone hammer OR hatchet OR nail gun
Board Up Door 0 Reinforces closed, opened, broken or locked wooden door. Boards can be pried out with crowbar or hammer (boards and nails will be fully returned). boarded up door 8 hammer OR sledge hammer OR stone hammer OR hatchet OR nail gun
Reinforce Wood Door 5 Reinforces closed, opened, or locked wooden door. Reinforced Wood Door 30 hammer OR stone hammer OR hatchet OR nail gun OR integrated toolset
Board Up Window 0 Reinforces window, empty window or window frame. Boards can be pried out with crowbar or hammer (boards and nails will be fully returned). boarded up window 5 hammer OR sledge hammer OR stone hammer OR hatchet OR nail gun
Reinforce Boarded Up Window 5 Reinforces boarded up window. Reinforced boarded up window 10 hammer OR sledge hammer OR stone hammer OR hatchet Integrated toolset OR nail gun
Reinforce Boarded Up empty Window 5 Reinforces boarded up empty window. Reinforced boarded up empty window 30 hammer OR sledge hammer OR stone hammer OR hatchet Integrated toolset
Build Wall 2 Builds a wall in two steps 1: half-built wall 10 hammer OR stone hammer OR hatchet OR nail gun
2: wooden wall 10 hammer OR stone hammer OR hatchet OR nail gun


Build Log Wall 2 Builds a log wall in four steps 1: shallow pit 10 shovel OR stone shovel OR digging stick
2: pit 10 shovel OR stone shovel
3: half-built wall (log) 20 shovel OR stone shovel
4: log wall 20 shovel OR stone shovel


Build Palisade Wall 2 Builds a palisade wall in three steps 1: shallow pit 10 shovel OR stone shovel OR digging stick
2: pit 10 shovel OR stone shovel
3: palisade wall 20 shovel OR stone shovel
Build Rope & Pulley System 2 Creates a rope and pulley system, needed to open palisade gates rope and pulley 0


Build Palisade Gate 2 Builds a palisade gate in three steps. Requires a rope and pulley system in an adjacent tile for this type of gate to work. 1: shallow pit 10 shovel OR stone shovel OR digging stick
2: pit 10 shovel OR stone shovel
3: palisade gate 20 shovel OR stone shovel


Build Window 2 Builds a window in three steps 1: empty window frame 10 hammer OR stone hammer OR hatchet OR nail gun
2: window 5 hammer OR stone hammer OR hatchet OR nail gun
3: closed window 5 wood saw


Build Door 2 Builds a door in two steps 1: empty door frame 15 hammer OR stone hammer OR hatchet OR nail gun
2: closed wood door 15 hammer OR stone hammer OR hatchet OR nail gun
Build Wire Fence 3 Builds a wire fence in two steps 1: fence posts 20 hammer OR stone hammer OR hatchet OR rock
2: wire fence 20
Realign Fence 0 Realigns a wire fence either vertically or horizontally 1: align horizontally 0
2: align vertically 0
Build Wire Gate 3 Creates a wire gate wire fence gate 15
Build Roof 4 Creates a floor and a roof, prevents pain from acid rain. floor 40 hammer OR stone hammer OR hatchet OR nail gun
Build Log & Sod Roof 3 Alternative way to create a floor and roof tile by using other materials and tools. floor 80 hammer OR stone hammer OR hatchet OR shovel OR stone shovel
Build Bulletin Board 0 Creates a bulletin board to designate a player's base. This allows players to order allied NPCs to move to that position and defend it. bulletin board 10 wood saw OR hammer OR hatchet OR nail gun
Build Dresser 1 Creates a dresser dresser 20 wood saw OR hammer OR stone hammer OR hatchet OR nail gun
Build Book case 1 Creates a bookcase book case 20 wood saw OR hammer OR stone hammer OR hatchet OR nail gun
Build Locker 1 Creates a locker locker 20
Build Metal Rack 1 Creates a display rack display rack 20
Build Counter 0 Creates a counter counter 20 hammer OR stone hammer OR hatchet OR nail gun
Build Makeshift Bed 1 Creates a makeshift bed makeshift bed 20 hammer OR stone hammer OR hatchet OR nail gun
Build Armchair 2 Build armchair sofa 20


Build Sofa 3 Build sofa sofa 20
Tape up window 0 Covers a window with duct tape, so it obscures line of sight and reduces the leaking of human odor outside. You must open the drapes first for this to work. taped window 2
Deconstruct Furniture 0 Disassembles a furniture object to it's construction components 20
Start vehicle construction 0 Starts the construction of a vehicle from scratch frame 10
Fence Posts 0 Creates a fence post fence post 5 hammer OR stone hammer OR shovel OR stone shovel OR rock OR hatchet OR wood axe OR stone axe
Build Wood Stove 0 Creates a wood stove wood stove 10 hack saw
Build Stone Fireplace 0 Creates a fireplace fireplace 40 hammer OR stone hammer OR shovel OR stone shovel

Construction.cpp

The syntax is quite simple:

CONSTRUCT("Build Wall", 2, &construct::able_empty, &construct::done_nothing);
 STAGE(t_wall_half, 10);
  TOOL(itm_hammer, itm_hatchet, itm_nailgun, NULL);
  COMP(itm_2x4, 10, NULL);
  COMP(itm_nail, 20, NULL);
 STAGE(t_wall_wood, 10);
  TOOL(itm_hammer, itm_hatchet, itm_nailgun, NULL);
  COMP(itm_2x4, 10, NULL);
  COMP(itm_nail, 20, NULL);

In CONSTRUCT you define name as it appears in the menu (30 characters or less), difficulty (what level of construction skill that requires), condition- and post-construction-functions (see construction.h for options, and later in construction.cpp for definitions).

In STAGE you define what map tile will be placed there (see mapdata.h) and the time that it takes to finish this task (in minutes, 10 turns = 1 minute)

In TOOL you define what tools are needed and if it should be used up. Tools will always be kept, because tools with charges are not set in constructions yet.

Multiple items in one TOOL can substitute each other, if you want a recipe to need two tools at a time you need a second TOOL line.

In COMP you define which and how much components the recipe uses, if you want a recipe to need two different components at a time you need a second COMP line.

TOOL and COMP both have to end in ,NULL);