Add glitch message for unconverted Dyeworks items

This commit is contained in:
Emi Matchu 2021-03-13 02:18:44 -08:00
parent 65f74897da
commit 1f7ef43e8b

View file

@ -320,6 +320,22 @@ function OutfitKnownGlitchesBadge({ appearance }) {
} }
} }
// Look for Dyeworks items that aren't converted yet.
for (const item of appearance.items) {
const itemIsDyeworks = item.name.includes("Dyeworks");
const itemIsConverted = item.appearance.layers.every(layerUsesHTML5);
if (itemIsDyeworks && !itemIsConverted) {
glitchMessages.push(
<Box key={`unconverted-dyeworks-warning-for-item-${item.id}`}>
<i>{item.name}</i> isn't converted to HTML5 yet, and our Classic DTI
code often shows old Dyeworks items in the wrong color. Once it's
converted, we'll display it correctly!
</Box>
);
}
}
if (glitchMessages.length === 0) { if (glitchMessages.length === 0) {
return null; return null;
} }