alkurbatov / suvorov-bot

Starcraft 2 rule-based bot capable to play for all races.
MIT License
18 stars 6 forks source link

Feature #27: Repair Terran buildings #58

Closed ImpulseCloud closed 3 years ago

ImpulseCloud commented 3 years ago

When a building is first damaged, sends one repairer. If no current repairers, sends one repairer to first still-damaged building.

alkurbatov commented 3 years ago

A little style comment: please, use the same approach in the commits naming as I did (e.g. feat: Some feature, #id). Please, take a look at the commit's history for additional info.

ImpulseCloud commented 3 years ago

I removed the <50% worker-health logic, and will save that for unit micro, as you suggest. I've saved my code/notes for the future.

For Building health percentage, I'll use "repairing after first damage event makes sense, too." for now.

I'll save "Unit* in GameObject" for the next PR I use it in.

alkurbatov commented 3 years ago

Thank you! LGTM.