Skip to content
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

Implement sAuctionHouseBot.IsInitialized #563

Closed
wants to merge 3 commits into from

Conversation

mostlikely4r
Copy link
Contributor

@mostlikely4r mostlikely4r commented Jul 5, 2024

🍰 Pullrequest

IsInitialized() implementation for AuctionhouseBot to allow external modules (such as playerbot) to detect if GetItemData() can be used safely.

Proof

When AuctionHouseBot.Chance.Sell and AuctionHouseBot.Chance.Buy are both set to 0 in the config GetItemData() will return uninitialized values. This causes issues in for example playerbot code.

How2Test

Disable Auctionhousebot in the config with playerbots enabled.

Todo / Checklist

  • Use IsInitialized in botcode.

@mostlikely4r
Copy link
Contributor Author

Added the option to reload the config and have IsInitialized reflecting the current settings.

@killerwife
Copy link
Contributor

Would appreciate @insunaa or someone who might use these things to validate this. I am as usual fine with merging this but bots are not in my purview.

@insunaa
Copy link
Contributor

insunaa commented Jul 12, 2024

lgtm

@mostlikely4r
Copy link
Contributor Author

No longer needed with upcoming pr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants