ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGodWeapon.py
@@ -32,7 +32,7 @@
import GameFuncComm
import SkillCommon
import BuffSkill
import ItemControler
import PlayerWeekParty
#import EventReport
import IpyGameDataPY
import PassiveBuffEffMng
@@ -88,15 +88,20 @@
        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: 是否激活成功
@@ -143,8 +148,16 @@
            PlayerControl.CalcAttrDict_Type(attrID, attrValueList[i], allAttrList)
        
        fightPowerEx += IpyGameDataPY.GetFuncEvalCfg('MagicExterior').get(str(gwType), 0)
        # 附加战力
        curPlayer.SetDict(ChConfig.Def_PlayerKey_MFPEx % ShareDefine.Def_MFPType_GodWeapon, fightPowerEx)
        #特效等级属性战力
        godWeaponEffectData = IpyGameDataPY.InterpolationSearch("GodWeaponEffect", "Level", attrLV, {"GWType":gwType})
        if godWeaponEffectData:
            for attrID, attrValue in godWeaponEffectData.GetAttr().items():
                PlayerControl.CalcAttrDict_Type(attrID, attrValue, allAttrList)
            fightPowerEx += godWeaponEffectData.GetFightPower()
    # 附加战力
    curPlayer.SetDict(ChConfig.Def_PlayerKey_MFPEx % ShareDefine.Def_MFPType_GodWeapon, fightPowerEx)
    GameWorld.DebugLog("神兵属性:%s" % allAttrList)
    # 保存计算值
    PlayerControl.SetCalcAttrListValue(curPlayer, ChConfig.Def_CalcAttrFunc_GodWeapon, allAttrList)