From 59db40a3c2fe2ca173bae4a41384044bf32c37da Mon Sep 17 00:00:00 2001 From: Mentor Palokaj Date: Sat, 30 Oct 2021 16:16:17 +0200 Subject: [PATCH] Fix edition bug --- functions/modules/rocketeer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions/modules/rocketeer.js b/functions/modules/rocketeer.js index 1ff80ca..04a7ceb 100644 --- a/functions/modules/rocketeer.js +++ b/functions/modules/rocketeer.js @@ -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}` )