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

Fix minor issues in purchasing and courier #122

Merged
merged 4 commits into from
Aug 6, 2023

Conversation

JoshdanG
Copy link
Collaborator

@JoshdanG JoshdanG commented Jul 23, 2023

  1. Refactor ItemPurchaseExtend to always call UseCourier
  • Avoids bugs where function exits early and forgets to call UseCourier
  1. Courier should not wait to purchase items that are not purchased at secret shop
  2. Do not buy within UseCourier; it is redundant and missing features like removing from the purchase list.
  3. Don't buy from fountain shop when stash is full
  • Prevents dropping items on the ground when buying too much
  1. Set sNextItem to "Out_of_items" when there are no more items
  • Helps debugging and may prevent multiple buys of final item

Avoids bugs where function exits early and forgets to call UseCourier
1. Don't wait to purchase items that are not purchased at secret shop
2. Do not buy within UseCourier; it is redundant and missing features like removing from the purchase list.
Prevents dropping items on the ground when buying too much
Helps debugging and may prevent multiple buys of final item
Copy link
Owner

@adamqqqplay adamqqqplay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall, I believe it should fix some incorrect purchase behavior

@adamqqqplay adamqqqplay merged commit 635385d into adamqqqplay:master Aug 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants