--Calculate tower center and barrier radius barrier_x = (options.x + 1) * -2 barrier_y = (options.y + 1) * -2 x = options.x * 2 + 4 y = options.y * 2 + 4 barrier_r = math.sqrt(x*x+y*y)