Until now, I thought the [SHAPED] tag was a factor that determined whether it was rigid or not.
However, on Wiki, the [SHAPED] tag is an element that prevents multiple layers of armor from being worn over one slot.
What determines whether the armor is hard or not?
The
Wiki is correct.
[HARD] is just a flag. As far as is known, it means not
[SOFT]; i.e. can't be made out of cloth. It
doesn't mean that the item is rigid.
For combat calculations, the material's physical properties determine the item's resistance to bending (rigidity), as well as e.g. resistance to piercing or slashing damage.
This is part of the
[INORGANIC:IRON] definition from data/vanilla/vanilla_materials/objects/inorganic_metal.txt :
[IMPACT_YIELD:542500] Was 1080000, but just using 3.5x tensile multiples for everything until better numbers are available, which might not be likely
[IMPACT_FRACTURE:1085000]
[IMPACT_STRAIN_AT_YIELD:319]
[COMPRESSIVE_YIELD:542500]
[COMPRESSIVE_FRACTURE:1085000]
[COMPRESSIVE_STRAIN_AT_YIELD:319] bulk modulus 170 GPa
[TENSILE_YIELD:155000]
[TENSILE_FRACTURE:310000]
[TENSILE_STRAIN_AT_YIELD:73] young's modulus 211 GPa
[TORSION_YIELD:155000]
[TORSION_FRACTURE:310000]
[TORSION_STRAIN_AT_YIELD:189]
[SHEAR_YIELD:155000]
[SHEAR_FRACTURE:310000]
[SHEAR_STRAIN_AT_YIELD:189] shear modulus 82 GPa
[BENDING_YIELD:155000]
[BENDING_FRACTURE:310000]
[BENDING_STRAIN_AT_YIELD:73]
Note particularly the
BENDING_* data.