Skip to content
Snippets Groups Projects
Commit bbfcd3de authored by Grant's avatar Grant
Browse files

remove placeholder pixel cooldown

parent 3a7e4501
Branches
No related tags found
No related merge requests found
......@@ -9,23 +9,6 @@ export const CanvasLib = new (class {
* @returns Seconds to take to give the pixel
*/
getPixelCooldown(pixelNumber: number, config: ClientConfig) {
// return pixelNumber * config.canvas.pixel.cooldown;
// const factorial = (n: number): number => (n == 0 ? 1 : n * factorial(n - 1));
// return (
// config.canvas.pixel.cooldown *
// config.canvas.pixel.multiplier *
// (2 + pixelNumber + factorial(pixelNumber))
// );
// oh god last minute change to match activity cooldown
// 100 = user count
// band aid over negative nums
if (pixelNumber < 1) {
pixelNumber = 1
}
return (2.5 * Math.sqrt(100 + 11.96) + 6.5) * 1 * pixelNumber;
return config.pallete.pixel_cooldown / 1000;
}
})();
......@@ -178,6 +178,10 @@ export type ClientConfig = {
version: string;
pallete: {
colors: PalleteColor[];
/**
* ms for cooldown
* @see CanvasLib#getPixelCooldown
*/
pixel_cooldown: number;
};
canvas: CanvasConfig;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment