Material science - Dwarf Fortress Wiki (2024)

This article was migrated from DF2014:Material science and may be inaccurate for the current version of DF (v50.13). See this page for more information.

!!UNKNOWN!! · xTATTEREDx · +FINE+ · *SUPERIOR* · ≡EXCEPTIONAL≡ · ☼MASTERWORK☼

v50.13· v0.47.05

This article is about the current version of DF.
Note that some content may still need to be updated.

More Info· V

Material properties
Defined: ValueColorDensityStrain at yieldTemperature values
Derived: Magma safetyFire safety
Fluids: DepthFlowPressure

Materials have a number of properties representing real-world variables that describe how they respond to inputs. In particular, the game has a number of variables that describe what happens to a material when it's put under stress.

Contents

  • 1 What is stress?
  • 2 When does Dwarf Fortress make stress calculations?
  • 3 There's a lot of stress-related properties, what do they mean?
    • 3.1 Mechanical Performance Properties
    • 3.2 Modes of Applying Force
  • 4 Effects on Combat
    • 4.1 Attack Types
    • 4.2 Contact Area
    • 4.3 Attack Momentum
      • 4.3.1 Situational Modifiers
      • 4.3.2 Ranged Attacks
      • 4.3.3 Weapon Traps
    • 4.4 Attack Momentum Costs
    • 4.5 Elastic Material Modifiers
    • 4.6 Penetration Depth
    • 4.7 Pulping
  • 5 Material and item properties

What is stress?[edit]

In the real world, an object is stressed when a force is applied to the object. Depending on the nature of the force applied, this stress can take a number of forms, and the object can respond differently based on its material and how that material handles different stresses.

In the material raws, whenever you see 'yield', 'fracture', or 'strain at yield', that property is a stress-related quality.

When does Dwarf Fortress make stress calculations?[edit]

At present, DF seems to only apply forces during combat, and thus only stresses objects (generally armor and various body layers) at that time.

There's a lot of stress-related properties, what do they mean?[edit]

The first thing you'll notice is that the second word in each stress variable is one of Yield, Fracture, or strain at yield. These are mechanical performance terms.

The first set of words are things like Impact, Bending, and so forth. These describe modes of applying force.

The following explanations assumes real world physics sort of apply (since Toady One chose real world properties). The game doesn't use all of these properties yet, and may not be applying them according to real world physics.

Mechanical Performance Properties[edit]

Yield: This is almost certainly 'Yield Strength', which is the amount of stress needed to cause a material to go from elastic deformation (whereby halting stressing causes it to return to its original shape) to plastic deformation (whereby halting stressing causes it to keep its shape). Since most objects only elastically deform over small distances of deformation, high Yield values generally means it takes a lot of force to noticeably 'stretch' them (but see strain at yield).

Fracture: The fracture point is the amount of stress or force necessarily to cause the material to fail, or in other words, to break.

Strain at yield (sometimes incorrectly referred to as 'elasticity'): This variable tells you how much deformation occurs to the material while it is deforming elastically. That is, as long as the force is less than the yield strength, stress * strain at yield = deformation distance. The smaller the strain at yield, the less deformation occurs under stress. Strain is measured as parts-per-100000, meaning that 100000 strain is 100% deformation.

Note: Strain at yield is the inverse of the relevant elastic modulus, thus a highly elastic material has low elastic modulus, and engages in less elastic collisions.

Modes of Applying Force[edit]

Impact: Force applied by a sudden strike, like a hammer.

Compressive: Force applied by exerting pressure on an object, like trying to squish something between your hands.

Tensile: Force applied by pulling on something, like suspending one object via another. (e.g., if you suspend an elf from a metal pole, you are applying a tensile force to the pole).

Torsion: Force applied by twisting something. Note that you're twisting some portion of the object relative to itself to cause a torsion stress to be applied to it. (Consider trying to twist a metal rod by grasping at either end and attempting to wring it - yes, you'd have to apply a lot of force to succeed).

Shear: Force applied by pushing part of the material so it tries to slide relative to another part of it. Ie, pushing at the top of an object when the bottom part is fixed to the ground is going to primarily apply a shear stress to it (the top part will try to move in the direction you push, and the lower part will resist this shear stress).

Bending: Force applied by bending a material.

Effects on Combat[edit]

