danreeves / dt-exchange

39 stars 18 forks source link

Allow filtering by minRarity and maxRarity in rules based filters #56

Open ctimlock opened 1 year ago

ctimlock commented 1 year ago

Would be good to be able to filter for weapons of a given rarity as per the rarity soriting option, i.e. find a Profane weapon with >300 stats using the following:


[
    {
        "minStats": 300,
        "maxRarity": 1
    }
]
errnoh commented 1 year ago

Hmm, so this would be the item rarity (grey, green, blue, purple and orange)?

danreeves commented 1 year ago

Don't you usually want the lower rarity items so that you can upgrade them more?

ctimlock commented 1 year ago

@errnoh Yeah correct. @danreeves Yeah for sure, don't know when minRarity would be useful tbh but figured may as well have both.

errnoh commented 1 year ago

As there's limited amount of item rarities I'd probably just do it like "rarity": [1,2,3] or even "rarity": ["blue", "green"] or whatever they call those ingame :)