@juice789/tf2items 1.0.7 → 1.0.9

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/schemaHelper.json CHANGED
@@ -115,7 +115,10 @@
115
115
  "Winter 2020 Cosmetics Collection",
116
116
  "Summer 2021 Cosmetics Collection",
117
117
  "Crimson Cache Collection",
118
- "Winter 2021 Cosmetics Collection"
118
+ "Winter 2021 Cosmetics Collection",
119
+ "Summer 2022 Cosmetics Collection",
120
+ "Ghoulish Gains Collection",
121
+ "Winter 2022 Cosmetics Collection"
119
122
  ],
120
123
  "weaponCollections": [
121
124
  "Concealed Killer Collection",
@@ -139,7 +142,8 @@
139
142
  "Winter 2019 Collection",
140
143
  "Scream Fortress XII Collection",
141
144
  "Winter 2020 Collection",
142
- "Scream Fortress XIII Collection"
145
+ "Scream Fortress XIII Collection",
146
+ "Scream Fortress XIV Collection"
143
147
  ],
144
148
  "fabricatorDefindex": [
145
149
  "190",
package/sku.js CHANGED
@@ -108,7 +108,8 @@ const getName = ({
108
108
  craft
109
109
  },
110
110
  bpTexture = false,
111
- qualityBpStyle = false
111
+ qualityBpStyle = false,
112
+ useProperName = false
112
113
  ) => [
113
114
  craft && '#' + craft,
114
115
  uncraftable && 'Non-Craftable',
@@ -124,6 +125,7 @@ const getName = ({
124
125
  texture && textures[texture],
125
126
  bpTexture && '|',
126
127
  australium && 'Australium',
128
+ useProperName && safeItems[defindex].propername === '1' && quality.toString() === '6' && 'The',
127
129
  safeItems[defindex].item_name,
128
130
  wear && '(' + wears[wear] + ')',
129
131
  series && '#' + series
package/skuBp.js CHANGED
@@ -83,7 +83,7 @@ const toBpSku = (sku) => {
83
83
  ['craft'],
84
84
  itemFromSku(sku)
85
85
  )
86
- return getName(item, null, Boolean(item.effect))
86
+ return getName(item, null, Boolean(item.effect), true)
87
87
  }
88
88
 
89
89
  const toBpId = (sku) => crypto.createHash('md5').update(toBpSku(sku)).digest('hex')