From c63ffd10aecb12b2e09dae603cf9a0f824f6482c Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 10 十二月 2025 15:46:15 +0800
Subject: [PATCH] 16 卡牌服务端(合成目标物品与材料物品不在同一背包时支持合成;)
---
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