Open 36y opened 2 years ago
Can you elaborate on this further?
Can you elaborate on this further?
To see the percentages of each attribute across your collection, run:
npm run rarity
The output will look something like this:
Trait type: Top lid
{
trait: 'High',
chance: '30',
occurrence: '3 in 20 editions (15.00 %)'
}
{
trait: 'Low',
chance: '20',
occurrence: '3 in 20 editions (15.00 %)'
}
{
trait: 'Middle',
chance: '50',
occurrence: '14 in 20 editions (70.00 %)'
}
Now if you run npm run rarity > log.txt
it will export the data to a text file rather than the console.
This also applies to any powershell command, and you can also add 2> stderr
to pipe errors into a different file.
npm run rarity > log.txt