The Dwarf Fortress combat system does not use all material properties at present (0.40.05). Weapon and armor damage/wear/decay is implemented.

The formulae below have been reverse-engineered [1] [2] and experimentally proven [3] [4] by several independent researchers. Below are the simplified results; for more details see links above.

Attack Types[edit]

Both creatures and items can have [ATTACK] tokens. A creature can execute any of its natural attacks plus any attacks of the items it holds.The attacks marked with [EDGE] flag deliver edged damage which is governed by [SHEAR_*] tokens; they can be further differentiated by attack contact area: generally concentrated strikes (area of 50 or less) are considered stabbing while wider areas correspond to slashing attacks. This distinction shall be emphasized later.

Every other attack is considered blunt. [IMPACT_*] tokens affect blunt combat. Most specialised blunt weapons have small contact area; edged weapons generally also have blunt attacks with larger area values; items or creatures without defined attacks get default blunt attack with area = (size)^(2/3).Under certain circ*mstances edged attack can be converted to blunt, but not contrariwise.

Wrestling moves are special: breaking bones uses [BENDING_*] values, pinching utilizes [COMPRESSIVE_*] properties, and biting can deal [TENSILE] or [TORSION] damage depending on whether the attack is edged. Those attacks generally ignore armor.

Contact Area[edit]

Attack contact area is the minimum of weapon contact area and armor/layer contact area.Body parts have areas dependent on their size, as with non-weapon items; part size is creature size times relative size of the part in proportion to whole body.

Body partRelative size (human)KoboldElf/GoblinHumanTroll
Total100%200006000070000250000
Upper body18%3599108181262143133
Lower body18%3599108181262143133
Neck1.8%359108112624313
Head5.4%10793245378612939
Upper arm3.6%719216325248626
Lower arm3.6%719216325248626
Hand1.4%28786510093450
Upper leg9.0%17995409631021566
Lower leg7.2%14394327504817253
Foot2.2%431129815145175

Armor size is calculated as underlying body part size times coverage/100% times size/100 times 1+(UPSTEP+UBSTEP+LBSTEP)/4; MAX count as 3 in the last sum.

ItemSize multiplierBody partDwarfHumanExtra body parts covered (humanoid)Notes
Cap0.05Head162189noneCloth
Mask0.1Head324378noneCloth
Helm0.3Head9731135none
Leather armor0.3Upper body32453786Lower body, neck, upper arms, upper legsleather
Mail shirt0.225Upper body24342839Lower body, neck, upper arms, upper legsChain
Breastplate0.2Upper body21632524Lower body
Gauntlets0.25Hands216252Lower arms, fingers
Leggings0.2625Lower body28393313Upper legs, lower legs, toesChain
Greaves0.2625Lower body28393313Upper legs, lower legs, toes
Low boots0.25Feet324378Toes
High boots0.3125Feet405473Lower legs, toes

Attack Momentum[edit]

DF uses momentum-based combat physics, so the momentum plays a central role in calculations.Since momentum = velocity * mass, and lighter items can be swung faster, attack momentum is largely independent from weapon weight. The simplified formula is as follows:

M = Str * Vel / ( 106/Size + 10*F/W ),

or

M = Size * Str * Vel / (10 * (( 105 + i_Size)/W )),

or

