@flesh-and-blood/types 2.1.18 → 2.1.20
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/index.js +1 -1
- package/dist/interfaces.d.ts +6 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var p=Object.defineProperty,ii=Object.defineProperties,ti=Object.getOwnPropertyDescriptor,ei=Object.getOwnPropertyDescriptors,ni=Object.getOwnPropertyNames,F=Object.getOwnPropertySymbols;var W=Object.prototype.hasOwnProperty,ri=Object.prototype.propertyIsEnumerable;var U=(n,r,l)=>r in n?p(n,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):n[r]=l,j=(n,r)=>{for(var l in r||(r={}))W.call(r,l)&&U(n,l,r[l]);if(F)for(var l of F(r))ri.call(r,l)&&U(n,l,r[l]);return n},R=(n,r)=>ii(n,ei(r));var ai=(n,r)=>{for(var l in r)p(n,l,{get:r[l],enumerable:!0})},oi=(n,r,l,d)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of ni(r))!W.call(n,a)&&a!==l&&p(n,a,{get:()=>r[a],enumerable:!(d=ti(r,a))||d.enumerable});return n};var li=n=>oi(p({},"__esModule",{value:!0}),n);var Di={};ai(Di,{Class:()=>b,Foiling:()=>V,Format:()=>S,Fusion:()=>$,Hero:()=>X,Keyword:()=>w,Rarity:()=>q,Release:()=>Y,ReleaseEdition:()=>Z,Subtype:()=>J,Talent:()=>Q,Treatment:()=>N,Type:()=>_,fullSetIdentifiers:()=>A,getDefaultPrinting:()=>fi,getPrint:()=>di,getSpecialPrinting:()=>ki,orderedFullSetBlackBorderIdentifiers:()=>gi,setIdentifierToSetMappings:()=>H,setToSetIdentifierMappings:()=>ci});module.exports=li(Di);var V=(d=>(d.C="Cold",d.G="Gold",d.R="Rainbow",d))(V||{}),N=(g=>(g.AB="Alternate Border",g.AA="Alternate Art",g.AT="Alternate Text",g.EA="Extended Art",g.FA="Full Art",g))(N||{}),b=(c=>(c.NotClassed="NotClassed",c.Generic="Generic",c.Adjudicator="Adjudicator",c.Assassin="Assassin",c.Bard="Bard",c.Brute="Brute",c.Guardian="Guardian",c.Illusionist="Illusionist",c.Mechanologist="Mechanologist",c.Merchant="Merchant",c.Ninja="Ninja",c.Ranger="Ranger",c.Runeblade="Runeblade",c.Shapeshifter="Shapeshifter",c.Warrior="Warrior",c.Wizard="Wizard",c))(b||{}),S=(k=>(k.Blitz="Blitz",k.BlitzLivingLegend="Blitz (Living Legend)",k.Clash="Clash",k.ClassicConstructed="Classic Constructed",k.ClassicConstructedLivingLegend="Classic Constructed (Living Legend)",k.Commoner="Commoner",k.Draft="Draft",k.Open="Open",k.Sealed="Sealed",k.UltimatePitFight="Ultimate Pit Fight",k))(S||{}),$=(d=>(d.Earth="Earth",d.Ice="Ice",d.Lightning="Lightning",d))($||{}),q=(o=>(o.Token="Token",o.Common="Common",o.Rare="Rare",o.SuperRare="Super Rare",o.Majestic="Majestic",o.Marvel="Marvel",o.Legendary="Legendary",o.Fabled="Fabled",o.Promo="Promo",o))(q||{}),Y=(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.TalesOfAria="Tales of Aria",e.Uprising="Uprising",e.WelcomeToRathe="Welcome to Rathe",e.ArmoryDeckKayo="Armory Deck: Kayo",e.ArmoryDeckBoltyn="Armory Deck: Boltyn",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.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))(Y||{}),Z=(a=>(a.Alpha="Alpha",a.First="First",a.Unlimited="Unlimited",a.Promo="Promo",a))(Z||{}),Q=(o=>(o.Draconic="Draconic",o.Earth="Earth",o.Elemental="Elemental",o.Ice="Ice",o.Light="Light",o.Lightning="Lightning",o.Mystic="Mystic",o.Royal="Royal",o.Shadow="Shadow",o))(Q||{}),_=(m=>(m.Action="Action",m.AttackReaction="Attack Reaction",m.Block="Block",m.DefenseReaction="Defense Reaction",m.DemiHero="Demi-Hero",m.Equipment="Equipment",m.Hero="Hero",m.Instant="Instant",m.Mentor="Mentor",m.Resource="Resource",m.Token="Token",m.Weapon="Weapon",m))(_||{}),J=(i=>(i.OneHanded="1H",i.TwoHanded="2H",i.Affliction="Affliction",i.Ally="Ally",i.Angel="Angel",i.Arms="Arms",i.Arrow="Arrow",i.Ash="Ash",i.Attack="Attack",i.Aura="Aura",i.Axe="Axe",i.Base="Base",i.Book="Book",i.Bow="Bow",i.Chest="Chest",i.Chi="Chi",i.Claw="Claw",i.Club="Club",i.Construct="Construct",i.Dagger="Dagger",i.Demon="Demon",i.Dragon="Dragon",i.Evo="Evo",i.Fiddle="Fiddle",i.Figment="Figment",i.Flail="Flail",i.Gem="Gem",i.Gun="Gun",i.Hammer="Hammer",i.Head="Head",i.Invocation="Invocation",i.Item="Item",i.Landmark="Landmark",i.Lute="Lute",i.Legs="Legs",i.NonAttack="Non-Attack",i.OffHand="Off-Hand",i.Orb="Orb",i.Pistol="Pistol",i.Quiver="Quiver",i.Rock="Rock",i.Shuriken="Shuriken",i.Scepter="Scepter",i.Scroll="Scroll",i.Scythe="Scythe",i.Song="Song",i.Staff="Staff",i.Sword="Sword",i.Trap="Trap",i.Wrench="Wrench",i.Young="Young",i))(J||{}),X=(i=>(i.Arakni="Arakni",i.Azalea="Azalea",i.Benji="Benji",i.Betsy="Betsy",i.Blaze="Blaze",i.Boltyn="Boltyn",i.Bravo="Bravo",i.Brevant="Brevant",i.Briar="Briar",i.Brutus="Brutus",i.Chane="Chane",i.Dash="Dash",i.DataDoll="Data Doll",i.Dorinthea="Dorinthea",i.Dromai="Dromai",i.Emperor="Emperor",i.Enigma="Enigma",i.Fai="Fai",i.GenisWotchuneed="Genis Wotchuneed",i.Ira="Ira",i.Iyslander="Iyslander",i.Kano="Kano",i.Kassai="Kassai",i.Katsu="Katsu",i.Kavdaen="Kavdaen",i.Kayo="Kayo",i.Levia="Levia",i.Lexi="Lexi",i.Maxx="Maxx",i.Melody="Melody",i.Nuu="Nuu",i.Oldhim="Oldhim",i.Olympia="Olympia",i.Prism="Prism",i.Rhinar="Rhinar",i.Riptide="Riptide",i.Ruudi="Ruu'di",i.Shiyana="Shiyana",i.Squizzy="Squizzy",i.Taipanis="Taipanis",i.Taylor="Taylor",i.Teklovossen="Teklovossen",i.Theryon="Theryon",i.Uzuri="Uzuri",i.Valda="Valda",i.Victor="Victor",i.Vynnset="Vynnset",i.Viserai="Viserai",i.Yorick="Yorick",i.Yoji="Yoji",i.Zen="Zen",i))(X||{}),w=(t=>(t.Ambush="Ambush",t.Amp="Amp",t.ArcaneBarrier="Arcane Barrier",t.Awaken="Awaken",t.Battleworn="Battleworn",t.BeatChest="Beat Chest",t.BladeBreak="Blade Break",t.BloodDebt="Blood Debt",t.Boost="Boost",t.Channel="Channel",t.Charge="Charge",t.Clash="Clash",t.Cloaked="Cloaked",t.Combo="Combo",t.Contract="Contract",t.Crank="Crank",t.Crush="Crush",t.Dominate="Dominate",t.Ephemeral="Ephemeral",t.Essence="Essence",t.EvoUpgrade="Evo Upgrade",t.Freeze="Freeze",t.Fusion="Fusion",t.Galvanize="Galvanize",t.GoAgain="Go again",t.Guardwell="Guardwell",t.Heave="Heave",t.Intimidate="Intimidate",t.Legendary="Legendary",t.Material="Material",t.Modular="Modular",t.Mirage="Mirage",t.Negate="Negate",t.Opt="Opt",t.Overpower="Overpower",t.Pairs="Pairs",t.Piercing="Piercing",t.Phantasm="Phantasm",t.Protect="Protect",t.Quell="Quell",t.Reload="Reload",t.Reprise="Reprise",t.RuneGate="Rune Gate",t.Rupture="Rupture",t.Scrap="Scrap",t.Solflare="Solflare",t.Specialization="Specialization",t.Spectra="Spectra",t.Spellvoid="Spellvoid",t.Stealth="Stealth",t.Surge="Surge",t.Temper="Temper",t.Tower="Tower",t.Transform="Transform",t.Transcend="Transcend",t.Universal="Universal",t.Unfreeze="Unfreeze",t.Unity="Unity",t.Wager="Wager",t.Ward="Ward",t))(w||{});var A={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"},H=R(j({},A),{ako:"Armory Deck: Kayo",asb:"Armory Deck: Boltyn",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",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[n,r]of Object.entries(H)){let l=v[r];l?l.push(n):v[r]=[n]}var ci=v;var si={"Rhinar Blitz Deck":"-Blitz"},di=n=>{var f,o;let r=si[n.set]||"",l=`${n.identifier}${r}`,d=n.edition?`-${n.edition}`:"",a=n.foiling?`-${n.foiling}`:"",g=n.treatment?`-${n.treatment}`:"",B=(f=n.image)!=null&&f.toLowerCase().includes("back")?"-Back":"",D=(o=n.image)!=null&&o.toLowerCase().includes("_v3")?"-V3":"";return`${l}${d}${a}${g}${B}${D}`},gi=Object.keys(A).filter(n=>!n.toLowerCase().includes("hp")).reverse().map(n=>n.toUpperCase()),mi={"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"}},ki=(n,r)=>{let{cardIdentifier:l}=n,d=Object.entries(mi).find(([a])=>a===l);if(d){let[,{print:a}]=d;return r.find(B=>B.print===a)||r[0]}else{let a,g,B,D,f,o,k,C,m,x,I,L,c,E,O,M,G,T;for(let s of r){let{edition:h,foiling:u,identifier:y,image:P,treatment:z}=s,K=y.toLowerCase().includes("win");if(!!P&&!K){if(a||(a=s),z==="Alternate Art")g=s;else if(z==="Alternate Border")B=s;else if(z==="Alternate Text")D=s;else if(z==="Extended Art")k=s,u==="Cold"&&(f=s),u||(m=s),h==="Promo"&&(x=s);else if(z==="Full Art"){C=s,u==="Cold"&&(o=s);break}P&&P.includes("_V2")&&(I=s),h==="Alpha"?L=s:h==="First"?c=s:h==="Promo"?E=s:h==="Unlimited"&&(O=s),u==="Cold"?(M=s,h==="Promo"&&(T=s)):u==="Gold"&&(G=s)}}return o||C||f||x||m||k||B||g||D||I||T||L||c||E||O||G||M||a}},Bi={"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"}},fi=(n,r)=>{let{cardIdentifier:l}=n,d=Object.entries(Bi).find(([a])=>a===l);if(d){let[,{print:a}]=d;return r.find(B=>B.print===a)||r[0]}else{let a,g;for(let B of r){let{edition:D,image:f,treatment:o}=B;if(!!f&&(a||(a=B),!g&&D!=="Promo"&&(g=B)),a&&g)break}return g||a||r[0]}};0&&(module.exports={Class,Foiling,Format,Fusion,Hero,Keyword,Rarity,Release,ReleaseEdition,Subtype,Talent,Treatment,Type,fullSetIdentifiers,getDefaultPrinting,getPrint,getSpecialPrinting,orderedFullSetBlackBorderIdentifiers,setIdentifierToSetMappings,setToSetIdentifierMappings});
|
|
1
|
+
var A=Object.defineProperty,ti=Object.defineProperties,ei=Object.getOwnPropertyDescriptor,ni=Object.getOwnPropertyDescriptors,ri=Object.getOwnPropertyNames,U=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,ai=Object.prototype.propertyIsEnumerable;var W=(r,a,s)=>a in r?A(r,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[a]=s,j=(r,a)=>{for(var s in a||(a={}))R.call(a,s)&&W(r,s,a[s]);if(U)for(var s of U(a))ai.call(a,s)&&W(r,s,a[s]);return r},V=(r,a)=>ti(r,ni(a));var oi=(r,a)=>{for(var s in a)A(r,s,{get:a[s],enumerable:!0})},li=(r,a,s,g)=>{if(a&&typeof a=="object"||typeof a=="function")for(let o of ri(a))!R.call(r,o)&&o!==s&&A(r,o,{get:()=>a[o],enumerable:!(g=ei(a,o))||g.enumerable});return r};var si=r=>li(A({},"__esModule",{value:!0}),r);var hi={};oi(hi,{Class:()=>S,Foiling:()=>N,Format:()=>$,Fusion:()=>q,Hero:()=>w,Keyword:()=>H,Rarity:()=>Y,Release:()=>Z,ReleaseEdition:()=>Q,Subtype:()=>X,Talent:()=>_,Treatment:()=>b,Type:()=>J,fullSetIdentifiers:()=>P,getDefaultPrinting:()=>Di,getPrint:()=>gi,getSpecialPrinting:()=>Bi,orderedFullSetBlackBorderIdentifiers:()=>mi,setIdentifierToSetMappings:()=>y,setToSetIdentifierMappings:()=>ci});module.exports=si(hi);var N=(g=>(g.C="Cold",g.G="Gold",g.R="Rainbow",g))(N||{}),b=(m=>(m.AB="Alternate Border",m.AA="Alternate Art",m.AT="Alternate Text",m.EA="Extended Art",m.FA="Full Art",m))(b||{}),S=(c=>(c.NotClassed="NotClassed",c.Generic="Generic",c.Adjudicator="Adjudicator",c.Assassin="Assassin",c.Bard="Bard",c.Brute="Brute",c.Guardian="Guardian",c.Illusionist="Illusionist",c.Mechanologist="Mechanologist",c.Merchant="Merchant",c.Ninja="Ninja",c.Ranger="Ranger",c.Runeblade="Runeblade",c.Shapeshifter="Shapeshifter",c.Warrior="Warrior",c.Wizard="Wizard",c))(S||{}),$=(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=(g=>(g.Earth="Earth",g.Ice="Ice",g.Lightning="Lightning",g))(q||{}),Y=(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))(Y||{}),Z=(n=>(n.ArcaneRising="Arcane Rising",n.BrightLights="Bright Lights",n.CrucibleOfWar="Crucible of War",n.DuskTillDawn="Dusk till Dawn",n.Dynasty="Dynasty",n.Everfest="Everfest",n.HeavyHitters="Heavy Hitters",n.HistoryPack1="History Pack 1",n.Monarch="Monarch",n.Outsiders="Outsiders",n.PartTheMistveil="Part the Mistveil",n.Rosetta="Rosetta",n.TalesOfAria="Tales of Aria",n.Uprising="Uprising",n.WelcomeToRathe="Welcome to Rathe",n.ArmoryDeckKayo="Armory Deck: Kayo",n.ArmoryDeckBoltyn="Armory Deck: Boltyn",n.ArakniBlitzDeck="Arakni Blitz Deck",n.AzaleaBlitzDeck="Azalea Blitz Deck",n.BenjiBlitzDeck="Benji Blitz Deck",n.BetsyBlitzDeck="Betsy Blitz Deck",n.BoltynBlitzDeck="Boltyn Blitz Deck",n.BriarBlitzDeck="Briar Blitz Deck",n.BravoBlitzDeck="Bravo Blitz Deck",n.ChaneBlitzDeck="Chane Blitz Deck",n.DromaiBlitzDeck="Dromai Blitz Deck",n.EnigmaBlitzDeck="Enigma Blitz Deck",n.FaiBlitzDeck="Fai Blitz Deck",n.KassaiBlitzDeck="Kassai Blitz Deck",n.KatsuBlitzDeck="Katsu Blitz Deck",n.KayoBlitzDeck="Kayo Blitz Deck",n.LeviaBlitzDeck="Levia Blitz Deck",n.LexiBlitzDeck="Lexi Blitz Deck",n.NuuBlitzDeck="Nuu Blitz Deck",n.OldhimBlitzDeck="Oldhim Blitz Deck",n.OlympiaBlitzDeck="Olympia Blitz Deck",n.PrismBlitzDeck="Prism Blitz Deck",n.RhinarBlitzDeck="Rhinar Blitz Deck",n.RiptideBlitzDeck="Riptide Blitz Deck",n.UzuriBlitzDeck="Uzuri Blitz Deck",n.VictorBlitzDeck="Victor Blitz Deck",n.ZenBlitzDeck="Zen Blitz Deck",n.DorintheaHeroDeck="Dorinthea Hero Deck",n.KatsuHeroDeck="Katsu Hero Deck",n.RhinarHeroDeck="Rhinar Hero Deck",n.ClassicBattlesRhinarDorinthea="Classic Battles: Rhinar vs Dorinthea",n.IraWelcomeDeck="Ira Welcome Deck",n.RoundTheTable="Round the Table",n.Promos="Promos",n))(Z||{}),Q=(o=>(o.Alpha="Alpha",o.First="First",o.Unlimited="Unlimited",o.Promo="Promo",o))(Q||{}),_=(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=(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=(e=>(e.OneHanded="1H",e.TwoHanded="2H",e.Affliction="Affliction",e.Ally="Ally",e.Angel="Angel",e.Arms="Arms",e.Arrow="Arrow",e.Ash="Ash",e.Attack="Attack",e.Aura="Aura",e.Axe="Axe",e.Base="Base",e.Book="Book",e.Bow="Bow",e.Chest="Chest",e.Chi="Chi",e.Claw="Claw",e.Club="Club",e.Construct="Construct",e.Dagger="Dagger",e.Demon="Demon",e.Dragon="Dragon",e.Evo="Evo",e.Fiddle="Fiddle",e.Figment="Figment",e.Flail="Flail",e.Gem="Gem",e.Gun="Gun",e.Hammer="Hammer",e.Head="Head",e.Invocation="Invocation",e.Item="Item",e.Landmark="Landmark",e.Lute="Lute",e.Legs="Legs",e.NonAttack="Non-Attack",e.OffHand="Off-Hand",e.Orb="Orb",e.Pistol="Pistol",e.Quiver="Quiver",e.Rock="Rock",e.Shuriken="Shuriken",e.Scepter="Scepter",e.Scroll="Scroll",e.Scythe="Scythe",e.Song="Song",e.Staff="Staff",e.Sword="Sword",e.Trap="Trap",e.Wrench="Wrench",e.Young="Young",e))(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.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=V(j({},P),{ako:"Armory Deck: Kayo",asb:"Armory Deck: Boltyn",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",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 s=C[a];s?s.push(r):C[a]=[r]}var ci=C;var di={"Rhinar Blitz Deck":"-Blitz"},gi=r=>{var D,l;let a=di[r.set]||"",s=`${r.identifier}${a}`,g=r.edition?`-${r.edition}`:"",o=r.foiling?`-${r.foiling}`:"",m=r.treatment?`-${r.treatment}`:"",f=(D=r.image)!=null&&D.toLowerCase().includes("back")?"-Back":"",h=(l=r.image)!=null&&l.toLowerCase().includes("_v3")?"-V3":"";return`${s}${g}${o}${m}${f}${h}`},mi=Object.keys(P).filter(r=>!r.toLowerCase().includes("hp")).reverse().map(r=>r.toUpperCase()),ki={"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"}},Bi=(r,a)=>{let{cardIdentifier:s}=r,g=Object.entries(ki).find(([o])=>o===s);if(g){let[,{print:o}]=g;return a.find(f=>f.print===o)||a[0]}else{let o,m,f,h,D,l,B,x,k,I,L,E,c,O,M,F,G,T;for(let d of a){let{edition:u,foiling:z,identifier:K,image:v,treatment:p}=d,ii=K.toLowerCase().includes("win");if(!!v&&!ii){if(o||(o=d),p==="Alternate Art")m=d;else if(p==="Alternate Border")f=d;else if(p==="Alternate Text")h=d;else if(p==="Extended Art")B=d,z==="Cold"&&(D=d),z||(k=d),u==="Promo"&&(I=d);else if(p==="Full Art"){x=d,z==="Cold"&&(l=d);break}v&&v.includes("_V2")&&(L=d),u==="Alpha"?E=d:u==="First"?c=d:u==="Promo"?O=d:u==="Unlimited"&&(M=d),z==="Cold"?(F=d,u==="Promo"&&(T=d)):z==="Gold"&&(G=d)}}return l||x||D||I||k||B||f||m||h||L||T||E||c||O||M||G||F||o}},fi={"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"}},Di=(r,a)=>{let{cardIdentifier:s}=r,g=Object.entries(fi).find(([o])=>o===s);if(g){let[,{print:o}]=g;return a.find(f=>f.print===o)||a[0]}else{let o,m;for(let f of a){let{edition:h,image:D,treatment:l}=f;if(!!D&&(o||(o=f),!m&&h!=="Promo"&&(m=f)),o&&m)break}return m||o||a[0]}};0&&(module.exports={Class,Foiling,Format,Fusion,Hero,Keyword,Rarity,Release,ReleaseEdition,Subtype,Talent,Treatment,Type,fullSetIdentifiers,getDefaultPrinting,getPrint,getSpecialPrinting,orderedFullSetBlackBorderIdentifiers,setIdentifierToSetMappings,setToSetIdentifierMappings});
|
package/dist/interfaces.d.ts
CHANGED
|
@@ -124,6 +124,7 @@ export declare enum Release {
|
|
|
124
124
|
Monarch = "Monarch",
|
|
125
125
|
Outsiders = "Outsiders",
|
|
126
126
|
PartTheMistveil = "Part the Mistveil",
|
|
127
|
+
Rosetta = "Rosetta",
|
|
127
128
|
TalesOfAria = "Tales of Aria",
|
|
128
129
|
Uprising = "Uprising",
|
|
129
130
|
WelcomeToRathe = "Welcome to Rathe",
|
|
@@ -248,6 +249,7 @@ export declare enum Subtype {
|
|
|
248
249
|
}
|
|
249
250
|
export declare enum Hero {
|
|
250
251
|
Arakni = "Arakni",
|
|
252
|
+
Aurora = "Aurora",
|
|
251
253
|
Azalea = "Azalea",
|
|
252
254
|
Benji = "Benji",
|
|
253
255
|
Betsy = "Betsy",
|
|
@@ -265,6 +267,7 @@ export declare enum Hero {
|
|
|
265
267
|
Emperor = "Emperor",
|
|
266
268
|
Enigma = "Enigma",
|
|
267
269
|
Fai = "Fai",
|
|
270
|
+
Florian = "Florian",
|
|
268
271
|
GenisWotchuneed = "Genis Wotchuneed",
|
|
269
272
|
Ira = "Ira",
|
|
270
273
|
Iyslander = "Iyslander",
|
|
@@ -280,6 +283,7 @@ export declare enum Hero {
|
|
|
280
283
|
Nuu = "Nuu",
|
|
281
284
|
Oldhim = "Oldhim",
|
|
282
285
|
Olympia = "Olympia",
|
|
286
|
+
Oscilio = "Oscilio",
|
|
283
287
|
Prism = "Prism",
|
|
284
288
|
Rhinar = "Rhinar",
|
|
285
289
|
Riptide = "Riptide",
|
|
@@ -292,6 +296,7 @@ export declare enum Hero {
|
|
|
292
296
|
Theryon = "Theryon",
|
|
293
297
|
Uzuri = "Uzuri",
|
|
294
298
|
Valda = "Valda",
|
|
299
|
+
Verdance = "Verdance",
|
|
295
300
|
Victor = "Victor",
|
|
296
301
|
Vynnset = "Vynnset",
|
|
297
302
|
Viserai = "Viserai",
|
|
@@ -317,6 +322,7 @@ export declare enum Keyword {
|
|
|
317
322
|
Contract = "Contract",
|
|
318
323
|
Crank = "Crank",
|
|
319
324
|
Crush = "Crush",
|
|
325
|
+
Decompose = "Decompose",
|
|
320
326
|
Dominate = "Dominate",
|
|
321
327
|
Ephemeral = "Ephemeral",
|
|
322
328
|
Essence = "Essence",
|
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.
|
|
4
|
+
"version": "2.1.20",
|
|
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": "
|
|
50
|
+
"gitHead": "996d1583a8f1d67fd219e5ddfac2287b2daa4e89"
|
|
51
51
|
}
|