From e6a2d6be0ba69afd50f95837f82a86e2cb71db70 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 07 八月 2025 18:48:19 +0800
Subject: [PATCH] 80 【常规】背包-服务端(A801通知优化,单物品总数量支持超20亿;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py | 3 ++-
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py | 6 +++++-
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py
index 13c0464..b9d87ad 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py
@@ -18831,7 +18831,8 @@
_pack_ = 1
_fields_ = [
("ItemID", c_int),
- ("Count", c_int),
+ ("Count", c_int), # 求余亿部分,个别功能单次汇总可能超20亿,如批量遣散,固统一规则
+ ("CountEx", c_int), # 整除亿部分
("IsBind", c_ubyte),
]
@@ -18847,6 +18848,7 @@
def Clear(self):
self.ItemID = 0
self.Count = 0
+ self.CountEx = 0
self.IsBind = 0
return
@@ -18860,11 +18862,13 @@
DumpString = '''// A8 01 获得奖励信息 //tagMCGiveAwardInfo:
ItemID:%d,
Count:%d,
+ CountEx:%d,
IsBind:%d
'''\
%(
self.ItemID,
self.Count,
+ self.CountEx,
self.IsBind
)
return DumpString
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py
index 57071d1..7edbaed 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py
@@ -2445,7 +2445,8 @@
continue
item = ChPyNetSendPack.tagMCGiveAwardItem()
item.ItemID = itemID
- item.Count = itemCount
+ item.Count = itemCount % ChConfig.Def_PerPointValue
+ item.CountEx = itemCount / ChConfig.Def_PerPointValue
item.IsBind = isBind
clientPack.ItemList.append(item)
clientPack.ItemLen = len(clientPack.ItemList)
--
Gitblit v1.8.0