Skip to content

Commit bc58cfe

Browse files
committed
More Steam inventory update fixes
1 parent dd157ba commit bc58cfe

11 files changed

Lines changed: 791 additions & 676 deletions

File tree

src/components/table.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,8 @@ export default class Table {
281281
if (!Script.Bot?.Plugin?.Connected) {
282282
Script.ShowStartInterfacePrompt({
283283
message: this.#mode === Table.MODE.RETRIEVE
284-
? "Interface must running to retrieve items"
285-
: "Interface must running to store items",
284+
? "Interface must be running to retrieve items"
285+
: "Interface must be running to store items",
286286
autoClose: true,
287287
popoverMode: true,
288288
fade: false,

src/cs2/constants.js

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,48 @@ export const WEARS = [
1212
{ min: 0.38, max: 0.45, name: "WW", nameLong: "Well-Worn" },
1313
{ min: 0.45, max: 1.00, name: "BS", nameLong: "Battle-Scarred" },
1414
];
15+
export const QUALITIES = {
16+
"normal": 0,
17+
"genuine": 1,
18+
"vintage": 2,
19+
"unusual": 3,
20+
"unique": 4,
21+
"community": 5,
22+
"developer": 6,
23+
"selfmade": 7,
24+
"customized": 8,
25+
"strange": 9,
26+
"completed": 10,
27+
"haunted": 11,
28+
"tournament": 12,
29+
"highlight": 13,
30+
"volatile": 14
31+
};
32+
export const RARITIES = {
33+
"Rarity_Default": 0,
34+
"Rarity_Default_Weapon": 0,
35+
"Rarity_Default_Character": 0,
36+
"Rarity_Common": 1,
37+
"Rarity_Common_Weapon": 1,
38+
"Rarity_Common_Character": 1,
39+
"Rarity_Uncommon": 2,
40+
"Rarity_Uncommon_Weapon": 2,
41+
"Rarity_Uncommon_Character": 2,
42+
"Rarity_Rare": 3,
43+
"Rarity_Rare_Weapon": 3,
44+
"Rarity_Rare_Character": 3,
45+
"Rarity_Mythical": 4,
46+
"Rarity_Mythical_Weapon": 4,
47+
"Rarity_Mythical_Character": 4,
48+
"Rarity_Legendary": 5,
49+
"Rarity_Legendary_Weapon": 5,
50+
"Rarity_Legendary_Character": 5,
51+
"Rarity_Ancient": 6,
52+
"Rarity_Ancient_Weapon": 6,
53+
"Rarity_Ancient_Character": 6,
54+
"Rarity_Contraband": 7,
55+
"Rarity_Contraband_Weapon": 7,
56+
"Rarity_Contraband_Character": 7,
57+
"Unusual": 99,
58+
"Rarity_Unusual": 99
59+
};

src/cs2/items/assets/asset.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { CreateElement, BindTooltip } from '@utils/helpers.js';
99

1010
export default class Asset {
1111
_assetid;
12-
_type;
12+
_type = Asset.TYPE.OTHER;
1313
_inspectLink;
1414
_inspectData;
1515
_wearData;
@@ -216,7 +216,7 @@ export default class Asset {
216216
}
217217

218218
const wearRangeElement = CreateElement("div", {
219-
class: "descriptor cs2s_asset_wear_range"
219+
class: "descriptor cs2s_asset_wear_range cs2s_element"
220220
});
221221

222222
for (const wear of WEARS) {

0 commit comments

Comments
 (0)