mirror of https://github.com/Mai-with-u/MaiBot.git
pull/937/head
parent
5aede24af9
commit
5f2fac4a6d
|
|
@ -320,7 +320,7 @@ async def adjust_relationship_value_nonlinear(old_value: float, raw_adjustment:
|
|||
if value >= 0:
|
||||
value = value * math.cos(math.pi * old_value / 2000)
|
||||
if old_value > 500:
|
||||
rdict = person_info_manager.get_specific_value_list("relationship_value", lambda x: x > 700)
|
||||
rdict = await person_info_manager.get_specific_value_list("relationship_value", lambda x: x > 700)
|
||||
high_value_count = len(rdict)
|
||||
if old_value > 700:
|
||||
value *= 3 / (high_value_count + 2)
|
||||
|
|
|
|||
Loading…
Reference in New Issue