71 lines
2.5 KiB
Plaintext
71 lines
2.5 KiB
Plaintext
/*
|
|
文件名:procAppend_Swordman.nut
|
|
路径:procAppend/procAppend_Swordman.nut
|
|
创建日期:2022-09-04 20:15
|
|
文件用途:鬼剑士绘制界面回调函数(原生)
|
|
*/
|
|
|
|
|
|
|
|
|
|
// for (local i = 0; i < 255; i++) {
|
|
// local skillindex = sq_GetIntData(sqrChr, 198, i);
|
|
// if (skillindex > 0) {
|
|
// sqrChr.addSkillLevelAppendage(skillindex, 1, 10000000);
|
|
// } else break;
|
|
// }
|
|
function checkOverItemObject_Swordman(a){
|
|
// Sout("a: %L",a.GetName());
|
|
// print(a);
|
|
return true;
|
|
}
|
|
|
|
function isEnableBackStepState_Swordman(a){
|
|
// Sout("a: %L",a.GetName());
|
|
// print(a);
|
|
return true;
|
|
}
|
|
|
|
function procAppend_Swordman(obj) {
|
|
if (!obj)
|
|
return;
|
|
procAppend_All(obj);
|
|
|
|
|
|
if (!CNSquirrelAppendage.sq_IsAppendAppendage(obj, "appendage/ap_equipbox.nut")) {
|
|
local appendage = CNSquirrelAppendage.sq_AppendAppendage(obj, obj, -1, false, "appendage/ap_equipbox.nut", true);
|
|
CNSquirrelAppendage.sq_Append(appendage, obj, obj);
|
|
// local change_appendage = appendage.sq_getChangeStatus("molijiezhi");
|
|
// if (!change_appendage) {
|
|
// change_appendage = appendage.sq_AddChangeStatusAppendageID(obj, obj, 0,
|
|
// CHANGE_STATUS_TYPE_COOLTIME_DECLINE,
|
|
// false, 0, 254);
|
|
// }
|
|
// if (change_appendage) {
|
|
// change_appendage.clearParameter();
|
|
// local sss = 0 - ((sq_GetIntData(obj, 169, 0).tofloat() / 100.00));
|
|
// change_appendage.addParameter(CHANGE_STATUS_TYPE_COOLTIME_DECLINE, false, sss);
|
|
// }
|
|
}
|
|
|
|
/*
|
|
|
|
if (!CNSquirrelAppendage.sq_IsAppendAppendage(obj, "appendage/ap_equipbox.nut")) {
|
|
local appendage = CNSquirrelAppendage.sq_AppendAppendage(obj, obj, -1, false, "appendage/ap_equipbox.nut", true);
|
|
CNSquirrelAppendage.sq_Append(appendage, obj, obj);
|
|
local change_appendage = appendage.sq_getChangeStatus("molijiezhi");
|
|
if (!change_appendage)
|
|
{
|
|
change_appendage = appendage.sq_AddChangeStatusAppendageID(obj, obj, 0,
|
|
CHANGE_STATUS_TYPE_COOLTIME_DECLINE,
|
|
false, 0, APID_COMMON);
|
|
}
|
|
if (change_appendage) {
|
|
change_appendage.clearParameter();
|
|
change_appendage.addParameter(CHANGE_STATUS_TYPE_COOLTIME_DECLINE, false, -((sq_GetIntData(obj, 169, 15).tofloat() / 100.00)));
|
|
}
|
|
}
|
|
|
|
*/
|
|
return 1;
|
|
} |