@flesh-and-blood/types 2.1.32 → 2.1.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/helpers.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Printing } from "./interfaces";
1
+ import { Keyword, Printing, Type } from "./interfaces";
2
2
  export declare const getCardIdentifier: (card: {
3
3
  name: string;
4
4
  pitch?: string | number;
@@ -20,3 +20,6 @@ export declare const getDefaultPrinting: (card: {
20
20
  cardIdentifier: string;
21
21
  name: string;
22
22
  }, printings: Printing[]) => Printing;
23
+ export declare const getIsArenaCard: (types: Type[], keywords?: Keyword[]) => boolean;
24
+ export declare const getIsDeckCard: (types: Type[], keywords?: Keyword[]) => boolean;
25
+ export declare const getCanAddToDeck: (types: Type[], keywords?: Keyword[]) => boolean;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var A=Object.defineProperty,ti=Object.defineProperties,ei=Object.getOwnPropertyDescriptor,ni=Object.getOwnPropertyDescriptors,ri=Object.getOwnPropertyNames,U=Object.getOwnPropertySymbols;var V=Object.prototype.hasOwnProperty,ai=Object.prototype.propertyIsEnumerable;var W=(r,a,l)=>a in r?A(r,a,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[a]=l,S=(r,a)=>{for(var l in a||(a={}))V.call(a,l)&&W(r,l,a[l]);if(U)for(var l of U(a))ai.call(a,l)&&W(r,l,a[l]);return r},j=(r,a)=>ti(r,ni(a));var oi=(r,a)=>{for(var l in a)A(r,l,{get:a[l],enumerable:!0})},li=(r,a,l,d)=>{if(a&&typeof a=="object"||typeof a=="function")for(let o of ri(a))!V.call(r,o)&&o!==l&&A(r,o,{get:()=>a[o],enumerable:!(d=ei(a,o))||d.enumerable});return r};var si=r=>li(A({},"__esModule",{value:!0}),r);var zi={};oi(zi,{Class:()=>N,Foiling:()=>b,Format:()=>$,Fusion:()=>q,Hero:()=>w,Keyword:()=>H,Rarity:()=>Y,Release:()=>Z,ReleaseEdition:()=>Q,Subtype:()=>X,Talent:()=>_,Treatment:()=>R,Type:()=>J,fullSetIdentifiers:()=>P,getCardIdentifier:()=>di,getDefaultPrinting:()=>hi,getPrint:()=>ki,getSpecialPrinting:()=>Di,orderedFullSetBlackBorderIdentifiers:()=>Bi,setIdentifierToSetMappings:()=>y,setToSetIdentifierMappings:()=>ci});module.exports=si(zi);var b=(d=>(d.C="Cold",d.G="Gold",d.R="Rainbow",d))(b||{}),R=(c=>(c.AB="Alternate Border",c.AA="Alternate Art",c.AT="Alternate Text",c.EA="Extended Art",c.FA="Full Art",c))(R||{}),N=(g=>(g.NotClassed="NotClassed",g.Generic="Generic",g.Adjudicator="Adjudicator",g.Assassin="Assassin",g.Bard="Bard",g.Brute="Brute",g.Guardian="Guardian",g.Illusionist="Illusionist",g.Mechanologist="Mechanologist",g.Merchant="Merchant",g.Ninja="Ninja",g.Ranger="Ranger",g.Runeblade="Runeblade",g.Shapeshifter="Shapeshifter",g.Warrior="Warrior",g.Wizard="Wizard",g))(N||{}),$=(B=>(B.Blitz="Blitz",B.BlitzLivingLegend="Blitz (Living Legend)",B.Clash="Clash",B.ClassicConstructed="Classic Constructed",B.ClassicConstructedLivingLegend="Classic Constructed (Living Legend)",B.Commoner="Commoner",B.Draft="Draft",B.Open="Open",B.Sealed="Sealed",B.UltimatePitFight="Ultimate Pit Fight",B))($||{}),q=(d=>(d.Earth="Earth",d.Ice="Ice",d.Lightning="Lightning",d))(q||{}),Y=(s=>(s.Token="Token",s.Common="Common",s.Rare="Rare",s.SuperRare="Super Rare",s.Majestic="Majestic",s.Marvel="Marvel",s.Legendary="Legendary",s.Fabled="Fabled",s.Promo="Promo",s))(Y||{}),Z=(e=>(e.ArcaneRising="Arcane Rising",e.BrightLights="Bright Lights",e.CrucibleOfWar="Crucible of War",e.DuskTillDawn="Dusk till Dawn",e.Dynasty="Dynasty",e.Everfest="Everfest",e.HeavyHitters="Heavy Hitters",e.HistoryPack1="History Pack 1",e.Monarch="Monarch",e.Outsiders="Outsiders",e.PartTheMistveil="Part the Mistveil",e.Rosetta="Rosetta",e.TalesOfAria="Tales of Aria",e.Uprising="Uprising",e.WelcomeToRathe="Welcome to Rathe",e.ArmoryDeckKayo="Armory Deck: Kayo",e.ArmoryDeckBoltyn="Armory Deck: Boltyn",e.ArmoryDeckAzalea="Armory Deck: Azalea",e.ArakniBlitzDeck="Arakni Blitz Deck",e.AzaleaBlitzDeck="Azalea Blitz Deck",e.BenjiBlitzDeck="Benji Blitz Deck",e.BetsyBlitzDeck="Betsy Blitz Deck",e.BoltynBlitzDeck="Boltyn Blitz Deck",e.BriarBlitzDeck="Briar Blitz Deck",e.BravoBlitzDeck="Bravo Blitz Deck",e.ChaneBlitzDeck="Chane Blitz Deck",e.DromaiBlitzDeck="Dromai Blitz Deck",e.EnigmaBlitzDeck="Enigma Blitz Deck",e.FaiBlitzDeck="Fai Blitz Deck",e.KassaiBlitzDeck="Kassai Blitz Deck",e.KatsuBlitzDeck="Katsu Blitz Deck",e.KayoBlitzDeck="Kayo Blitz Deck",e.LeviaBlitzDeck="Levia Blitz Deck",e.LexiBlitzDeck="Lexi Blitz Deck",e.NuuBlitzDeck="Nuu Blitz Deck",e.OldhimBlitzDeck="Oldhim Blitz Deck",e.OlympiaBlitzDeck="Olympia Blitz Deck",e.PrismBlitzDeck="Prism Blitz Deck",e.RhinarBlitzDeck="Rhinar Blitz Deck",e.RiptideBlitzDeck="Riptide Blitz Deck",e.UzuriBlitzDeck="Uzuri Blitz Deck",e.VictorBlitzDeck="Victor Blitz Deck",e.ZenBlitzDeck="Zen Blitz Deck",e.FirstStrikeAurora="1st Strike: Aurora",e.FirstStrikeTerra="1st Strike: Terra",e.DorintheaHeroDeck="Dorinthea Hero Deck",e.KatsuHeroDeck="Katsu Hero Deck",e.RhinarHeroDeck="Rhinar Hero Deck",e.ClassicBattlesRhinarDorinthea="Classic Battles: Rhinar vs Dorinthea",e.IraWelcomeDeck="Ira Welcome Deck",e.RoundTheTable="Round the Table",e.Promos="Promos",e))(Z||{}),Q=(o=>(o.Alpha="Alpha",o.First="First",o.Unlimited="Unlimited",o.Promo="Promo",o))(Q||{}),_=(s=>(s.Draconic="Draconic",s.Earth="Earth",s.Elemental="Elemental",s.Ice="Ice",s.Light="Light",s.Lightning="Lightning",s.Mystic="Mystic",s.Royal="Royal",s.Shadow="Shadow",s))(_||{}),J=(k=>(k.Action="Action",k.AttackReaction="Attack Reaction",k.Block="Block",k.DefenseReaction="Defense Reaction",k.DemiHero="Demi-Hero",k.Equipment="Equipment",k.Hero="Hero",k.Instant="Instant",k.Mentor="Mentor",k.Resource="Resource",k.Token="Token",k.Weapon="Weapon",k))(J||{}),X=(n=>(n.OneHanded="1H",n.TwoHanded="2H",n.Affliction="Affliction",n.Ally="Ally",n.Angel="Angel",n.Arms="Arms",n.Arrow="Arrow",n.Ash="Ash",n.Attack="Attack",n.Aura="Aura",n.Axe="Axe",n.Base="Base",n.Book="Book",n.Bow="Bow",n.Chest="Chest",n.Chi="Chi",n.Claw="Claw",n.Club="Club",n.Construct="Construct",n.Dagger="Dagger",n.Demon="Demon",n.Dragon="Dragon",n.Evo="Evo",n.Fiddle="Fiddle",n.Figment="Figment",n.Flail="Flail",n.Gem="Gem",n.Gun="Gun",n.Hammer="Hammer",n.Head="Head",n.Invocation="Invocation",n.Item="Item",n.Landmark="Landmark",n.Lute="Lute",n.Legs="Legs",n.NonAttack="Non-Attack",n.OffHand="Off-Hand",n.Orb="Orb",n.Pistol="Pistol",n.Quiver="Quiver",n.Rock="Rock",n.Shuriken="Shuriken",n.Scepter="Scepter",n.Scroll="Scroll",n.Scythe="Scythe",n.Song="Song",n.Staff="Staff",n.Sword="Sword",n.Trap="Trap",n.Wrench="Wrench",n.Young="Young",n))(X||{}),w=(t=>(t.Arakni="Arakni",t.Aurora="Aurora",t.Azalea="Azalea",t.Benji="Benji",t.Betsy="Betsy",t.Blaze="Blaze",t.Boltyn="Boltyn",t.Bravo="Bravo",t.Brevant="Brevant",t.Briar="Briar",t.Brutus="Brutus",t.Chane="Chane",t.Dash="Dash",t.DataDoll="Data Doll",t.Dorinthea="Dorinthea",t.Dromai="Dromai",t.Emperor="Emperor",t.Enigma="Enigma",t.Fai="Fai",t.Florian="Florian",t.GenisWotchuneed="Genis Wotchuneed",t.Ira="Ira",t.Iyslander="Iyslander",t.Kano="Kano",t.Kassai="Kassai",t.Katsu="Katsu",t.Kavdaen="Kavdaen",t.Kayo="Kayo",t.Levia="Levia",t.Lexi="Lexi",t.Maxx="Maxx",t.Melody="Melody",t.Nuu="Nuu",t.Oldhim="Oldhim",t.Olympia="Olympia",t.Oscilio="Oscilio",t.Prism="Prism",t.Rhinar="Rhinar",t.Riptide="Riptide",t.Ruudi="Ruu'di",t.Shiyana="Shiyana",t.Squizzy="Squizzy",t.Taipanis="Taipanis",t.Taylor="Taylor",t.Teklovossen="Teklovossen",t.Terra="Terra",t.Theryon="Theryon",t.Uzuri="Uzuri",t.Valda="Valda",t.Verdance="Verdance",t.Victor="Victor",t.Vynnset="Vynnset",t.Viserai="Viserai",t.Yorick="Yorick",t.Yoji="Yoji",t.Zen="Zen",t))(w||{}),H=(i=>(i.Ambush="Ambush",i.Amp="Amp",i.ArcaneBarrier="Arcane Barrier",i.Awaken="Awaken",i.Battleworn="Battleworn",i.BeatChest="Beat Chest",i.BladeBreak="Blade Break",i.BloodDebt="Blood Debt",i.Boost="Boost",i.Channel="Channel",i.Charge="Charge",i.Clash="Clash",i.Cloaked="Cloaked",i.Combo="Combo",i.Contract="Contract",i.Crank="Crank",i.Crush="Crush",i.Decompose="Decompose",i.Dominate="Dominate",i.Ephemeral="Ephemeral",i.Essence="Essence",i.EvoUpgrade="Evo Upgrade",i.Freeze="Freeze",i.Fusion="Fusion",i.Galvanize="Galvanize",i.GoAgain="Go again",i.Guardwell="Guardwell",i.Heave="Heave",i.Intimidate="Intimidate",i.Legendary="Legendary",i.Material="Material",i.Modular="Modular",i.Mirage="Mirage",i.Negate="Negate",i.Opt="Opt",i.Overpower="Overpower",i.Pairs="Pairs",i.Piercing="Piercing",i.Phantasm="Phantasm",i.Protect="Protect",i.Quell="Quell",i.Reload="Reload",i.Reprise="Reprise",i.RuneGate="Rune Gate",i.Rupture="Rupture",i.Scrap="Scrap",i.Solflare="Solflare",i.Specialization="Specialization",i.Spectra="Spectra",i.Spellvoid="Spellvoid",i.Stealth="Stealth",i.Surge="Surge",i.Temper="Temper",i.Tower="Tower",i.Transform="Transform",i.Transcend="Transcend",i.Universal="Universal",i.Unfreeze="Unfreeze",i.Unity="Unity",i.Wager="Wager",i.Ward="Ward",i))(H||{});var P={wtr:"Welcome to Rathe",arc:"Arcane Rising",cru:"Crucible of War",mon:"Monarch",ele:"Tales of Aria",evr:"Everfest","1hp":"History Pack 1",hp1:"History Pack 1",upr:"Uprising",dyn:"Dynasty",out:"Outsiders",dtd:"Dusk till Dawn",evo:"Bright Lights",hvy:"Heavy Hitters",mst:"Part the Mistveil",ros:"Rosetta"},y=j(S({},P),{ako:"Armory Deck: Kayo",asb:"Armory Deck: Boltyn",aaz:"Armory Deck: Azalea",ara:"Arakni Blitz Deck",azl:"Azalea Blitz Deck",ben:"Benji Blitz Deck",bet:"Betsy Blitz Deck",bol:"Boltyn Blitz Deck",bri:"Briar Blitz Deck",bvo:"Bravo Blitz Deck",chn:"Chane Blitz Deck",dro:"Dromai Blitz Deck",eng:"Enigma Blitz Deck",fai:"Fai Blitz Deck",kat:"Katsu Blitz Deck",ksi:"Kassai Blitz Deck",kyo:"Kayo Blitz Deck",lev:"Levia Blitz Deck",lxi:"Lexi Blitz Deck",nuu:"Nuu Blitz Deck",old:"Oldhim Blitz Deck",ola:"Olympia Blitz Deck",psm:"Prism Blitz Deck",rip:"Riptide Blitz Deck",rnr:"Rhinar Blitz Deck",uzu:"Uzuri Blitz Deck",vic:"Victor Blitz Deck",zen:"Zen Blitz Deck",aur:"1st Strike: Aurora",ter:"1st Strike: Terra",dvr:"Classic Battles: Rhinar vs Dorinthea",rvd:"Classic Battles: Rhinar vs Dorinthea",ira:"Ira Welcome Deck",tcc:"Round the Table",tea:"Dorinthea Hero Deck",ksu:"Katsu Hero Deck",rnr2:"Rhinar Hero Deck",fab:"Promos",her:"Promos",jdg:"Promos",lgs:"Promos",lss:"Promos",oxo:"Promos",xxx:"Promos",win:"Promos"}),C={};for(let[r,a]of Object.entries(y)){let l=C[a];l?l.push(r):C[a]=[r]}var ci=C;var di=(r,a)=>{let{name:l,pitch:d}=r,o=l.toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/ /g,"-").replace("\xED","i").replace(/[^a-z0-9 -]/g,"").replace(/--/,"-"),c="";switch(d){case"1":case 1:c=a?"-1":"-red";break;case"2":case 2:c=a?"-2":"-yellow";break;case"3":case 3:c=a?"-3":"-blue";break}return`${o}${c}`},gi={"Rhinar Blitz Deck":"-Blitz"},mi={MST158_V3:"-V3",ROS162_V2:"-V2"},ki=r=>{var D,s;let a=gi[r.set]||"",l=`${r.identifier}${a}`,d=r.edition?`-${r.edition}`:"",o=r.foiling?`-${r.foiling}`:"",c=r.treatment?`-${r.treatment}`:"",f=(D=r.image)!=null&&D.toLowerCase().includes("back")?"-Back":"",u=mi[((s=r.image)==null?void 0:s.toUpperCase())||""]||"";return`${l}${d}${o}${c}${f}${u}`},Bi=Object.keys(P).filter(r=>!r.toLowerCase().includes("hp")).reverse().map(r=>r.toUpperCase()),fi={"command-and-conquer-red":{print:"DYN000-Cold"},"cracked-bauble-yellow":{print:"LGS083-Cold"},"fate-foreseen-red":{print:"FAB024-Rainbow"},"pitfall-trap-yellow":{print:"LGS151-Rainbow"},quicken:{print:"EVO250"},"ravenous-rabble-red":{print:"FAB190-Rainbow-Extended Art"},"rockslide-trap-blue":{print:"LGS152-Rainbow"},"sigil-of-solace-red":{print:"FAB178-Rainbow-Extended Art"},"spectral-shield":{print:"MST158-Alternate Art-V3"},"tripwire-trap-red":{print:"LGS150-Rainbow"},"viserai-rune-blood":{print:"HER011-Cold"}},Di=(r,a)=>{let{cardIdentifier:l}=r,d=Object.entries(fi).find(([o])=>o===l);if(d){let[,{print:o}]=d;return a.find(f=>f.print===o)||a[0]}else{let o,c,f,u,D,s,B,x,k,I,L,O,g,E,M,F,T,G;for(let m of a){let{edition:h,foiling:z,identifier:K,image:v,treatment:p}=m,ii=K.toLowerCase().includes("win");if(!!v&&!ii){if(o||(o=m),p==="Alternate Art")c=m;else if(p==="Alternate Border")f=m;else if(p==="Alternate Text")u=m;else if(p==="Extended Art")B=m,z==="Cold"&&(D=m),z||(k=m),h==="Promo"&&(I=m);else if(p==="Full Art"){x=m,z==="Cold"&&(s=m);break}v&&v.includes("_V2")&&(L=m),h==="Alpha"?O=m:h==="First"?g=m:h==="Promo"?E=m:h==="Unlimited"&&(M=m),z==="Cold"?(F=m,h==="Promo"&&(G=m)):z==="Gold"&&(T=m)}}return s||x||D||I||k||B||f||c||u||L||G||O||g||E||M||T||F||o}},ui={"command-and-conquer-red":{print:"ARC159-Unlimited"},"pitfall-trap-yellow":{print:"LGS151-Rainbow"},"rockslide-trap-blue":{print:"LGS152-Rainbow"},"spectral-shield":{print:"MST158"},"tripwire-trap-red":{print:"LGS150-Rainbow"}},hi=(r,a)=>{let{cardIdentifier:l}=r,d=Object.entries(ui).find(([o])=>o===l);if(d){let[,{print:o}]=d;return a.find(f=>f.print===o)||a[0]}else{let o,c;for(let f of a){let{edition:u,image:D,treatment:s}=f;if(!!D&&(o||(o=f),!c&&u!=="Promo"&&(c=f)),o&&c)break}return c||o||a[0]}};0&&(module.exports={Class,Foiling,Format,Fusion,Hero,Keyword,Rarity,Release,ReleaseEdition,Subtype,Talent,Treatment,Type,fullSetIdentifiers,getCardIdentifier,getDefaultPrinting,getPrint,getSpecialPrinting,orderedFullSetBlackBorderIdentifiers,setIdentifierToSetMappings,setToSetIdentifierMappings});
1
+ var A=Object.defineProperty,ni=Object.defineProperties,ri=Object.getOwnPropertyDescriptor,ai=Object.getOwnPropertyDescriptors,oi=Object.getOwnPropertyNames,W=Object.getOwnPropertySymbols;var V=Object.prototype.hasOwnProperty,ci=Object.prototype.propertyIsEnumerable;var R=(r,a,c)=>a in r?A(r,a,{enumerable:!0,configurable:!0,writable:!0,value:c}):r[a]=c,S=(r,a)=>{for(var c in a||(a={}))V.call(a,c)&&R(r,c,a[c]);if(W)for(var c of W(a))ci.call(a,c)&&R(r,c,a[c]);return r},j=(r,a)=>ni(r,ai(a));var si=(r,a)=>{for(var c in a)A(r,c,{get:a[c],enumerable:!0})},li=(r,a,c,s)=>{if(a&&typeof a=="object"||typeof a=="function")for(let o of oi(a))!V.call(r,o)&&o!==c&&A(r,o,{get:()=>a[o],enumerable:!(s=ri(a,o))||s.enumerable});return r};var di=r=>li(A({},"__esModule",{value:!0}),r);var Pi={};si(Pi,{Class:()=>$,Foiling:()=>b,Format:()=>q,Fusion:()=>Y,Hero:()=>H,Keyword:()=>y,Rarity:()=>Z,Release:()=>Q,ReleaseEdition:()=>_,Subtype:()=>w,Talent:()=>J,Treatment:()=>N,Type:()=>X,fullSetIdentifiers:()=>P,getCanAddToDeck:()=>Ai,getCardIdentifier:()=>mi,getDefaultPrinting:()=>zi,getIsArenaCard:()=>ii,getIsDeckCard:()=>x,getPrint:()=>Di,getSpecialPrinting:()=>hi,orderedFullSetBlackBorderIdentifiers:()=>fi,setIdentifierToSetMappings:()=>K,setToSetIdentifierMappings:()=>gi});module.exports=di(Pi);var b=(s=>(s.C="Cold",s.G="Gold",s.R="Rainbow",s))(b||{}),N=(d=>(d.AB="Alternate Border",d.AA="Alternate Art",d.AT="Alternate Text",d.EA="Extended Art",d.FA="Full Art",d))(N||{}),$=(g=>(g.NotClassed="NotClassed",g.Generic="Generic",g.Adjudicator="Adjudicator",g.Assassin="Assassin",g.Bard="Bard",g.Brute="Brute",g.Guardian="Guardian",g.Illusionist="Illusionist",g.Mechanologist="Mechanologist",g.Merchant="Merchant",g.Ninja="Ninja",g.Ranger="Ranger",g.Runeblade="Runeblade",g.Shapeshifter="Shapeshifter",g.Warrior="Warrior",g.Wizard="Wizard",g))($||{}),q=(B=>(B.Blitz="Blitz",B.BlitzLivingLegend="Blitz (Living Legend)",B.Clash="Clash",B.ClassicConstructed="Classic Constructed",B.ClassicConstructedLivingLegend="Classic Constructed (Living Legend)",B.Commoner="Commoner",B.Draft="Draft",B.Open="Open",B.Sealed="Sealed",B.UltimatePitFight="Ultimate Pit Fight",B))(q||{}),Y=(s=>(s.Earth="Earth",s.Ice="Ice",s.Lightning="Lightning",s))(Y||{}),Z=(l=>(l.Token="Token",l.Common="Common",l.Rare="Rare",l.SuperRare="Super Rare",l.Majestic="Majestic",l.Marvel="Marvel",l.Legendary="Legendary",l.Fabled="Fabled",l.Promo="Promo",l))(Z||{}),Q=(t=>(t.ArcaneRising="Arcane Rising",t.BrightLights="Bright Lights",t.CrucibleOfWar="Crucible of War",t.DuskTillDawn="Dusk till Dawn",t.Dynasty="Dynasty",t.Everfest="Everfest",t.HeavyHitters="Heavy Hitters",t.HistoryPack1="History Pack 1",t.Monarch="Monarch",t.Outsiders="Outsiders",t.PartTheMistveil="Part the Mistveil",t.Rosetta="Rosetta",t.TalesOfAria="Tales of Aria",t.Uprising="Uprising",t.WelcomeToRathe="Welcome to Rathe",t.ArmoryDeckKayo="Armory Deck: Kayo",t.ArmoryDeckBoltyn="Armory Deck: Boltyn",t.ArmoryDeckAzalea="Armory Deck: Azalea",t.ArakniBlitzDeck="Arakni Blitz Deck",t.AzaleaBlitzDeck="Azalea Blitz Deck",t.BenjiBlitzDeck="Benji Blitz Deck",t.BetsyBlitzDeck="Betsy Blitz Deck",t.BoltynBlitzDeck="Boltyn Blitz Deck",t.BriarBlitzDeck="Briar Blitz Deck",t.BravoBlitzDeck="Bravo Blitz Deck",t.ChaneBlitzDeck="Chane Blitz Deck",t.DromaiBlitzDeck="Dromai Blitz Deck",t.EnigmaBlitzDeck="Enigma Blitz Deck",t.FaiBlitzDeck="Fai Blitz Deck",t.KassaiBlitzDeck="Kassai Blitz Deck",t.KatsuBlitzDeck="Katsu Blitz Deck",t.KayoBlitzDeck="Kayo Blitz Deck",t.LeviaBlitzDeck="Levia Blitz Deck",t.LexiBlitzDeck="Lexi Blitz Deck",t.NuuBlitzDeck="Nuu Blitz Deck",t.OldhimBlitzDeck="Oldhim Blitz Deck",t.OlympiaBlitzDeck="Olympia Blitz Deck",t.PrismBlitzDeck="Prism Blitz Deck",t.RhinarBlitzDeck="Rhinar Blitz Deck",t.RiptideBlitzDeck="Riptide Blitz Deck",t.UzuriBlitzDeck="Uzuri Blitz Deck",t.VictorBlitzDeck="Victor Blitz Deck",t.ZenBlitzDeck="Zen Blitz Deck",t.FirstStrikeAurora="1st Strike: Aurora",t.FirstStrikeTerra="1st Strike: Terra",t.DorintheaHeroDeck="Dorinthea Hero Deck",t.KatsuHeroDeck="Katsu Hero Deck",t.RhinarHeroDeck="Rhinar Hero Deck",t.ClassicBattlesRhinarDorinthea="Classic Battles: Rhinar vs Dorinthea",t.IraWelcomeDeck="Ira Welcome Deck",t.RoundTheTable="Round the Table",t.Promos="Promos",t))(Q||{}),_=(o=>(o.Alpha="Alpha",o.First="First",o.Unlimited="Unlimited",o.Promo="Promo",o))(_||{}),J=(l=>(l.Draconic="Draconic",l.Earth="Earth",l.Elemental="Elemental",l.Ice="Ice",l.Light="Light",l.Lightning="Lightning",l.Mystic="Mystic",l.Royal="Royal",l.Shadow="Shadow",l))(J||{}),X=(k=>(k.Action="Action",k.AttackReaction="Attack Reaction",k.Block="Block",k.DefenseReaction="Defense Reaction",k.DemiHero="Demi-Hero",k.Equipment="Equipment",k.Hero="Hero",k.Instant="Instant",k.Macro="Macro",k.Mentor="Mentor",k.Resource="Resource",k.Token="Token",k.Weapon="Weapon",k))(X||{}),w=(n=>(n.OneHanded="1H",n.TwoHanded="2H",n.Affliction="Affliction",n.Ally="Ally",n.Angel="Angel",n.Arms="Arms",n.Arrow="Arrow",n.Ash="Ash",n.Attack="Attack",n.Aura="Aura",n.Axe="Axe",n.Base="Base",n.Book="Book",n.Bow="Bow",n.Chest="Chest",n.Chi="Chi",n.Claw="Claw",n.Club="Club",n.Construct="Construct",n.Dagger="Dagger",n.Demon="Demon",n.Dragon="Dragon",n.Evo="Evo",n.Fiddle="Fiddle",n.Figment="Figment",n.Flail="Flail",n.Gem="Gem",n.Gun="Gun",n.Hammer="Hammer",n.Head="Head",n.Invocation="Invocation",n.Item="Item",n.Landmark="Landmark",n.Lute="Lute",n.Legs="Legs",n.NonAttack="Non-Attack",n.OffHand="Off-Hand",n.Orb="Orb",n.Pistol="Pistol",n.Quiver="Quiver",n.Rock="Rock",n.Shuriken="Shuriken",n.Scepter="Scepter",n.Scroll="Scroll",n.Scythe="Scythe",n.Song="Song",n.Staff="Staff",n.Sword="Sword",n.Trap="Trap",n.Wrench="Wrench",n.Young="Young",n))(w||{}),H=(e=>(e.Arakni="Arakni",e.Aurora="Aurora",e.Azalea="Azalea",e.Benji="Benji",e.Betsy="Betsy",e.Blaze="Blaze",e.Boltyn="Boltyn",e.Bravo="Bravo",e.Brevant="Brevant",e.Briar="Briar",e.Brutus="Brutus",e.Chane="Chane",e.Dash="Dash",e.DataDoll="Data Doll",e.Dorinthea="Dorinthea",e.Dromai="Dromai",e.Emperor="Emperor",e.Enigma="Enigma",e.Fai="Fai",e.Florian="Florian",e.GenisWotchuneed="Genis Wotchuneed",e.Ira="Ira",e.Iyslander="Iyslander",e.Kano="Kano",e.Kassai="Kassai",e.Katsu="Katsu",e.Kavdaen="Kavdaen",e.Kayo="Kayo",e.Levia="Levia",e.Lexi="Lexi",e.Maxx="Maxx",e.Melody="Melody",e.Nuu="Nuu",e.Oldhim="Oldhim",e.Olympia="Olympia",e.Oscilio="Oscilio",e.Prism="Prism",e.Rhinar="Rhinar",e.Riptide="Riptide",e.Ruudi="Ruu'di",e.Shiyana="Shiyana",e.Squizzy="Squizzy",e.Taipanis="Taipanis",e.Taylor="Taylor",e.Teklovossen="Teklovossen",e.Terra="Terra",e.Theryon="Theryon",e.Uzuri="Uzuri",e.Valda="Valda",e.Verdance="Verdance",e.Victor="Victor",e.Vynnset="Vynnset",e.Viserai="Viserai",e.Yorick="Yorick",e.Yoji="Yoji",e.Zen="Zen",e))(H||{}),y=(i=>(i.Ambush="Ambush",i.Amp="Amp",i.ArcaneBarrier="Arcane Barrier",i.Awaken="Awaken",i.Battleworn="Battleworn",i.BeatChest="Beat Chest",i.BladeBreak="Blade Break",i.BloodDebt="Blood Debt",i.Boost="Boost",i.Channel="Channel",i.Charge="Charge",i.Clash="Clash",i.Cloaked="Cloaked",i.Combo="Combo",i.Contract="Contract",i.Crank="Crank",i.Crush="Crush",i.Decompose="Decompose",i.Dominate="Dominate",i.Ephemeral="Ephemeral",i.Essence="Essence",i.EvoUpgrade="Evo Upgrade",i.Freeze="Freeze",i.Fusion="Fusion",i.Galvanize="Galvanize",i.GoAgain="Go again",i.Guardwell="Guardwell",i.Heave="Heave",i.Intimidate="Intimidate",i.Legendary="Legendary",i.Material="Material",i.Meld="Meld",i.Modular="Modular",i.Mirage="Mirage",i.Negate="Negate",i.Opt="Opt",i.Overpower="Overpower",i.Pairs="Pairs",i.Piercing="Piercing",i.Phantasm="Phantasm",i.Protect="Protect",i.Quell="Quell",i.Reload="Reload",i.Reprise="Reprise",i.RuneGate="Rune Gate",i.Rupture="Rupture",i.Scrap="Scrap",i.Solflare="Solflare",i.Specialization="Specialization",i.Spectra="Spectra",i.Spellvoid="Spellvoid",i.Stealth="Stealth",i.Surge="Surge",i.Temper="Temper",i.Tower="Tower",i.Transform="Transform",i.Transcend="Transcend",i.Universal="Universal",i.Unfreeze="Unfreeze",i.Unity="Unity",i.Wager="Wager",i.Ward="Ward",i))(y||{});var P={wtr:"Welcome to Rathe",arc:"Arcane Rising",cru:"Crucible of War",mon:"Monarch",ele:"Tales of Aria",evr:"Everfest","1hp":"History Pack 1",hp1:"History Pack 1",upr:"Uprising",dyn:"Dynasty",out:"Outsiders",dtd:"Dusk till Dawn",evo:"Bright Lights",hvy:"Heavy Hitters",mst:"Part the Mistveil",ros:"Rosetta"},K=j(S({},P),{ako:"Armory Deck: Kayo",asb:"Armory Deck: Boltyn",aaz:"Armory Deck: Azalea",ara:"Arakni Blitz Deck",azl:"Azalea Blitz Deck",ben:"Benji Blitz Deck",bet:"Betsy Blitz Deck",bol:"Boltyn Blitz Deck",bri:"Briar Blitz Deck",bvo:"Bravo Blitz Deck",chn:"Chane Blitz Deck",dro:"Dromai Blitz Deck",eng:"Enigma Blitz Deck",fai:"Fai Blitz Deck",kat:"Katsu Blitz Deck",ksi:"Kassai Blitz Deck",kyo:"Kayo Blitz Deck",lev:"Levia Blitz Deck",lxi:"Lexi Blitz Deck",nuu:"Nuu Blitz Deck",old:"Oldhim Blitz Deck",ola:"Olympia Blitz Deck",psm:"Prism Blitz Deck",rip:"Riptide Blitz Deck",rnr:"Rhinar Blitz Deck",uzu:"Uzuri Blitz Deck",vic:"Victor Blitz Deck",zen:"Zen Blitz Deck",aur:"1st Strike: Aurora",ter:"1st Strike: Terra",dvr:"Classic Battles: Rhinar vs Dorinthea",rvd:"Classic Battles: Rhinar vs Dorinthea",ira:"Ira Welcome Deck",tcc:"Round the Table",tea:"Dorinthea Hero Deck",ksu:"Katsu Hero Deck",rnr2:"Rhinar Hero Deck",fab:"Promos",her:"Promos",jdg:"Promos",lgs:"Promos",lss:"Promos",oxo:"Promos",xxx:"Promos",win:"Promos"}),v={};for(let[r,a]of Object.entries(K)){let c=v[a];c?c.push(r):v[a]=[r]}var gi=v;var mi=(r,a)=>{let{name:c,pitch:s}=r,o=c.toLowerCase().replace("//","-").normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/ /g,"-").replace("\xED","i").replace(/[^a-z0-9 -]/g,"").replace(/--/,"-"),d="";switch(s){case"1":case 1:d=a?"-1":"-red";break;case"2":case 2:d=a?"-2":"-yellow";break;case"3":case 3:d=a?"-3":"-blue";break}return`${o}${d}`},ki={"Rhinar Blitz Deck":"-Blitz"},Bi={MST158_V3:"-V3",ROS162_V2:"-V2"},Di=r=>{var f,l;let a=ki[r.set]||"",c=`${r.identifier}${a}`,s=r.edition?`-${r.edition}`:"",o=r.foiling?`-${r.foiling}`:"",d=r.treatment?`-${r.treatment}`:"",D=(f=r.image)!=null&&f.toLowerCase().includes("back")?"-Back":"",u=Bi[((l=r.image)==null?void 0:l.toUpperCase())||""]||"";return`${c}${s}${o}${d}${D}${u}`},fi=Object.keys(P).filter(r=>!r.toLowerCase().includes("hp")).reverse().map(r=>r.toUpperCase()),ui={"command-and-conquer-red":{print:"DYN000-Cold"},"cracked-bauble-yellow":{print:"LGS083-Cold"},"fate-foreseen-red":{print:"FAB024-Rainbow"},"pitfall-trap-yellow":{print:"LGS151-Rainbow"},quicken:{print:"EVO250"},"ravenous-rabble-red":{print:"FAB190-Rainbow-Extended Art"},"rockslide-trap-blue":{print:"LGS152-Rainbow"},"sigil-of-solace-red":{print:"FAB178-Rainbow-Extended Art"},"spectral-shield":{print:"MST158-Alternate Art-V3"},"tripwire-trap-red":{print:"LGS150-Rainbow"},"viserai-rune-blood":{print:"HER011-Cold"}},hi=(r,a)=>{let{cardIdentifier:c}=r,s=Object.entries(ui).find(([o])=>o===c);if(s){let[,{print:o}]=s;return a.find(D=>D.print===o)||a[0]}else{let o,d,D,u,f,l,B,I,L,k,E,M,g,O,T,F,G,U;for(let m of a){let{edition:h,foiling:p,identifier:ei,image:C,treatment:z}=m,ti=ei.toLowerCase().includes("win");if(!!C&&!ti){if(o||(o=m),z==="Alternate Art")d=m;else if(z==="Alternate Border")D=m;else if(z==="Alternate Text")u=m;else if(z==="Extended Art")B=m,p==="Cold"&&(f=m),p||(L=m),h==="Promo"&&(k=m);else if(z==="Full Art"){I=m,p==="Cold"&&(l=m);break}C&&C.includes("_V2")&&(E=m),h==="Alpha"?M=m:h==="First"?g=m:h==="Promo"?O=m:h==="Unlimited"&&(T=m),p==="Cold"?(F=m,h==="Promo"&&(U=m)):p==="Gold"&&(G=m)}}return l||I||f||k||L||B||D||d||u||E||U||M||g||O||T||G||F||o}},pi={"command-and-conquer-red":{print:"ARC159-Unlimited"},"pitfall-trap-yellow":{print:"LGS151-Rainbow"},"rockslide-trap-blue":{print:"LGS152-Rainbow"},"spectral-shield":{print:"MST158"},"tripwire-trap-red":{print:"LGS150-Rainbow"}},zi=(r,a)=>{let{cardIdentifier:c}=r,s=Object.entries(pi).find(([o])=>o===c);if(s){let[,{print:o}]=s;return a.find(D=>D.print===o)||a[0]}else{let o,d;for(let D of a){let{edition:u,image:f,treatment:l}=D;if(!!f&&(o||(o=D),!d&&u!=="Promo"&&(d=D)),o&&d)break}return d||o||a[0]}},ii=(r,a)=>{let c=x(r,a),s=["Demi-Hero","Equipment","Weapon"].some(o=>r.includes(o));return!c&&s},x=(r,a)=>{let c=["Action","Attack Reaction","Block","Defense Reaction","Instant","Mentor","Resource"].some(o=>r.includes(o)),s=!a||!a.includes("Ephemeral");return c&&s},Ai=(r,a)=>{let c=ii(r,a),s=x(r,a);return c||s};0&&(module.exports={Class,Foiling,Format,Fusion,Hero,Keyword,Rarity,Release,ReleaseEdition,Subtype,Talent,Treatment,Type,fullSetIdentifiers,getCanAddToDeck,getCardIdentifier,getDefaultPrinting,getIsArenaCard,getIsDeckCard,getPrint,getSpecialPrinting,orderedFullSetBlackBorderIdentifiers,setIdentifierToSetMappings,setToSetIdentifierMappings});
@@ -192,6 +192,7 @@ export declare enum Type {
192
192
  Equipment = "Equipment",
193
193
  Hero = "Hero",
194
194
  Instant = "Instant",
195
+ Macro = "Macro",
195
196
  Mentor = "Mentor",
196
197
  Resource = "Resource",
197
198
  Token = "Token",
@@ -340,6 +341,7 @@ export declare enum Keyword {
340
341
  Intimidate = "Intimidate",
341
342
  Legendary = "Legendary",
342
343
  Material = "Material",
344
+ Meld = "Meld",
343
345
  Modular = "Modular",
344
346
  Mirage = "Mirage",
345
347
  Negate = "Negate",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@flesh-and-blood/types",
3
3
  "description": "TypeScript representations of Flesh and Blood card types",
4
- "version": "2.1.32",
4
+ "version": "2.1.36",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "sideEffects": false,
@@ -47,5 +47,5 @@
47
47
  "FAB",
48
48
  "FABTCG"
49
49
  ],
50
- "gitHead": "b561d374a2fe8fc57818a8da76ed5368792d1972"
50
+ "gitHead": "a5c4dc013eb5529ba70d182acc2159efadfbbc7f"
51
51
  }