From 899cbe5a67b93eac7d60663426bb6b7959271cc1 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 30 八月 2021 14:34:24 +0800
Subject: [PATCH] 1111 【后端】【bt3】【bt3_1.100.1】【主干】【gt_1.101.1】回本服后刷新本服角色信息时增加刷新视野逻辑

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunnerValue.py |   39 ++++++++++++++++++++++++---------------
 1 files changed, 24 insertions(+), 15 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunnerValue.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunnerValue.py
index 1cbf72d..3210293 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunnerValue.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunnerValue.py
@@ -27,6 +27,7 @@
 import GameWorld
 import PlayerControl
 import QuestCommon
+import GameObj
 #---------------------------------------------------------------------
 ##获取服务器任务状态, State
 # @param curPlayer 玩家实例
@@ -204,7 +205,27 @@
     value = max(GameWorld.ToIntDef(value, 0), 1)
         
     curMission.AddProperty(conditionName,value)
-
+#---------------------------------------------------------------------
+##删除任务值
+# @param curPlayer 玩家实例
+# @param curMission 任务实例
+# @param conditionName 节点名
+# @param value 值
+# @return 返回值无意义
+# @remarks 添加任务值
+def Var_Del(curPlayer, curMission, conditionName, value):
+    curMission.DelProperty(conditionName)
+#---------------------------------------------------------------------
+##减少任务值
+# @param curPlayer 玩家实例
+# @param curMission 任务实例
+# @param conditionName 节点名
+# @param value 值
+# @return 返回值无意义
+# @remarks 添加任务值
+def Var_Sub(curPlayer, curMission, conditionName, value):
+    value = max(GameWorld.ToIntDef(value, 0), 1)
+    curMission.SubProperty(conditionName, value)
 #---------------------------------------------------------------------
 ##随机设置任务值
 # @param curPlayer 玩家实例
@@ -269,18 +290,6 @@
     return
 
 #---------------------------------------------------------------------
-##获取玩家等级
-# @param curPlayer 玩家实例
-# @return 返回值, 玩家等级, 转生按161算
-# @remarks 获取玩家等级
-def __GetReincarnationLV(curPlayer):
-    curReinLV = curPlayer.GetReincarnationLv()
-    if curReinLV > 0:
-        return 161
-    
-    return curPlayer.GetLV()
-
-#---------------------------------------------------------------------
 ##每周工资在线时间替换
 # @param curPlayer 玩家实例
 # @param curMission 任务实例
@@ -318,8 +327,8 @@
 # @return 金额
 # @remarks 获得墓地医生恢复所耗金钱
 def GetHealthLostMoney(curPlayer):
-    curHP = curPlayer.GetHP()
-    maxHP = curPlayer.GetMaxHP()
+    curHP = GameObj.GetHP(curPlayer)
+    maxHP = GameObj.GetMaxHP(curPlayer)
     curMP = curPlayer.GetMP()
     maxMP = curPlayer.GetMaxMP()
     lv = curPlayer.GetLV()

--
Gitblit v1.8.0