This commit is contained in:
SoulliesOfficial
2026-04-01 12:23:27 -04:00
parent aff7ac0e03
commit c3b1561375
933 changed files with 114333 additions and 119360 deletions

View File

@@ -33,9 +33,12 @@ namespace Continentis.MainGame
TextInterpreter.SetFunction("Attribute", new Func<string, bool, string>((name, high) => GetAttribute(card, name, high, false)));
TextInterpreter.SetFunction("Attribute", new Func<string, bool, bool, string>((name, high, percent) => GetAttribute(card, name, high, percent)));
string result = DynamicTextInterpreter.Parse(TextInterpreter, textToInterpret);
// 第一阶段:根据卡牌上下文(持有者、目标等)裁剪条件标签块
string resolved = CardTextTagResolver.Resolve(card, textToInterpret);
// 第二阶段Dynamic Expresso 求值 $Attribute / $Keyword 等表达式
string result = DynamicTextInterpreter.Parse(TextInterpreter, resolved);
Debug.Log($"Interpreted Text: {result}");
return result;
}