DFHack / dfhack

Memory hacking library for Dwarf Fortress and a set of tools that use it
Other
1.88k stars 478 forks source link

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

Open myk002 opened 7 months ago

myk002 commented 7 months ago

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

quietust commented 7 months ago

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)?

myk002 commented 7 months ago

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

ab9rf commented 6 months ago

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