DFHack / dfhack

Memory hacking library for Dwarf Fortress and a set of tools that use it
Other
1.84k stars 463 forks source link

rejuvenate and armoks-blessing should adjust for identities when setting age #4698

Open myk002 opened 3 weeks ago

myk002 commented 3 weeks ago

if a vampire is under an assumed identity, it interprets age as an offset from the unit's real age. Therefore, when rejuvenate or armoks-blessing sets the age of the unit to 20, the effective age might end up being 15, making the unit unable to work.

we should detect assumed identities and adjust the set age of the unit accordingly so the adjusted age is 20. Make sure that doesn't cause any issues if the unit is pretending to be older and we set the age in the child/baby/negative range