From 0c9ca27ffce7d53ede74bd6ccbf590d1cbe94b7b Mon Sep 17 00:00:00 2001 From: paramat Date: Sun, 8 Oct 2017 21:08:52 +0100 Subject: Simple decorations: Add 'param2_max' parameter for random param2 If 'param2_max' is not used, parameter 'param2' works as before for compatibility. If 'param2_max' is used, 'param2' and 'param2_max' become the lower and upper bounds of a per-decoration random param2. --- doc/lua_api.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc') diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 703e81436..63c4bea48 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -4842,6 +4842,10 @@ Definition tables -- ^ If absent, the parameter 'height' is used as a constant. param2 = 0, -- ^ Param2 value of placed decoration node. + -- ^ If param2_max is not 0, this is the lower bound of the randomly selected param2. + param2_max = 0, + -- ^ Upper bound of the randomly selected param2. + -- ^ If absent, the parameter 'param2' is used as a constant. ----- Schematic-type parameters schematic = "foobar.mts", -- cgit v1.2.3