Update relationship_manager.py

This commit is contained in:
梦溪畔
2025-03-15 15:41:27 +08:00
committed by GitHub
parent 4644e93385
commit 39170079c3

View File

@@ -299,11 +299,15 @@ class RelationshipManager:
value *= 3/(high_value_count + 3)
elif valuedict[label] < 0 and stancedict[stance] != 0:
value = value*math.exp(old_value/1000)
else:
value = 0
elif old_value < 0:
if valuedict[label] >= 0 and stancedict[stance] != 2:
value = value*math.exp(old_value/1000)
elif valuedict[label] < 0 and stancedict[stance] != 0:
value = value*math.cos(math.pi*old_value/2000)
else:
value = 0
logger.debug(f"[关系变更调试] 立场:{stance} 标签:{label} 关系值:{value} 原值:{old_value}")