View Issue Details

IDProjectCategoryView StatusLast Update
0008272Dwarf FortressDwarf Mode -- Jobs, Generalpublic2014-09-11 12:35
ReporterQuietust Assigned ToToady One  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version0.40.12 
Fixed in Version0.40.13 
Summary0008272: Butchering "nearby" check ignores Z-level
DescriptionIn order to perform the "Butcher an Animal" job, there must be a "butcherable unrotten nearby item", and "nearby" is defined as "on a stockpile or within 20 tiles of the workshop".

However, the distance check ignores the Z-level - it checks if the item's X and Y coordinates are within 20 tiles of the workshop edges (building.x_min - item.x < 20, item.x - building.x_max < 20, building.y_min - item.y < 20, and item.y - buildin.y_max < 20), but it does not check the Z coordinate at all.
Steps To ReproduceKill a butcherable animal on the surface, then build a butcher's workshop deep underground beneath it and more than 20 tiles to either side. Observe that the corpse gets selected for butchering once the workshop is moved close enough laterally, but it doesn't care if the workshop is 100 Z-level beneath it.
Additional InformationThis dates back to the 2D versions of Dwarf Fortress, where it didn't have any noticeable effect; when Z-levels got added, the "nearby" job item flag check never got updated accordingly.
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2014-09-11 10:11 Quietust New Issue
2014-09-11 11:28 user6 Assigned To => user6
2014-09-11 11:28 user6 Status new => confirmed
2014-09-11 12:35 Toady One Status confirmed => resolved
2014-09-11 12:35 Toady One Fixed in Version => Next Version
2014-09-11 12:35 Toady One Resolution open => fixed
2014-09-11 12:35 Toady One Assigned To user6 => Toady One