Skip to content

Commit 3574210

Browse files
authored
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
1 parent fae4bb9 commit 3574210

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/client/Cosmetics.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ export async function fetchPatterns(
1313

1414
const patterns: Map<string, Pattern> = new Map();
1515
const playerFlares = new Set(userMe?.player?.flares ?? []);
16+
const hasAllPatterns = playerFlares.has("pattern:*");
1617

1718
for (const name in cosmetics.patterns) {
1819
const patternData = cosmetics.patterns[name];
19-
const hasAccess = playerFlares.has(`pattern:${name}`);
20+
const hasAccess = hasAllPatterns || playerFlares.has(`pattern:${name}`);
2021
if (hasAccess) {
2122
// Remove product info because player already has access.
2223
patternData.product = null;

0 commit comments

Comments
 (0)