You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/changelog.txt
+9-2Lines changed: 9 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,6 @@ Template for new versions:
59
59
- `plant`: can now ``remove`` shrubs and saplings; ``list`` all valid shrub/sapling raw IDs; ``grow`` can make mature trees older; many new command options
60
60
61
61
## Fixes
62
-
- `suspendmanager`: stop suspending single tile stair constructions
63
62
- ``Gui::makeAnnouncement``, ``Gui::autoDFAnnouncement``: fix skipping index 0 when iterating reports vector
64
63
- `regrass`: don't remove mud on regrass, consistent with vanilla behavior
65
64
- `seedwatch`: display a limit of ``-`` instead of ``0`` for a seed that is present in inventory but not being watched
@@ -96,7 +95,8 @@ Template for new versions:
96
95
- ``Maps::setAreaAquifer``: make all tiles in a cuboid into aquifers, with the option to provide a filter
97
96
- ``Maps::removeTileAquifer``: remove aquifer from tile
98
97
- ``Maps::removeAreaAquifer``: remove aquifers from all tiles in a cuboid, with the option to provide a filter
99
-
- ``Units::makeown``: API to use bay12-provided entry point for "makeown" operation
98
+
- ``Units::create``, ``Units::makeown``: new APIs to use bay12-provided entry points for low-level operations
99
+
- ``format_number``: format numbers according to the current system locale
100
100
101
101
## Lua
102
102
- ``dfhack.gui.getSelectedJob``: can now return the job with a destination under the keyboard cursor (e.g. digging/carving/engraving jobs)
@@ -113,12 +113,19 @@ Template for new versions:
113
113
- ``dfhack.maps.removeTileAquifer``: remove aquifer from tile
114
114
- ``plugins.tiletypes.tiletypes_setTile``: can now accept a table for access to previously unavailable options
115
115
- ``dialogs.showYesNoPrompt``: extend options so the standard dialog can be used for `gui/confirm`-style confirmation prompts
116
+
- ``dfhack.units.create``, ``dfhack.units.makeown``: Lua access to new module API
117
+
- ``dfhack.formatInt``, ``dfhack.formatFloat``: formats numbers according to the current system locale
116
118
117
119
## Removed
118
120
- `plants`: renamed to `plant`
119
121
- ``gui.FramedScreen``: this class is now deprecated; please use ``gui.ZScreen`` and ``widgets.Window`` instead
120
122
- ``dfhack.HIDE_CONSOLE_ON_STARTUP`` and ``dfhack.HIDE_ARMOK_TOOLS`` are no longer directly accessible. Please use `control-panel` or `gui/control-panel` to interact wtih those settings.
121
123
124
+
# 50.13-r2.1
125
+
126
+
## Fixes
127
+
- `suspendmanager`: stop suspending single tile stair constructions
Run an arbitrary DFHack command, with the core suspended, and send output to
@@ -1629,11 +1641,20 @@ Units module
1629
1641
1630
1642
Returns the nemesis record of the unit if it has one, or *nil*.
1631
1643
1632
-
``dfhack.units.makeown(unit)``
1644
+
* ``dfhack.units.makeown(unit)``
1633
1645
1634
1646
Makes the selected unit a member of the current fortress and site.
1635
1647
Note that this operation may silently fail for any of several reasons, so it may be prudent to check if the operation has succeeded by using ``dfhack.units.isOwnCiv`` or another appropriate predicate on the unit in question.
1636
1648
1649
+
* ``dfhack.units.create(race, caste)``
1650
+
1651
+
Creates a new unit from scratch. The unit will be added to the
1652
+
``world.units.all`` vector, but not to the ``world.units.active`` vector. The
1653
+
unit will not have an associated historical figure, nemesis record, map
1654
+
position, labors, or any group associations. The unit *will* have a race,
1655
+
caste, name, soul, and initialized body and mind (including personality). The
1656
+
unit must be configured further as needed and put into play by the client.
0 commit comments