local function performSpotCheck(L1, L2) spotCheck = 'BAD' if L1.state == "unspent" and L2 then local dX, dY = math.abs(L1.x - L2.x), math.abs(L1.y - L2.y) if dX <= 112 and dY <= 112 then spotCheck = 'OK' end end return spotCheck end
local function performSpotCheck(L1, L2) spotCheck = 'BAD' if L1.state == "unspent" and L2 then local dX, dY = math.abs(L1.x - L2.x), math.abs(L1.y - L2.y) if dX <= 112 and dY <= 112 then spotCheck = 'OK' end end return spotCheck end
Comments