Counter text improvements (plus a Magus Lucea Kane gameplay fix) (#11503)

* Improve text generation for some counter abilities

* Magus Lucea Kane must apply to permanent spells (bugfix, related to #11440)

* Further improve text generation of counter text

* Text improvements to a couple cards

* Graft text improvements

* Further remove unused variable

* Be consistent on Backup ability setup, revert Thalia's Lieutenant (filter reuse means it doesn't work)

* Thalia's Lieutenant original text was slightly wrong, fixed
This commit is contained in:
ssk97 2023-12-03 18:42:16 -08:00 committed by GitHub
parent 57a556105c
commit d806a6a3be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 47 additions and 69 deletions

View file

@ -904,6 +904,14 @@ public final class CardUtil {
return Outcome.BoostCreature;
}
public static String getSimpleCountersText(int amount, String forOne, String counterType) {
return numberToText(amount, forOne)+" "+counterType+" counter"+ (amount==1 ? "" : "s");
}
public static String getOneOneCountersText(int amount) {
return getSimpleCountersText(amount, "a", "+1/+1");
}
public static String getAddRemoveCountersText(DynamicValue amount, Counter counter, String description, boolean add) {
StringBuilder sb = new StringBuilder(add ? "put " : "remove ");
boolean xValue = amount.toString().equals("X");