public const int MONEY_PER_STACK = 1000; // every piece of red dot equals 10,000 dollars. public static void GenerateBank(Grid grid, int layers, Point center) { int currentLayer = layers; int currentDistance = 0; while (currentLayer > 0) { currentDistance++; for (int i = 0; i < MAP_SIZE.width; i++) { for (int j = 0; j < MAP_SIZE.height; j++) { if (GF.GetDistanceFromCenter(i, j, center) < currentDistance) { AddStackToUI(grid, i, j); Money_stack_data_arr[i, j] += 1; Money_abs_data_arr[i, j] = Money_stack_data_arr[i, j] * MONEY_PER_STACK; } } } currentLayer--; } }