mirror of
https://github.com/stronk-dev/RandomChad.git
synced 2025-07-05 02:35:08 +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
|
||||
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'
|
||||
rocketeer.attributes.push( edition )
|
||||
|
||||
// Generate, compile and upload image
|
||||
rocketeer.image = await svgFromAttributes( rocketeer.attributes, `${ network }Rocketeers/${id}` )
|
||||
|
Loading…
x
Reference in New Issue
Block a user