cube per second counter

cube per second counter for synergism

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

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