refactor: 优化物品批量使用逻辑
- 修改了 batchUse 函数的定义方式,使用箭头函数替代普通函数 - 优化了代码结构,提高了可读性和性能
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user