cube per second counter

cube per second counter for synergism

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==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
});