From a075f7841fb2d0a3b32bf10c8bc2df5bf02d6acb Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期日, 14 十二月 2025 14:24:28 +0800
Subject: [PATCH] 129 【战斗】战斗系统-服务端(贾诩所有技能;5022效果支持配置buff额外属性计算方式;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/Success.py |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/Success.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/Success.py
index 718f47b..9d55295 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/Success.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/Success.py
@@ -40,15 +40,17 @@
         succType = msgList[1] if len(msgList) > 1 else 0
         addValue = msgList[2] if len(msgList) > 2 else 1
         conds = msgList[3:]
-        GameWorld.DebugAnswer(curPlayer, "增加成就进度: T:%s,V:%s,C:%s" % (succType, addValue, conds))
-        PlayerSuccess.DoAddSuccessProgress(curPlayer, succType, addValue, conds)
+        PlayerSuccess.DoAddSuccessProgress(curPlayer, succType, addValue, conds, delayCalc=False)
+        curValue = PlayerSuccess.GetSuccValue(curPlayer, succType, conds)
+        GameWorld.DebugAnswer(curPlayer, "增加成就进度: T:%s,A:%s,V:%s,C:%s," % (succType, addValue, curValue, conds))
     # 更新进度
     elif cmdType == "u":
         succType = msgList[1] if len(msgList) > 1 else 0
         newCnt = msgList[2] if len(msgList) > 2 else 1
         conds = msgList[3:]
-        GameWorld.DebugAnswer(curPlayer, "更新成就进度: T:%s,V:%s,C:%s" % (succType, addValue, conds))
         PlayerSuccess.UptateSuccessProgress(curPlayer, succType, newCnt, conds)
+        curValue = PlayerSuccess.GetSuccValue(curPlayer, succType, conds)
+        GameWorld.DebugAnswer(curPlayer, "更新成就进度: T:%s,V:%s,C:%s" % (succType, curValue, conds))
     return
 
 def __DoResetSuccess(curPlayer, msgList, resetValue=True):

--
Gitblit v1.8.0