From 8e53526b545e2dc0a05066fb18f064a394e20740 Mon Sep 17 00:00:00 2001 From: thetaepsilon-gamedev Date: Sun, 1 Oct 2017 21:20:30 +0100 Subject: new flow logic: abms.lua: rename neighbour output helper to better indicate lack of rotation support --- new_flow_logic/abms.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'new_flow_logic') diff --git a/new_flow_logic/abms.lua b/new_flow_logic/abms.lua index a07c390..15adcef 100644 --- a/new_flow_logic/abms.lua +++ b/new_flow_logic/abms.lua @@ -115,7 +115,8 @@ end -- outputs water by trying to place water nodes nearby in the world. -- neighbours is a list of node offsets to try placing water in. -- this is a constructor function, returning another function which satisfies the output helper requirements. -flowlogic.helpers.make_neighbour_output = function(neighbours) +-- note that this does *not* take rotation into account. +flowlogic.helpers.make_neighbour_output_fixed = function(neighbours) return function(pos, node, currentpressure) local taken = 0 for _, offset in pairs(neighbours) do -- cgit v1.2.3