-
Notifications
You must be signed in to change notification settings - Fork 793
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
base: master
Are you sure you want to change the base?
Conversation
508f7b0
to
81c0320
Compare
Nice, I guess having this fixed before release is a good idea :D |
81c0320
to
5cba6b8
Compare
Isn't this a bug? |
5cba6b8
to
f3c92d7
Compare
void SaveBoughtItems() | ||
{ | ||
size_t boughtItemsDataSize = sizeof(uint32_t) * (4 + boughtSmithItems.size() + boughtWitchItems.size() + boughtHealerItems.size()); | ||
SaveHelper file("boughtitems", boughtItemsDataSize); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
meh
There was a problem hiding this comment.
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? 🤔
There was a problem hiding this comment.
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 :)
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. |
Resolves #3172