Skip to content

Commit 22c9058

Browse files
authored
Merge pull request #1482 from amade-w/entomb
add new tool `entomb`
2 parents eff02eb + c343176 commit 22c9058

File tree

3 files changed

+540
-1
lines changed

3 files changed

+540
-1
lines changed

changelog.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ Template for new versions:
2929
## New Tools
3030
- `autotraining`: new tool to assign citizens to a military squad when they need Martial Training
3131
- `gui/autotraining`: configuration tool for autotraining
32+
- `entomb`: allow any unit that has a corpse or body parts to be assigned a tomb zone
3233

3334
## New Features
3435
- `deathcause`: added functionality to this script to fetch cause of death programatically
3536

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

4040
## Misc Improvements

docs/entomb.rst

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
entomb
2+
======
3+
4+
.. dfhack-tool::
5+
:summary: Entomb any corpse into tomb zones.
6+
:tags: fort items buildings
7+
8+
Assign any unit regardless of citizenship, residency, pet status,
9+
or affiliation to an unassigned tomb zone for burial.
10+
11+
Usage
12+
-----
13+
14+
``entomb [<options>]``
15+
16+
Select a unit's corpse or body part, or specify the unit's ID
17+
when executing this script to assign an unassigned tomb zone to
18+
the unit, and flag the unit's corpse as well as any severed body
19+
parts to become valid items for interment.
20+
21+
Optionally, specify the tomb zone's ID to assign a specific tomb
22+
zone to the unit.
23+
24+
A non-citizen, non-resident, or non-pet unit that is still alive
25+
may even be assigned a tomb zone if they have lost any body part
26+
that can be placed inside a tomb, e.g. teeth or severed limbs.
27+
New corpse items after a tomb has already been assigned will not
28+
be properly interred until the script is executed again with the
29+
unit ID specified, or the unit's corpse or any body part selected.
30+
31+
If executed on slaughtered animals, all its butchering returns will
32+
become valid burial items and no longer usable for cooking or crafting.
33+
34+
Examples
35+
--------
36+
37+
``entomb --unit <id>``
38+
Assign an unassigned tomb zone to the unit with the specified ID.
39+
40+
``entomb --tomb <id>``
41+
Assign a tomb zone with the specified ID to the selected corpse
42+
item's unit.
43+
44+
``entomb -u <id> -t <id> -h``
45+
Assign a tomb zone with the specified ID to the unit with the
46+
specified ID and task all its burial items for simultaneous
47+
hauling into the coffin in the tomb zone.
48+
49+
Options
50+
-------
51+
52+
``-u``, ``--unit <id>``
53+
Specify the ID of the unit to be assigned to a tomb zone.
54+
55+
``-t``, ``--tomb <id>``
56+
Specify the ID of the zone into which a unit will be interred.
57+
58+
``-a``, ``--add-item``
59+
Add a selected item, or multiple items at the keyboard cursor's
60+
position to be interred together with a unit. A unit or tomb
61+
zone ID must be specified when calling this option.
62+
63+
``-n``, ``--haul-now``
64+
Task all of the unit's burial items for simultaneous hauling
65+
into the coffin of its assigned tomb zone. This option can be
66+
called even after a tomb zone is already assigned to the unit.

0 commit comments

Comments
 (0)