mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
log, but don't pop up warning about non-AI cards in quest decks. the popup hinders immersion and if they are there, it is likely intentional
This commit is contained in:
@@ -140,7 +140,7 @@ public class GameNew {
|
|||||||
player.shuffle();
|
player.shuffle();
|
||||||
}
|
}
|
||||||
|
|
||||||
if( player instanceof AIPlayer ) {
|
if(player instanceof AIPlayer) {
|
||||||
rAICards.addAll(getCardsAiCantPlayWell(myDeck));
|
rAICards.addAll(getCardsAiCantPlayWell(myDeck));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -158,7 +158,12 @@ public class GameNew {
|
|||||||
|
|
||||||
if (rAICards.size() > 0) {
|
if (rAICards.size() > 0) {
|
||||||
String message = buildFourColumnList("AI deck contains the following cards that it can't play or may be buggy:", rAICards);
|
String message = buildFourColumnList("AI deck contains the following cards that it can't play or may be buggy:", rAICards);
|
||||||
JOptionPane.showMessageDialog(null, message, "", JOptionPane.INFORMATION_MESSAGE);
|
if (GameType.Quest == game.getType()) {
|
||||||
|
// log, but do not visually warn. quest decks are supposedly already vetted by the quest creator
|
||||||
|
System.err.println(message);
|
||||||
|
} else {
|
||||||
|
JOptionPane.showMessageDialog(null, message, "", JOptionPane.INFORMATION_MESSAGE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!removedAnteCards.isEmpty()) {
|
if (!removedAnteCards.isEmpty()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user