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
320 stars 86 forks source link

Refactor code structure for item purchase #126

Closed adamqqqplay closed 1 year ago

adamqqqplay commented 1 year 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.