@juice789/tf2items 1.0.27 → 1.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fromEconItem.js +51 -31
- package/package.json +1 -1
- package/schema.json +1 -1
- package/schemaHelper.json +145 -0
- package/sku.js +8 -2
- package/skuLinks.js +2 -2
package/schemaHelper.json
CHANGED
|
@@ -91,6 +91,151 @@
|
|
|
91
91
|
"supply_crate": "supply_crate",
|
|
92
92
|
"tool": "tool"
|
|
93
93
|
},
|
|
94
|
+
"paintHex": {
|
|
95
|
+
"5027": [
|
|
96
|
+
"729E42"
|
|
97
|
+
],
|
|
98
|
+
"5028": [
|
|
99
|
+
"424F3B"
|
|
100
|
+
],
|
|
101
|
+
"5029": [
|
|
102
|
+
"51384A"
|
|
103
|
+
],
|
|
104
|
+
"5030": [
|
|
105
|
+
"D8BED8"
|
|
106
|
+
],
|
|
107
|
+
"5031": [
|
|
108
|
+
"7D4071"
|
|
109
|
+
],
|
|
110
|
+
"5032": [
|
|
111
|
+
"CF7336"
|
|
112
|
+
],
|
|
113
|
+
"5033": [
|
|
114
|
+
"A57545"
|
|
115
|
+
],
|
|
116
|
+
"5034": [
|
|
117
|
+
"C5AF91"
|
|
118
|
+
],
|
|
119
|
+
"5035": [
|
|
120
|
+
"694D3A"
|
|
121
|
+
],
|
|
122
|
+
"5036": [
|
|
123
|
+
"7C6C57"
|
|
124
|
+
],
|
|
125
|
+
"5037": [
|
|
126
|
+
"E7B53B"
|
|
127
|
+
],
|
|
128
|
+
"5038": [
|
|
129
|
+
"7E7E7E"
|
|
130
|
+
],
|
|
131
|
+
"5039": [
|
|
132
|
+
"E6E6E6"
|
|
133
|
+
],
|
|
134
|
+
"5040": [
|
|
135
|
+
"141414"
|
|
136
|
+
],
|
|
137
|
+
"5046": [
|
|
138
|
+
"B8383B",
|
|
139
|
+
"5885A2"
|
|
140
|
+
],
|
|
141
|
+
"5051": [
|
|
142
|
+
"FF69B4"
|
|
143
|
+
],
|
|
144
|
+
"5052": [
|
|
145
|
+
"2F4F4F"
|
|
146
|
+
],
|
|
147
|
+
"5053": [
|
|
148
|
+
"808000"
|
|
149
|
+
],
|
|
150
|
+
"5054": [
|
|
151
|
+
"32CD32"
|
|
152
|
+
],
|
|
153
|
+
"5055": [
|
|
154
|
+
"F0E68C"
|
|
155
|
+
],
|
|
156
|
+
"5056": [
|
|
157
|
+
"E9967A"
|
|
158
|
+
],
|
|
159
|
+
"5060": [
|
|
160
|
+
"483838",
|
|
161
|
+
"384248"
|
|
162
|
+
],
|
|
163
|
+
"5061": [
|
|
164
|
+
"A89A8C",
|
|
165
|
+
"839FA3"
|
|
166
|
+
],
|
|
167
|
+
"5062": [
|
|
168
|
+
"3B1F23",
|
|
169
|
+
"18233D"
|
|
170
|
+
],
|
|
171
|
+
"5063": [
|
|
172
|
+
"654740",
|
|
173
|
+
"28394D"
|
|
174
|
+
],
|
|
175
|
+
"5064": [
|
|
176
|
+
"803020",
|
|
177
|
+
"256D8D"
|
|
178
|
+
],
|
|
179
|
+
"5065": [
|
|
180
|
+
"C36C2D",
|
|
181
|
+
"B88035"
|
|
182
|
+
],
|
|
183
|
+
"5076": [
|
|
184
|
+
"BCDDB3"
|
|
185
|
+
],
|
|
186
|
+
"5077": [
|
|
187
|
+
"2D2D24"
|
|
188
|
+
]
|
|
189
|
+
},
|
|
190
|
+
"paintDefindex": {
|
|
191
|
+
"Indubitably Green": "5027",
|
|
192
|
+
"Zepheniah's Greed": "5028",
|
|
193
|
+
"Noble Hatter's Violet": "5029",
|
|
194
|
+
"Color No. 216-190-216": "5030",
|
|
195
|
+
"A Deep Commitment to Purple": "5031",
|
|
196
|
+
"Mann Co. Orange": "5032",
|
|
197
|
+
"Muskelmannbraun": "5033",
|
|
198
|
+
"Peculiarly Drab Tincture": "5034",
|
|
199
|
+
"Radigan Conagher Brown": "5035",
|
|
200
|
+
"Ye Olde Rustic Colour": "5036",
|
|
201
|
+
"Australium Gold": "5037",
|
|
202
|
+
"Aged Moustache Grey": "5038",
|
|
203
|
+
"An Extraordinary Abundance of Tinge": "5039",
|
|
204
|
+
"A Distinctive Lack of Hue": "5040",
|
|
205
|
+
"Team Spirit": "5046",
|
|
206
|
+
"Pink as Hell": "5051",
|
|
207
|
+
"A Color Similar to Slate": "5052",
|
|
208
|
+
"Drably Olive": "5053",
|
|
209
|
+
"The Bitter Taste of Defeat and Lime": "5054",
|
|
210
|
+
"The Color of a Gentlemann's Business Pants": "5055",
|
|
211
|
+
"Dark Salmon Injustice": "5056",
|
|
212
|
+
"Operator's Overalls": "5060",
|
|
213
|
+
"Waterlogged Lab Coat": "5061",
|
|
214
|
+
"Balaclavas Are Forever": "5062",
|
|
215
|
+
"An Air of Debonair": "5063",
|
|
216
|
+
"The Value of Teamwork": "5064",
|
|
217
|
+
"Cream Spirit": "5065",
|
|
218
|
+
"A Mann's Mint": "5076",
|
|
219
|
+
"After Eight": "5077"
|
|
220
|
+
},
|
|
221
|
+
"spellDefindex": {
|
|
222
|
+
"Halloween Fire": "8925",
|
|
223
|
+
"Pumpkin Bombs": "8922",
|
|
224
|
+
"Exorcism": "8921",
|
|
225
|
+
"Headless Horseshoes": "8920",
|
|
226
|
+
"Bruised Purple Footprints": "8919",
|
|
227
|
+
"Rotten Orange Footprints": "8918",
|
|
228
|
+
"Violent Violet Footprints": "8917",
|
|
229
|
+
"Corpse Gray Footprints": "8916",
|
|
230
|
+
"Gangreen Footprints": "8915",
|
|
231
|
+
"Team Spirit Footprints": "8914",
|
|
232
|
+
"Voices from Below": "8906",
|
|
233
|
+
"Sinister Staining": "8904",
|
|
234
|
+
"Spectral Spectrum": "8903",
|
|
235
|
+
"Chromatic Corruption": "8902",
|
|
236
|
+
"Die Job": "8901",
|
|
237
|
+
"Putrescent Pigmentation": "8900"
|
|
238
|
+
},
|
|
94
239
|
"cosmeticCollections": [
|
|
95
240
|
"Gun Mettle Cosmetics Collection",
|
|
96
241
|
"Quarantined Collection Case",
|
package/sku.js
CHANGED
|
@@ -32,7 +32,9 @@ const skuFromItem = ({
|
|
|
32
32
|
wear,
|
|
33
33
|
australium,
|
|
34
34
|
series,
|
|
35
|
-
craft
|
|
35
|
+
craft,
|
|
36
|
+
paintColor,
|
|
37
|
+
halloweenSpell
|
|
36
38
|
}) => [
|
|
37
39
|
defindex,
|
|
38
40
|
quality,
|
|
@@ -49,6 +51,8 @@ const skuFromItem = ({
|
|
|
49
51
|
['1', true].includes(australium) && 'australium',
|
|
50
52
|
series && isNaN(series) === false && 'c-' + parseInt(series),
|
|
51
53
|
craft && isNaN(craft) === false && 'no-' + parseInt(craft),
|
|
54
|
+
paintColor && 'pc-' + paintColor,
|
|
55
|
+
halloweenSpell && 'hs-' + halloweenSpell
|
|
52
56
|
].filter(Boolean).join(';')
|
|
53
57
|
|
|
54
58
|
const rules = {
|
|
@@ -64,7 +68,9 @@ const rules = {
|
|
|
64
68
|
w: "wear",
|
|
65
69
|
australium: 'australium',
|
|
66
70
|
c: "series",
|
|
67
|
-
no: "craft"
|
|
71
|
+
no: "craft",
|
|
72
|
+
pc: "paintColor",
|
|
73
|
+
hs: "halloweenSpell"
|
|
68
74
|
}
|
|
69
75
|
|
|
70
76
|
const decodeRules = compose(
|
package/skuLinks.js
CHANGED
|
@@ -59,7 +59,7 @@ const marketHashNameFromSku = (sku) => {
|
|
|
59
59
|
texture && textures[texture],
|
|
60
60
|
target && items[target].item_name,
|
|
61
61
|
output && items[output].item_name,
|
|
62
|
-
items[defindex].propername === '1' && quality.toString() === '6' && !
|
|
62
|
+
items[defindex].propername === '1' && quality.toString() === '6' && !elevated && !festivized && !killstreakTier && 'The',
|
|
63
63
|
items[defindex].item_name,
|
|
64
64
|
wear && '(' + wears[wear] + ')',
|
|
65
65
|
chemSeries[defindex] && 'Series #' + chemSeries[defindex],
|
|
@@ -106,7 +106,7 @@ const manncoUrl = (sku) => {
|
|
|
106
106
|
texture && textures[texture],
|
|
107
107
|
target && items[target].item_name,
|
|
108
108
|
output && items[output].item_name,
|
|
109
|
-
items[defindex].propername === '1' && quality.toString() === '6' && !
|
|
109
|
+
items[defindex].propername === '1' && quality.toString() === '6' && !elevated && !festivized && !killstreakTier && 'The',
|
|
110
110
|
items[defindex].item_name.replace('\\n', ' '),
|
|
111
111
|
wear && wears[wear],
|
|
112
112
|
chemSeries[defindex] && 'series-' + chemSeries[defindex],
|