4.2.0
This commit is contained in:
37
src/types/weapons.py
Normal file
37
src/types/weapons.py
Normal file
@@ -0,0 +1,37 @@
|
||||
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
|
Reference in New Issue
Block a user