Closed librarianmage closed 1 week ago
I like this suggestion but it doesn't play very well with StringBuilder, which I ended up going with - I think that will be more efficient. I did take some parts of your suggestion, like DRYing up the string generation, and the formatting of the penalty/score number. Thanks!
Just a heads up but ReplaceBuilder can work with a StringBuilder by calling .StartReplace() on a StringBuilder and then calling .Execute() instead of .ToText(), which will modify the given StringBuilder in place
I think it should be as simple as including =object[0].cardName= and then .AddReplacer("cardName", Context => Context.Target.GetPart
For instance,
NameWhose
could be removed andResolveCardAgainstCard
could be rewritten likeNote that this is an incomplete solution. Currently, display names will not be exactly the same and coloring in names will be removed if I read the code correctly.