From b19236f4da0999ccbc22eb562a7faa34b428b684 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期二, 28 八月 2018 20:42:03 +0800
Subject: [PATCH] 2996 子 【设计】新增一个可均摊的技能 / 【后端】新增一个伤害均摊的技能, 修复均摊保底数值为1%
---
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