From 3b9f99e0d61957c571ba857301d58ad29fb44527 Mon Sep 17 00:00:00 2001 From: paramat Date: Tue, 13 Oct 2015 05:17:33 +0100 Subject: ABMs: Make catch-up behaviour optional Default is true for backwards compatibility Update lua_api.txt --- doc/lua_api.txt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'doc') diff --git a/doc/lua_api.txt b/doc/lua_api.txt index f0f70d073..489154fb3 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -3063,10 +3063,14 @@ Definition tables { -- In the following two fields, also group:groupname will work. nodenames = {"default:lava_source"}, - neighbors = {"default:water_source", "default:water_flowing"}, -- (any of these) - -- ^ If left out or empty, any neighbor will do - interval = 1.0, -- (operation interval) - chance = 1, -- (chance of trigger is 1.0/this) + neighbors = {"default:water_source", "default:water_flowing"}, -- Any of these --[[ + ^ If left out or empty, any neighbor will do ]] + interval = 1.0, -- Operation interval in seconds + chance = 1, -- Chance of trigger per-node per-interval is 1.0 / this + catch_up = true, -- If true, catch-up behaviour is enabled --[[ + ^ The chance value is temporarily reduced when returning to + an area to simulate time lost by the area being unattended. + ^ Note chance value can often be reduced to 1 ]] action = func(pos, node, active_object_count, active_object_count_wider), } -- cgit v1.2.3