From 2a1039feedbd432ddadb8bc7d01bf1a173b77142 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 31 一月 2019 14:09:50 +0800
Subject: [PATCH] 6087 【后端】【1.5.200】春节红包雨活动(增加配置未用完的次数过天可否累加)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/Item_AddLV.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/Item_AddLV.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/Item_AddLV.py
index ffacd56..415ae9d 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/Item_AddLV.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/Item_AddLV.py
@@ -69,7 +69,7 @@
                           % (curLV, maxLV), curPlayer.GetPlayerID())
             break
         
-        addExp = __DoAddLVEx(curPlayer, giveLV, isKeepExp, isOnlyLVUp, lvLimit)
+        addExp = DoAddLVEx(curPlayer, giveLV, isKeepExp, isOnlyLVUp, lvLimit)
         if not addExp:
             break
         
@@ -98,7 +98,7 @@
 # @param isOnlyLVUp 是否直接提升固定等级
 # @param formulaIndex 给与经验的公式索引
 # @return 使用结果字典信息
-def __DoAddLVEx(curPlayer, giveLV, isKeepExp, isOnlyLVUp, lvLimit):
+def DoAddLVEx(curPlayer, giveLV, isKeepExp, isOnlyLVUp, lvLimit):
         
     curLV = curPlayer.GetLV()
     lvUpNeedExp = PlayerControl.GetTotalExpByPlayerLv(curLV)
@@ -107,7 +107,7 @@
         # 满级
         if lvUpNeedExp <= 0:
             PlayerControl.NotifyCode(curPlayer, "GeRen_liubo_607994")
-            return False
+            return 0
         
         giveExp = 0
         for lv in range(curLV, curLV + giveLV):

--
Gitblit v1.8.0