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

remember items bought from shops #3176

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

qndel
Copy link
Member

@qndel qndel commented Oct 20, 2021

Resolves #3172

@qndel qndel added the enhancement New feature or request label Oct 20, 2021
@AJenbo
Copy link
Member

AJenbo commented Oct 20, 2021

Nice, I guess having this fixed before release is a good idea :D

Source/loadsave.cpp Outdated Show resolved Hide resolved
@julealgon
Copy link
Contributor

Isn't this a bug?

void SaveBoughtItems()
{
size_t boughtItemsDataSize = sizeof(uint32_t) * (4 + boughtSmithItems.size() + boughtWitchItems.size() + boughtHealerItems.size());
SaveHelper file("boughtitems", boughtItemsDataSize);
Copy link
Contributor

Choose a reason for hiding this comment

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

We add new content to the save with this or?
If yes should we add at least uint32 version-number (at the moment hard coded 1).
If we want to change the format later and also need a update?

Copy link
Member Author

Choose a reason for hiding this comment

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

meh

Copy link
Contributor

Choose a reason for hiding this comment

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

meh

I don't see how microsomal epoxide hydrolase is related? 🤔

Copy link
Member

Choose a reason for hiding this comment

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

The other item files start with uint8_t, 0 for diablo and 1 for hellfire, would be good to follow that pattern :)

@AJenbo AJenbo added this to the 1.4.0 milestone Dec 11, 2021
@AJenbo
Copy link
Member

AJenbo commented Dec 12, 2021

I'm this is starting to become a bit unintuitive and we may as well store the shop items the same way as is already done for the smith prim items to keep things simple.

@AJenbo AJenbo modified the milestones: 1.4.0, 1.5.0 Mar 28, 2022
@AJenbo AJenbo modified the milestones: 1.5.0, 1.6.0 Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NPCs restock shop after save/load
5 participants