Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug with 'quality_name' of StatTrak knives #106

Open
NikittyS opened this issue Jul 16, 2022 · 0 comments
Open

Bug with 'quality_name' of StatTrak knives #106

NikittyS opened this issue Jul 16, 2022 · 0 comments
Labels

Comments

@NikittyS
Copy link

NikittyS commented Jul 16, 2022

Hello. Just one mistake.

quality_name: '★',
full_item_name: '★ StatTrak™ Butterfly Knife | Doppler (Factory New)'
quality_name: '★',
full_item_name: '★ Bayonet | Gamma Doppler (Factory New)'

Quality name don't display StatTrak knife or not.

To fix this In game_data.js just do this:

after:

// Get the quality name (Souvenir, Stattrak, etc...)
const qualityKey = Object.keys(this.items_game['qualities']).find((key) => {
     return parseInt(this.items_game['qualities'][key]['value']) === iteminfo.quality;
});

paste:

if (iteminfo.killeatervalue !== null && iteminfo.quality !== 9) {
    iteminfo['quality_name'] += ` ${this.csgo_english['strange']}`;
}

and comment pasted code above in getFullItemName method.

@Step7750 Step7750 added the bug label Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants