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
309 stars 85 forks source link

Refactor code structure for item purchase #126

Closed adamqqqplay closed 9 months ago

adamqqqplay commented 11 months ago

All hero item purchases are now recorded in itempurchase*.lua in the root directory, and there are some duplicate function calls in these files.

We can move these files into a subdirectory and call them in item_purchase_generic.lua. This improves the maintainability of the code and makes it easier for players to modify the hero's item build order.