mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Added property setting to enable/disable display of the random 2-color deck list.
This commit is contained in:
@@ -6,6 +6,7 @@ import java.util.Map;
|
|||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
import forge.error.ErrorViewer;
|
import forge.error.ErrorViewer;
|
||||||
|
import forge.properties.ForgeProps;
|
||||||
|
|
||||||
public class Generate2ColorDeck
|
public class Generate2ColorDeck
|
||||||
{
|
{
|
||||||
@@ -375,6 +376,7 @@ public class Generate2ColorDeck
|
|||||||
}
|
}
|
||||||
|
|
||||||
tmpDeck += "DeckSize:" + tDeck.size() + "\n";
|
tmpDeck += "DeckSize:" + tDeck.size() + "\n";
|
||||||
|
if (ForgeProps.getProperty("showdeck/2color", "false").equals("true"))
|
||||||
ErrorViewer.showError(tmpDeck);
|
ErrorViewer.showError(tmpDeck);
|
||||||
|
|
||||||
return tDeck;
|
return tDeck;
|
||||||
|
|||||||
@@ -21,6 +21,8 @@ public interface NewConstants {
|
|||||||
public static final String FORUM = "program/forum";
|
public static final String FORUM = "program/forum";
|
||||||
public static final String VERSION = "program/version";
|
public static final String VERSION = "program/version";
|
||||||
|
|
||||||
|
public static final String SHOW2CDECK = "showdeck/2color";
|
||||||
|
|
||||||
public static final String DECKS = "decks";
|
public static final String DECKS = "decks";
|
||||||
public static final String BOOSTER_DECKS = "booster-decks";
|
public static final String BOOSTER_DECKS = "booster-decks";
|
||||||
public static final String NEW_DECKS = "decks-dir";
|
public static final String NEW_DECKS = "decks-dir";
|
||||||
|
|||||||
Reference in New Issue
Block a user