From e513253d8d9b7b4b9c78a2dd18c945ce19575191 Mon Sep 17 00:00:00 2001 From: myk002 Date: Thu, 28 Jul 2022 23:20:24 -0700 Subject: [PATCH] update docs for regrass --- docs/plugins/regrass.rst | 13 ++++++++++++- plugins/regrass.cpp | 6 ++++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/docs/plugins/regrass.rst b/docs/plugins/regrass.rst index f3d00d8e1..d47e98d19 100644 --- a/docs/plugins/regrass.rst +++ b/docs/plugins/regrass.rst @@ -1,3 +1,14 @@ regrass ======= -Regrows all the grass. Not much to it ;) +Tags: +:dfhack-keybind:`regrass` + +Regrows all the grass. Use this command if your grazers have eaten everything +down to the dirt. + +Usage:: + + regrass [max] + +Specify the 'max' option to pack more grass onto a tile than what the game +normally allows to give your grazers extra chewing time. diff --git a/plugins/regrass.cpp b/plugins/regrass.cpp index 0cac5bd77..5d2a6450c 100644 --- a/plugins/regrass.cpp +++ b/plugins/regrass.cpp @@ -29,8 +29,10 @@ command_result df_regrass (color_ostream &out, vector & parameters); DFhackCExport command_result plugin_init (color_ostream &out, std::vector &commands) { - commands.push_back(PluginCommand("regrass", "Regrows surface grass.", df_regrass, false, - "Specify parameter 'max' to set all grass types to full density, otherwise only one type of grass will be restored per tile.\n")); + commands.push_back(PluginCommand( + "regrass", + "Regrows surface grass.", + df_regrass)); return CR_OK; }