Skip to content

Commit f6f007a

Browse files
committed
style: yapf formatiing
1 parent 9b2c4b1 commit f6f007a

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

sc2/bot_ai_internal.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -193,16 +193,12 @@ def _find_expansion_locations(self):
193193
# Check if any pair of resource of these groups is closer than threshold together
194194
# And that they are on the same terrain level
195195
if any(
196-
resource_a.distance_to(resource_b) <= resource_spread_threshold
197-
# check if terrain height measurement at resources is within 10 units
198-
# this is since some older maps have inconsistent terrain height
199-
# tiles at certain expansion locations
200-
and abs(
201-
height_grid[resource_a.position.rounded]
202-
- height_grid[resource_b.position.rounded]
203-
)
204-
<= 10
205-
for resource_a, resource_b in itertools.product(group_a, group_b)
196+
resource_a.distance_to(resource_b) <= resource_spread_threshold
197+
# check if terrain height measurement at resources is within 10 units
198+
# this is since some older maps have inconsistent terrain height
199+
# tiles at certain expansion locations
200+
and abs(height_grid[resource_a.position.rounded] - height_grid[resource_b.position.rounded]) <= 10
201+
for resource_a, resource_b in itertools.product(group_a, group_b)
206202
):
207203
# Remove the single groups and add the merged group
208204
resource_groups.remove(group_a)

0 commit comments

Comments
 (0)