-
-
Notifications
You must be signed in to change notification settings - Fork 85
Refactor item purchasing suggestions v2 #133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor item purchasing suggestions v2 #133
Conversation
Move all item_purchase_*.lua to subdirectory to reduce maintenance costs and make it easier for players to edit. Fix: adamqqqplay#126 Signed-off-by: AdamQQQ <adamqqq@163.com>
1.Remove everything from hero item file except item list - Basic bootstrap is in item_purchase_generic.lua - All purchasing logic is in ItemPurchaseSystem.lua - Call BuySupportItem from ItemPurchaseExtend
No need for self, and ItemsToBuy was not used
From gameplay perspective, the bot purchase system does not work as intented. I found few issues during my testing:
I am not sure if those problem were caused by Valve's newly updated API. But the bots have too many issues to be enjoyed playing against. |
I have now merged the latest from master, which should fix the major failures I think the rest of the problems may already be present on master -- can you see if you can reproduce there? The one expected change in behavior is that we call |
Regarding buying support items, the list of "support heroes" seems to be a bit ill-defined. We should probably use "CanBeSupport()", since that is how we are deciding the team composition. buy_support_before.txt CanBeSupport.txt IsSupport.txt |
@JoshdanG Thanks, I think rebase/merge to master will fix this issue. @ArcherWayne Can you try testing again? Thanks in advance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JoshdanG @ArcherWayne
I tested your patch and it works great. Thanks!
1.Remove everything from hero item file except item list
Basically the same as before except now for all heroes, so no changes to hero selection.