From cf78d250e3b1b1b7dad8ececb89b7b2c5df28443 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期六, 01 九月 2018 14:50:08 +0800
Subject: [PATCH] fix:宗门试炼任务接口
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_FamilyWar.py | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_FamilyWar.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_FamilyWar.py
index d1dfe7f..cdceac6 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_FamilyWar.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_FamilyWar.py
@@ -974,10 +974,15 @@
awardPer = awardPerList[-1]
else:
awardPer = awardPerList[groupID - 1]
- rankAwardDictCopy = copy.deepcopy(rankAwardDict)
- for itemList in rankAwardDictCopy.values():
- for itemInfo in itemList:
- itemInfo[1] = max(1, int(itemInfo[1] * awardPer / 100.0))
+ rankAwardDictCopy = {}
+ for rank, itemList in rankAwardDict.items():
+ copyItemList = []
+ for itemID, itemCount, isBind, isPer in itemList:
+ if isPer: # 奖励个数是否受百分比影响, 默认受影响
+ copyItemList.append([itemID, max(1, int(itemCount * awardPer / 100.0)), isBind])
+ else:
+ copyItemList.append([itemID, itemCount, isBind])
+ rankAwardDictCopy[rank] = copyItemList
# 最高级别联赛第一名额外奖励
winnerFirstAwardEx = [] # 获胜方第一名额外奖励
--
Gitblit v1.8.0