adamqqqplay / dota2ai

Ranked Matchmaking AI: An improved Dota2 AI based on Valve's default AI. Has more than 3 million subscribers on Steam.
http://steamcommunity.com/sharedfiles/filedetails/?id=855965029
GNU General Public License v3.0
318 stars 85 forks source link

Fix minor issues in purchasing and courier #122

Closed JoshdanG closed 1 year ago

JoshdanG commented 1 year ago
  1. Refactor ItemPurchaseExtend to always call UseCourier
    • Avoids bugs where function exits early and forgets to call UseCourier
  2. Courier should not wait to purchase items that are not purchased at secret shop
  3. Do not buy within UseCourier; it is redundant and missing features like removing from the purchase list.
  4. Don't buy from fountain shop when stash is full
    • Prevents dropping items on the ground when buying too much
  5. Set sNextItem to "Out_of_items" when there are no more items
    • Helps debugging and may prevent multiple buys of final item