mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
*Minor fix to the new Home Screen(nice and understandable code); Picking random deck for the AI causes it to echo the deck chosen for the human.
This commit is contained in:
@@ -1013,7 +1013,7 @@ public class Gui_HomeScreen {
|
|||||||
Deck rDeck = chooseRandomDeck();
|
Deck rDeck = chooseRandomDeck();
|
||||||
|
|
||||||
if (rDeck != null) {
|
if (rDeck != null) {
|
||||||
String msg = String.format("The computer is using deck: %s.", Constant.Runtime.HumanDeck[0].getName());
|
String msg = String.format("The computer is using deck: %s.", Constant.Runtime.ComputerDeck[0].getName());
|
||||||
JOptionPane.showMessageDialog(null, msg, "Random Deck Name", JOptionPane.INFORMATION_MESSAGE);
|
JOptionPane.showMessageDialog(null, msg, "Random Deck Name", JOptionPane.INFORMATION_MESSAGE);
|
||||||
|
|
||||||
Constant.Runtime.ComputerDeck[0] = rDeck;
|
Constant.Runtime.ComputerDeck[0] = rDeck;
|
||||||
|
|||||||
Reference in New Issue
Block a user