Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions packages/solaris/solaris/parse/parsers/moves.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class UnityMoveItem(TypedDict):
priority: int
side_effect: list[int]
side_effect_arg: list[int]
soercemove: int
type: int
info: str
ordinary: int
Expand Down Expand Up @@ -105,6 +106,7 @@ def parse(self, data: bytes) -> MovesConfig:
'priority': 0,
'side_effect': [],
'side_effect_arg': [],
'soercemove': 0,
'type': 0,
'info': '',
'ordinary': 0,
Expand Down Expand Up @@ -148,6 +150,7 @@ def parse(self, data: bytes) -> MovesConfig:
]

# 完成剩余字段
move_item['soercemove'] = reader.ReadSignedInt()
move_item['type'] = reader.ReadSignedInt()
move_item['info'] = reader.ReadUTFBytesWithLength()
move_item['ordinary'] = reader.ReadSignedInt()
Expand Down
2 changes: 0 additions & 2 deletions packages/solaris/solaris/parse/parsers/pvp_cost_mode_vote.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ class PvpCostModeVoteInfo(TypedDict):
subkey: int
time1: int
time2: int
time3: int
type: int
votenumber: int
votepet: str
Expand Down Expand Up @@ -54,7 +53,6 @@ def parse(self, data: bytes) -> PvpCostModeVoteConfig:
'subkey': reader.ReadSignedInt(),
'time1': reader.ReadSignedInt(),
'time2': reader.ReadSignedInt(),
'time3': reader.ReadSignedInt(),
'type': reader.ReadSignedInt(),
'votenumber': reader.ReadSignedInt(),
'votepet': reader.ReadUTFBytesWithLength(),
Expand Down
Loading