M = Size * Str * Vel / (106 * (1 + i_Size/(w_density*w_size) )

where:

  • M is the momentum.
  • Str is the creature's strength (e.g. 1250 for the average dwarf)
  • Vel is the weapon's velocity modifier if present (e.g. 1.25x, 2x)
  • Size is the average creature size (e.g. 60000 for dwarves)
  • i_Size is the specific creature's size
  • F is "fatness modifier" (also includes muscle) = i_Size/Size; dwarf with size of 66150 will have F=66150/60000=1.1025
  • W is weapon mass in kilograms (Γ)
  • w_density is the weapon's material's density
  • w_size is the weapon's size.

Or, to sum up:

A stronger, smaller creature from a larger species wielding a more massive weapon hits with more momentum.A stronger, smaller creature from a larger species wielding a larger, denser weapon hits with more momentum.

For dwarves, the formula becomes

M = 6*104 * Str * Vel / (10 * ( 105 + i_Size/W )) = 6*104 * Str * Vel / ( 105 + i_Size/W )

or

M = 0.06 * Str * Vel / (1 + i_Size/(w_density*w_size) )

There are 28 possible sizes for your dwarves from 33750 to 93750; strength can vary from 0 to 5000 with an average of 1250; velocity can vary from 1 (pommel strikes) to 5 (whip lashes); weapon size can vary from 100 (whips) to 1300 (great axes, which are unwieldable by dwarves; the largest wieldable weapon is size 800, in the form of battle axes and maces).

Momenta for dwarves of strength 1250 hacking (velocity 1.25) with battle axes (size 800), rounded to 3 decimal places
Dwarf SizeAdamantineDivine metalSteelIronBismuth bronzeBronzeCopperSilver
3375077.419489.955093.248993.248993.273093.273093.309293.3745
4275073.982788.994493.116193.116193.146793.146793.192393.2748
4410073.493488.852093.096393.096393.127793.127793.174893.2599
4500073.170788.757493.083093.083093.115193.115193.163293.2500
4590072.850988.663093.069893.069893.102593.102593.151593.2400
4725072.376488.521793.049993.049993.083693.083693.134093.2251
5415070.044487.806692.948592.948592.987192.987193.044793.1489
5586069.489587.631292.923592.923592.963292.963293.022693.1301
5625069.364287.591292.917792.917792.957792.957793.017693.1258
5700069.124487.514692.906792.906792.947392.947393.007993.1175
5762468.926287.450992.897692.897692.938692.938692.999993.1107
5814068.763287.398392.890092.890092.931492.931492.993293.1050
5880068.555887.331292.880492.880492.922192.922192.984793.0977
5985068.228387.224592.865092.865092.907592.907592.971193.0861
5997668.189387.211792.863192.863192.905792.905792.969593.0847
6000068.181887.209392.862892.862892.905492.905492.969293.0845
6120067.811987.087892.845292.845292.888792.888792.953793.0713
6174067.646887.033292.837392.837392.881192.881192.946793.0653
6242467.438886.964292.827392.827392.871692.871692.937993.0578
6300067.264686.906192.818992.818992.863692.863692.930593.0514
6426066.886686.779492.800492.800492.846092.846092.914293.0376
6615066.327786.590192.772892.772892.819792.819792.889993.0168
7125064.864986.083292.698392.698392.748792.748792.824292.9607
7350064.239885.861592.665592.665592.717592.717592.795392.9360
7500063.829885.714392.643692.643692.696692.696692.776092.9196
7650063.424985.567692.621792.621792.675892.675892.756792.9031
7875062.827285.348592.589092.589092.644692.644692.727892.8784
9375059.113383.916192.371192.371192.437092.437092.535792.7143

There is also a hard velocity limit (10000) that might skew these calculations, but it's actually impossible to reach in unmodded game. (Well, okay, if you're a zombie adventurer with maxed out strength you might reach the limit using an adamantine whip -- but why?)

Situational Modifiers[edit]

Momentum can be further increased with weapon skill, status effects, attack modifiers etc.For example:

  • Skill adds gradual multiplier, up to 2x at Grand Master.
  • Quick attacks halve momentum, wild and heavy attacks add 50%.
  • Attacking a prone opponent doubles momentum value.

Ranged Attacks[edit]

Attacks from missile launchers are entirely dependent on the launcher's [SHOOT_FORCE] and [SHOOT_MAXVEL] tags:

SHOOT_FORCESHOOT_MAXVELMaximum VelocityMagic Density / Constant Momentum
Bows and Crossbows1000200201666 / 50
Blowguns1001000100250 / 5

Specifically, as long as projectile is heavy enough, it is fired with a momentum of SHOOT_FORCE/20; if this would make its speed exceed SHOOT_MAXVEL/10, it is capped at this value instead. (As usual, momentum = velocity times weight.) This gives the launcher a magic density above which momentum becomes a constant and velocity decays, shown in the table; below this density, velocity is constant (SHOOT_MAXVEL/10), and momentum decays.

Vanilla bolts and arrows end up with a momentum of 50 (velocity nearly 20, at density 1667), as long as their density exceeds 1666. Divine ammo (1.5kg) has momentum 30 (velocity 20), bone and most wood (0.75kg) get 15 (velocity 20), and adamantine bolts (0.3kg) have only 6 (velocity 20). Wooden darts (0.1kg) usually have 5 (velocity 50).

Weapon Traps[edit]

