new flow logic: abms.lua: directional flow logic trace log points for local debugging

This commit is contained in:
thetaepsilon-gamedev 2017-10-16 23:41:03 +01:00
parent c55374cdfa
commit 0dd1dbc901

View File

@ -131,7 +131,7 @@ end
flowlogic.balance_pressure = function(pos, node, currentpressure)
-- debuglog("balance_pressure() "..node.name.." at "..pos.x.." "..pos.y.." "..pos.z)
-- local dname = "flowlogic.balance_pressure()@"..formatvec(pos).." "
-- check the pressure of all nearby flowable nodes, and average it out.
-- pressure handles to average over
@ -152,6 +152,7 @@ flowlogic.balance_pressure = function(pos, node, currentpressure)
-- directional flowables: call the callback to get the list
local directional = pipeworks.flowables.list.directional[node.name]
if directional then
--pipeworks.logger(dname.."invoking neighbourfn")
local offsets = directional.neighbourfn(node)
candidates = apply_coords_offsets(pos, offsets)
end