1111
This commit is contained in:
20
Dps_A/CallBack/Use_Item_Sp.nut
Normal file
20
Dps_A/CallBack/Use_Item_Sp.nut
Normal file
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
文件名: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;
|
||||
}
|
||||
Reference in New Issue
Block a user