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.

Difference between revisions of "v0.34 Talk:Jewelry"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
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.
+
From a bit of disassembly, I've located the effective LAYER, LAYER_PERMIT, LAYER_SIZE, and COVERAGE values for a bunch of hardcoded items. Interestingly, they are quite different from what they were in 0.31.25 (where they perfectly matched the values from version 0.23.130.23a)...
 
 
{|
 
! 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
 
|
 
|}
 
--[[User:Quietust|Quietust]] 20:05, 8 June 2012 (UTC)
 
 
 
 
 
Upon locating the code in 0.34.11, it turns out they '''did''' change:
 
 
{|
 
{|
 
! Item
 
! Item

Latest revision as of 03:03, 9 June 2012

From a bit of disassembly, I've located the effective LAYER, LAYER_PERMIT, LAYER_SIZE, and COVERAGE values for a bunch of hardcoded items. Interestingly, they are quite different from what they were in 0.31.25 (where they perfectly matched the values from version 0.23.130.23a)...

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)