This commit is contained in:
SengokuCola
2025-06-25 21:31:35 +08:00
2 changed files with 7 additions and 5 deletions

View File

@@ -142,15 +142,13 @@ class ExpressionSelector:
"style"
):
current_count = expr.get("count", 1)
# 简单加0.1但限制最高为5
new_count = min(current_count + increment, 5.0)
expr["count"] = new_count
expr["last_active_time"] = time.time()
logger.info(
f"表达方式激活: 原count={current_count:.2f}, 增量={increment}, 新count={new_count:.2f}"
)
logger.info(f"表达方式激活: 原count={current_count:.2f}, 增量={increment}, 新count={new_count:.2f}")
break
# 保存更新后的文件