Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,13 @@ class SwapItem(TypedDict):
class ItemItem(TypedDict):
"""物品项目"""

new_stat_log: str
bosslist: int
bosstitle: str
bsreward: int
difficulty: int
exreward: list[int]
exrewardpro: str
id: int
mon: int
sebossid: int
unlimite: int


Expand Down Expand Up @@ -97,7 +94,6 @@ def parse(self, data: bytes) -> ElvenKingTrialExchangeConfig:
count = reader.ReadSignedInt()
for _ in range(count):
# 按照C#代码中的字段顺序读取
new_stat_log = reader.ReadUTFBytesWithLength()
bosslist = reader.ReadSignedInt()
bosstitle = reader.ReadUTFBytesWithLength()
bsreward = reader.ReadSignedInt()
Expand All @@ -112,23 +108,18 @@ def parse(self, data: bytes) -> ElvenKingTrialExchangeConfig:
reader.ReadSignedInt() for _ in range(exreward_count)
]

exrewardpro = reader.ReadUTFBytesWithLength()
item_id = reader.ReadSignedInt()
mon = reader.ReadSignedInt()
sebossid = reader.ReadSignedInt()
unlimite = reader.ReadSignedInt()

item: ItemItem = {
'new_stat_log': new_stat_log,
'bosslist': bosslist,
'bosstitle': bosstitle,
'bsreward': bsreward,
'difficulty': difficulty,
'exreward': exreward,
'exrewardpro': exrewardpro,
'id': item_id,
'mon': mon,
'sebossid': sebossid,
'unlimite': unlimite,
}
items_data.append(item)
Expand Down
Loading