BOSS RUSH!!
As of
// ==UserScript==
// @name testing
// @namespace https://greasyfork.org/ja/users/941284-ぐらんぴ
// @version 2025-4-27
// @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 segment = 2;
const log = console.log; log('boss rush!!');
var gameObj;
const origObjDefineProperty = Object.defineProperty;
Object.defineProperty = (...props) =>{
if(props[2].value === 'Game'){
const origFunc = props[0];
props[0] = function(...funcArgs){
gameObj = this;
return origFunc.call(this, ...funcArgs);
};
}
return origObjDefineProperty.call(this, ...props);
};
Object.defineProperties(Object.prototype, {
'bossSegments': {
set(v) {
if(v === undefined || v <= 2){
this._bossSegments = segment;
}else{
this._bossSegments = v;
}
//gameObj.scene.scenes[0].money = 100000
},
get() {
return this._bossSegments || segment; // Default to 2 if undefined
},
},
})