Skip to content
This repository was archived by the owner on Mar 28, 2022. It is now read-only.

Add ability to manually define item changes#12

Open
P0keDev wants to merge 2 commits intoWynntils:masterfrom
P0keDev:item-changes
Open

Add ability to manually define item changes#12
P0keDev wants to merge 2 commits intoWynntils:masterfrom
P0keDev:item-changes

Conversation

@P0keDev
Copy link
Member

@P0keDev P0keDev commented Oct 13, 2021

Adds functionality that merges item changes defined in Data Storage with the Wynncraft API while generating the item list cache. This includes defining completely new items to append to the list.

One potential concern I had is that new items are appended as regular JSONObjects instead of JSONOrderedObjects, which means the elements within the item object have different orders. This appears to have no affect on Athena's ability to generate the cache, and as far as I am aware it should not affect Wynntils clients reading the data, but I would appreciate confirmation on these two things.

After testing, I can confirm that the irregular ordering has no effect on the client.

@P0keDev P0keDev requested a review from HeyZeer0 October 13, 2021 01:28
@Incompleteusern
Copy link

Seems good to me, other than the potential JSONOrderedObject problem

@P0keDev P0keDev marked this pull request as draft October 15, 2021 09:25
@P0keDev
Copy link
Member Author

P0keDev commented Oct 15, 2021

Realized the current code is not compatible with IDs being added to items, will fix

@P0keDev P0keDev marked this pull request as ready for review October 15, 2021 20:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants