cube per second counter

cube per second counter for synergism

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         cube per second counter
// @namespace    http://tampermonkey.net/
// @version      0.9
// @description  cube per second counter for synergism
// @author       Galaus
// @match        https://v1011testing.vercel.app/
// @include      https://v1011testing.vercel.app/
// @grant        none
// ==/UserScript==


var previousCubes = 0
var cubesGained = 0
var cubesPerSecond = 0
    setInterval(()=>{
    if(previousCubes < player.wowCubes){
        cubesGained += player.wowCubes - previousCubes
    cubesPerSecond = cubesGained / player.ascensionCounter
     console.log("cubes gained in total " + cubesGained);
     console.log("cubes gained per second " + cubesPerSecond);
    }
    previousCubes = player.wowCubes
    cubesPerSecond = cubesGained / player.ascensionCounter
    },50)



document.getElementById("ascendbtn").addEventListener("click", function(){
    previousCubes = player.wowCubes
    cubesGained = 100/100 * calculateCubeMultiplier() * 250
    cubesPerSecond = 0
});