hxp
2022-08-24 4a97f4b54a9bdf9c881d95c531f14b769b1a33b8
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerLianTi.py
@@ -23,6 +23,7 @@
import NetPackCommon
import ItemCommon
import ChConfig
import SkillCommon
def DoLianTiOpen(curPlayer):
    ## 功能开启
@@ -167,12 +168,16 @@
    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