Skip to content

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.

Copy link
Member

@ab9rf ab9rf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will clear the in_job flag for minecarts that are legitimately being used in a job

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.

3 participants