Skip to content

Commit 187e656

Browse files
authored
Merge pull request #5327 from Bumber64/patch-1
Fix outdated enum names in Lua API.rst
2 parents 083c152 + 2668082 commit 187e656

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/dev/Lua API.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,9 +1395,9 @@ Job module
13951395
Attach a real item to this job. If the item is intended to satisfy a job_item
13961396
filter, the index of that filter should be passed in ``filter_idx``; otherwise,
13971397
pass ``-1``. Similarly, if you don't care where the item is inserted, pass
1398-
``-1`` for ``insert_idx``. The ``role`` param is a ``df.job_item_ref.T_role``.
1398+
``-1`` for ``insert_idx``. The ``role`` param is a ``df.job_role_type``.
13991399
If the item needs to be brought to the job site, then the value should be
1400-
``df.job_item_ref.T_role.Hauled``.
1400+
``df.job_role_type.Hauled``.
14011401

14021402
* ``dfhack.job.isSuitableItem(job_item, item_type, item_subtype)``
14031403

@@ -2108,7 +2108,7 @@ Items module
21082108
* ``dfhack.items.moveToInventory(item,unit[,use_mode[,body_part]])``
21092109

21102110
Move the item to the unit inventory. Returns *false* if impossible.
2111-
``use_mode`` defaults to ``df.unit_inventory_item.T_mode.Hauled``.
2111+
``use_mode`` defaults to ``df.inv_item_role_type.Hauled``.
21122112
``body_part`` defaults to ``-1``.
21132113

21142114
* ``dfhack.items.remove(item[,no_uncat])``

0 commit comments

Comments
 (0)