mirror of https://github.com/Mai-with-u/MaiBot.git
Merge branch 'rel_fix' of https://github.com/na10xi27da/MaiBot into rel_fix
commit
7734c5d895
|
|
@ -182,7 +182,7 @@ class RelationshipManager:
|
||||||
level_num = 5 if relationship_value > 1000 else 0
|
level_num = 5 if relationship_value > 1000 else 0
|
||||||
return level_num
|
return level_num
|
||||||
|
|
||||||
def ensure_float(elsf, value, person_id):
|
def ensure_float(self, value, person_id):
|
||||||
"""确保返回浮点数,转换失败返回0.0"""
|
"""确保返回浮点数,转换失败返回0.0"""
|
||||||
if isinstance(value, float):
|
if isinstance(value, float):
|
||||||
return value
|
return value
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue