From 4d9e6d53f58adf101ad1f351f93558fc064dfef1 Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Fri, 3 Nov 2023 11:33:43 -0700 Subject: [PATCH] document autochop properties --- docs/guides/quickfort-user-guide.rst | 6 ++++++ plugins/lua/autochop.lua | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/guides/quickfort-user-guide.rst b/docs/guides/quickfort-user-guide.rst index f104a1124..e4b337cc4 100644 --- a/docs/guides/quickfort-user-guide.rst +++ b/docs/guides/quickfort-user-guide.rst @@ -2245,6 +2245,12 @@ Symbol Meaning Properties specified ``name`` if it doesn't already exist. ``civalert``: if set to ``true``, will register this burrow with `gui/civ-alert` if no burrow has already been registered. + ``autochop_clear``: if set to ``true``, register the burrow with + `autochop` so that all trees in the burrow are immediately + chopped down, regardless of how many logs are in stock. + ``autochop_chop``: if set to ``true``, register the burrow with + ``autochop`` so that woodcutting activity is constrained to this + burrow (and others marked for ``chop``). ``e`` erase ``name``: if set, will only affect the first burrow of the given name. if not set, will affect all burrows that cover the given tiles. diff --git a/plugins/lua/autochop.lua b/plugins/lua/autochop.lua index cda91b32d..239db9ec8 100644 --- a/plugins/lua/autochop.lua +++ b/plugins/lua/autochop.lua @@ -51,7 +51,7 @@ function parse_commandline(...) local args, opts = {...}, {} local positionals = process_args(opts, args) - if opts.help then + if opts.help or not positionals then return false end