From 3e236bdc51a439594c52f0c558006d3f52997bfe Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期六, 08 十二月 2018 10:45:28 +0800
Subject: [PATCH] 4581 上古战场报错修复

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_TrialTower.py |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_TrialTower.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_TrialTower.py
index 752effe..7611ce3 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_TrialTower.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_TrialTower.py
@@ -409,7 +409,7 @@
 
 def __GetEndAward(curPlayer, fbLevel):
     #结算奖励
-    giveItemCountRateList = IpyGameDataPY.GetFuncEvalCfg('RuneAwardCntRate')
+    giveItemCountRateList = GameWorld.GetDictValueByRangeKey(IpyGameDataPY.GetFuncEvalCfg('RuneAwardCntRate', 1, {}), fbLevel, [])
     giveItemCount = GameWorld.GetResultByRandomList(giveItemCountRateList)
     if not giveItemCount:
         return []
@@ -420,7 +420,7 @@
     InitRuneTypeColorInfo(curPlayer)
     
     giveItemList = []
-    runeColorRateDict = IpyGameDataPY.GetFuncEvalCfg('RuneAwardColor')
+    runeColorRateDict = GameWorld.GetDictValueByRangeKey(IpyGameDataPY.GetFuncEvalCfg('RuneAwardColor', 1, {}), fbLevel, {})
     for _ in xrange(giveItemCount):
         giveRuneType = random.choice(runeTypeList)
         
@@ -569,8 +569,8 @@
     giveRuneYsogDict = {}
     giveRunePoint = 0
     giveRuneYsog = 0
-    giveItemCountRateList = IpyGameDataPY.GetFuncEvalCfg('RuneAwardCntRate', 2)
-    runeColorRateDict = IpyGameDataPY.GetFuncEvalCfg('RuneAwardColor')
+    
+    
     ipyDataMgr = IpyGameDataPY.IPY_Data()
     for i in xrange(ipyDataMgr.GetRuneTowerCount()):
         ipyData = ipyDataMgr.GetRuneTowerByIndex(i)
@@ -583,14 +583,14 @@
         giveRunePoint += ipyData.GetSweepRunePoint()
         giveRuneYsogDict[floor] = giveRuneYsogDict.get(floor, 0) + ipyData.GetSweepYsog()
         giveRuneYsog += ipyData.GetSweepYsog()
-        
+        giveItemCountRateList = GameWorld.GetDictValueByRangeKey(IpyGameDataPY.GetFuncEvalCfg('RuneAwardCntRate', 2, {}), towerLV, [])
         giveItemCount = GameWorld.GetResultByRandomList(giveItemCountRateList)
         if not giveItemCount:
             continue
         runeTypeList = GetRuneTypeByTowerLV(towerLV)
         if not runeTypeList:
             continue
-        
+        runeColorRateDict = GameWorld.GetDictValueByRangeKey(IpyGameDataPY.GetFuncEvalCfg('RuneAwardColor', 2, {}), towerLV, {})
         for _ in xrange(giveItemCount):
             giveRuneType = random.choice(runeTypeList)
             

--
Gitblit v1.8.0