testing

BOSS RUSH!!

2025-04-30 يوللانغان نەشرى. ئەڭ يېڭى نەشرىنى كۆرۈش.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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         testing
// @namespace    https://greasyfork.org/ja/users/941284-ぐらんぴ
// @version      2025-4-30
// @description  BOSS RUSH!!
// @author       ぐらんぴ
// @match        https://pokerogue.net/
// @icon         https://www.google.com/s2/favicons?sz=64&domain=pokerogue.net
// @run-at       document-start
// @license      MIT
// ==/UserScript==

const settings = {
    BOSS_RUSH_MODE: { enabled: true, segments: 2 }, // HP[▉▉▉▉|▉▉▉▉]
    Enemy_Level_Boost: { enabled: true, multiplier: 1.2 }, // lvl.200 → 240
};

///---------------------------------------------------///

const segments = settings.BOSS_RUSH_MODE.segments;
const multiplier = settings.Enemy_Level_Boost.multiplier;


Object.defineProperties(Object.prototype, {
    'bossSegments': {
        set(v) {
            if(settings.BOSS_RUSH_MODE.enabled == true){
                if(v === undefined || v <= segments){
                    this._bossSegments = segments;
                }else{
                    this._bossSegments = v;
                }
                try{
                    this.boss = true;
                }catch{}
            }
        },
        get() { return this._bossSegments },
    },
    'isBoss': {
        set() {},
        get() { return true; },
    },
    'trainerSlot': {// kx
        set(v) {
            if(settings.BOSS_RUSH_MODE.enabled == true) this.setBoss(true)
            if(settings.Enemy_Level_Boost.enabled == true) this.level += Math.ceil(this.level * multiplier);
        },
        get() {},
    },
});