From c508d4927200bd826d99b71e13fc1dbffec5bd84 Mon Sep 17 00:00:00 2001 From: Matchu Date: Mon, 3 May 2021 14:52:50 -0700 Subject: [PATCH] Add glitch message for Faerie Uni Note that we implemented the actual horn behavior described in the message, simply by marking the yellow horn appearance glitched for Fem, but not for Masc! Also, we don't have a yellow-horn Sick Masc model, so it's blue too. --- .../WardrobePage/OutfitKnownGlitchesBadge.js | 21 +++++++++++++++---- src/app/components/useOutfitAppearance.js | 4 ++++ 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/src/app/WardrobePage/OutfitKnownGlitchesBadge.js b/src/app/WardrobePage/OutfitKnownGlitchesBadge.js index da308737..39bfc602 100644 --- a/src/app/WardrobePage/OutfitKnownGlitchesBadge.js +++ b/src/app/WardrobePage/OutfitKnownGlitchesBadge.js @@ -162,10 +162,6 @@ function OutfitKnownGlitchesBadge({ appearance }) { // Check whether the pet is Invisible. If so, we'll show a blanket warning. if (petAppearance?.color?.id === "38") { glitchMessages.push( - // NOTE: This message assumes that the current pet appearance is the - // best canonical one, but it's _possible_ to view Glitched - // appearances even if we _do_ have a better one saved... but - // only the Support UI ever takes you there. Invisible pets are affected by a number of glitches, including faces sometimes being visible on-site, and errors in the HTML5 conversion. If @@ -175,6 +171,23 @@ function OutfitKnownGlitchesBadge({ appearance }) { ); } + // Check if this is a Faerie Uni. If so, we'll explain the dithering horns. + console.log(petAppearance?.color?.id, petAppearance?.species?.id); + if ( + petAppearance?.color?.id === "26" && + petAppearance?.species?.id === "49" + ) { + glitchMessages.push( + + The Faerie Uni is a "dithering" pet: its horn is sometimes blue, and + sometimes yellow. To help you design for both cases, we show the blue + horn with the feminine design, and the yellow horn with the masculine + design—but the pet's gender does not actually affect which horn you'll + get, and it will often change over time! + + ); + } + // Check whether the pet appearance is marked as Glitched. if (petAppearance?.isGlitched) { glitchMessages.push( diff --git a/src/app/components/useOutfitAppearance.js b/src/app/components/useOutfitAppearance.js index a7322d77..42e7388f 100644 --- a/src/app/components/useOutfitAppearance.js +++ b/src/app/components/useOutfitAppearance.js @@ -287,7 +287,11 @@ export const petAppearanceFragment = gql` fragment PetAppearanceForOutfitPreview on PetAppearance { id bodyId + pose # For Known Glitches UI isGlitched # For Known Glitches UI + species { + id # For Known Glitches UI + } color { id # For Known Glitches UI }