Traps always have a fixed attack velocity of 200, no matter the weapon weight; the momentum thus is 200 times weight. This includes shot ammunition.

Attack Momentum Costs[edit]

The attack generally needs some momentum threshold to break through each armor/tissue layer.If the attack is edged, it also can cut through it instead. For latter it has to have momentum no less than:

M >= (rSY + (A+1)*rSF) * (10 + 2*Qa) / (S * Qw),

where:

  • rSY is the ratio of layer's to weapon's SHEAR_YIELD
  • rSF is ditto with SHEAR_FRACTURE
  • A is attack contact area
  • S is weapon material sharpness multiplier (1x for most metals, 1.2x for divine metal, 1.5x for glass, 2x for obsidian, 10x for adamantine and 0.1x for all other materials)
  • Qw is quality sharpness multiplier (1x for normal quality, 1.4x for fine, 2x for masterwork (or artifact) etc.)
  • Qa is armor quality multiplier (same but x3 for artifacts)

Should it exceed this value, attack momentum is decreased by some 5% and the layer is considered punctured/severed. Calculations then repeat for the underlying layer. Otherwise damage is converted to blunt just for this layer and proceeds as following.

Blunt attacks can be entirely deflected by armor if weapon's IMPACT_YIELD is especially low relative to armor's density:

2 * Sw * IYw < A * Da,

where Da is armor material's density (in g/cm3), A is attack contact area, Sw is weapon size and IYw is its impact yield in MPa (i.e. raw value divided by 106).

Otherwise, attack must have minimum momentum of:

M >= (2*IF - IY) * (2 + 0.4*Qa) * A,

where IF and IY are layer's impact fracture and impact yield in MPa, Qa is armor quality multiplier and A is contact area as above.Again, on success layer is considered thrashed, momentum is reduced by about 5% and next layer is tested.

If both edged and blunt momenta thresholds haven't been met, attack is permanently converted to blunt and its momentum may be greatly reduced.Specifically, it is multiplied by SHEAR_STRAIN_AT_YIELD/50000 for edged attacks or IMPACT_STRAIN_AT_YIELD/50000 otherwise. I.e., most metals reduce blocked attacks by 98%-99%, but see below. Note that elastic armor, such as a mail shirt, has both strain at yield values raised to 50000, so it multiplies by 1 at this step (i.e. does nothing to the momentum, but does still convert it to blunt) regardless of material.

Elastic Material Modifiers[edit]

Clothing with [STRUCTURAL_ELASTICITY_*] tokens has its stress properties modified.

Items with [STRUCTURAL_ELASTICITY_CHAIN_ALL] or metallic items with [STRUCTURAL_ELASTICITY_CHAIN_METAL] have their [*_STRAIN_AT_YIELD] increased to 50000, which means that blocked attack will not be dampened; it still may be converted to blunt, however. Metal leggings and chainmail shirts have this property in vanilla.

