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.
This commit is contained in:
Emi Matchu 2021-05-03 14:52:50 -07:00
parent f3e9df2d91
commit c508d49272
2 changed files with 21 additions and 4 deletions

View file

@ -162,10 +162,6 @@ function OutfitKnownGlitchesBadge({ appearance }) {
// Check whether the pet is Invisible. If so, we'll show a blanket warning. // Check whether the pet is Invisible. If so, we'll show a blanket warning.
if (petAppearance?.color?.id === "38") { if (petAppearance?.color?.id === "38") {
glitchMessages.push( 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.
<Box key={`invisible-pet-warning`}> <Box key={`invisible-pet-warning`}>
Invisible pets are affected by a number of glitches, including faces Invisible pets are affected by a number of glitches, including faces
sometimes being visible on-site, and errors in the HTML5 conversion. If 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(
<Box key={`faerie-uni-dithering-horn-warning`}>
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
designbut the pet's gender does not actually affect which horn you'll
get, and it will often change over time!
</Box>
);
}
// Check whether the pet appearance is marked as Glitched. // Check whether the pet appearance is marked as Glitched.
if (petAppearance?.isGlitched) { if (petAppearance?.isGlitched) {
glitchMessages.push( glitchMessages.push(

View file

@ -287,7 +287,11 @@ export const petAppearanceFragment = gql`
fragment PetAppearanceForOutfitPreview on PetAppearance { fragment PetAppearanceForOutfitPreview on PetAppearance {
id id
bodyId bodyId
pose # For Known Glitches UI
isGlitched # For Known Glitches UI isGlitched # For Known Glitches UI
species {
id # For Known Glitches UI
}
color { color {
id # For Known Glitches UI id # For Known Glitches UI
} }