mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
commiting trunk changes
This commit is contained in:
@@ -273,10 +273,28 @@ public class CardDetailPanel extends FPanel {
|
||||
this.typeLabel.setText("Creature");
|
||||
}
|
||||
|
||||
StringBuilder ptText = new StringBuilder();
|
||||
if (card.isCreature()) {
|
||||
this.powerToughnessLabel.setText(card.getNetAttack() + " / " + card.getNetDefense());
|
||||
ptText.append(card.getNetAttack()).append(" / ").append(card.getNetDefense());
|
||||
}
|
||||
|
||||
if (card.isPlaneswalker()) {
|
||||
if (ptText.length() > 0) {
|
||||
ptText.insert(0, "P/T: ");
|
||||
ptText.append(" - ").append("Loy: ");
|
||||
} else {
|
||||
ptText.append("Loyalty: ");
|
||||
}
|
||||
|
||||
int loyalty = card.getCounters(CounterType.LOYALTY);
|
||||
if (loyalty == 0) {
|
||||
loyalty = card.getBaseLoyalty();
|
||||
}
|
||||
ptText.append(loyalty);
|
||||
}
|
||||
|
||||
this.powerToughnessLabel.setText(ptText.toString());
|
||||
|
||||
this.idLabel.setText("Card ID " + card.getUniqueNumber());
|
||||
|
||||
// fill the card text
|
||||
|
||||
Reference in New Issue
Block a user