Closed tradermoore closed 2 years ago
Im pretty sure you should be able to do that by adding something like
Edition rarity: rarityWeight,
to the let attribute part of the const getAttributeForElement in the index file. I could be wrong though
Thanks @Ponda1 really appreciate it. I successfully used your trait_type fix in #19 (thank you, great stuff!) and tried to add in the rarityweight without luck.
I'm looking for this rarity attribute just after the DNA metadata to represent the rarity of the entire element (where adding to the attribute would be rarity of the layer, I think). I believe this was part of an earlier code, so I need to dig in when I get the time later to see if I can find the prior code and reproduce.
Sorry I have no idea then
I've confirmed that in the main branch, NFTs will be generated in reverse order of their rarity weight. This answers my original question, so closing. Hope this can help others.
CC: @Ponda1
Alternately open if there is a way to identify the edition rarity through another means. Either way would be useful in a post-generation workflow to price/organize NFTs by rarity.