Make Units::getRaceNameById and other ID-related functions available to Lua

develop
lethosor 2020-08-08 14:28:17 -04:00
parent 13380008c4
commit 8f047530c4
No known key found for this signature in database
GPG Key ID: 76A269552F4F58C1
2 changed files with 4 additions and 0 deletions

@ -68,6 +68,7 @@ changelog.txt uses a syntax similar to RST, with a few special sequences:
## Lua
- Added a ``ref_target`` field to primitive field references, corresponding to the ``ref-target`` XML attribute
- Made ``dfhack.units.getRaceNameById()``, ``dfhack.units.getRaceBabyNameById()``, and ``dfhack.units.getRaceChildNameById()`` available to Lua
## Ruby
- Updated ``item_find`` and ``building_find`` to use centralized logic that works on more screens

@ -1617,8 +1617,11 @@ static const LuaWrapper::FunctionReg dfhack_units_module[] = {
WRAPM(Units, getPhysicalDescription),
WRAPM(Units, getRaceName),
WRAPM(Units, getRaceNamePlural),
WRAPM(Units, getRaceNameById),
WRAPM(Units, getRaceBabyName),
WRAPM(Units, getRaceBabyNameById),
WRAPM(Units, getRaceChildName),
WRAPM(Units, getRaceChildNameById),
WRAPM(Units, isBaby),
WRAPM(Units, isChild),
WRAPM(Units, isAdult),