mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
- It's no longer possible to start a quest with a deck that needs more than 0 wins to unlock (i.e. Event Decks).
This commit is contained in:
@@ -94,11 +94,15 @@ public enum VSubmenuQuestData implements IVSubmenu {
|
|||||||
|
|
||||||
final Map<String, String> preconDescriptions = new HashMap<String, String>();
|
final Map<String, String> preconDescriptions = new HashMap<String, String>();
|
||||||
IStorageView<PreconDeck> preconDecks = QuestController.getPrecons();
|
IStorageView<PreconDeck> preconDecks = QuestController.getPrecons();
|
||||||
for (String preconDeck : preconDecks.getNames()) {
|
for (PreconDeck preconDeck : preconDecks) {
|
||||||
cbxPrecon.addItem(preconDeck);
|
if (preconDeck.getRecommendedDeals().getMinWins() > 0) {
|
||||||
String description = preconDecks.get(preconDeck).getDescription();
|
continue;
|
||||||
|
}
|
||||||
|
String name = preconDeck.getName();
|
||||||
|
cbxPrecon.addItem(name);
|
||||||
|
String description = preconDeck.getDescription();
|
||||||
description = "<html>" + WordUtils.wrap(description, 40, "<br>", false) + "</html>";
|
description = "<html>" + WordUtils.wrap(description, 40, "<br>", false) + "</html>";
|
||||||
preconDescriptions.put(preconDeck, description);
|
preconDescriptions.put(name, description);
|
||||||
}
|
}
|
||||||
|
|
||||||
cbxPrecon.setRenderer(new BasicComboBoxRenderer() {
|
cbxPrecon.setRenderer(new BasicComboBoxRenderer() {
|
||||||
|
|||||||
@@ -76,7 +76,13 @@ public class SellRules {
|
|||||||
return cost;
|
return cost;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the minWins.
|
||||||
|
*
|
||||||
|
* @return the minWins
|
||||||
|
*/
|
||||||
|
public final int getMinWins() {
|
||||||
|
return minWins;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user