From 92db11b995ac4cc09e5b955a62791e902e7fcd4a Mon Sep 17 00:00:00 2001 From: Matchu Date: Mon, 15 Mar 2021 12:44:40 -0700 Subject: [PATCH] Add REQUIRES_OTHER_BODY_SPECIFIC_ASSETS glitch This helps with items like "Living in Watermelon Foreground and Background", which has a species-specific foreground and bodyId=0 background. With this flag set on the background, it won't appear for pets that don't _also_ have something else that fits. In this case, it hides it from Standard Vandas, and all non-standard colors. There's some hacky limitations here: the item page still highlights the Vanda, even though clicking gives nothing; and the zone info for it is messy too, with the Background claiming to fit all species, and the LFI claiming to fit 54 specific species. But those don't seem important enough to code for! --- .../support/AllItemLayersSupportModal.js | 4 +++ .../support/ItemLayerSupportModal.js | 6 ++++ src/server/types/AppearanceLayer.js | 33 ++++++++++++++++++- src/server/types/Item.js | 18 ++++++++-- 4 files changed, 58 insertions(+), 3 deletions(-) diff --git a/src/app/WardrobePage/support/AllItemLayersSupportModal.js b/src/app/WardrobePage/support/AllItemLayersSupportModal.js index 8b1600c..07694a2 100644 --- a/src/app/WardrobePage/support/AllItemLayersSupportModal.js +++ b/src/app/WardrobePage/support/AllItemLayersSupportModal.js @@ -309,6 +309,10 @@ function AllItemLayersSupportModalContent({ {mutationError.message} )} + +