1
0
Fork 0
forked from OpenNeo/impress
impress/src/server
Matchu 856d8586e4 cache item data when switching standard colors
Previously, when changing a pet's color, we would refresh the items panel and send a new network request for the item appearances, even though they're all the same. This is because item appearance data is queried by species/color, for ease of specification.

But! Item appearances are //cached// by body ID. So, if this is a standard color, it's not hard to look in the cache for the standard color's body ID!

Now, most color changes are faster and don't flicker the item panel anymore. We do still refresh the panel and send the requests for color changes that _do_ matter though, like standard <-> mutant!
2020-08-31 18:25:42 -07:00
..
__snapshots__ fix support logging body names to not be 8-bit 2020-08-21 16:25:04 -07:00
lib some Honeycomb fixes 2020-08-17 01:16:35 -07:00
query-tests cache item data when switching standard colors 2020-08-31 18:25:42 -07:00
db.js add Honeycomb logging 2020-08-16 23:28:41 -07:00
getValidPetPoses.js include glitched states for validPetPoses 2020-08-31 17:46:11 -07:00
getValidPetPoses.test.js refactor e/gp pairs to pose enum 2020-05-23 12:47:06 -07:00
index.js cache item data when switching standard colors 2020-08-31 18:25:42 -07:00
loaders.js cache item data when switching standard colors 2020-08-31 18:25:42 -07:00
neopets.js use PetService to determine the correct pose 2020-05-23 13:55:59 -07:00
util.js lol oops, fix labeling Sick poses 2020-08-31 00:59:07 -07:00
util.test.js add snapshot tests for loadBodyName 2020-08-21 16:22:16 -07:00