新增附加装备APD函数
This commit is contained in:
parent
78c8449b9f
commit
77202bfdb7
|
|
@ -438,3 +438,11 @@ 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);
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue