- Vehicles will now display their PT in braces in the CardDetailPanel

This commit is contained in:
Sol
2016-09-23 02:55:57 +00:00
parent f6896f2894
commit 3a6979911c

View File

@@ -175,10 +175,19 @@ public class CardDetailUtil {
return ""; return "";
} }
final StringBuilder ptText = new StringBuilder(); final StringBuilder ptText = new StringBuilder();
if (card.isCreature()) { boolean vehicle = card.getType().hasSubtype("Vehicle");
if (vehicle && !card.isCreature()) {
ptText.append("{");
}
if (card.isCreature() || vehicle) {
ptText.append(card.getPower()).append(" / ").append(card.getToughness()); ptText.append(card.getPower()).append(" / ").append(card.getToughness());
} }
if (vehicle && !card.isCreature()) {
ptText.append("}");
}
if (card.isPlaneswalker()) { if (card.isPlaneswalker()) {
if (ptText.length() > 0) { if (ptText.length() > 0) {
ptText.insert(0, "P/T: "); ptText.insert(0, "P/T: ");