From 0e8aaf926013eb04c40c1a2c12324ad929a4496d Mon Sep 17 00:00:00 2001 From: Elad Date: Tue, 24 Nov 2020 13:40:09 +0200 Subject: [PATCH] feat: add `include_destructables` to `get_climber_grid` in mapdata --- MapAnalyzer/MapData.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MapAnalyzer/MapData.py b/MapAnalyzer/MapData.py index b868f0b4..8d4e1e29 100644 --- a/MapAnalyzer/MapData.py +++ b/MapAnalyzer/MapData.py @@ -187,7 +187,7 @@ def find_lowest_cost_points(self, from_pos: Point2, radius: int, grid: np.ndarra """ return self.pather.find_lowest_cost_points(from_pos=from_pos, radius=radius, grid=grid) - def get_climber_grid(self, default_weight: int = 1) -> ndarray: + def get_climber_grid(self, default_weight: int = 1, include_destructables: bool = True) -> ndarray: """ :rtype: numpy.ndarray Climber grid is a grid modified by :mod:`sc2pathlibp`, and is used for units that can climb, @@ -213,7 +213,7 @@ def get_climber_grid(self, default_weight: int = 1) -> ndarray: * :meth:`.MapData.pathfind` * :meth:`.MapData.find_lowest_cost_points` """ - return self.pather.get_climber_grid(default_weight) + return self.pather.get_climber_grid(default_weight, include_destructables=include_destructables) def get_air_vs_ground_grid(self, default_weight: int = 100) -> ndarray: """