Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add new RarityScore field in the name of each created nft #13

Closed
lucastoian opened this issue Jan 16, 2022 · 1 comment
Closed

add new RarityScore field in the name of each created nft #13

lucastoian opened this issue Jan 16, 2022 · 1 comment

Comments

@lucastoian
Copy link

Hello,
I would like to change the name of each nft by adding a RarityScore field.
This field can be: Legendary, Rare, Common etc.

To do this I saw that the name is generated on line 192
nftMetadata['name'] = nftName + ' #' + str(self.nftsCreatedCounter+1) + "RarityScore: "

In which variables can I go to see the percentage of each element that has been selected to generate the nft?

I need to be able to save the percentage of each item that was selected in a variable, if this value is less than 10 then the nft will be "Legendary"

@lucastoian
Copy link
Author

I did it myself by modifying your code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant