Skip to content

Wheelbarrow Assignment for Stockpiles #1462

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

unboundlopez
Copy link

zAutowheelbarrow

Automatically manages wheelbarrow assignments for your fortress stockpiles.

This script evaluates all stockpiles and assigns wheelbarrows to those that
would benefit the most (e.g., stone, furniture, or corpse stockpiles) based on
their size. It also clears stale or invalid wheelbarrow assignments.

Overview

This script performs the following tasks:

  1. Scans all stockpiles in the fortress.
  2. Calculates desired wheelbarrows for each applicable stockpile (one per 3 tiles).
  3. Assigns wheelbarrows only to stone, furniture, or corpse stockpiles.
  4. Clears existing wheelbarrow assignments if they are no longer valid.
  5. Provides a summary of total stockpiles, total wheelbarrows, and how many more are needed or excess.

Usage

Run the script from the DFHack console:

@unboundlopez
Copy link
Author

pre-commit.ci autofix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant