mirror of https://github.com/Mai-with-u/MaiBot.git
commit
34233628a6
|
|
@ -8,7 +8,7 @@ class Identity:
|
||||||
|
|
||||||
identity_detail: List[str] # 身份细节描述
|
identity_detail: List[str] # 身份细节描述
|
||||||
height: int # 身高(厘米)
|
height: int # 身高(厘米)
|
||||||
weight: int # 体重(千克)
|
weight: float # 体重(千克)
|
||||||
age: int # 年龄
|
age: int # 年龄
|
||||||
gender: str # 性别
|
gender: str # 性别
|
||||||
appearance: str # 外貌特征
|
appearance: str # 外貌特征
|
||||||
|
|
@ -24,7 +24,7 @@ class Identity:
|
||||||
self,
|
self,
|
||||||
identity_detail: List[str] = None,
|
identity_detail: List[str] = None,
|
||||||
height: int = 0,
|
height: int = 0,
|
||||||
weight: int = 0,
|
weight: float = 0,
|
||||||
age: int = 0,
|
age: int = 0,
|
||||||
gender: str = "",
|
gender: str = "",
|
||||||
appearance: str = "",
|
appearance: str = "",
|
||||||
|
|
@ -61,7 +61,7 @@ class Identity:
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def initialize(
|
def initialize(
|
||||||
cls, identity_detail: List[str], height: int, weight: int, age: int, gender: str, appearance: str
|
cls, identity_detail: List[str], height: int, weight: float, age: int, gender: str, appearance: str
|
||||||
) -> "Identity":
|
) -> "Identity":
|
||||||
"""初始化身份特征
|
"""初始化身份特征
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue