Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Improve fix/stuck-squad #1453

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
Open

Improve fix/stuck-squad #1453

wants to merge 2 commits into from

Conversation

Bumber64
Copy link
Contributor

@Bumber64 Bumber64 commented May 6, 2025

Attach new controller based on how DF handles cancelled missions, rather than requiring a returning squad.
Fix assumptions about one squad per army. Let DF handle squads that haven't fully left the map.
Some functions that might be useful to manipulate armies in general. (E.g., force any army to join a site.)
verbose and quiet options.

* Update stuck-squad.lua
* Update notifications.lua
* Update registry.lua
* Update stuck-squad.rst
--From observing bugged saves, this condition appears to be unique to stuck armies
local function is_army_stuck(army)
return army and not army.flags.dwarf_mode_preparing and --Let DF handle cancelled missions
army.controller_id ~= 0 and not army.controller
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why is a controller_id of 0 excluded, specifically?

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