mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
Implemented hand filtering properly using deck land ratio
Made hand filtering optional and disabled by default
This commit is contained in:
@@ -37,6 +37,8 @@ public class StaticData {
|
||||
private Predicate<PaperCard> brawlPredicate;
|
||||
private Predicate<PaperCard> modernPredicate;
|
||||
|
||||
private boolean filteredHandsEnabled = false;
|
||||
|
||||
// Loaded lazily:
|
||||
private IStorage<SealedProduct.Template> boosters;
|
||||
private IStorage<SealedProduct.Template> specialBoosters;
|
||||
@@ -209,6 +211,14 @@ public class StaticData {
|
||||
return brawlPredicate;
|
||||
}
|
||||
|
||||
public void setFilteredHandsEnabled(boolean filteredHandsEnabled){
|
||||
this.filteredHandsEnabled = filteredHandsEnabled;
|
||||
}
|
||||
|
||||
public boolean getFilteredHandsEnabled(){
|
||||
return filteredHandsEnabled;
|
||||
}
|
||||
|
||||
public PaperCard getCardByEditionDate(PaperCard card, Date editionDate) {
|
||||
|
||||
PaperCard c = this.getCommonCards().getCardFromEdition(card.getName(), editionDate, CardDb.SetPreference.LatestCoreExp, card.getArtIndex());
|
||||
|
||||
Reference in New Issue
Block a user