@flesh-and-blood/cards 0.0.93 → 0.0.94

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 CHANGED
@@ -1214,7 +1214,7 @@ When this is equipped, gain {r}.`,keywords:[e.Keyword.Transform],pitch:2},{artis
1214
1214
 
1215
1215
  **Once per Turn Instant** - Destroy a card under this: Create a Quicken token.
1216
1216
 
1217
- **Blade Break**`,keywords:[e.Keyword.BladeBreak,e.Keyword.Transform],pitch:2},{artists:["Isuardi Therianto"],cardIdentifier:"evo-circut-breaker-red",classes:[e.Class.Mechanologist],defaultImage:"EVO030",name:"Evo Circut Breaker",printings:[{identifier:"EVO030",image:"EVO030",set:e.Release.BrightLights},{foiling:e.Foiling.C,identifier:"EVO030",image:"EVO030_V2",set:e.Release.BrightLights,treatment:e.Treatment.AB}],rarities:[e.Rarity.Majestic,e.Rarity.Marvel],rarity:e.Rarity.Majestic,setIdentifiers:["EVO030"],sets:[e.Release.BrightLights],specialImage:"EVO030_V2",subtypes:[e.Subtype.Evo,e.Subtype.Head],types:[e.Type.Equipment,e.Type.Instant],typeText:"Mechanologist Instant Equipment - Evo Head",cost:0,defense:0,functionalText:`If you have a base head equipped, **transform** it and X Hyper Drivers you control into this, then equip this. If you do, the next time you would be dealt damage this turn, prevent twice X of that damage.
1217
+ **Blade Break**`,keywords:[e.Keyword.BladeBreak,e.Keyword.Transform],pitch:2},{artists:["Isuardi Therianto"],cardIdentifier:"evo-circuit-breaker-red",classes:[e.Class.Mechanologist],defaultImage:"EVO030",name:"Evo Circuit Breaker",printings:[{identifier:"EVO030",image:"EVO030",set:e.Release.BrightLights},{foiling:e.Foiling.C,identifier:"EVO030",image:"EVO030_V2",set:e.Release.BrightLights,treatment:e.Treatment.AB}],rarities:[e.Rarity.Majestic,e.Rarity.Marvel],rarity:e.Rarity.Majestic,setIdentifiers:["EVO030"],sets:[e.Release.BrightLights],specialImage:"EVO030_V2",subtypes:[e.Subtype.Evo,e.Subtype.Head],types:[e.Type.Equipment,e.Type.Instant],typeText:"Mechanologist Instant Equipment - Evo Head",cost:0,defense:0,functionalText:`If you have a base head equipped, **transform** it and X Hyper Drivers you control into this, then equip this. If you do, the next time you would be dealt damage this turn, prevent twice X of that damage.
1218
1218
 
1219
1219
  Whenever you **boost**, you may destroy a card under this. If you do, shuffle 2 attack action cards from your banished zone into your deck.`,keywords:[e.Keyword.Transform],pitch:1,restrictedFormats:[e.Format.Commoner]},{artists:["Ramza Ardyputra"],cardIdentifier:"evo-cogspitter-yellow",classes:[e.Class.Mechanologist],defaultImage:"EVO048",name:"Evo Cogspitter",printings:[{identifier:"EVO048",image:"EVO048",set:e.Release.BrightLights},{foiling:e.Foiling.C,identifier:"EVO048",image:"EVO048",set:e.Release.BrightLights}],rarities:[e.Rarity.Common],rarity:e.Rarity.Common,setIdentifiers:["EVO048"],sets:[e.Release.BrightLights],specialImage:"EVO048",subtypes:[e.Subtype.Arms,e.Subtype.Evo,e.Subtype.NonAttack],types:[e.Type.Action,e.Type.Equipment],typeText:"Mechanologist Action Equipment - Evo Arms",cost:0,defense:2,functionalText:`If you have a base arms equipped, **transform** it into this, then equip this.
1220
1220
 
@@ -0,0 +1 @@
1
+ export declare const releasedCards: import("@flesh-and-blood/types").Card[];
@@ -0,0 +1,3 @@
1
+ import { Card } from "@flesh-and-blood/types";
2
+ import { ParsedCard } from "./parser";
3
+ export declare const mapJSON: (parsedCards: ParsedCard[]) => Card[];
@@ -0,0 +1,46 @@
1
+ export interface Printing {
2
+ setIdentifier: string;
3
+ set: string;
4
+ edition: string;
5
+ foiling: string;
6
+ rarity: string;
7
+ artist: string;
8
+ artVariation: string;
9
+ imageUrl: string;
10
+ }
11
+ export interface ParsedCard {
12
+ abilitiesAndEffects: string[];
13
+ abilityAndEffectKeywords: string[];
14
+ artists: string[];
15
+ cardKeywords: string[];
16
+ cost: string;
17
+ power: string;
18
+ defense: string;
19
+ functionalText: string;
20
+ grantedKeywords: string[];
21
+ identifiers: string[];
22
+ images: string[];
23
+ intellect?: string;
24
+ life?: string;
25
+ name: string;
26
+ pitch?: string;
27
+ printings: Printing[];
28
+ rarity: string[];
29
+ setIdentifiers: string[];
30
+ sets: string[];
31
+ types: string[];
32
+ typeText: string;
33
+ variations: string[];
34
+ blitzBanned: boolean;
35
+ blitzLegal: boolean;
36
+ blitzLivingLegend: boolean;
37
+ blitzSuspended: boolean;
38
+ classicConstructedBanned: boolean;
39
+ classicConstructedLegal: boolean;
40
+ classicConstructedLivingLegend: boolean;
41
+ classicConstructedSuspended: boolean;
42
+ commonerBanned: boolean;
43
+ commonerLegal: boolean;
44
+ commonerSuspended: boolean;
45
+ }
46
+ export declare const parseJSON: (json: any) => ParsedCard[];
@@ -0,0 +1,4 @@
1
+ export declare const overrides: {
2
+ original: string;
3
+ override: string;
4
+ }[];
@@ -0,0 +1,3 @@
1
+ export declare const filterOutUnwantedCards: ({ name }: {
2
+ name: string;
3
+ }) => boolean;
@@ -0,0 +1,2 @@
1
+ export * from "./excludes";
2
+ export * from "./mapper";
@@ -0,0 +1,59 @@
1
+ import { Card, Fusion, Printing, Rarity, Release, Subtype } from "@flesh-and-blood/types";
2
+ export declare const getNumberOrUndefined: (value?: string) => number | undefined;
3
+ export declare const getStringIfNotNumber: (value?: string) => string | undefined;
4
+ export declare const addOppositeSideCardIdentifiers: (cards: Card[]) => {
5
+ isCardBack?: boolean;
6
+ oppositeSideCardIdentifier?: string;
7
+ artists: string[];
8
+ cardIdentifier: string;
9
+ classes: import("@flesh-and-blood/types").Class[];
10
+ defaultImage: string;
11
+ name: string;
12
+ printings: Printing[];
13
+ rarities: Rarity[];
14
+ rarity: Rarity;
15
+ setIdentifiers: string[];
16
+ sets: Release[];
17
+ specialImage: string;
18
+ subtypes: Subtype[];
19
+ types: import("@flesh-and-blood/types").Type[];
20
+ typeText: string;
21
+ cost?: number;
22
+ defense?: number;
23
+ functionalText?: string;
24
+ fusions?: Fusion[];
25
+ life?: number;
26
+ hero?: import("@flesh-and-blood/types").Hero;
27
+ intellect?: number;
28
+ keywords?: import("@flesh-and-blood/types").Keyword[];
29
+ pitch?: number;
30
+ power?: number;
31
+ restrictedFormats?: import("@flesh-and-blood/types").Format[];
32
+ specialCost?: string;
33
+ specialDefense?: string;
34
+ specialLife?: string;
35
+ specialPower?: string;
36
+ specializations?: import("@flesh-and-blood/types").Hero[];
37
+ talents?: import("@flesh-and-blood/types").Talent[];
38
+ young?: boolean;
39
+ }[];
40
+ export declare const getDefaultImage: (cardName: string, printings: Printing[]) => string;
41
+ export declare const getSpecialImage: (cardName: string, printings: Printing[]) => string;
42
+ export declare const getPrint: (printing: {
43
+ identifier: string;
44
+ edition?: string;
45
+ foiling?: string;
46
+ treatment?: string;
47
+ }) => string;
48
+ export declare const getSets: ({ setIdentifiers, }: {
49
+ setIdentifiers: string[];
50
+ }) => Release[];
51
+ export declare const getFusions: (card: {
52
+ cardKeywords: string[];
53
+ }) => Fusion[];
54
+ export declare const rarityStringMapping: {
55
+ [key: string]: Rarity;
56
+ };
57
+ export declare const getRarities: (card: {
58
+ rarity: string[];
59
+ }) => Rarity[];
@@ -0,0 +1,2 @@
1
+ import { Card } from "@flesh-and-blood/types";
2
+ export declare const spoiledCards: Card[];
@@ -0,0 +1,4 @@
1
+ import { Card, Rarity } from "@flesh-and-blood/types";
2
+ import { ParsedCard } from "./parser";
3
+ export declare const getRarities: (card: ParsedCard) => Rarity[];
4
+ export declare const mapCSV: (parsedCards: ParsedCard[]) => Card[];
@@ -0,0 +1,32 @@
1
+ export interface ParsedCard {
2
+ abilitiesAndEffects: string[];
3
+ abilityAndEffectKeywords: string[];
4
+ cardKeywords: string[];
5
+ cost: string;
6
+ power: string;
7
+ defense: string;
8
+ functionalText: string;
9
+ grantedKeywords: string[];
10
+ identifiers: string[];
11
+ intellect?: string;
12
+ life?: string;
13
+ name: string;
14
+ pitch?: string;
15
+ setIdentifiers: string[];
16
+ types: string[];
17
+ typeText: string;
18
+ blitzLegal: string;
19
+ classicConstructedLegal: string;
20
+ commonerLegal: string;
21
+ artist: string;
22
+ foiling?: string;
23
+ imageUrl: string;
24
+ rarity: string;
25
+ treatment?: string;
26
+ artist2?: string;
27
+ foiling2?: string;
28
+ imageUrl2?: string;
29
+ rarity2?: string;
30
+ treatment2?: string;
31
+ }
32
+ export declare const parseCSV: (file: string) => ParsedCard[];
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import { Card } from "@flesh-and-blood/types";
2
+ export declare const writeFiles: (cards: Card[], outputDirectory: string) => void;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare const fabDictionaryIgnore: string[];
2
+ export declare const fabDictionary: string[];
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@flesh-and-blood/cards",
3
3
  "description": "TypeScript representations of Flesh and Blood cards",
4
- "version": "0.0.93",
4
+ "version": "0.0.94",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "sideEffects": false,
@@ -20,7 +20,7 @@
20
20
  "prepublish": "npm run full"
21
21
  },
22
22
  "dependencies": {
23
- "@flesh-and-blood/types": "^0.0.93"
23
+ "@flesh-and-blood/types": "^0.0.94"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/jest": "^29.5.5",
@@ -31,10 +31,11 @@
31
31
  "esbuild-jest": "^0.5.0",
32
32
  "fast-xml-parser": "4.2.7",
33
33
  "jest": "^29.7.0",
34
- "latest-cards": "npm:@flesh-and-blood/cards@^0.0.92",
34
+ "latest-cards": "npm:@flesh-and-blood/cards@^0.0.93",
35
35
  "papaparse": "5.3.2",
36
36
  "ts-node": "^10.9.1",
37
- "typescript": "^5.2.2"
37
+ "typescript": "^5.2.2",
38
+ "typo-js": "^1.2.3"
38
39
  },
39
40
  "files": [
40
41
  "/dist"
@@ -57,5 +58,5 @@
57
58
  "FAB",
58
59
  "FABTCG"
59
60
  ],
60
- "gitHead": "be93d3226bca4f8fdaaeb3925beb5a99e3a7bce2"
61
+ "gitHead": "804091bb2fc9e79619800e8307ce43ba0e7424a1"
61
62
  }
File without changes