FoodCrates don't get delivered #31
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ald_productions/spacebase-v2-updated-code#31
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
To reproduce, build a garden room with a bunch of plants, and set up botanists to tend them. Don't build any refrigerators yet. Let the plants grow to 100%. The botanists will harvest them, but with no fridges they'll leave the food at their feet in a FoodCrate.
Now build one or more fridges in a nearby pub room. The botanists will harvest newly grown crops and deliver them to the fridge, but will never pick up those initial FoodCrates and deliver them.
From staring at the code, I believe this is because at the time the harvest job is under way, a search is made for a fridge in order to create a followup delivery job. If there are no fridges then it creates the food crate instead. But I don't see any code to create delivery jobs from stray FoodCrates.
What would be awesome would be if janitors would put the crates on (or under) spare shelves. And then if a fridge becomes empty, have that generate a job to pull one of those crates in. Or something...