-
Notifications
You must be signed in to change notification settings - Fork 79
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
Additional vendor check for keys and scrolls #628
Additional vendor check for keys and scrolls #628
Conversation
b278aa9
to
4136282
Compare
4136282
to
c7bded4
Compare
Hello, could you add keys to item_pickup in shouldbepickedup . Keys drop often from chests and it prevent going to town for nothing while it can sustain with drops. You will need to check stack quantity on ground if it fits stack in inventory ( max 12) . Key drop can be 1-2-3-4 key stacks . We cant use .nip for that as it wouldnt respect max key count and make multiple stack. Buying at vendor when 1 key left( tp to town to refill) For scrolls vendor is totally fine. Pr look good otherwise thanks |
Change complete! |
39441ba
to
7f189ea
Compare
Don't merge yet, going to have it only pick up keys if you are opening chests. |
Ready for merge! |
The vendor selected for each act doesn't always have keys or scrolls, so we have to go to another vendor to do so.
This PR adds an additional check for purchasing keys and scrolls to ensure we don't run out. It also adds an option to return to town if we run out of keys. And it will only pick up keys if that option is enabled, or they already had some keys (but less than 12) in their inventory. It will not pickup more to put us over one stack.
Specific scenarios this fixes:
Interface change: