Skip to content
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

Fix permanence of ungeld #1339

Merged
merged 3 commits into from
Nov 28, 2024
Merged

Fix permanence of ungeld #1339

merged 3 commits into from
Nov 28, 2024

Conversation

NicksWorld
Copy link
Contributor

Geld/ungeld now properly update unit.body.components.body_part_status[?].gelded.

Through testing I have discovered the following behavior guiding the implementation:

  • On load the body_part_status[?].gelded flag will cause unit.flags3.gelded to be updated.
  • Gelding a unit with a histfig naturally does not cause any wounds to be added to the histfig.

Ungelding will remove all gelding wounds and flags to avoid any conflicts caused by old versions marking all body parts from wounds gelded.

Fixes DFHack/dfhack#4988

geld.lua Outdated Show resolved Hide resolved
geld.lua Show resolved Hide resolved
@myk002
Copy link
Member

myk002 commented Nov 28, 2024

At your convenience, please consider adding your name to our Authors file: https://github.com/DFHack/dfhack/blob/develop/docs/about/Authors.rst

@myk002 myk002 merged commit 196f017 into DFHack:master Nov 28, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

geld and ungeld do not correctly mark histfig
2 participants