38 lines
658 B
Python
38 lines
658 B
Python
from typing import List
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class AscendItem(BaseModel):
|
|
name: str
|
|
count: int
|
|
|
|
|
|
class Costs(BaseModel):
|
|
ascend1: List[AscendItem]
|
|
ascend2: List[AscendItem]
|
|
ascend3: List[AscendItem]
|
|
ascend4: List[AscendItem]
|
|
ascend5: List[AscendItem]
|
|
ascend6: List[AscendItem]
|
|
|
|
|
|
class Weapon(BaseModel):
|
|
name: str
|
|
description: str
|
|
weapontype: str
|
|
rarity: str
|
|
story: str
|
|
baseatk: int
|
|
substat: str
|
|
subvalue: str
|
|
effectname: str
|
|
effect: str
|
|
r1: List[str]
|
|
r2: List[str]
|
|
r3: List[str]
|
|
r4: List[str]
|
|
r5: List[str]
|
|
weaponmaterialtype: str
|
|
costs: Costs
|