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:Jewelry

From Dwarf Fortress Wiki
Revision as of 02:41, 9 June 2012 by Quietust (talk | contribs)
Jump to navigation Jump to search

From a bit of disassembly diving into version 0.23.130.23a, I've come up with LAYER, LAYER_PERMIT, and LAYER_SIZE values for a bunch of hardcoded items. There's no guarantee that these values haven't changed in the past 5 years, but from my experience I can say it's quite likely that they haven't - still, it wouldn't hurt to check, and finding the code shouldn't be difficult now that it's clear what it looks like.

Item LAYER LAYER_PERMIT LAYER_SIZE Other
Amulet COVER 1000 1
Crown COVER 30 20 SHAPED
Ring UNDER 10 1
Earring UNDER 10 1
Bracelet UNDER 1000 1
Backpack COVER 200 50
Quiver COVER 200 30

--Quietust 20:05, 8 June 2012 (UTC)


Upon locating the code in 0.34.11, it turns out they did change:

Item LAYER LAYER_PERMIT LAYER_SIZE COVERAGE
Amulet COVER 10000 0 1
Crown COVER 10000 0 20
Ring UNDER 10000 0 1
Earring UNDER 10000 0 1
Bracelet UNDER 10000 0 1
Backpack COVER 10000 0 50
Quiver COVER 10000 0 30
Splint COVER 10000 0 50
Orthopedic Cast UNDER 10000 0 100

--Quietust 02:41, 9 June 2012 (UTC)