Skip to content

Commit

Permalink
separate property in build detector for worker rush
Browse files Browse the repository at this point in the history
  • Loading branch information
Aki Vänttinen committed Oct 6, 2020
1 parent e88222d commit 829b831
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sharpy/managers/build_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ async def start(self, knowledge: "Knowledge"):
def rush_detected(self):
return self.rush_build != EnemyRushBuild.Macro

@property
def worker_rush_detected(self):
return self.rush_build == EnemyRushBuild.WorkerRush

async def update(self):
self._update_timings()
self._rush_detection()
Expand Down

0 comments on commit 829b831

Please sign in to comment.