Advertisement
Guest User

Untitled

a guest
Apr 6th, 2020
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function get_tools_n_can_useoncell(@n_tools, my_tested_cell, his_cells)
  2. {
  3.     var cells_hit;
  4.     for (var tool in n_tools)
  5.     {
  6.         cells_hit = get_cells_touse_tool_oncell(tool, my_tested_cell);
  7.         for (var n_cell in his_cells)
  8.         {
  9.             for (var cell_hit in cells_hit)
  10.             {
  11.                 if(n_cell == cell_hit)
  12.                 {
  13.                     n_tools[tool][my_tested_cell] = true;
  14.                 }
  15.             }
  16.         }
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement