mirror of
https://github.com/stronk-dev/RandomChad.git
synced 2025-07-05 10:35:08 +02:00
✨ special edition livestream deployment with parameters according to POAP vote /poll/222
This commit is contained in:
parent
8a2b4f2db6
commit
8d4936407a
@ -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` )
|
||||||
|
@ -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 )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user