From 6d52c69be5170f6518ac9be8aa05bae7bfd26b54 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期一, 21 七月 2025 14:24:43 +0800 Subject: [PATCH] 121 【武将】武将系统-服务端(去除旧属性;优化命令Hero、PrintFightPower;优化武将技能战力计算;) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py | 116 ---------------------------------------------------------- 1 files changed, 0 insertions(+), 116 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py index 8777856..7d8db7d 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py @@ -3873,122 +3873,6 @@ #------------------------------------------------------ -# A3 39 玩家属性果实已使用个数信息#tagMCAttrFruitEatCntList - -class tagMCAttrFruitEatCnt(Structure): - _pack_ = 1 - _fields_ = [ - ("ItemID", c_int), #果实物品ID - ("EatCnt", c_int), #已使用个数 - ("ItemAddCnt", c_int), #增幅丹增加上限 - ("ItemBreakCnt", c_int), #增幅丹突破次数 - ] - - def __init__(self): - self.Clear() - return - - def ReadData(self, stringData, _pos=0, _len=0): - self.Clear() - memmove(addressof(self), stringData[_pos:], self.GetLength()) - return _pos + self.GetLength() - - def Clear(self): - self.ItemID = 0 - self.EatCnt = 0 - self.ItemAddCnt = 0 - self.ItemBreakCnt = 0 - return - - def GetLength(self): - return sizeof(tagMCAttrFruitEatCnt) - - def GetBuffer(self): - return string_at(addressof(self), self.GetLength()) - - def OutputString(self): - DumpString = '''// A3 39 玩家属性果实已使用个数信息//tagMCAttrFruitEatCntList: - ItemID:%d, - EatCnt:%d, - ItemAddCnt:%d, - ItemBreakCnt:%d - '''\ - %( - self.ItemID, - self.EatCnt, - self.ItemAddCnt, - self.ItemBreakCnt - ) - return DumpString - - -class tagMCAttrFruitEatCntList(Structure): - Head = tagHead() - count = 0 #(BYTE count)//信息个数 - EatCntList = list() #(vector<tagMCAttrFruitEatCnt> EatCntList) - data = None - - def __init__(self): - self.Clear() - self.Head.Cmd = 0xA3 - self.Head.SubCmd = 0x39 - return - - def ReadData(self, _lpData, _pos=0, _Len=0): - self.Clear() - _pos = self.Head.ReadData(_lpData, _pos) - self.count,_pos = CommFunc.ReadBYTE(_lpData, _pos) - for i in range(self.count): - temEatCntList = tagMCAttrFruitEatCnt() - _pos = temEatCntList.ReadData(_lpData, _pos) - self.EatCntList.append(temEatCntList) - return _pos - - def Clear(self): - self.Head = tagHead() - self.Head.Clear() - self.Head.Cmd = 0xA3 - self.Head.SubCmd = 0x39 - self.count = 0 - self.EatCntList = list() - return - - def GetLength(self): - length = 0 - length += self.Head.GetLength() - length += 1 - for i in range(self.count): - length += self.EatCntList[i].GetLength() - - return length - - def GetBuffer(self): - data = '' - data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer()) - data = CommFunc.WriteBYTE(data, self.count) - for i in range(self.count): - data = CommFunc.WriteString(data, self.EatCntList[i].GetLength(), self.EatCntList[i].GetBuffer()) - return data - - def OutputString(self): - DumpString = ''' - Head:%s, - count:%d, - EatCntList:%s - '''\ - %( - self.Head.OutputString(), - self.count, - "..." - ) - return DumpString - - -m_NAtagMCAttrFruitEatCntList=tagMCAttrFruitEatCntList() -ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCAttrFruitEatCntList.Head.Cmd,m_NAtagMCAttrFruitEatCntList.Head.SubCmd))] = m_NAtagMCAttrFruitEatCntList - - -#------------------------------------------------------ #A3 B7 当日累计攻击boss次数 #tagMCBOSSAttactCnt class tagMCBossCntInfo(Structure): -- Gitblit v1.8.0