| | |
| | | import NetPackCommon
|
| | | import ItemCommon
|
| | | import ChConfig
|
| | | import SkillCommon
|
| | |
|
| | | def DoLianTiOpen(curPlayer):
|
| | | ## 功能开启
|
| | |
| | | ItemCommon.DelCostItemByBind(curPlayer, costItemIndexList, bindCnt, unBindCnt, costItemCount, ChConfig.ItemDel_LianTi)
|
| | |
|
| | | updEatItemCount = curEatItemCount - needEatCount
|
| | | GameWorld.DebugLog("炼体突破: lianTiLV=%s,curEatItemCount=%s,needEatCount=%s,updEatItemCount=%s,nextLianTiLv=%s" |
| | | % (lianTiLV, curEatItemCount, needEatCount, updEatItemCount, nextLianTiLv))
|
| | | activateSkillID = nextIpyData.GetActivateSkillID()
|
| | | GameWorld.DebugLog("炼体突破: lianTiLV=%s,curEatItemCount=%s,needEatCount=%s,updEatItemCount=%s,nextLianTiLv=%s,activateSkillID=%s" |
| | | % (lianTiLV, curEatItemCount, needEatCount, updEatItemCount, nextLianTiLv, activateSkillID))
|
| | |
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_LianTiLV, nextLianTiLv)
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_LianTiEatItemCount, updEatItemCount)
|
| | |
|
| | | if activateSkillID:
|
| | | SkillCommon.GivePlayerSkillByJobSkill(curPlayer, [activateSkillID])
|
| | | |
| | | SyncLianTiInfo(curPlayer)
|
| | | RefreshLianTiAttr(curPlayer)
|
| | | return
|