Commit bbfcd3de authored by Grant's avatar Grant
Browse files

remove placeholder pixel cooldown

parent 3a7e4501
Loading
Loading
Loading
Loading
+1 −18
Original line number Diff line number Diff line
@@ -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;
  }
})();
+4 −0
Original line number Diff line number Diff line
@@ -178,6 +178,10 @@ export type ClientConfig = {
  version: string;
  pallete: {
    colors: PalleteColor[];
    /**
     * ms for cooldown
     * @see CanvasLib#getPixelCooldown
     */
    pixel_cooldown: number;
  };
  canvas: CanvasConfig;