mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- Vehicles will now display their PT in braces in the CardDetailPanel
This commit is contained in:
@@ -175,10 +175,19 @@ public class CardDetailUtil {
|
||||
return "";
|
||||
}
|
||||
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());
|
||||
}
|
||||
|
||||
if (vehicle && !card.isCreature()) {
|
||||
ptText.append("}");
|
||||
}
|
||||
|
||||
if (card.isPlaneswalker()) {
|
||||
if (ptText.length() > 0) {
|
||||
ptText.insert(0, "P/T: ");
|
||||
|
||||
Reference in New Issue
Block a user