diff --git a/changelog.txt b/changelog.txt index 0b46206fd..0d42ca183 100644 --- a/changelog.txt +++ b/changelog.txt @@ -48,6 +48,8 @@ Template for new versions: - `hfs-pit`: use correct wall types when making pits with walls - `gui/liquids`: using the remove tool with magma selected will no longer create unexpected unpathable tiles - `idle-crafting`: do not assign crafting jobs to nobles holding meetings (avoid dangling jobs) +- `rejuvenate`: update unit portrait and sprite when aging up babies and children +- `rejuvenate`: recalculate labor assignments for unit when aging up babies and children (so they can start accepting jobs) ## Misc Improvements - `hide-tutorials`: handle tutorial popups for adventure mode diff --git a/rejuvenate.lua b/rejuvenate.lua index a2e36c86e..ac0cf84f4 100644 --- a/rejuvenate.lua +++ b/rejuvenate.lua @@ -71,6 +71,11 @@ function rejuvenate(unit, quiet, force, dry_run, age) unit.profession2 = df.profession.STANDARD if hf then hf.profession = df.profession.STANDARD end end + unit.flags4.portrait_must_be_refreshed = true + unit.flags4.any_texture_must_be_refreshed = true + if dfhack.world.isFortressMode() then + dfhack.units.setAutomaticProfessions(unit) + end if not quiet then print(name .. ' is now ' .. age .. ' years old and will live a normal lifespan henceforth') end