From 3574210ebe3323f8b9c476344a2516568d673f69 Mon Sep 17 00:00:00 2001 From: evanpelle Date: Sat, 30 Aug 2025 09:50:03 -0700 Subject: [PATCH] bugfix: support pattern:* flare (#1973) ## Description: The pattern:* flare now allows all flares in the frotend ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced ## Please put your Discord username so you can be contacted if a bug or regression is found: evan --- src/client/Cosmetics.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/Cosmetics.ts b/src/client/Cosmetics.ts index 0f8c65bc2..e3d602455 100644 --- a/src/client/Cosmetics.ts +++ b/src/client/Cosmetics.ts @@ -13,10 +13,11 @@ export async function fetchPatterns( const patterns: Map = new Map(); const playerFlares = new Set(userMe?.player?.flares ?? []); + const hasAllPatterns = playerFlares.has("pattern:*"); for (const name in cosmetics.patterns) { const patternData = cosmetics.patterns[name]; - const hasAccess = playerFlares.has(`pattern:${name}`); + const hasAccess = hasAllPatterns || playerFlares.has(`pattern:${name}`); if (hasAccess) { // Remove product info because player already has access. patternData.product = null;