Adding Tengwar filter.
This commit is contained in:
@@ -56,7 +56,8 @@ public class SortAndFilterCards {
|
||||
if (type == null
|
||||
|| type.equals("card")
|
||||
|| (type.equals("foil") && blueprintId.endsWith("*"))
|
||||
|| (type.equals("nonFoil") && !blueprintId.endsWith("*"))) {
|
||||
|| (type.equals("nonFoil") && !blueprintId.endsWith("*"))
|
||||
|| (type.equals("tengwar") && (blueprintId.endsWith("T*") || blueprintId.endsWith("T")))) {
|
||||
final LotroCardBlueprint blueprint = library.getLotroCardBlueprint(blueprintId);
|
||||
if (rarity == null || isRarity(blueprintId, rarity, library, rarities))
|
||||
if (sets == null || isInSets(blueprintId, sets, library))
|
||||
|
||||
@@ -241,6 +241,7 @@ var CardFilter = Class.extend({
|
||||
+ "<option value='card'>Cards</option>"
|
||||
+ "<option value='foil'>Foils</option>"
|
||||
+ "<option value='nonFoil'>Non-foils</option>"
|
||||
+ "<option value='tengwar'>Tengwar</option>"
|
||||
+ "</select>");
|
||||
this.filterDiv.append(combos);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user