Skip to content

add new tool entomb #1482

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Aug 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
86e636f
Add entomb.lua and docs/entomb.rst
amade-w Jul 15, 2025
f684542
Update changelog.txt to add new tool: entomb
amade-w Jul 15, 2025
07594b5
Apply revisions to entomb.lua according to PR comments
amade-w Jul 16, 2025
0f75b56
Apply 2nd revision to entomb.lua: improve PutInCoffin()
amade-w Jul 16, 2025
36b7771
entomb.lua Implement a function that creates a job to haul an item to…
SilasD Jul 18, 2025
b359cba
entomb.lua Very Important Bugfix completely assign unit to tomb.
SilasD Jul 19, 2025
6a185fd
entomb.lua Update the unit's owned buildings with the newly-assigned …
SilasD Jul 20, 2025
a2f4548
Undo commit b359cbaa4c7ea3b62da9ccea24ca3fdf6e025581
SilasD Jul 23, 2025
3c62cda
Merge pull request #1 from SilasD/entomb
SilasD Jul 23, 2025
25714bf
Add function to validate moving items, separate job removal into own …
amade-w Jul 25, 2025
7952e13
Assign new name to unnamed tombs during assignment
amade-w Jul 25, 2025
f484912
Move logic to call HaulToCoffin() and TeleportToCoffin() into new fun…
amade-w Jul 25, 2025
ba5e5d1
Implement add-item option, revise Main() logic, switch to use argpars…
amade-w Jul 28, 2025
e11d968
Disable teleport function, update documentation
amade-w Jul 28, 2025
8f4feca
Fix argparse short-form conflict
amade-w Jul 29, 2025
785741b
Fix documentation
amade-w Jul 29, 2025
062ef18
Assign only active tomb zones and make it unavailable for auto assigm…
amade-w Aug 13, 2025
5f1c7b7
Remove duplicated code in IterateTombZones()
amade-w Aug 13, 2025
c343176
Merge branch 'master' into entomb
amade-w Aug 17, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ Template for new versions:
## New Tools
- `autotraining`: new tool to assign citizens to a military squad when they need Martial Training
- `gui/autotraining`: configuration tool for autotraining
- `entomb`: allow any unit that has a corpse or body parts to be assigned a tomb zone

## New Features

## Fixes

- `immortal-cravings`: prioritize high-value meals, properly split of portions, and don't go eating or drinking on a full stomach

## Misc Improvements
Expand Down
66 changes: 66 additions & 0 deletions docs/entomb.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
entomb
======

.. dfhack-tool::
:summary: Entomb any corpse into tomb zones.
:tags: fort items buildings

Assign any unit regardless of citizenship, residency, pet status,
or affiliation to an unassigned tomb zone for burial.

Usage
-----

``entomb [<options>]``

Select a unit's corpse or body part, or specify the unit's ID
when executing this script to assign an unassigned tomb zone to
the unit, and flag the unit's corpse as well as any severed body
parts to become valid items for interment.

Optionally, specify the tomb zone's ID to assign a specific tomb
zone to the unit.

A non-citizen, non-resident, or non-pet unit that is still alive
may even be assigned a tomb zone if they have lost any body part
that can be placed inside a tomb, e.g. teeth or severed limbs.
New corpse items after a tomb has already been assigned will not
be properly interred until the script is executed again with the
unit ID specified, or the unit's corpse or any body part selected.

If executed on slaughtered animals, all its butchering returns will
become valid burial items and no longer usable for cooking or crafting.

Examples
--------

``entomb --unit <id>``
Assign an unassigned tomb zone to the unit with the specified ID.

``entomb --tomb <id>``
Assign a tomb zone with the specified ID to the selected corpse
item's unit.

``entomb -u <id> -t <id> -h``
Assign a tomb zone with the specified ID to the unit with the
specified ID and task all its burial items for simultaneous
hauling into the coffin in the tomb zone.

Options
-------

``-u``, ``--unit <id>``
Specify the ID of the unit to be assigned to a tomb zone.

``-t``, ``--tomb <id>``
Specify the ID of the zone into which a unit will be interred.

``-a``, ``--add-item``
Add a selected item, or multiple items at the keyboard cursor's
position to be interred together with a unit. A unit or tomb
zone ID must be specified when calling this option.

``-n``, ``--haul-now``
Task all of the unit's burial items for simultaneous hauling
into the coffin of its assigned tomb zone. This option can be
called even after a tomb zone is already assigned to the unit.
Loading
Loading