Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement