DrInfy / sharpy-sc2

Python framework for rapid development of Starcraft 2 AI bots
MIT License
68 stars 28 forks source link

Pass subtract_cost=True when morphing units and buildings #97

Closed SoupCatcher closed 3 years ago

SoupCatcher commented 3 years ago

... and researching upgrades.

Previous to #95 this was handled by reserving the funds, but that PR changed things so we only reserve when not building. When using Unit.train() and Unit.build() costs are subtracted by python-sc2 but when using __call__ the default is to not subtract the cost.