新增附加装备APD函数

This commit is contained in:
Lenheart 2025-12-20 22:55:05 +08:00
parent 78c8449b9f
commit 77202bfdb7
2 changed files with 10 additions and 2 deletions

View File

@ -437,4 +437,12 @@ function sq_SetCharacterAttribute(address, Value) {
function sq_SetCharacterEquipAttribute(offest, Slot, Value) { function sq_SetCharacterEquipAttribute(offest, Slot, Value) {
L_sq_SetCharacterAttribute(offest, Slot, Value); L_sq_SetCharacterAttribute(offest, Slot, Value);
} }
//设置装备APD给对象
function sq_setEquipAppendage(obj, ApdListId, Time) {
local ObjAddress = L_Sq_GetObjectAddress(obj);
local APD = L_Sq_CallFunc(0x9E5130, "int", FFI_MS_CDECL, ["int", "int", "int"], ApdListId, ObjAddress, ObjAddress);
print(APD);
L_Sq_CallFunc(0x4041c0, "int", FFI_THISCALL, ["int", "int", "int"], APD + 44, 0, Time);
}

View File

@ -191,7 +191,7 @@ class ItemInheritC extends LenheartNewUI_Windows {
function Lenheart_ItemInherit_Fun(obj) { function Lenheart_ItemInherit_Fun(obj) {
sq_IsValidActiveStatus(obj, 1); // sq_IsValidActiveStatus(obj, 1);
local RootTab = getroottable(); local RootTab = getroottable();
if (!RootTab.rawin("ItemInherit_Obj")) { if (!RootTab.rawin("ItemInherit_Obj")) {
RootTab.rawset("ItemInherit_Obj", true); RootTab.rawset("ItemInherit_Obj", true);