-
-
Notifications
You must be signed in to change notification settings - Fork 647
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: convert golden and royal costume outfit from storage to kv #2477
Conversation
When you change the storage type usage, remember to create migrations to update the players with this outfit. And please create a description of this PR. |
There is no description because it is not ready, there are still many things missing. |
2ef1aec
to
93d85d0
Compare
93d85d0
to
e8b5bef
Compare
3fe8332
to
0ec432d
Compare
01eeaf8
to
ba81b3e
Compare
d634da8
to
5ae9685
Compare
8331ecd
to
932dcfd
Compare
Unfortunately, I couldn't migrate the outfit display to receive the KVs. Perhaps someone here or in the future can do it. |
Does not need a cache to be checked every 60 seconds, and we know when it is updated (when the addon is added), so wait for #2404 to be merged. |
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.
If you want you can unify the functions that will check these outfits in one file, and these npcs will call this function "check" and do the action.
I wouldn't find it necessary to create a function since some NPCs have slightly different dialogue lines, which might cause complications. Moreover, maintaining the difficulty level would be challenging if I were to add the function and duplicate the same code within those NPCs that have extra dialogues. |
3b781c8
to
4cd971c
Compare
4cd971c
to
ec68087
Compare
Is this ready for tests? |
@@ -879,8 +879,7 @@ Storage = { | |||
AssassinBaseOutfit = 51012, | |||
AssassinFirstAddon = 51013, | |||
AssassinSecondAddon = 51014, | |||
-- Golden Outfit | |||
GoldenOutfit = 51015, | |||
-- Nightmare Outfit |
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.
-- Nightmare Outfit | |
-- GoldenOutfit = 51015, (moved to kv) |
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.
there is no need, as it is free storage, it was set to -1 in the migration
@@ -893,7 +892,6 @@ Storage = { | |||
DeeplingAnchor = 51023, | |||
FirstOrientalAddon = 51024, | |||
SecondOrientalAddon = 51025, | |||
RoyalCostumeOutfit = 51026, |
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.
RoyalCostumeOutfit = 51026, | |
-- RoyalCostumeOutfit = 51026, (moved to kv) |
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.
there is no need, as it is free storage, it was set to -1 in the migration
YES! |
Are you removing the outfit memorial? |
Update your pull request and use the pull request template. |
Why did you deleted the outfit memorial action? |
For your PR to be approved, you need to add back the outfit memorial action with kv and correct typo in the goldenOutfitStorageValue. |
I don't have the time or motivation to continue with this pull request. A lot of time has passed, and I have other priorities now. Feel free to continue if you want. |
This pull request introduces a series of significant improvements and optimizations to the canary datapack. The changes include: