From d79ccd070582a1f297e4ea9f63a218fab675bcb6 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期二, 21 五月 2019 14:05:46 +0800
Subject: [PATCH] 6501 新增任务接口

---
 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