Skip to content

Add z_fix_minecarts #1466

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 2 commits into
base: master
Choose a base branch
from

Conversation

unboundlopez
Copy link

This DFHack script iterates over all minecart tool items in the current Fortress , clears their in_job flag if it’s set, and reports the total number of flags flipped from true to false.

Features

  • Tool Scanning: Identifies all items of subtype ITEM_TOOL_MINECART.
  • Flag Clearing: Automatically clears the in_job flag on minecart tools that are currently marked in a job.
  • Summary Reporting: Outputs the total count of flags flipped from true to false.

@unboundlopez
Copy link
Author

pre-commit.ci autofix

@Bumber64
Copy link
Contributor

What happens if the minecart was actually in a job? This seems half-baked.

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.

2 participants