API icon indicating copy to clipboard operation
API copied to clipboard

Handle item variant quality/rarity

Open alistair3149 opened this issue 11 months ago • 2 comments

Issue In the current API, the same item in different sets are not considered being variants of each other. For example, Morozov-SH Helmet only has Aftershock, Red Alert, Snowdrift, Terracotta, and Thule as variants, which are all in set 01. Items in set 02 and 03 are not included in the variants output.

Proposal It seems that the first digit in the class name of the item determines the quality of the item. The syntax kinda looks like this: itemname_XX_YY_ZZ, where XX is the set/quality/rarity, YY_ZZ is the color (YY could be rarity of the color).

Takes the Morozov-SH Helmet as an example. You can see the temperature stats are progressively better when XX is higher: Morozov-SH Helmet (rrs_specialist_heavy_helmet_01_01_01) Morozov-SH Helmet Brushdrift (rrs_specialist_heavy_helmet_02_01_01) Morozov-SH Helmet Redshift (rrs_specialist_heavy_helmet_03_01_01)

In that case, items in other sets should be included because they are also the variants of the same item, with a way to identify which set each items are from.

alistair3149 avatar Mar 18 '24 03:03 alistair3149

Does this work for all items? Using only the class name (excluding XX_YY_ZZ) the Legion Jacket would have the following variants:

  • Horde Jacket
  • Tempo Jacket Gold
  • Tempo Jacket Silver
  • Tempo Jacket Sterling Silver
  • Tempo Jacket Golden Brown
  • Tempo Jacket Chocolate Mint
  • Tempo Jacket Frost
  • Tempo Jacket Purple
  • Tempo Jacket (Modified)
  • Faction Jacket Purple
  • Faction Jacket Red
  • Faction Jacket Green
  • Faction Jacket Teal
  • Faction Jacket White
  • Faction Jacket Black

As they all share the class name 987_jacket_*

octfx avatar Mar 18 '24 19:03 octfx

It seems that the ID I mentioned above was not consistent. XX means set but it does not necessarily mean set of the same item, but of the type of item from the same manufacturer. In that case, it seems that the only link between those items are in the localization name

alistair3149 avatar Mar 18 '24 19:03 alistair3149