Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function get_tools_n_can_useoncell(@n_tools, my_tested_cell, his_cells)
- {
- var cells_hit;
- for (var tool in n_tools)
- {
- cells_hit = get_cells_touse_tool_oncell(tool, my_tested_cell);
- for (var n_cell in his_cells)
- {
- for (var cell_hit in cells_hit)
- {
- if(n_cell == cell_hit)
- {
- n_tools[tool][my_tested_cell] = true;
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement