Skip to content

Commit 38ab79b

Browse files
authored
Merge pull request #437 from danocmx/fix/stardust-texture
fix: Stardust texture and Stardust pathway conflict
2 parents 7cc4b49 + cfb3845 commit 38ab79b

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

src/parseString/Attributes/getEffect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function isHatNameException(name: string, effect: string): boolean {
7777
});
7878
}
7979

80-
export const TEXTURE_EFFECT_EXCEPTION: string[] = ['Haunted Ghosts', 'Pumpkin Patch'];
80+
export const TEXTURE_EFFECT_EXCEPTION: string[] = ['Haunted Ghosts', 'Pumpkin Patch', 'Stardust'];
8181

8282
function isEffectTexture(
8383
attributes: Attributes,

test/parseString.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2351,7 +2351,7 @@ describe('parseString with defindexes and numbers.', () => {
23512351
});
23522352
});
23532353

2354-
it('Case #66 - Stardust', () => {
2354+
it('Case #66 - Stardust Pathway effect', () => {
23552355
const itemObject = parseString('Stardust Pathway Hat Outta Hell', true, true);
23562356

23572357
assert.deepEqual(itemObject, {
@@ -2426,4 +2426,17 @@ describe('parseString with defindexes and numbers.', () => {
24262426
effect: 3126
24272427
});
24282428
})
2429+
2430+
it('Case #71 - Stardust texture', () => {
2431+
const itemObject = parseString('Strange Stardust War Paint (Minimal Wear)', true, true);
2432+
2433+
assert.deepEqual(itemObject, {
2434+
name: "War Paint",
2435+
craftable: true,
2436+
quality: 11,
2437+
texture: 421,
2438+
wear: 2,
2439+
defindex: 9536
2440+
});
2441+
})
24292442
});

0 commit comments

Comments
 (0)