From 886289d805af845ba8d7bc50afd8d804c8d74abc Mon Sep 17 00:00:00 2001 From: myk002 Date: Mon, 25 Jul 2022 10:21:33 -0700 Subject: [PATCH] update docs for fix-armory --- docs/plugins/fix-armory.rst | 12 ++++++++++-- plugins/fix-armory.cpp | 9 +++------ 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/docs/plugins/fix-armory.rst b/docs/plugins/fix-armory.rst index f4b988420..dfc5eef7f 100644 --- a/docs/plugins/fix-armory.rst +++ b/docs/plugins/fix-armory.rst @@ -1,4 +1,12 @@ fix-armory ========== -`This plugin requires a binpatch `, which has not -been available since DF 0.34.11 +Tags: +:dfhack-keybind:`fix-armory` + +Allow the military to store equipment in barracks. However, +`this plugin requires a binpatch `, which has not +been available since DF 0.34.11. + +Usage:: + + enable fix-armory diff --git a/plugins/fix-armory.cpp b/plugins/fix-armory.cpp index 0f63b4d93..7dfefff0f 100644 --- a/plugins/fix-armory.cpp +++ b/plugins/fix-armory.cpp @@ -70,12 +70,9 @@ DFhackCExport command_result plugin_onstatechange(color_ostream &out, state_chan DFhackCExport command_result plugin_init (color_ostream &out, std::vector &commands) { commands.push_back(PluginCommand( - "fix-armory", "Enables or disables the fix-armory plugin.", fix_armory, false, - " fix-armory enable\n" - " Enables the tweaks.\n" - " fix-armory disable\n" - " Disables the tweaks. All equipment will be hauled off to stockpiles.\n" - )); + "fix-armory", + "Enables or disables the fix-armory plugin.", + fix_armory)); if (Core::getInstance().isMapLoaded()) plugin_onstatechange(out, SC_MAP_LOADED);