ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGodWeapon.py
@@ -32,10 +32,11 @@
import GameFuncComm
import SkillCommon
import BuffSkill
import ItemControler
import PlayerWeekParty
#import EventReport
import IpyGameDataPY
import PassiveBuffEffMng
import OpenServerCampaign
import random
@@ -86,7 +87,21 @@
        setFunc, notifyType = sceneEffectsDict[weaponType]
        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)
    return totalLV
## 神器开启
#  @return: 是否激活成功
@@ -133,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)   
@@ -316,11 +339,13 @@
            PlayerControl.WorldNotify(0, sysMark, [curPlayer.GetName(), weaponType])
            
        #{1:[100,200,300,400],2:[100,200,300,400],3:[100,200,300,400]}
        notifyDict = IpyGameDataPY.GetFuncEvalCfg('GodLv', 1, {})
        if weaponType in notifyDict:
            for notifyLV in notifyDict[weaponType]:
                if beforeAttrLV < notifyLV and attrLV >= notifyLV:
                    PlayerControl.WorldNotify(0, 'GodWeaponLv', [curPlayer.GetName(), weaponType, notifyLV])
        #=======================================================================
        # notifyDict = IpyGameDataPY.GetFuncEvalCfg('GodLv', 1, {})
        # if weaponType in notifyDict:
        #    for notifyLV in notifyDict[weaponType]:
        #        if beforeAttrLV < notifyLV and attrLV >= notifyLV:
        #            PlayerControl.WorldNotify(0, 'GodWeaponLv', [curPlayer.GetName(), weaponType, notifyLV])
        #=======================================================================
                
        # 神兵特效激活广播
        godWeaponEffectData = IpyGameDataPY.GetIpyGameDataByCondition('GodWeaponEffect', {'GWType':weaponType, "Level":attrLV}, False, False)