mirror of
https://github.com/PaiGramTeam/StarRailDamageCal.git
synced 2024-11-16 04:45:43 +00:00
🐛: Fix missing parameters for new players (#3)
* 🐛: Make more parameters nullable * 🔖: Bump to 1.3.2 * 🐛: Make more and more parameters nullable
This commit is contained in:
parent
ec43d2da38
commit
6e7f8ac0ca
@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "starrail_damage_cal"
|
||||
version = "1.3.1"
|
||||
version = "1.3.2"
|
||||
description = "For StarRail Role Damage Cal"
|
||||
authors = [
|
||||
{name = "qwerdvd", email = "105906879+qwerdvd@users.noreply.github.com"},
|
||||
|
@ -47,31 +47,31 @@ class Challenge(Struct):
|
||||
|
||||
|
||||
class ChallengeInfo(Struct):
|
||||
scheduleMaxLevel: int
|
||||
scheduleMaxLevel: Union[int, None] = None
|
||||
scheduleGroupId: Union[int, None] = None
|
||||
noneScheduleMaxLevel: Union[int, None] = None
|
||||
|
||||
|
||||
class PlayerSpaceInfo(Struct):
|
||||
maxRogueChallengeScore: int
|
||||
equipmentCount: int
|
||||
avatarCount: int
|
||||
achievementCount: int
|
||||
challengeInfo: ChallengeInfo
|
||||
achievementCount: Union[int, None] = field(default=0)
|
||||
equipmentCount: Union[int, None] = field(default=0)
|
||||
maxRogueChallengeScore: Union[int, None] = field(default=0)
|
||||
|
||||
|
||||
class PlayerDetailInfo(Struct):
|
||||
assistAvatarList: Union[List[Avatar], None]
|
||||
platform: Union[int, str]
|
||||
isDisplayAvatar: bool
|
||||
avatarDetailList: Union[List[Avatar], None]
|
||||
uid: int
|
||||
friendCount: int
|
||||
worldLevel: int
|
||||
nickname: str
|
||||
level: int
|
||||
recordInfo: Union[PlayerSpaceInfo, None]
|
||||
headIcon: int
|
||||
friendCount: Union[int, None] = field(default=0)
|
||||
worldLevel: Union[int, None] = field(default=0)
|
||||
avatarDetailList: Union[List[Avatar], None] = None
|
||||
signature: Union[str, None] = None
|
||||
Birthday: Union[int, None] = None
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user