| | |
| | | import ChPyNetSendPack
|
| | | import NetPackCommon
|
| | | import IpyGameDataPY
|
| | | import PlayerSuccess
|
| | | import PyGameData
|
| | | import NPCCommon
|
| | | import FBCommon
|
| | |
| | | # PickupItemSysNotify(curPlayer, isTeamNotify, itemMsgList, isEquip)
|
| | | #=======================================================================
|
| | |
|
| | | #成就
|
| | | PlayerSuccess.DoAddSuccessProgress(curPlayer, ShareDefine.SuccType_PickUpItem, curItemCount, [curItemID])
|
| | | |
| | | #物品已经被捡起, 把物品指针置为空
|
| | | mapItem.SetDropItem(None)
|
| | | #通知客户端, 人物捡起该物品, 以及回收物品的逻辑
|
| | |
| | | if not isOK:
|
| | | return False
|
| | |
|
| | | #------------使用物品成功, 执行相关操作
|
| | | PlayerSuccess.DoAddSuccessProgress(curPlayer, ShareDefine.SuccType_UseItem, successCnt, [curItemTypeID])
|
| | | |
| | | curPlayer.Sync_UseItem(curItemTypeID, useItemIndex)
|
| | | curPlayer.SetItemCD(curItemCDType, tick)
|
| | |
|
| | |
| | | return -1
|
| | | curItemID = curItem.GetItemTypeID()
|
| | | useCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_ItemUseCntToday % curItemID)
|
| | | for itemIDList in IpyGameDataPY.GetFuncEvalCfg('ShareUseCntItem'):
|
| | | if curItemID not in itemIDList:
|
| | | continue
|
| | | for itemID in itemIDList:
|
| | | if itemID == curItemID:
|
| | | continue
|
| | | useCnt += curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_ItemUseCntToday % itemID)
|
| | | #for itemIDList in IpyGameDataPY.GetFuncEvalCfg('ShareUseCntItem'):
|
| | | # if curItemID not in itemIDList:
|
| | | # continue
|
| | | # for itemID in itemIDList:
|
| | | # if itemID == curItemID:
|
| | | # continue
|
| | | # useCnt += curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_ItemUseCntToday % itemID)
|
| | |
|
| | | canUseCnt = max(0, maxCnt - useCnt)
|
| | |
|
| | |
| | | ChConfig.Def_Effect_AddRealmExpRate:"Item_AddRealmExpRate", # 增加聚灵效率
|
| | | ChConfig.Def_Effect_TouchMission:"Item_TouchMission", # 触发任务接口
|
| | | ChConfig.Def_Effect_HeroSkin:"Item_HeroSkin", # 武将皮肤
|
| | | ChConfig.Def_Effect_FamilyTaofaCnt:"Item_FamilyTaofaCnt", # 增加公会讨伐次数
|
| | | #ChConfig.Def_Effect_AddArenaBattleCount:"Item_AddArenaBattleCount", # 增加竞技场挑战次数
|
| | | #ChConfig.Def_Effect_FamilyImpeach:"Item_FamilyImpeach", # 弹劾符
|
| | | #ChConfig.Def_Effect_ClothesCoatSkin:"Item_ClothesCoatSkin", #激活时装皮肤
|