From 80694fa19feff75e614f1b43a9470a4b2d8e54a8 Mon Sep 17 00:00:00 2001 From: Lenheart <947330670@qq.com> Date: Fri, 12 Dec 2025 00:25:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=8E=B7=E5=8F=96=E5=B1=9E?= =?UTF-8?q?=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Base/_ENUM/_ENUM_.nut | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/Base/_ENUM/_ENUM_.nut b/Base/_ENUM/_ENUM_.nut index ff3cd5e..6492486 100644 --- a/Base/_ENUM/_ENUM_.nut +++ b/Base/_ENUM/_ENUM_.nut @@ -376,10 +376,10 @@ function Rindro_GetEquAddr(addr) { } //本地模式 -if(!getroottable().rawin("RINDROLOCAL"))RINDROLOCAL <- false; +if (!getroottable().rawin("RINDROLOCAL")) RINDROLOCAL <- false; function deepcopy(obj) { - local copies = {}; // 用于跟踪已拷贝对象的表 + local copies = {}; // 用于跟踪已拷贝对象的表 return _deepcopy(obj, copies); } @@ -400,15 +400,14 @@ function _deepcopy(obj, copies) { local newObj; if (type == "array") { newObj = array(obj.len()); - copies[obj] <- newObj; // 在拷贝前记录 + copies[obj] <- newObj; // 在拷贝前记录 - for (local i = 0; i < obj.len(); i++) { + for (local i = 0; i< obj.len(); i++) { newObj[i] = _deepcopy(obj[i], copies); } - } - else if (type == "table") { + } else if (type == "table") { newObj = {}; - copies[obj] <- newObj; // 在拷贝前记录 + copies[obj] <- newObj; // 在拷贝前记录 foreach(key, val in obj) { // 键也需要深拷贝 @@ -416,8 +415,7 @@ function _deepcopy(obj, copies) { local newVal = _deepcopy(val, copies); newObj[newKey] <- newVal; } - } - else { // 类和实例(浅拷贝) + } else { // 类和实例(浅拷贝) newObj = obj; copies[obj] <- newObj; } @@ -425,6 +423,10 @@ function _deepcopy(obj, copies) { return newObj; } -function sq_GetCharacterAttribute(address){ +function sq_GetCharacterAttribute(address) { return L_sq_GetCharacterAttribute(address); +} + +function sq_GetCharacterEquipAttribute(offest, Slot) { + return L_sq_GetCharacterAttribute(offest, Slot); } \ No newline at end of file