Adding a syndicate pairing page with some notes
This commit is contained in:
@@ -13,7 +13,7 @@ public class CardData
|
||||
: 0;
|
||||
|
||||
public string? Description { get; init; }
|
||||
public string? Faction { get; init; }
|
||||
public string? Syndicate { get; init; }
|
||||
public string? Set { get; init; }
|
||||
public string? Speed { get; init; }
|
||||
public List<string> Archetypes { get; init; } = [];
|
||||
@@ -42,7 +42,7 @@ public class CardData
|
||||
var q = query.Trim().ToLowerInvariant();
|
||||
return Name.ToLowerInvariant().Contains(q) ||
|
||||
(Description?.ToLowerInvariant().Contains(q) ?? false) ||
|
||||
(Faction?.ToLowerInvariant().Contains(q) ?? false) ||
|
||||
(Syndicate?.ToLowerInvariant().Contains(q) ?? false) ||
|
||||
Archetypes.Any(a => a.ToLowerInvariant().Contains(q)) ||
|
||||
(Name.ToLowerInvariant().Contains("b.o.o.f.") && q.Equals("boof")) ||
|
||||
(Name.ToLowerInvariant().Contains("boof") && q.Equals("b.o.o.f."));
|
||||
|
||||
@@ -11,7 +11,7 @@ public class DeckData
|
||||
public string? DeckCode { get; init; }
|
||||
public string? DeckType { get; init; }
|
||||
|
||||
public List<string> Factions { get; init; } = [];
|
||||
public List<string> Syndicates { get; init; } = [];
|
||||
public bool IsVisible { get; init; }
|
||||
|
||||
public bool IsValid => Cards.Count == 40 && Divers.Count <= 2;
|
||||
|
||||
@@ -6,4 +6,5 @@ public class DocData
|
||||
public string Category { get; init; } = "";
|
||||
public string Content { get; init; } = "";
|
||||
public Dictionary<string, string> Frontmatter { get; init; } = [];
|
||||
public List<string>? Syndicates { get; init; }
|
||||
}
|
||||
Reference in New Issue
Block a user