From ed212e33cd50eca6ff3b7d5f4cac7de975a1e0b7 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 17 七月 2019 15:20:59 +0800
Subject: [PATCH] 8017 【开发】【主干】玩家退出副本或自定义场景时,如果非死亡状态则血量恢复满血状态
---
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