HonkaiStarRailWikiDataParser/models/light_cone.py

46 lines
827 B
Python
Raw Normal View History

2023-04-23 14:06:11 +00:00
# 光锥
from pydantic import BaseModel
2023-04-28 11:32:53 +00:00
from .enums import Quality, Destiny
from .material import Material
2023-04-23 14:06:11 +00:00
class LightConeItem(BaseModel):
2023-04-24 12:29:14 +00:00
item: Material
2023-04-23 14:06:11 +00:00
"""物品"""
count: int
"""数量"""
class LightConePromote(BaseModel):
2023-04-24 12:29:14 +00:00
required_level: int
2023-04-23 14:06:11 +00:00
"""突破所需等级"""
promote_level: int = 0
"""突破等级"""
max_level: int
"""解锁的等级上限"""
coin: int = 0
"""信用点"""
items: list[LightConeItem]
"""突破所需材料"""
class LightCone(BaseModel):
id: int
""""光锥ID"""
name: str
"""名称"""
desc: str
"""描述"""
icon: str
"""图标"""
big_pic: str
"""大图"""
quality: Quality
"""稀有度"""
destiny: Destiny
"""命途"""
promote: list[LightConePromote]
"""晋阶信息"""