From 5e37b776c5d1cac34db6808fd2d2f70f825aa974 Mon Sep 17 00:00:00 2001 From: bridge Date: Thu, 23 Oct 2025 23:14:53 +0800 Subject: [PATCH] update cooldown --- src/classes/action/cooldown.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/classes/action/cooldown.py b/src/classes/action/cooldown.py index 559f717..8f0e6a6 100644 --- a/src/classes/action/cooldown.py +++ b/src/classes/action/cooldown.py @@ -14,16 +14,6 @@ def cooldown_action(cls: type) -> type: if cd <= 0: return cls - # 追加提示到 COMMENT(若存在) - try: - comment = getattr(cls, "COMMENT", "") - if isinstance(comment, str) and comment.strip(): - if f"冷却:{cd}月" not in comment: - setattr(cls, "COMMENT", f"{comment}(冷却:{cd}月)") - except Exception: - # 避免 COMMENT 异常影响核心逻辑 - pass - # 包装 can_start if hasattr(cls, "can_start"): original_can_start = cls.can_start @@ -52,7 +42,6 @@ def cooldown_action(cls: type) -> type: return events cls.finish = finish # type: ignore[assignment] - return cls