Adding Tengwar filter.

This commit is contained in:
marcins78@gmail.com
2012-03-13 12:25:25 +00:00
parent 5764bb12a5
commit 187b458ad9
2 changed files with 3 additions and 1 deletions

View File

@@ -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))

View File

@@ -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);