xdh
2018-12-05 039380507f8725e17c3cff5e7c36d1833b2c52ff
5240 【后端】【1.3】【1.3.100】仙族法宝激活增加战力
3个文件已修改
10 ■■■■ 已修改文件
PySysDB/PySysDBPY.h 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerMagicWeapon.py 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
PySysDB/PySysDBPY.h
@@ -666,6 +666,7 @@
    DWORD        ActiveMWID;    //激活法宝ID
    list        ItemAward;    //物品奖励[itemID,cnt,isbind]
    DWORD        ActiveSoulID;    //激活魂ID
    DWORD        PowerEx;    //额外固定战力
};
//法宝特权表
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py
@@ -560,6 +560,7 @@
                        ("DWORD", "ActiveMWID", 0),
                        ("list", "ItemAward", 0),
                        ("DWORD", "ActiveSoulID", 0),
                        ("DWORD", "PowerEx", 0),
                        ),
                "TreasurePrivilege":(
@@ -2220,6 +2221,7 @@
        self.ActiveMWID = 0
        self.ItemAward = []
        self.ActiveSoulID = 0
        self.PowerEx = 0
        return
        
    def GetMWID(self): return self.MWID # 法宝ID
@@ -2230,6 +2232,7 @@
    def GetActiveMWID(self): return self.ActiveMWID # 激活法宝ID
    def GetItemAward(self): return self.ItemAward # 物品奖励[itemID,cnt,isbind]
    def GetActiveSoulID(self): return self.ActiveSoulID # 激活魂ID
    def GetPowerEx(self): return self.PowerEx # 额外固定战力
# 法宝特权表
class IPY_TreasurePrivilege():
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerMagicWeapon.py
@@ -500,7 +500,8 @@
    allAttrList1 = [{} for _ in range(4)] #人族法宝
    allAttrList2 = [{} for _ in range(4)] #魔族法宝
    allAttrList3 = [{} for _ in range(4)] #仙族法宝
    mwTypeMfpTypeDict = {1:ShareDefine.Def_MFPType_MagicWeapon1,2:ShareDefine.Def_MFPType_MagicWeapon2,3:ShareDefine.Def_MFPType_MagicWeapon3}
    addPowerDict = {} #额外战力
    signDayMWID = IpyGameDataPY.GetFuncCfg('MWSignDayAttr', 2)
    ipyDataMgr = IpyGameDataPY.IPY_Data()
    for i in xrange(ipyDataMgr.GetTreasureCount()):
@@ -520,6 +521,7 @@
        #=======================================================================
        treasureType = treasureIpyData.GetTreasureType()
        if isActive:
            mfpType = mwTypeMfpTypeDict.get(treasureType, ShareDefine.Def_MFPType_Role)
            #等级属性
            curMWLV = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_MagicWeaponLV % magicWeaponID)
            for lv in xrange(curMWLV+1):
@@ -527,6 +529,7 @@
                if upIpyData:
                    attrDict = upIpyData.GetAddAttr()
                    GameWorld.AddDictValue(allAttrDict, attrDict)
                    addPowerDict[mfpType] = addPowerDict.get(mfpType, 0) + upIpyData.GetPowerEx()
                    
            if magicWeaponID == signDayMWID:
                #签到属性
@@ -570,7 +573,6 @@
    PlayerControl.SetCalcAttrListValue(curPlayer, ChConfig.Def_CalcAttrFunc_MagicWeapon3, allAttrList3)
    #技能解锁战力
    nextSkillDict = GetPotentialsSkillInfo(curPlayer)
    addPowerDict = {}
    for skillID, info in nextSkillDict.items():
        needSkilllv, nextSkillID, addPower = info
        skillManager = curPlayer.GetSkillManager()