From 09d233e9f8a9586d63df4562a4209a5d7c97355f Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期二, 14 五月 2019 21:08:27 +0800 Subject: [PATCH] 6788 【后端】【2.0】增加灵根丹 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerRune.py | 39 +-------------------------------------- 1 files changed, 1 insertions(+), 38 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerRune.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerRune.py index 8d5137f..d08833e 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerRune.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerRune.py @@ -38,42 +38,6 @@ # @param curPlayer 玩家 # @return None def PlayerRuneLogin(curPlayer): - if not GameWorld.GetDictValueByBit(curPlayer, ChConfig.Def_Player_Dict_VersionFix, ChConfig.Def_VerFix_RuneSource): - GameWorld.SetDictValueByBit(curPlayer, ChConfig.Def_Player_Dict_VersionFix, ChConfig.Def_VerFix_RuneSource, 1) - runeHoleCnt = IpyGameDataPY.GetFuncCfg("RuneUnlock", 4) - for RuneNum in xrange(1, runeHoleCnt + 1): - RuneData = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_Rune_Data % RuneNum, 0) - if not RuneData: - continue - RuneItemID = ItemControler.GetRuneItemID(RuneData) - ipyData = IpyGameDataPY.GetIpyGameDataNotLog('RuneCompound', RuneItemID) - if not ipyData: - continue - RuneSource = ItemControler.GetRuneItemSource(RuneData) - if RuneSource != ChConfig.Item_Source_Compound: - RuneItemPlusLV = ItemControler.GetRuneItemPlusLV(RuneData) - RuneIsLock = ItemControler.GetRuneItemIsLock(RuneData) - updRuneData = ItemControler.GetRuneItemKeyData(RuneItemID, RuneItemPlusLV, RuneIsLock, ChConfig.Item_Source_Compound) - PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_Rune_Data % RuneNum, updRuneData) - GameWorld.Log('上线修复双属性符印来源 RuneNum=%s,oldRuneData=%s,updRuneData=%s'%(RuneNum, RuneData, updRuneData)) - packIndex = ShareDefine.rptRune - for place in xrange(ItemCommon.GetVPackCnt(packIndex)): - RuneData = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_VPackItem % (packIndex, place)) - if not RuneData: - continue - RuneItemID = ItemControler.GetRuneItemID(RuneData) - ipyData = IpyGameDataPY.GetIpyGameDataNotLog('RuneCompound', RuneItemID) - if not ipyData: - continue - RuneSource = ItemControler.GetRuneItemSource(RuneData) - if RuneSource != ChConfig.Item_Source_Compound: - RuneItemPlusLV = ItemControler.GetRuneItemPlusLV(RuneData) - RuneIsLock = ItemControler.GetRuneItemIsLock(RuneData) - updRuneData = ItemControler.GetRuneItemKeyData(RuneItemID, RuneItemPlusLV, RuneIsLock, ChConfig.Item_Source_Compound) - ItemControler.SetVPackItemKeyData(curPlayer, ShareDefine.rptRune, place, updRuneData) - GameWorld.Log('上线修复双属性符印来源 place=%s,oldRuneData=%s,updRuneData=%s'%(place, RuneData, updRuneData)) - - DoUnlockRuneHole(curPlayer, False) Sync_RuneInfo(curPlayer) return @@ -428,8 +392,7 @@ totalMJ = 0 packIndex = ShareDefine.rptRune placeList = xrange(ItemCommon.GetVPackCnt(packIndex)) if (isAll or clientData.QualityCnt > 0) else clientData.PlaceIndexList - wmpIpyData = PlayerMagicWeapon.GetMagicWeaponPrivilege(curPlayer, ChConfig.MWPrivilege_RuneDecompose) - addPer = int(wmpIpyData.GetEffectValue()) if wmpIpyData else 0 + addPer = 0 for place in placeList: RuneData = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_VPackItem % (packIndex, place)) if not RuneData: -- Gitblit v1.8.0