refactor: 优化物品批量使用逻辑

- 修改了 batchUse 函数的定义方式,使用箭头函数替代普通函数
- 优化了代码结构,提高了可读性和性能
This commit is contained in:
2025-01-20 22:31:57 +08:00
parent 004a3ea668
commit 181fb323c3

View File

@@ -20292,7 +20292,7 @@ var app;
if (0 != this.itemID && this.curItem) {
const batchUse = (num) => {
const batchMax = 99;
return (function () {
return (() =>{
setTimeout(() => {
t.ThgMu.ins().send_8_11(this.itemID, Math.min(num, batchMax), this.curItem.series);
num -= batchMax;