StarCitizenWiki / API

The star-citizen.wiki API. Automatically scrapes Comm-Links, Stats and In-Game Data.
https://api.star-citizen.wiki
MIT License
29 stars 5 forks source link

Handle item variant quality/rarity #117

Open alistair3149 opened 8 months ago

alistair3149 commented 8 months ago

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.

octfx commented 8 months ago

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

As they all share the class name 987_jacket_*

alistair3149 commented 8 months ago

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