mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
update renderer for Spacecraft PT (#8178)
* update renderer for Spacecraft PT
This commit is contained in:
@@ -294,8 +294,7 @@ public class FCardImageRenderer {
|
||||
int headerHeight = NAME_SIZE + 2 * HEADER_PADDING;
|
||||
int typeBoxHeight = TYPE_SIZE + 2 * TYPE_PADDING;
|
||||
int ptBoxHeight = 0;
|
||||
if (state.isCreature() || state.isPlaneswalker() | state.isBattle() || state.isVehicle() ||
|
||||
(state.getType().hasSubtype("Spacecraft") && state.hasPrintedPower())) {
|
||||
if (state.isCreature() || state.isPlaneswalker() | state.isBattle() || state.hasPrintedPT()) {
|
||||
//if P/T box needed, make room for it
|
||||
ptBoxHeight = headerHeight;
|
||||
}
|
||||
@@ -841,7 +840,7 @@ public class FCardImageRenderer {
|
||||
pieces.add(String.valueOf(state.getToughness()));
|
||||
}
|
||||
}
|
||||
else if (state.getType().hasSubtype("Spacecraft")) {
|
||||
else if (state.isSpaceCraft()) {
|
||||
Color [] scColor = { Color.BLACK };
|
||||
colors = scColor;
|
||||
TEXT_COLOR = Color.WHITE;
|
||||
|
||||
@@ -1046,7 +1046,7 @@ public class CardPanel extends SkinnedPanel implements CardContainer, IDisposabl
|
||||
else if (state.isCreature()) {
|
||||
sPt = state.getPower() + "/" + state.getToughness();
|
||||
}
|
||||
else if (state.getType().hasSubtype("Vehicle")) {
|
||||
else if (state.isVehicle()) {
|
||||
sPt = "[" + state.getPower() + "/" + state.getToughness() + "]";
|
||||
}
|
||||
else if (state.isPlaneswalker()) {
|
||||
|
||||
Reference in New Issue
Block a user