automatic milking/shearing at closest workshop (WIP) - #958
Conversation
|
It's fine to work the logic out here, but I think this should eventually be moved into |
| distance = d | ||
| end | ||
| end | ||
|
|
There was a problem hiding this comment.
and if there is no workshop on the animal's level?
There was a problem hiding this comment.
Then no milking job gets queued, because farmer's workshops that are not next to a pasture are probably intended for other things (processing plants or spinning thread).
I'm not so sure about this. The Now that milking and shearing is working like I would like it to, the next step for me would be to automate cheese making, because, once again, there is no way to reasonably do this using manager work orders. |
|
Has been superseded by the long merged |
This is a draft for a tool that will queue milking/shearing orders at the closest farmer's workshop on the same z-level. In order for the tool to shear/milk an animal, there must be a farmer's workshop on the same z-level as the animal. Only the workshop closest to the animal will be used.
Currently, I run this with
repeat --time 1500 --command [ husbandry ], but I plan to make it use theenableinfrastructure with proper callbacks.Part of the logic is copied from
workorder, so I guess some refactoring may be required.