| | |
| | | #CD冷却时间未到
|
| | | #PlayerControl.NotifyCode(curPlayer, "GeRen_chenxin_749572")
|
| | | return
|
| | |
|
| | | |
| | | if curItem.GetType() == ChConfig.Def_ItemType_CanUseByCDTime:
|
| | | curItemPastTime = int(time.time()) - curItem.GetUserAttr(ShareDefine.Def_IudetCreateTime)
|
| | | if curItemPastTime < curItem.GetCDTime():
|
| | | GameWorld.DebugLog("未到使用时间,不可使用! itemID=%s,curItemPastTime=%s < CDTime(%s)" |
| | | % (curItem.GetItemTypeID(), curItemPastTime, curItem.GetCDTime()))
|
| | | return
|
| | | |
| | | #检查使用等级
|
| | | if curItem.GetUseLV() == 0:
|
| | | PlayerControl.NotifyCode(curPlayer, "GeRen_chenxin_774045")
|