Items made of cloth with [STRUCTURAL_ELASTICITY_WOVEN_THREAD] additionally have their SHEAR values reduced to negligible 20-30 kPa. (Adamantine fabric seems to be an exception, however: unlike in v0.34, it's observed to be at least as protective as chain.) Caps and all clothing have this tag in vanilla.

Penetration Depth[edit]

Penetration depth affect how deep stabs go. Unlike contact area, penetration depth is the maximum shear distance the weapon can go before an edged force stops and converts into a blunt force. If the penetration depth is greater than the size of the struck body part, the body part may be sliced off entirely. This means that weapons like morningstars mainly deal surface damage but can still damage arteries, nerves, tendons, toes, and the like.[Verify]

Pulping[edit]

Pulping appears to work by evaluating the layers in a body part. If each layer meets any one of the following criteria then the body part is pulped:

  • 100% bruised/burned/frostbite/melt/necrosis/blister/boil/freeze/condense (i.e. 10000+ in layer_effect_fraction)
  • 250% dented (i.e. 25000+ in layer_dent_fraction)
  • 100% cut (i.e. 10000+ in layer_cut_fraction) (cut in this case is synonymous with fracture)

Spines, skulls, and perhaps other body parts have the [PREVENTS_PARENT_COLLAPSE] token which prevents the parent body part (such as the head, upper body, or lower body) from being pulped until the sub-part is broken. It appears that only external body parts can be pulped, not internal organs. You will find that boneless body parts that don't contain a spine/skull part will pulp VERY easily (i.e. eyes/ears).

There does not appear to be any distinctions between the combat text descriptions of the pulping, beyond the messages being appropriate to the weapon used (edged, blunt, or creature body part).

Material and item properties[edit]

As can be seen from above, importance of different material/item properties greatly varies in different scenarios. Below are some guidelines to estimating weapon/armor merit.

  • When dealing with dwarf-sized targets, layer contact areas usually lay in 200~10000 range. The majority of vanilla weapons, however, has contact areas either below or above that (dagger is the lone exception); it therefore can be said, as a rule of thumb, that weapons with area of five or six digits assume their target's contact area, whereas the others use their own.
  • Weapon weight matters very little past a certain threshold: for example, a platinum war hammer in dwarven hands only gets about 12% more momentum over a steel one, despite being thrice as heavy. (An adamantine hammer, however, only has 1/7th as much.) Thus, since all common weapon metals have about the same density, it can be safely ignored.
    • The only exception are weapon traps, which are much more effective with heavy weapons loaded.
  • Shear yield doesn't actually matter. Even with dagger/bolt's contact area of 5 it contributes only ~15% to piercing cost, and since it equals about half of shear fracture for most metals, it can be approximated as such without much error.
  • Blunt weapons only use impact yield value. Impact fracture protects from blunt attacks instead. Curiously, layer impact yield actually decreases blunt fracturing cost, so lower yield is better for armor.
    • Most dedicated blunt weapons cannot be deflected by anything but slade, so their impact yield can in fact be ignored.
  • Chain mail cannot block attacks via momentum cost thresholds; it still can blunt slashing attacks and then deflect them. Thus, the best defence can be reached by wearing dense (like copper) mail shirt under a rigid (like candy) one.
  • Strain at yield values are used in comparison to 50000. Since all metals have much less strain values than this, they all can be considered to have zero elasticity.
  • Armor quality doesn't matter much: masterwork armor provides only about 15% more protection than low-quality one.
  • Blunt weapon quality appears to not affect damage at all.

With that in mind, here are some numbers for vanilla weapon/armor materials:[Verify]

MaterialDensityImpact Yield2*(Impact Fracture) - Impact YieldShear FractureElasticitySharpnessBoltadj.Swordadj.Macemin M
Adamantine0.205.005.005.000106300945031200
Bone/shell0.500.200.200.13<1%0.1150.20190.25608
Bronze8.250.601.080.24<=1%14912751813843
Copper8.930.251.300.22<1%14911771713852
Divine metal1.001.003.002.0001.23072317486120
Glass2.61.001.000.044%/<1%1.5----533.211640
Iron7.850.541.620.31<1%14915752313765
Leather0.500.010.010.03100%------------0.4
Obsidian2.671.001.000.044%/<1%2----544.311740
Platinum21.40.351.050.20<1%1----861714542
Silver10.490.350.840.17<1%1498.3791314034
Slade2004.006.005.00<1%0.1----9346149240
Steel7.851.513.540.722%/<1%149357554137142
Wood0.500.010.010.042%0.1150.06190.076600.4

Clarifications:

On the left side of the table there are some raw values. Density and impact yield are important for a blunt weapon; 4th column is adjusted impact fracture that appears in the formula for blunt defense. Shear fracture is important for edged attacks and defense. Elasticity is in %s of 100000; as you can see, it is universally low.

On the right side there are some typical weapon momenta. From left to right: bolt momentum; ditto multiplied by SF and sharpness (signifies piercing ability); short sword momentum in dwarven hands; ditto multiplied by sharpness and SF; dwarf swinging a mace; and minimum momentum some mace needs to break through armor of this material.

Material science - Dwarf Fortress Wiki (2024)
Top Articles
Latest Posts
Article information

Author: Carlyn Walter

Last Updated:

Views: 5797

Rating: 5 / 5 (70 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Carlyn Walter

Birthday: 1996-01-03

Address: Suite 452 40815 Denyse Extensions, Sengermouth, OR 42374

Phone: +8501809515404

Job: Manufacturing Technician

Hobby: Table tennis, Archery, Vacation, Metal detecting, Yo-yoing, Crocheting, Creative writing

Introduction: My name is Carlyn Walter, I am a lively, glamorous, healthy, clean, powerful, calm, combative person who loves writing and wants to share my knowledge and understanding with you.