From 0ed4e8f21656c4dcee9ce58e9e3534670efe26c6 Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Tue, 27 Feb 2024 19:22:08 -0800 Subject: [PATCH] Add "Baby Body Paint" warning to Known Glitches badge in-app, too I previously added a warning to the item page, and thought about doing one here but was sicky and misjudged the complexity and forgot you don't need to hook into the `knownGlitches` API field to do it! Easy peasy for a hacky little bug message! --- .../WardrobePage/OutfitKnownGlitchesBadge.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/app/javascript/wardrobe-2020/WardrobePage/OutfitKnownGlitchesBadge.js b/app/javascript/wardrobe-2020/WardrobePage/OutfitKnownGlitchesBadge.js index b0f5e039..ed7692f8 100644 --- a/app/javascript/wardrobe-2020/WardrobePage/OutfitKnownGlitchesBadge.js +++ b/app/javascript/wardrobe-2020/WardrobePage/OutfitKnownGlitchesBadge.js @@ -171,6 +171,21 @@ function OutfitKnownGlitchesBadge({ appearance }) { } } + // Look for Baby Body Paint items. + for (const item of items) { + const itemIsBabyBodyPaint = item.name.includes("Baby Body Paint"); + if (itemIsBabyBodyPaint) { + glitchMessages.push( + + {item.name} seems to have new zone restriction rules that our + system doesn't support yet, whuh oh! This might require major changes + to how we handle zones. Until then, this item will be very buggy, + sorry! + , + ); + } + } + // Check whether the pet is Invisible. If so, we'll show a blanket warning. if (petAppearance?.color?.id === "38") { glitchMessages.push(