mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28: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>();
|
||||
IStorageView<PreconDeck> preconDecks = QuestController.getPrecons();
|
||||
for (String preconDeck : preconDecks.getNames()) {
|
||||
cbxPrecon.addItem(preconDeck);
|
||||
String description = preconDecks.get(preconDeck).getDescription();
|
||||
for (PreconDeck preconDeck : preconDecks) {
|
||||
if (preconDeck.getRecommendedDeals().getMinWins() > 0) {
|
||||
continue;
|
||||
}
|
||||
String name = preconDeck.getName();
|
||||
cbxPrecon.addItem(name);
|
||||
String description = preconDeck.getDescription();
|
||||
description = "<html>" + WordUtils.wrap(description, 40, "<br>", false) + "</html>";
|
||||
preconDescriptions.put(preconDeck, description);
|
||||
preconDescriptions.put(name, description);
|
||||
}
|
||||
|
||||
cbxPrecon.setRenderer(new BasicComboBoxRenderer() {
|
||||
|
||||
@@ -76,7 +76,13 @@ public class SellRules {
|
||||
return cost;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the minWins.
|
||||
*
|
||||
* @return the minWins
|
||||
*/
|
||||
public final int getMinWins() {
|
||||
return minWins;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user