Files
noname-shuying/mengsan/cards/description.js
T
Diuse 9e1732d2f8 fixed # 补全部分卡牌
fixed # 修复部分已知BUG
2026-10-04 19:32:38 +08:00

9 lines
524 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// 普通使用费用由牌面单独显示;效果中的获能、减费与 X 消耗规则仍须保留。
export function cleanCardDescription(value) {
if (typeof value !== "string") return value;
return value.trim()
.replace(/^梦三\s*[::]\s*/, "")
.replace(/^(?:主动使用消耗\s*\d+\s*(?:点)?费用|响应不消耗费用|\d+\s*(?:点)?费(?:用)?)[。;::,,]\s*/, "")
.replace(/^(?:主动使用消耗X费用|X费)[。;]\s*/, "消耗当前剩余费用,消耗量为X。");
}