v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

v0.34 Talk:Weight

From Dwarf Fortress Wiki
Revision as of 07:40, 22 September 2012 by UristDaVinci (talk | contribs) (Clothing/armor weight formula/method)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Clothing/armor weights

I crunched some numbers and came up with a calculation for the weight of armor or clothing:

Clothing weight = [BODY_SIZE]*(percentage)*[COVERAGE]*[LAYER_SIZE]*[SOLID_DENSITY]*(step factor)/10000000000

Where:

[BODY_SIZE] is of the creature that the clothing was created for (i.e. dwarf adult is 60000)

(percentage) is the relative size of the body part the clothing was created for, divided by the sum of relative sizes of the creature's body parts. See [BODY_DETAIL_PLAN:HUMANOID_RELSIZES] for reference. On most humanoids the head is 0.051 (i.e. 5.51%), the upper body and lower body are each 0.1836 (18.36%), each hand is 0.0147 (1.47%) and each foot is 0.022 (2.2%).

[COVERAGE] and [LAYER_SIZE] are clothing properties. [SOLID_DENSITY] is of the clothing material.

The (step factor) is for the clothing [UBSTEP] [LBSTEP] [UPSTEP]. Start with 1.00, and add 0.25 for each unit of step on the clothing. Possible step factors are 1.0, 1.25, 1.5, 1.75, 2.0, 2.25, and 2.5. Robes, with MAX UBSTEP and MAX LBSTEP have a step factor of 2.5. Breastplates have 0 step, so they use a factor of 1.0. Mail shirts have UBSTEP 1 and LBSTEP 1, so they use a step factor of 1.5. Gauntlets have UPSTEP 1, so the step factor is 1.25.

Therefore we calculate the weight of a dwarf-sized iron greaves to be: 60000*0.1836*100*15*7850/10000000000*1.75=22.7

This calculation has been verified for several creature sizes and several worn clothing items. --UristDaVinci 07:40, 22 September 2012 (UTC)