refactor text gen to use target pointers, part x of y

This commit is contained in:
xenohedron 2024-01-21 02:25:10 -05:00
parent 7be16bdaac
commit 23ca66e3ce
23 changed files with 53 additions and 422 deletions

View file

@ -40,13 +40,8 @@ public class CopyTargetStackAbilityEffect extends OneShotEffect {
if (staticText != null && !staticText.isEmpty()) {
return staticText;
}
StringBuilder sb = new StringBuilder();
sb.append("copy ");
if (!mode.getTargets().isEmpty()) {
sb.append("target ").append(mode.getTargets().get(0).getTargetName());
}
sb.append(". You may choose new targets for the copy");
return sb.toString();
return "copy " + getTargetPointer().describeTargets(mode.getTargets(), "that spell")
+ ". You may choose new targets for the copy";
}
}