From adbac922fdce017605381c4040d4bedbc24dcd1a Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 31 十二月 2025 19:50:37 +0800
Subject: [PATCH] 358 【内政】红颜系统-服务端(红颜效果支持多个相同效果叠加;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py |   35 ++++++++++++++++++++++++++++++++---
 1 files changed, 32 insertions(+), 3 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py
index 07fd443..664f69a 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py
@@ -7290,6 +7290,8 @@
     TreasureType = 0    #(BYTE TreasureType)//寻宝类型
     WishCnt = 0    #(BYTE WishCnt)
     WishIDList = list()    #(vector<DWORD> WishIDList)// 选择的寻宝物品库中的数据ID,注意不是库ID
+    WishCardUseCnt = 0    #(BYTE WishCardUseCnt)
+    WishCardUseLibIDList = list()    #(vector<WORD> WishCardUseLibIDList)// 使用心愿卡的库ID列表
     data = None
 
     def __init__(self):
@@ -7306,6 +7308,10 @@
         for i in range(self.WishCnt):
             value,_pos=CommFunc.ReadDWORD(_lpData,_pos)
             self.WishIDList.append(value)
+        self.WishCardUseCnt,_pos = CommFunc.ReadBYTE(_lpData, _pos)
+        for i in range(self.WishCardUseCnt):
+            value,_pos=CommFunc.ReadWORD(_lpData,_pos)
+            self.WishCardUseLibIDList.append(value)
         return _pos
 
     def Clear(self):
@@ -7316,6 +7322,8 @@
         self.TreasureType = 0
         self.WishCnt = 0
         self.WishIDList = list()
+        self.WishCardUseCnt = 0
+        self.WishCardUseLibIDList = list()
         return
 
     def GetLength(self):
@@ -7324,6 +7332,8 @@
         length += 1
         length += 1
         length += 4 * self.WishCnt
+        length += 1
+        length += 2 * self.WishCardUseCnt
 
         return length
 
@@ -7334,6 +7344,9 @@
         data = CommFunc.WriteBYTE(data, self.WishCnt)
         for i in range(self.WishCnt):
             data = CommFunc.WriteDWORD(data, self.WishIDList[i])
+        data = CommFunc.WriteBYTE(data, self.WishCardUseCnt)
+        for i in range(self.WishCardUseCnt):
+            data = CommFunc.WriteWORD(data, self.WishCardUseLibIDList[i])
         return data
 
     def OutputString(self):
@@ -7341,12 +7354,16 @@
                                 Head:%s,
                                 TreasureType:%d,
                                 WishCnt:%d,
-                                WishIDList:%s
+                                WishIDList:%s,
+                                WishCardUseCnt:%d,
+                                WishCardUseLibIDList:%s
                                 '''\
                                 %(
                                 self.Head.OutputString(),
                                 self.TreasureType,
                                 self.WishCnt,
+                                "...",
+                                self.WishCardUseCnt,
                                 "..."
                                 )
         return DumpString
@@ -12083,6 +12100,9 @@
                   ("Cmd", c_ubyte),
                   ("SubCmd", c_ubyte),
                   ("ItemIndex", c_ushort),    #武将物品所在武将背包位置索引
+                  ("LVReset", c_ubyte),    #重置等级
+                  ("BreakReset", c_ubyte),    #重置突破
+                  ("AwakeReset", c_ubyte),    #重置觉醒
                   ]
 
     def __init__(self):
@@ -12100,6 +12120,9 @@
         self.Cmd = 0xB2
         self.SubCmd = 0x39
         self.ItemIndex = 0
+        self.LVReset = 0
+        self.BreakReset = 0
+        self.AwakeReset = 0
         return
 
     def GetLength(self):
@@ -12112,12 +12135,18 @@
         DumpString = '''// B2 39 武将重生 //tagCSHeroRebirth:
                                 Cmd:%s,
                                 SubCmd:%s,
-                                ItemIndex:%d
+                                ItemIndex:%d,
+                                LVReset:%d,
+                                BreakReset:%d,
+                                AwakeReset:%d
                                 '''\
                                 %(
                                 self.Cmd,
                                 self.SubCmd,
-                                self.ItemIndex
+                                self.ItemIndex,
+                                self.LVReset,
+                                self.BreakReset,
+                                self.AwakeReset
                                 )
         return DumpString
 

--
Gitblit v1.8.0