mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
fix Tests for now
This commit is contained in:
@@ -1335,6 +1335,10 @@ public class CardView extends GameEntityView {
|
|||||||
}
|
}
|
||||||
void updateImageKey(Card c) {
|
void updateImageKey(Card c) {
|
||||||
set(TrackableProperty.ImageKey, c.getImageKey());
|
set(TrackableProperty.ImageKey, c.getImageKey());
|
||||||
|
// currently only works for Cards
|
||||||
|
if (!c.getGamePieceType().equals(GamePieceType.CARD)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
IPaperCard pc = c.getPaperCard();
|
IPaperCard pc = c.getPaperCard();
|
||||||
if (pc != null) {
|
if (pc != null) {
|
||||||
set(TrackableProperty.Artist, pc.getArtist());
|
set(TrackableProperty.Artist, pc.getArtist());
|
||||||
@@ -1342,6 +1346,10 @@ public class CardView extends GameEntityView {
|
|||||||
}
|
}
|
||||||
void updateImageKey(CardState c) {
|
void updateImageKey(CardState c) {
|
||||||
set(TrackableProperty.ImageKey, c.getImageKey());
|
set(TrackableProperty.ImageKey, c.getImageKey());
|
||||||
|
// currently only works for Cards
|
||||||
|
if (!c.getCard().getGamePieceType().equals(GamePieceType.CARD)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
IPaperCard pc = c.getCard().getPaperCard();
|
IPaperCard pc = c.getCard().getPaperCard();
|
||||||
if (pc != null) { // currently Artist is per Card
|
if (pc != null) { // currently Artist is per Card
|
||||||
set(TrackableProperty.Artist, pc.getArtist());
|
set(TrackableProperty.Artist, pc.getArtist());
|
||||||
|
|||||||
Reference in New Issue
Block a user