80 【常规】背包-服务端(A801通知优化,单物品总数量支持超20亿;)
2个文件已修改
9 ■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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
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)