《1000亿分之一》修改十倍经验值
(function () { const STORE = 'human-archive-pixel-2'; const MULT = 10; const CELLS = 10; let lastLv = 0, lastCh = 0, ready = false; try { const raw = localStorage.getItem(STORE); if (raw) { ...
(function () {
const STORE = 'human-archive-pixel-2';
const MULT = 10;
const CELLS = 10;
let lastLv = 0, lastCh = 0, ready = false;
try {
const raw = localStorage.getItem(STORE);
if (raw) {
const o = JSON.parse(raw);
lastLv = Number(o.level.lv) || 1;
lastCh = Number(o.level.charge) || 0;
ready = true;
console.log(`%c基准: 等级 ${lastLv},格数 ${lastCh}/${CELLS},宝箱 ${o.chests || 0}`, 'color:#0ff;font-size:14px');
}
} catch (e) {}
if (!ready) {
console.log('%c没有存档,先开一张卡', 'color:#f80');
return;
}
const orig = JSON.stringify;
JSON.stringify = function (v, ...rest) {
if (v && typeof v === 'object' && Array.isArray(v.keys) && v.level && v.packs) {
const curLv = Number(v.level.lv) || 1;
const curCh = Number(v.level.charge) || 0;
let gained = 0;
if (curLv === lastLv) {
gained = curCh - lastCh;
} else if (curLv > lastLv) {
gained = (curLv - lastLv) * CELLS + curCh - lastCh;
}
if (gained > 0) {
const total = gained * MULT;
const base = lastLv * CELLS + lastCh;
const now = base + total;
const newLv = Math.floor(now / CELLS);
const newCh = now % CELLS;
// ===== 补宝箱:多出来的等级每个补 1 个 =====
const extraLevels = newLv - curLv;
let addedChests = 0;
if (extraLevels > 0) {
v.chests = (Number(v.chests) || 0) + extraLevels;
addedChests = extraLevels;
}
v.level.lv = newLv;
v.level.charge = newCh;
console.log(
`%c[EXP×${MULT}] +${gained}格 → +${total}格 | 等级 ${lastLv} → ${newLv}` +
(addedChests ? ` | 宝箱 +${addedChests}(共 ${v.chests})` : ''),
'color:#0f0;font-size:14px;font-weight:bold'
);
}
lastLv = Number(v.level.lv) || 1;
lastCh = Number(v.level.charge) || 0;
}
return orig.call(this, v, ...rest);
};
console.log('%c[EXP×' + MULT + ' + 宝箱] 已启用', 'color:#0f0;font-size:20px;font-weight:bold');
})();
- 上一篇
模组树游戏修改,油猴脚本
// ==UserScript==// @name 树修改// @namespace http://tampermonkey.net/// @version 1.5// @description 通用 TMT 树修改:改层级数值、微调、里程碑入栈(按实际 key 对齐,记住上次选择)// @match *...
- 下一篇
算力祈愿修改
游客用的,登录用不了,超过50w会封号ctrl+shift+i打开控制台,复制粘贴回车(function () { const TARGET = 300000; let n = 0; const orig = JSON.stringify; JSON.stringify = function (v, ...rest) { if (v && ...


















微信打赏支持
支付宝打赏支持


