From cb013a1b1c840cd2d00d94ebb10f0a458839ccbc Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 09 一月 2026 22:20:43 +0800
Subject: [PATCH] 271 【内政】古宝系统-服务端(GM命令: Gubao 增加一键设置所有;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/Dingjunge.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/Dingjunge.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/Dingjunge.py
index 41143e0..c01e5c1 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/Dingjunge.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/Dingjunge.py
@@ -26,7 +26,7 @@
if not paramList:
GameWorld.DebugAnswer(curPlayer, "定军阁进度: Dingjunge 今日关卡ID 历史关卡ID")
- GameWorld.DebugAnswer(curPlayer, "增加效果数: Dingjunge e 增加效果次数")
+ GameWorld.DebugAnswer(curPlayer, "增加效果数: Dingjunge e 加效果数 [自动选择]")
GameWorld.DebugAnswer(curPlayer, "待选择效果: Dingjunge s 效果ID [效果ID ...]")
return
mapID = ChConfig.Def_FBMapID_Dingjunge
@@ -34,6 +34,9 @@
if value1 == "e":
addEffCnt = paramList[1] if len(paramList) > 1 else 1
+ autoSelect = paramList[2] if len(paramList) > 2 else 0
+ if autoSelect and not curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_DJGEffAuto):
+ PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_DJGEffAuto, 1)
GameLogic_Dingjunge.GivePassLayerEff(curPlayer, addEffCnt)
elif value1 == "s":
setEffIDList = paramList[1:]
--
Gitblit v1.8.0