mirror of
https://github.com/stronk-dev/RandomChad.git
synced 2025-07-06 10:55:10 +02:00
Fix edition bug
This commit is contained in:
parent
a0d377f61d
commit
59db40a3c2
@ -89,8 +89,9 @@ async function generateRocketeer( id, network='mainnet' ) {
|
|||||||
|
|
||||||
// Special editions
|
// Special editions
|
||||||
const edition = { "trait_type": "edition", value: "regular" }
|
const edition = { "trait_type": "edition", value: "regular" }
|
||||||
if( id > 50 ) edition.value = 'genesis'
|
if( id < 50 ) edition.value = 'genesis'
|
||||||
if( id % 42 === 0 ) edition.value = 'hitchhiker'
|
if( id % 42 === 0 ) edition.value = 'hitchhiker'
|
||||||
|
rocketeer.attributes.push( edition )
|
||||||
|
|
||||||
// Generate, compile and upload image
|
// Generate, compile and upload image
|
||||||
rocketeer.image = await svgFromAttributes( rocketeer.attributes, `${ network }Rocketeers/${id}` )
|
rocketeer.image = await svgFromAttributes( rocketeer.attributes, `${ network }Rocketeers/${id}` )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user