special edition livestream deployment with parameters according to POAP vote /poll/222

This commit is contained in:
Mentor Palokaj 2021-12-11 21:28:55 +01:00
parent 8a2b4f2db6
commit 8d4936407a
2 changed files with 2 additions and 5 deletions

View File

@ -25,9 +25,6 @@ exports.generateNewOutfit = async function( req, res ) {
try { try {
// Internal beta
if( id != 1 ) return res.json( { error: `Sorry the changing room is in private beta for now <3` } )
// Get request data // Get request data
const { message, signature, signatory } = req.body const { message, signature, signatory } = req.body
if( !message || !signatory || !signature ) throw new Error( `Malformed request` ) if( !message || !signatory || !signature ) throw new Error( `Malformed request` )

View File

@ -14,10 +14,10 @@ async function generateNewOutfitFromId( id, network='mainnet' ) {
// Changing room variables // Changing room variables
// /////////////////////////////*/ // /////////////////////////////*/
// Set the entropy level. 255 would mean 0 can become 255 and -255 // Set the entropy level. 255 would mean 0 can become 255 and -255
let colorEntropy = 20 let colorEntropy = 10
const newOutfitAllowedInterval = 1000 * 60 * 60 * 24 * 30 const newOutfitAllowedInterval = 1000 * 60 * 60 * 24 * 30
const specialEditionMultiplier = 1.1 const specialEditionMultiplier = 1.1
const entropyMultiplier = 1.05 const entropyMultiplier = 1.1
// Retreive old Rocketeer data // Retreive old Rocketeer data
const rocketeer = await db.collection( `${ network }Rocketeers` ).doc( id ).get().then( dataFromSnap ) const rocketeer = await db.collection( `${ network }Rocketeers` ).doc( id ).get().then( dataFromSnap )