From c80c8718c507a7e52f065eee9e35bb4f27573f48 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 05 十二月 2025 11:07:07 +0800
Subject: [PATCH] 374 【活动内容】开服庆典-服务端
---
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