From c96e8ed5c248f3ff2edbee5f4a7d332b0e153a1e Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期三, 05 十二月 2018 14:31:31 +0800
Subject: [PATCH] 5183 仙盟BOSS开启输出
---
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