From 1d39e3c87c38b8dff5cc463b8f49b840202d0767 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期三, 19 六月 2024 14:14:41 +0800
Subject: [PATCH] 10182 【越南】【香港】【砍树】【主干】玩家数据扩展和排行榜扩展

---
 ServerPython/CoreServerGroup/GameServer/Script/ChPyNetSendPack.py |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetSendPack.py b/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetSendPack.py
index ab31c97..ee24a33 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetSendPack.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetSendPack.py
@@ -38376,6 +38376,7 @@
     RMB = 0    #(DWORD RMB)//所需RMB,元
     GiftItemCount = 0    #(BYTE GiftItemCount)// 礼包物品数
     ItemInfo = list()    #(vector<tagMCDailyGiftbagItem> ItemInfo)// 物品信息
+    Discount = 0    #(WORD Discount)// 折扣力度百分比
     data = None
 
     def __init__(self):
@@ -38394,6 +38395,7 @@
             temItemInfo = tagMCDailyGiftbagItem()
             _pos = temItemInfo.ReadData(_lpData, _pos)
             self.ItemInfo.append(temItemInfo)
+        self.Discount,_pos = CommFunc.ReadWORD(_lpData, _pos)
         return _pos
 
     def Clear(self):
@@ -38404,6 +38406,7 @@
         self.RMB = 0
         self.GiftItemCount = 0
         self.ItemInfo = list()
+        self.Discount = 0
         return
 
     def GetLength(self):
@@ -38416,6 +38419,7 @@
         length += 1
         for i in range(self.GiftItemCount):
             length += self.ItemInfo[i].GetLength()
+        length += 2
 
         return length
 
@@ -38429,6 +38433,7 @@
         data = CommFunc.WriteBYTE(data, self.GiftItemCount)
         for i in range(self.GiftItemCount):
             data = CommFunc.WriteString(data, self.ItemInfo[i].GetLength(), self.ItemInfo[i].GetBuffer())
+        data = CommFunc.WriteWORD(data, self.Discount)
         return data
 
     def OutputString(self):
@@ -38439,7 +38444,8 @@
                                 BuyCountLimit:%d,
                                 RMB:%d,
                                 GiftItemCount:%d,
-                                ItemInfo:%s
+                                ItemInfo:%s,
+                                Discount:%d
                                 '''\
                                 %(
                                 self.GiftID,
@@ -38448,7 +38454,8 @@
                                 self.BuyCountLimit,
                                 self.RMB,
                                 self.GiftItemCount,
-                                "..."
+                                "...",
+                                self.Discount
                                 )
         return DumpString
 

--
Gitblit v1.8.0