| | |
| | | import SkillShell
|
| | | import ItemControler
|
| | | import PlayerControl
|
| | | import PlayerSuccess
|
| | | import GameFuncComm
|
| | | import ShareDefine
|
| | | import SkillCommon
|
| | |
| | | import GameWorld
|
| | | import IpyGameDataPY
|
| | | import GameMap
|
| | | import OpenServerCampaign
|
| | | import PlayerWeekParty
|
| | | import CalcNoLineEffect
|
| | | import PassiveBuffEffMng
|
| | | import CrossPlayerData
|
| | | import CalcLineEffect
|
| | | import PlayerActivity
|
| | | import ChPyNetSendPack
|
| | | import NetPackCommon
|
| | | import PlayerActLunhuidian
|
| | | import PlayerActHorsePetTrain
|
| | | import PlayerActTask
|
| | | import PlayerHorse
|
| | | import GameObj
|
| | |
| | | PetControl.DoLogic_PlayerPetLearnSkillList(rolePet, learnSkillList)
|
| | | RefreshPetItemAddAttr(curPlayer, True)
|
| | |
|
| | | # 开服活动数据
|
| | | OpenServerCampaign.UpdOpenServerCampaignRecordData(curPlayer, ShareDefine.Def_Campaign_Type_PetLV, GetTotalPetLV(curPlayer))
|
| | | PlayerWeekParty.AddWeekPartyActionCnt(curPlayer, ChConfig.Def_WPAct_Pet, petNPCID, False)
|
| | | return True
|
| | |
|
| | |
| | | #广播
|
| | | sysMark = sysMarkList[i] if i < len(sysMarkList) else 'PetUpLv'
|
| | | PlayerControl.WorldNotify(0, sysMark, [playerName, petNPCID, limitPetClassLV, skillid])
|
| | | #增加升级活跃点效果
|
| | | PlayerActivity.AddActivityByLVOnLearnSkill(curPlayer, skillid)
|
| | |
|
| | | if not learnSkillList and updClassLV + 1 == maxClassLV:
|
| | | PlayerControl.WorldNotify(0, 'PetUpLvMax', [playerName, petNPCID])
|
| | |
| | |
|
| | | RefreshPetItemAddAttr(curPlayer, True)
|
| | |
|
| | | # 开服活动数据
|
| | | OpenServerCampaign.UpdOpenServerCampaignRecordData(curPlayer, ShareDefine.Def_Campaign_Type_PetLV, GetTotalPetLV(curPlayer))
|
| | | |
| | | PlayerSuccess.DoAddSuccessProgress(curPlayer, ShareDefine.SuccType_PetClassLV, 1, [petNPCID, updClassLV + 1])
|
| | | extraInfoDict = {"petItemIndex":PetItemIndex, "petNPCID":petNPCID}
|
| | | extraInfoDict.update(eval(petDataItem.GetUserData()))
|
| | | DataRecordPack.DR_ClassUpSystem(curPlayer, "PetClassUp", updClassLV, extraInfoDict)
|
| | |
|
| | | #EventReport.WriteEvent_pet_class(curPlayer, petNpcData.GetName(), classLV, petClassExp, updClassLV, newClassExp)
|
| | |
|
| | | PlayerActHorsePetTrain.OnHorsePetTrainCost(curPlayer, {autoBuyItemID:costItemCount})
|
| | | PlayerActTask.AddActTaskValue(curPlayer, ChConfig.ActTaskType_PetUpItem, costItemCount)
|
| | | PlayerActLunhuidian.AddLunhuidianValue(curPlayer, PlayerActLunhuidian.AwardType_UseItem, autoBuyItemID, costItemCount)
|
| | | return
|
| | |
| | | # 刷属性,更新排行榜
|
| | | RefreshPetItemAddAttr(curPlayer, True)
|
| | |
|
| | | PlayerActHorsePetTrain.OnHorsePetTrainCost(curPlayer, {costItemID:costItemCount})
|
| | | if trainType == 2:
|
| | | PlayerActTask.AddActTaskValue(curPlayer, ChConfig.ActTaskType_PetTrainItem2, costItemCount)
|
| | | elif trainType == 3:
|