From 133a8b5682a9b7637b20f2be88d27628fb6ca39a Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期二, 12 二月 2019 15:53:56 +0800
Subject: [PATCH] 5819 【后端】【1.6】运营活动支持对应不同的职业和世界等级(累计充值修改)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActTotalRecharge.py | 20 +++++++-------------
1 files changed, 7 insertions(+), 13 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActTotalRecharge.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActTotalRecharge.py
index dedd5c9..4ea498a 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActTotalRecharge.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActTotalRecharge.py
@@ -134,19 +134,13 @@
return
def __GetItemList(itemDict, job, worldLV):
- #{世界等级范围:[(物品ID,个数,是否绑定), ...]},若物品ID要区分职业则配{世界等级范围:[({职业:物品ID,..},个数,是否绑定), ...]}
- itemList = []
- itemInfoList = GameWorld.GetDictValueByRangeKey(itemDict, worldLV, [])
- for itemInfo in itemInfoList:
- if type(itemInfo[0]) == dict:
- itemID = itemInfo[0].get(job)
- if not itemID:
- GameWorld.ErrLog('累计充值奖励未配置该职业itemDict=%s,job=%s'%(itemDict, job))
- continue
- else:
- itemID = itemInfo[0]
- itemList.append([itemID, itemInfo[1], itemInfo[2]])
- return itemList
+ #{世界等级范围:{职业:[(物品ID,个数,是否绑定), ...]}}
+ itemInfoDict = GameWorld.GetDictValueByRangeKey(itemDict, worldLV, {})
+ if str(job) not in itemInfoDict:
+ GameWorld.ErrLog('累计充值奖励未配置该职业itemDict=%s,job=%s'%(itemDict, job))
+ else:
+ return itemInfoDict[str(job)]
+
def AddTotalRechargeGold(curPlayer, addGold):
if addGold <= 0:
--
Gitblit v1.8.0