ashbeech / moralis-mutants-nft-engine

Moralis Generative Art NFT Engine
MIT License
245 stars 227 forks source link

Rarity Options #19

Open J-Renegade opened 2 years ago

J-Renegade commented 2 years ago

Was any able to add rarity to their nfts and upload? For some reason when I set the rarity the whole thing breaks. The instructions to create rarity are incomplete or maybe I missed something. I've been fiddling with it on and off for a few days now and I'm pretty lost. There seems to be an issue with creating the DNA using the getRarity parameters defined (or not defined) in rarity.js. I somehow broke the integration between rarity.js and dna.js, that part is working now.

My issue is now with the rarity metadata. There's an issue with the way rarityWeights are being used. I want to set rarity per layer separate of the entire edition so I can have an edition with a rare layer1, common layer2, and/or rare layer3, each one chosen at random. I got the generator to do that but when it's uploaded to ipfs the metadata registers the edition rarity based on the rarityWeights and not layers. I may have just answered my own question. Idk any ideas? Anyone know where I can find that value?