| | |
| | | import GameFuncComm
|
| | | import SkillCommon
|
| | | import BuffSkill
|
| | | import ItemControler
|
| | | import PlayerWeekParty
|
| | | #import EventReport
|
| | | import IpyGameDataPY
|
| | | import PassiveBuffEffMng
|
| | |
| | | setFunc(curPlayer, lv)
|
| | | curPlayer.SendPropertyRefresh(notifyType, lv, False)
|
| | |
|
| | | totalLV = GetGodWeaponTotalLV(curPlayer)
|
| | | # 开服活动数据
|
| | | OpenServerCampaign.UpdOpenServerCampaignRecordData(curPlayer, ShareDefine.Def_Campaign_Type_GodWeaponLV, totalLV)
|
| | | PlayerWeekParty.AddWeekPartyActionCnt(curPlayer, ChConfig.Def_WPAct_GodWeapon, totalLV, False, True)
|
| | | return
|
| | |
|
| | | def GetGodWeaponTotalLV(curPlayer):
|
| | | ##获取神兵总等级
|
| | | totalLV = 0
|
| | | ipyDataMgr = IpyGameDataPY.IPY_Data()
|
| | | maxType = ipyDataMgr.GetGodWeaponByIndex(ipyDataMgr.GetGodWeaponCount()-1).GetType()
|
| | | for gwType in xrange(1, maxType + 1):
|
| | | totalLV += curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_GodWeaponLV % gwType)
|
| | | |
| | | # 开服活动数据
|
| | | OpenServerCampaign.UpdOpenServerCampaignRecordData(curPlayer, ShareDefine.Def_Campaign_Type_GodWeaponLV, totalLV)
|
| | | return
|
| | | return totalLV
|
| | |
|
| | | ## 神器开启
|
| | | # @return: 是否激活成功
|