From 2af64e0aa0a6d8c4aea5fed79986adfa364a1ace Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 25 十二月 2018 19:38:10 +0800
Subject: [PATCH] 5424 【后端】【1.4】跨服竞技场开发(Add: C1 03 跨服PK玩家历史赛季信息 #tagMCCrossRealmPKPlayerHisSeasonInfo)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_TrialTower.py | 15 +++++++++------
1 files changed, 9 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 1ff0067..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
@@ -38,6 +38,7 @@
import random
import math
+import PlayerBossReborn
g_runeTypeDict = {}
FBDict_Level = 'FBDict_Level' # 副本关卡
@@ -408,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 []
@@ -419,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)
@@ -568,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)
@@ -582,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)
@@ -651,4 +652,6 @@
FBCommon.Notify_FB_Over(curPlayer, overDict)
#成就
PlayerSuccess.DoAddSuccessProgress(curPlayer, ShareDefine.SuccType_TowerSD, 1)
+ #BOSS复活活动
+ PlayerBossReborn.AddBossRebornActionCnt(curPlayer, ChConfig.Def_BRAct_TowerSweep, 1)
return True
\ No newline at end of file
--
Gitblit v1.8.0