From a885e3b9be98ab7c8f4bbabc10909f3e2c91e31e Mon Sep 17 00:00:00 2001 From: lethosor Date: Sat, 2 Nov 2019 22:00:43 -0400 Subject: [PATCH] autoclothing: add docs Ref #1437 --- docs/Plugins.rst | 16 ++++++++++++++++ plugins/autoclothing.cpp | 4 ++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/docs/Plugins.rst b/docs/Plugins.rst index 670b93e73..f6341e5aa 100644 --- a/docs/Plugins.rst +++ b/docs/Plugins.rst @@ -1845,6 +1845,22 @@ reeequip with replacement items. Use the `enable` and `disable` commands to toggle this plugin's status, or run ``tailor status`` to check its current status. +.. _autoclothing: + +autoclothing +============ + +Automatically manage clothing work orders, allowing the user to set how many of +each clothing type every citizen should have. Usage:: + + autoclothing [number] + +Examples: + +* ``autoclothing cloth "short skirt" 10``: + Sets the desired number of cloth short skirts available per citizen to 10. +* ``autoclothing cloth dress``: + Displays the currently set number of cloth dresses chosen per citizen. ================ Map modification diff --git a/plugins/autoclothing.cpp b/plugins/autoclothing.cpp index 71127119e..d19e647d5 100644 --- a/plugins/autoclothing.cpp +++ b/plugins/autoclothing.cpp @@ -187,7 +187,7 @@ DFhackCExport command_result plugin_init(color_ostream &out, std::vector \n" + " autoclothing [number]\n" "Example:\n" " autoclothing cloth \"short skirt\" 10\n" " Sets the desired number of cloth short skirts available per citizen to 10.\n" @@ -383,7 +383,7 @@ command_result autoclothing(color_ostream &out, std::vector & para // use CoreSuspender, it'll automatically resume DF when // execution leaves the current scope. CoreSuspender suspend; - + // Create a new requirement from the available parameters. ClothingRequirement newRequirement;