20 lines
472 B
Plaintext
20 lines
472 B
Plaintext
/*
|
|
文件名:Use_Item_Sp.nut
|
|
路径:CallBack/Use_Item_Sp.nut
|
|
创建日期:2024-04-19 10:43
|
|
文件用途:
|
|
*/
|
|
if (!("Cb_Use_Item_Sp_Func" in getroottable())) Cb_Use_Item_Sp_Func <- {};
|
|
|
|
|
|
|
|
function Cb_use_item_sp(C_User, ItemId) {
|
|
if (ItemId in Cb_Use_Item_Sp_Func) {
|
|
local SUser = User(C_User);
|
|
if (SUser) {
|
|
local Ret = Cb_Use_Item_Sp_Func[ItemId](SUser, ItemId);
|
|
if (Ret == false) return false;
|
|
}
|
|
}
|
|
return true;
|
|
} |