| | |
| | | import FBCommon
|
| | | import IpyGameDataPY
|
| | | import PyGameData
|
| | | import EventShell
|
| | | #---------------------------------------------------------------------
|
| | | GameWorld.ImportAll("Script\\Skill\\" , "GameSkills")
|
| | | GameWorld.ImportAll("Script\\Skill\\" , "GameBuffs")
|
| | |
| | | #获得技能等级
|
| | | curSkillLV = curSkill.GetSkillLV()
|
| | | DataRecordPack.DR_LearnORUPSkill(curPlayer, curSkillID, curSkillLV)
|
| | | EventShell.EventRespons_SkillUp(curPlayer, curSkill.GetFuncType(), curSkillLV)
|
| | | GameWorld.Log("升级技能名 = %s 成功, 当前等级 = %s"%(curSkill.GetSkillName(), curSkill.GetSkillLV()), curPlayer.GetPlayerID())
|
| | | return True
|
| | |
|
| | |
| | | skillElementType = GetSkillElementType(nextSkill)
|
| | |
|
| | | #可升级则激活升一级
|
| | | EventShell.EventRespons_ElementSkill(curPlayer, mainSkillID, skillElementType, updSelectSkillLV)
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_SkillElementLV % selectSkillID, updSelectSkillLV)
|
| | | if curElementSkillID == selectSkillID:
|
| | | #正在使用的专精技能,则立即生效
|
| | |
| | | continue
|
| | |
|
| | | callBuffProcessFunc(curObj, curBuff, curEffect, processBuffTick, tick)
|
| | | |
| | | #执行ProcessBuff中设定的玩家字典
|
| | | __DoProcessBuff_PlayerKey(curObj, tick)
|
| | |
|
| | | #---------------------------------------------------------------------
|
| | | ##执行ProcessBuff中设定的玩家字典
|
| | | # @param curObj 对象
|
| | | # @param tick 时间戳
|
| | | # @return 返回值无意义
|
| | | # @remarks 执行ProcessBuff中设定的玩家字典
|
| | | def __DoProcessBuff_PlayerKey(curObj, tick):
|
| | | #===============================================================================
|
| | | # if curObj.GetDictByKey(ChConfig.Def_Player_ProBuff_TruckSpeedUp):
|
| | | # skillID = curObj.GetDictByKey(ChConfig.Def_Player_ProBuff_TruckSpeedUp)
|
| | | # #本来buff类型是11, 但是骠车没有物品buff, 所以改为8
|
| | | # buffType = IPY_GameWorld.bfAura |
| | | # #给自己的镖车加buff
|
| | | # curSkill = GameWorld.GetGameData().GetSkillBySkillID(skillID)
|
| | | # if not curSkill:
|
| | | # GameWorld.Log('###镖车Buff技能ID异常 = %s'%(skillID))
|
| | | # return
|
| | | # |
| | | # BuffSkill.DoAddBuff(curObj.GetTruck() , buffType, curSkill, tick, 0, curObj)
|
| | | # curObj.SetDict(ChConfig.Def_Player_ProBuff_TruckSpeedUp , 0)
|
| | | #===============================================================================
|
| | | return
|
| | |
|
| | | #---------------------------------------------------------------------
|
| | | ##持续性buff的伤害效果
|