hot patch: magic number cooldown

This commit is contained in:
Grant 2024-07-12 02:43:09 -06:00
parent 7e5215c07d
commit 07189888e4
1 changed files with 6 additions and 2 deletions

View File

@ -9,13 +9,17 @@ export const CanvasLib = new (class {
* @returns Seconds to take to give the pixel * @returns Seconds to take to give the pixel
*/ */
getPixelCooldown(pixelNumber: number, config: ClientConfig) { getPixelCooldown(pixelNumber: number, config: ClientConfig) {
return pixelNumber * config.canvas.pixel.cooldown; // return pixelNumber * config.canvas.pixel.cooldown;
// const factorial = (n: number) => (n == 0 ? 1 : n * factorial(n - 1)); // const factorial = (n: number): number => (n == 0 ? 1 : n * factorial(n - 1));
// return ( // return (
// config.canvas.pixel.cooldown * // config.canvas.pixel.cooldown *
// config.canvas.pixel.multiplier * // config.canvas.pixel.multiplier *
// (2 + pixelNumber + factorial(pixelNumber)) // (2 + pixelNumber + factorial(pixelNumber))
// ); // );
// oh god last minute change to match activity cooldown
// 100 = user count
return (2.5 * Math.sqrt(100 + 11.96) + 6.5) * 1 * pixelNumber;
} }
})(); })();