Skip to content

Commit b2ab93b

Browse files
committed
update docs for autonestbox
1 parent 3b17448 commit b2ab93b

2 files changed

Lines changed: 28 additions & 21 deletions

File tree

docs/plugins/autonestbox.rst

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
autonestbox
2+
===========
3+
Tags:
4+
:dfhack-keybind:`autonestbox`
5+
6+
Auto-assign egg-laying female pets to nestbox zones. Requires that you create
7+
pen/pasture zones above nestboxes. If the pen is bigger than 1x1, the nestbox
8+
must be in the top left corner. Only 1 unit will be assigned per pen, regardless
9+
of the size. The age of the units is currently not checked since most birds grow
10+
up quite fast. Egg layers who are also grazers will be ignored, since confining
11+
them to a 1x1 pasture is not a good idea. Only tame and domesticated own units
12+
are processed since pasturing half-trained wild egg layers could destroy your
13+
neat nestbox zones when they revert to wild.
14+
15+
Usage:
16+
17+
``enable autonestbox``
18+
Start checking for unpastured egg-layers and assigning them to nestbox
19+
zones.
20+
``autonestbox``
21+
Print current status.
22+
``autonestbox now``
23+
Run a scan and assignment cycle right now. Does not require that the plugin
24+
is enabled.
25+
``autonestbox ticks <ticks>``
26+
Change the number of ticks between scan and assignment cycles when the
27+
plugin is enabled. The default is 6000 (about 8 days).

plugins/autonestbox.cpp

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -33,24 +33,6 @@ DFHACK_PLUGIN_IS_ENABLED(is_enabled);
3333

3434
REQUIRE_GLOBAL(world);
3535

36-
static const string autonestbox_help =
37-
"Assigns unpastured female egg-layers to nestbox zones.\n"
38-
"Requires that you create pen/pasture zones above nestboxes.\n"
39-
"If the pen is bigger than 1x1 the nestbox must be in the top left corner.\n"
40-
"Only 1 unit will be assigned per pen, regardless of the size.\n"
41-
"The age of the units is currently not checked, most birds grow up quite fast.\n"
42-
"Usage:\n"
43-
"\n"
44-
"enable autonestbox\n"
45-
" Start checking for unpastured egg-layers and assigning them to nestbox zones.\n"
46-
"autonestbox\n"
47-
" Print current status."
48-
"autonestbox now\n"
49-
" Run a scan and assignment cycle right now. Does not require that the plugin is enabled.\n"
50-
"autonestbox ticks <ticks>\n"
51-
" Change the number of ticks between scan and assignment cycles when the plugin is enabled.\n"
52-
" The default is 6000 (about 8 days)\n";
53-
5436
namespace DFHack {
5537
// for configuration-related logging
5638
DBG_DECLARE(autonestbox, status, DebugCategory::LINFO);
@@ -90,9 +72,7 @@ DFhackCExport command_result plugin_init(color_ostream &out, std::vector <Plugin
9072
commands.push_back(PluginCommand(
9173
plugin_name,
9274
"Auto-assign egg-laying female pets to nestbox zones.",
93-
df_autonestbox,
94-
false,
95-
autonestbox_help.c_str()));
75+
df_autonestbox));
9676
return CR_OK;
9777
}
9878

0 commit comments

Comments
 (0)