Skip to content

Instantly share code, notes, and snippets.

@SamuXarick
Last active February 4, 2023 23:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SamuXarick/a4911ea4897a3c05837c9ccfb25b1009 to your computer and use it in GitHub Desktop.
Save SamuXarick/a4911ea4897a3c05837c9ccfb25b1009 to your computer and use it in GitHub Desktop.
DoCommandTest in Valuator
function IsInsideRadiusOrSomething(tile, origin_tile, tangent_radius) {
return GSMap.DistanceSquare(tile, origin_tile) <= (tangent_radius * tangent_radius);
}
/// valuator
tile_list.Valuate(IsInsideRadiusOrSomething, origin_tile, tangent_radius);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment