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

Allow Memory Cards to Copy Upgrades & Filters #6638

Merged
merged 3 commits into from Sep 30, 2022
Merged

Allow Memory Cards to Copy Upgrades & Filters #6638

merged 3 commits into from Sep 30, 2022

Conversation

shartte
Copy link
Member

@shartte shartte commented Sep 30, 2022

Added the ability to memory cards to:

  • Save & Restore Upgrade Cards (prioritizes network tool)
  • Partially restore settings to incompatible machines

Fixes #1382
Fixes #6633

- Save & Restore Upgrade Cards (prioritizes network tool)
- Partially restore settings to incompatible machines
if (!cards.isEmpty()) {
overflow = upgrades.addItems(cards);
if (!overflow.isEmpty()) {
player.getInventory().placeItemBackInInventory(overflow);
Copy link
Member

Choose a reason for hiding this comment

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

Not a fan of this as it silently moves the items around in the inventory afaict.

Copy link
Member Author

Choose a reason for hiding this comment

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

It's not great, but it shouldn't happen (tm) since I do simulate first if the upgrade inventory has enough space. And since they usually are quite simple, I hope that doesn't produce errors. This is just here to not void the cards in ANY case.

@shartte shartte merged commit 01af214 into master Sep 30, 2022
@shartte shartte deleted the fix-1382-6635 branch September 30, 2022 21:32
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants