Skip to content

Commit

Permalink
Merge pull request #1340 from Eldresh/Eldresh-Rejuvenate-patch-1
Browse files Browse the repository at this point in the history
Convert age argument to number in rejuvenate.lua
  • Loading branch information
myk002 authored Nov 28, 2024
2 parents 33c6bce + dbfa74b commit d602db3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ Template for new versions:
- `control-panel`: fix setting numeric preferences from the commandline
- `gui/quickfort`: fix build mode evluation rules to allow placement of various furniture and constructions on tiles with stair shapes or without orthagonal floor.
- `emigration`: save-and-reload no longer resets the emigration cycle timeout, making gameplay more consistent
- `rejuvenate`: ``--age`` no longer throws the error ``attempt to compare string with number``

## Misc Improvements
- `control-panel`: Add realistic-melting tweak to control-panel registry
Expand Down
2 changes: 1 addition & 1 deletion rejuvenate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ local function main(args)
table.insert(units, dfhack.gui.getSelectedUnit(true) or qerror("Please select a unit in the UI."))
end
for _, u in ipairs(units) do
rejuvenate(u, false, args.force, args['dry-run'], args.age)
rejuvenate(u, false, args.force, args['dry-run'], tonumber(args.age))
end
end

Expand Down

0 comments on commit d602db3

Please sign in to comment.