dfhack icon indicating copy to clipboard operation
dfhack copied to clipboard

item: add a way to distinguish economic and non-economic stone materials

Open myk002 opened this issue 1 year ago • 3 comments

either with a new parameter or by augmenting the df.dfhack_material_category infrastructure

myk002 avatar Apr 19 '24 17:04 myk002

Is the intent to determine whether a stone is marked as economic (and would be excluded by most jobs) or whether the stone has potential economic uses (i.e. if the game would mark it as economic by default)?

quietust avatar May 01 '24 16:05 quietust

I believe it's the latter definition that the requester (which I apparently forgot to cite) was going for

myk002 avatar May 01 '24 18:05 myk002

could be done by adding economic and noneconomic bits to the bitfield, and adding appropriate tests in MaterialInfo::matches

the process for determining if a stone "has economic uses" is, however, somewhat nontrivial, which means this test could be expensive if not cached

ab9rf avatar May 30 '24 17:05 ab9rf