From 86227d696b4f15c4940a15d4b28a0dc3335ea98f Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 02 七月 2019 16:55:45 +0800
Subject: [PATCH] 7690 【2.0.200】【后端】取消拍卖行获得拍品的广播和邮件
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
index 7a939c1..2e7c3af 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
@@ -4005,7 +4005,7 @@
# 记录玩家升级
DataRecordPack.DR_PlayerUpgrade(curPlayer, curPlayer.GetLV(), GetPlayerTotalExp(curPlayer), lvUpNeedExp)
DataRecordPack.Cache_FightPowerChangeInfo(curPlayer, ChConfig.PowerDownType_LVUP, {'lv':curLV})
-
+ self.__GiveLVMailAward(curLV)
self.__DoLVUPAddPoint() # 升级加点
#self.__DoLvUpAddSkill() # 升级加技能
@@ -4094,6 +4094,15 @@
SetPlayerTotalExp(curPlayer, curTotalExp)
return
+ def __GiveLVMailAward(self, curLV):
+ # 给等级邮件奖励
+ mailLVAwardDict = IpyGameDataPY.GetFuncEvalCfg("MailLVAward", 1, {})
+ if curLV not in mailLVAwardDict:
+ return
+ curPlayer = self.__Player
+ SendMailByKey("LVUpMail", [curPlayer.GetPlayerID()], mailLVAwardDict[curLV], [curLV])
+ return
+
#---------------------------------------------------------------------
def CalcRoleBaseAttr(self, curPlayer):
--
Gitblit v1.8.0