open-optcg 0.2.0 → 0.2.1-next.5
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/cards.js +1 -1
- package/dist/chunks/{chunk-CRP6FDKG.js → chunk-XXGYMN4U.js} +1 -1
- package/dist/decks.js +2 -2
- package/dist/engine.js +1 -1
- package/dist/types/internal/cards/src/generated-op18.d.ts +5852 -0
- package/dist/types/internal/cards/src/op18.d.ts +2 -0
- package/dist/types/internal/decks/src/deck-provenance.d.ts +1 -1
- package/dist/types/internal/decks/src/index.d.ts +3 -2
- package/dist/types/internal/decks/src/op09-buggy-tcgmm-manifest.d.ts +2 -0
- package/dist/types/internal/decks/src/op12-rosinante-tcgmm-manifest.d.ts +2 -0
- package/dist/types/internal/decks/src/op13-luffy-tcgmm-manifest.d.ts +2 -0
- package/dist/types/internal/decks/src/op14-law-tcgmm-manifest.d.ts +2 -0
- package/dist/types/internal/decks/src/op17-kaido-tcgmm-manifest.d.ts +2 -0
- package/dist/types/internal/decks/src/op17-xebec-tcgmm-manifest.d.ts +2 -0
- package/dist/types/internal/decks/src/sealed-values-op18.d.ts +1 -0
- package/dist/types/internal/decks/src/sealed-values.d.ts +5 -0
- package/dist/types/internal/engine-core/src/mechanic-dsl.d.ts +3 -0
- package/dist/types/internal/engine-core/src/mechanics/op18-black-reactions.d.ts +2 -0
- package/dist/types/internal/engine-core/src/mechanics/op18-black-static.d.ts +2 -0
- package/dist/types/internal/engine-core/src/mechanics/op18-black.d.ts +2 -0
- package/dist/types/internal/engine-core/src/mechanics/op18-blue-reactions.d.ts +2 -0
- package/dist/types/internal/engine-core/src/mechanics/op18-blue-static.d.ts +2 -0
- package/dist/types/internal/engine-core/src/mechanics/op18-blue.d.ts +2 -0
- package/dist/types/internal/engine-core/src/mechanics/op18-green-static.d.ts +2 -0
- package/dist/types/internal/engine-core/src/mechanics/op18-green.d.ts +2 -0
- package/dist/types/internal/engine-core/src/mechanics/op18-purple-reactions.d.ts +2 -0
- package/dist/types/internal/engine-core/src/mechanics/op18-purple-static.d.ts +2 -0
- package/dist/types/internal/engine-core/src/mechanics/op18-purple.d.ts +2 -0
- package/dist/types/internal/engine-core/src/mechanics/op18-red-reactions.d.ts +2 -0
- package/dist/types/internal/engine-core/src/mechanics/op18-red-static.d.ts +2 -0
- package/dist/types/internal/engine-core/src/mechanics/op18-red.d.ts +4 -0
- package/dist/types/internal/engine-core/src/mechanics/op18-yellow.d.ts +2 -0
- package/dist/types/internal/engine-core/src/mechanics/types.d.ts +1 -0
- package/dist/types/internal/engine-core/src/mechanics.d.ts +1 -0
- package/dist/types/internal/engine-core/src/reaction-rules.d.ts +3 -2
- package/dist/types/internal/engine-core/src/static-abilities.d.ts +4 -0
- package/package.json +1 -1
- package/dist/types/internal/decks/src/op09-buggy-tournament-manifest.d.ts +0 -2
- package/dist/types/internal/decks/src/op13-luffy-miracle-manifest.d.ts +0 -2
- package/dist/types/internal/decks/src/op14-law-tournament-manifest.d.ts +0 -2
- package/dist/types/internal/decks/src/op17-kaido-field-manifest.d.ts +0 -2
- package/dist/types/internal/decks/src/op17-xebec-open-manifest.d.ts +0 -2
|
@@ -12,7 +12,7 @@ export interface DeckCardRow {
|
|
|
12
12
|
}
|
|
13
13
|
export type FormatDeckRowId = (typeof formatDeckManifests)[number]["id"];
|
|
14
14
|
export declare const SECONDARY_SOURCE_ONLY: readonly string[];
|
|
15
|
-
export type CommunityDeckId = "(Blue/Yellow) Nami - Official Feature Deck" | "(Black/Yellow) Marshall.D.Teach - Official Feature Deck" | "(Purple) Enel - Official Feature Deck" | "(
|
|
15
|
+
export type CommunityDeckId = "(Blue/Yellow) Nami - Official Feature Deck" | "(Black/Yellow) Marshall.D.Teach - Official Feature Deck" | "(Purple) Enel - Official Feature Deck" | "(Green) Shanks - Official Feature Deck" | "(Blue) Rocks.D.Xebec - Official Feature Deck" | "(Black) Monkey.D.Luffy - Official Feature Deck" | "(Red) Portgas.D.Ace - Official Feature Deck" | "(Purple) Kaido - Official Feature Deck" | "(Red/Yellow) Jewelry Bonney - Official Feature Deck" | "(Green/Yellow) Yamato - Official Feature Deck" | "(Red) Edward.Newgate - Official Feature Deck" | "(Purple/Yellow) Nico Robin - 2nd Place EU Championship 26-27 S1" | "(Purple) Sengoku - Official Feature Deck" | "(Red/Green) Krieg - Official Feature Deck" | "(Red/Blue) Lucy - Official Feature Deck" | "(Blue) Rebecca - Official Feature Deck" | "(Black) Imu - Official Feature Deck" | "(Red/Purple) Gol.D.Roger - Official Feature Deck" | "(Green/Black) Brook - Official Feature Deck" | "(Yellow) Monkey.D.Luffy - Official Feature Deck" | "(Red/Blue) Nefeltari Vivi - Official Feature Deck" | "(Red) Trafalgar Law - Official Feature Deck" | "(Blue/Yellow) Boa Hancock - Official Feature Deck" | "(Blue) Jinbe - Official Feature Deck" | "(Black) Yamato - Official Feature Deck" | "(Black) Crocodile - Official Feature Deck" | "(Black/Yellow) Gecko Moria - Official Feature Deck" | "(Black/Yellow) Koala - Official Feature Deck" | "(Green/Purple) Monkey.D.Luffy - Official Feature Deck" | "(Green/Yellow) Shirahoshi - Official Feature Deck" | "(Red/Blue) Portgas.D.Ace - Official Feature Deck" | "(Blue/Purple) Sanji - Official Feature Deck" | "(Blue/Black) Usopp - Official Feature Deck" | "(Green) Jinbe - Official Feature Deck" | "(Blue) Buggy - Official Feature Deck" | "(Red) Silvers Rayleigh - Official Feature Deck" | "(Purple) Donquixote Doflamingo - Official Feature Deck" | "(Yellow) Charlotte Linlin - Official Feature Deck" | "(Red/Green) Luffy & Ace - 2nd Place CDMX Regional 2026-09-19" | "(Black) Monkey.D.Luffy - Open OPTCG" | "(Red) Portgas.D.Ace - Open OPTCG" | "(Purple/Yellow) Charlotte Pudding - Open OPTCG" | "(Green) Roronoa Zoro - OP17 Post-Ban List" | "(Blue) Kuzan - 1st Place Bandai Hiroshima" | "(Blue/Purple) Vinsmoke Reiju - Top 32 Regional 2025-09-27" | "(Red/Black) Koby - 2nd Place Indonesia Regional Final" | "(Blue/Yellow) Boa Hancock - 25th Place ChinoizeCup #105" | "(Yellow) Monkey.D.Luffy - 1st Place Store Battle 2026-07-15" | "(Purple) Charlotte Katakuri - 1st Place Store Battle 2026-08-02" | "(Purple) Monkey.D.Luffy - 1st Place Store Battle 2026-09-10" | "(Yellow) Eustass Kid - ChinoizeCup #104" | "(Green/Yellow) Shirahoshi - 3rd Place ChinoizeCup #125" | "(Blue/Purple) Sanji - ChinoizeCup #116" | "(Green/Yellow) Yamato - 1st Place Pirates Party 2026-09-20" | "(Yellow) Vegapunk - 1st Place Store Battle 2026-06-19" | "(Red) Shanks - 1st Place Store Battle 2026-06-29" | "(Red/Purple) Gol.D.Roger - 1st Place OPTCGSim 2026-04-22" | "(Red/Blue) Nefeltari Vivi - 1st Place Store Battle 2026-05-28" | "(Purple) Donquixote Doflamingo - 1st Place Store Battle 2026-01-30" | "(Black/Yellow) Koala - 30th Place ChinoizeCup #113" | "(Black/Yellow) Gecko Moria - 5th Place ChinoizeCup #120" | "(Green) Shanks - 16th Place Rumble League #9" | "(Purple) Enel - 2nd Place ChinoizeCup 2026-08-25" | "(Red) Silvers Rayleigh - 4th Place ChinoizeCup #124" | "(Red/Yellow) Jewelry Bonney - 13th Place ChinoizeCup #104" | "(Blue) Jinbe - 11th Place ChinoizeCup #120" | "(Red/Blue) Portgas.D.Ace - 1st Place OPTCGSim 2026-06-01" | "(Green/Purple) Monkey.D.Luffy - 1st Place Store Championship 2026-04-25" | "(Green) Jinbe - 1st Place Shop Event 2026-09-16" | "(Purple/Black) Monkey.D.Luffy - 1st Place 2v2 2025-06-13" | "(Red) Monkey.D.Luffy - Open OPTCG" | "(Yellow) Charlotte Linlin - ChinoizeCup #121" | "(Blue) Rocks.D.Xebec - TCG Match Making EB05 2026-11-12 #1" | "(Red/Green) Monkey.D.Luffy - TCG Match Making EB05 2026-11-12 #2" | "(Blue) Buggy - TCG Match Making EB05 2026-11-12 #3" | "(Green/Yellow) Nico Robin - TCG Match Making EB05 2026-11-12 #4" | "(Purple) Kaido - TCG Match Making EB05 2026-11-12 #5" | "(Yellow) Enel - TCG Match Making EB05 2026-11-12 #6" | "(Red) Trafalgar Law - TCG Match Making EB05 2026-11-12 #8" | "(Purple/Yellow) Donquixote Rosinante - TCG Match Making EB05 2026-11-12 #9" | "(Red/Black) Sabo - TCG Match Making EB05 2026-11-12 #10" | "(Purple) Monkey.D.Luffy - Starter Deck 18" | "(Blue) Ace & Newgate - Starter Deck 22" | "(Red) Shanks - Starter Deck 23" | "(Purple/Black) Monkey.D.Luffy - Starter Deck 26" | "(Black) Marshall.D.Teach - Starter Deck 27" | "(Yellow) Monkey.D.Luffy - Starter Deck 29" | "(Red/Green) Luffy & Ace - Starter Deck 30";
|
|
16
16
|
export declare const COMMUNITY_DECK_IDS: readonly CommunityDeckId[];
|
|
17
17
|
export declare const formatDeckCardRows: readonly DeckCardRow[];
|
|
18
18
|
export declare const communityDeckCardRows: readonly DeckCardRow[];
|
|
@@ -5,6 +5,7 @@ export { copyLimit, isEventRestricted, validateDeck, type DeckValidation, type E
|
|
|
5
5
|
export { exportDeckList, parseDeckList } from "./decklist.js";
|
|
6
6
|
export { deckCardRows, formatDeckCardRows, communityDeckCardRows, validateDeckCardRows, COMMUNITY_DECK_IDS, SECONDARY_SOURCE_ONLY, deckFormatReport, type DeckFormatReport, type DeckCardRow, type FormatDeckRowId, type CommunityDeckId, } from "./deck-provenance.js";
|
|
7
7
|
export { autoBuildSealedDeck, autoBuildSealedDeckGrape, classifyGrape, GRAPE_FILL_ORDER, openPacks, playablePoolCards, poolCounts, rankSealedPoolCandidates, rankSealedPoolCandidatesGrape, requireSealedExpansion, sealedCardsByRarity, sealedDeckManifest, sealedExpansion, sealedPoolCoverage, sealedPoolIsBuildable, sealedSetPrefix, sealedSideboard, validateSealedDeck, BOOSTER_PACK, DEFAULT_SEALED_EXPANSION, SEALED_DECK_SIZE, SEALED_EXPANSIONS, SEALED_LEADER, SEALED_PACK_COUNT, type GrapeBucket, type GrapeBuildOptions, type GrapePMembership, type PackSlot, type RankedSealedCandidate, type SealedDeck, type SealedExpansion, type SealedPool, type SealedPoolCoverage, type SealedValidation, } from "./sealed.js";
|
|
8
|
+
export { autoBuildSealedDeckBest, hasSealedCardValues, rankSealedPoolCandidatesValue, SEALED_CARD_VALUES, } from "./sealed-values.js";
|
|
8
9
|
export declare const FORMAT_DECK_IDS: readonly ["(Red) Monkey.D.Luffy - Starter Deck 31", "(Green) Roronoa Zoro - Starter Deck 32", "(Blue) Kuzan - Starter Deck 33", "(Purple) Charlotte Katakuri - Starter Deck 34", "(Red/Black) Sabo - Starter Deck 35", "(Yellow) Eustass Kid - Starter Deck 36"];
|
|
9
10
|
export type FormatDeckId = (typeof FORMAT_DECK_IDS)[number];
|
|
10
11
|
export declare const HAND_BUILT_DECK_IDS: readonly ["(Green/Blue) Monkey.D.Luffy - Official Feature Deck"];
|
|
@@ -21,7 +22,7 @@ export interface FeaturePageEntry {
|
|
|
21
22
|
posted: string;
|
|
22
23
|
}
|
|
23
24
|
export declare function compareFeaturePageEntries(left: DeckManifest | undefined, right: DeckManifest | undefined): number;
|
|
24
|
-
export declare const TOURNAMENT_DECK_IDS: readonly ["(Blue/Yellow) Nami - Official Feature Deck", "(Black/Yellow) Marshall.D.Teach - Official Feature Deck", "(Purple) Enel - Official Feature Deck", "(Red/Black) Sabo - TCG Match Making EB05 #
|
|
25
|
+
export declare const TOURNAMENT_DECK_IDS: readonly ["(Blue/Yellow) Nami - Official Feature Deck", "(Black/Yellow) Marshall.D.Teach - Official Feature Deck", "(Purple) Enel - Official Feature Deck", "(Red/Black) Sabo - TCG Match Making EB05 2026-11-12 #10", "(Green) Shanks - Official Feature Deck", "(Blue) Rocks.D.Xebec - Official Feature Deck", "(Black) Monkey.D.Luffy - Official Feature Deck", "(Red) Portgas.D.Ace - Official Feature Deck", "(Purple) Kaido - Official Feature Deck", "(Green/Yellow) Yamato - Official Feature Deck", "(Red/Yellow) Jewelry Bonney - Official Feature Deck", "(Red) Edward.Newgate - Official Feature Deck", "(Purple) Sengoku - Official Feature Deck", "(Red/Green) Krieg - Official Feature Deck", "(Red/Blue) Lucy - Official Feature Deck", "(Blue) Rebecca - Official Feature Deck", "(Black) Imu - Official Feature Deck", "(Red/Purple) Gol.D.Roger - Official Feature Deck", "(Green/Black) Brook - Official Feature Deck", "(Yellow) Monkey.D.Luffy - Official Feature Deck", "(Red/Blue) Nefeltari Vivi - Official Feature Deck", "(Red) Trafalgar Law - Official Feature Deck", "(Blue/Yellow) Boa Hancock - Official Feature Deck", "(Blue) Jinbe - Official Feature Deck", "(Black) Yamato - Official Feature Deck", "(Black) Crocodile - Official Feature Deck", "(Black/Yellow) Gecko Moria - Official Feature Deck", "(Black/Yellow) Koala - Official Feature Deck", "(Green/Purple) Monkey.D.Luffy - Official Feature Deck", "(Green/Yellow) Shirahoshi - Official Feature Deck", "(Red/Blue) Portgas.D.Ace - Official Feature Deck", "(Blue/Purple) Sanji - Official Feature Deck", "(Blue/Black) Usopp - Official Feature Deck", "(Green) Jinbe - Official Feature Deck", "(Blue) Buggy - Official Feature Deck", "(Red) Silvers Rayleigh - Official Feature Deck", "(Purple) Donquixote Doflamingo - Official Feature Deck", "(Yellow) Charlotte Linlin - Official Feature Deck", "(Purple/Yellow) Nico Robin - 2nd Place EU Championship 26-27 S1", "(Purple) Kaido - TCG Match Making EB05 2026-11-12 #5", "(Red/Green) Luffy & Ace - 2nd Place CDMX Regional 2026-09-19", "(Black) Monkey.D.Luffy - Open OPTCG", "(Red) Portgas.D.Ace - Open OPTCG", "(Blue) Rocks.D.Xebec - TCG Match Making EB05 2026-11-12 #1", "(Purple/Yellow) Charlotte Pudding - Open OPTCG", "(Green) Roronoa Zoro - OP17 Post-Ban List", "(Blue) Kuzan - 1st Place Bandai Hiroshima", "(Blue/Purple) Vinsmoke Reiju - Top 32 Regional 2025-09-27", "(Red/Black) Koby - 2nd Place Indonesia Regional Final", "(Blue/Yellow) Boa Hancock - 25th Place ChinoizeCup #105", "(Blue) Buggy - TCG Match Making EB05 2026-11-12 #3", "(Red) Trafalgar Law - TCG Match Making EB05 2026-11-12 #8", "(Green/Yellow) Nico Robin - TCG Match Making EB05 2026-11-12 #4", "(Yellow) Monkey.D.Luffy - 1st Place Store Battle 2026-07-15", "(Purple) Charlotte Katakuri - 1st Place Store Battle 2026-08-02", "(Purple) Monkey.D.Luffy - 1st Place Store Battle 2026-09-10", "(Yellow) Eustass Kid - ChinoizeCup #104", "(Green/Yellow) Shirahoshi - 3rd Place ChinoizeCup #125", "(Blue/Purple) Sanji - ChinoizeCup #116", "(Green/Yellow) Yamato - 1st Place Pirates Party 2026-09-20", "(Yellow) Vegapunk - 1st Place Store Battle 2026-06-19", "(Red) Shanks - 1st Place Store Battle 2026-06-29", "(Red/Purple) Gol.D.Roger - 1st Place OPTCGSim 2026-04-22", "(Red/Blue) Nefeltari Vivi - 1st Place Store Battle 2026-05-28", "(Purple) Donquixote Doflamingo - 1st Place Store Battle 2026-01-30", "(Black/Yellow) Koala - 30th Place ChinoizeCup #113", "(Black/Yellow) Gecko Moria - 5th Place ChinoizeCup #120", "(Green) Shanks - 16th Place Rumble League #9", "(Purple) Enel - 2nd Place ChinoizeCup 2026-08-25", "(Red) Silvers Rayleigh - 4th Place ChinoizeCup #124", "(Red/Yellow) Jewelry Bonney - 13th Place ChinoizeCup #104", "(Blue) Jinbe - 11th Place ChinoizeCup #120", "(Red/Blue) Portgas.D.Ace - 1st Place OPTCGSim 2026-06-01", "(Yellow) Enel - TCG Match Making EB05 2026-11-12 #6", "(Green/Purple) Monkey.D.Luffy - 1st Place Store Championship 2026-04-25", "(Green) Jinbe - 1st Place Shop Event 2026-09-16", "(Purple/Black) Monkey.D.Luffy - 1st Place 2v2 2025-06-13", "(Red) Monkey.D.Luffy - Open OPTCG", "(Yellow) Charlotte Linlin - ChinoizeCup #121", "(Red/Green) Monkey.D.Luffy - TCG Match Making EB05 2026-11-12 #2", "(Purple/Yellow) Donquixote Rosinante - TCG Match Making EB05 2026-11-12 #9"];
|
|
25
26
|
export type TournamentDeckId = (typeof TOURNAMENT_DECK_IDS)[number];
|
|
26
27
|
export interface DeckManifest {
|
|
27
28
|
id: string;
|
|
@@ -33,7 +34,7 @@ export interface DeckManifest {
|
|
|
33
34
|
recommended?: true;
|
|
34
35
|
}
|
|
35
36
|
export declare function deckFormat(manifest: DeckManifest): DeckFormat;
|
|
36
|
-
export declare const SELECTABLE_DECK_IDS: readonly ["(Red) Monkey.D.Luffy - Starter Deck 31", "(Green) Roronoa Zoro - Starter Deck 32", "(Blue) Kuzan - Starter Deck 33", "(Purple) Charlotte Katakuri - Starter Deck 34", "(Red/Black) Sabo - Starter Deck 35", "(Yellow) Eustass Kid - Starter Deck 36", "(Green/Blue) Monkey.D.Luffy - Official Feature Deck", "(Blue/Yellow) Nami - Official Feature Deck", "(Black/Yellow) Marshall.D.Teach - Official Feature Deck", "(Purple) Enel - Official Feature Deck", "(Red/Black) Sabo - TCG Match Making EB05 #
|
|
37
|
+
export declare const SELECTABLE_DECK_IDS: readonly ["(Red) Monkey.D.Luffy - Starter Deck 31", "(Green) Roronoa Zoro - Starter Deck 32", "(Blue) Kuzan - Starter Deck 33", "(Purple) Charlotte Katakuri - Starter Deck 34", "(Red/Black) Sabo - Starter Deck 35", "(Yellow) Eustass Kid - Starter Deck 36", "(Green/Blue) Monkey.D.Luffy - Official Feature Deck", "(Blue/Yellow) Nami - Official Feature Deck", "(Black/Yellow) Marshall.D.Teach - Official Feature Deck", "(Purple) Enel - Official Feature Deck", "(Red/Black) Sabo - TCG Match Making EB05 2026-11-12 #10", "(Green) Shanks - Official Feature Deck", "(Blue) Rocks.D.Xebec - Official Feature Deck", "(Black) Monkey.D.Luffy - Official Feature Deck", "(Red) Portgas.D.Ace - Official Feature Deck", "(Purple) Kaido - Official Feature Deck", "(Green/Yellow) Yamato - Official Feature Deck", "(Red/Yellow) Jewelry Bonney - Official Feature Deck", "(Red) Edward.Newgate - Official Feature Deck", "(Purple) Sengoku - Official Feature Deck", "(Red/Green) Krieg - Official Feature Deck", "(Red/Blue) Lucy - Official Feature Deck", "(Blue) Rebecca - Official Feature Deck", "(Black) Imu - Official Feature Deck", "(Red/Purple) Gol.D.Roger - Official Feature Deck", "(Green/Black) Brook - Official Feature Deck", "(Yellow) Monkey.D.Luffy - Official Feature Deck", "(Red/Blue) Nefeltari Vivi - Official Feature Deck", "(Red) Trafalgar Law - Official Feature Deck", "(Blue/Yellow) Boa Hancock - Official Feature Deck", "(Blue) Jinbe - Official Feature Deck", "(Black) Yamato - Official Feature Deck", "(Black) Crocodile - Official Feature Deck", "(Black/Yellow) Gecko Moria - Official Feature Deck", "(Black/Yellow) Koala - Official Feature Deck", "(Green/Purple) Monkey.D.Luffy - Official Feature Deck", "(Green/Yellow) Shirahoshi - Official Feature Deck", "(Red/Blue) Portgas.D.Ace - Official Feature Deck", "(Blue/Purple) Sanji - Official Feature Deck", "(Blue/Black) Usopp - Official Feature Deck", "(Green) Jinbe - Official Feature Deck", "(Blue) Buggy - Official Feature Deck", "(Red) Silvers Rayleigh - Official Feature Deck", "(Purple) Donquixote Doflamingo - Official Feature Deck", "(Yellow) Charlotte Linlin - Official Feature Deck", "(Purple/Yellow) Nico Robin - 2nd Place EU Championship 26-27 S1", "(Purple) Kaido - TCG Match Making EB05 2026-11-12 #5", "(Red/Green) Luffy & Ace - 2nd Place CDMX Regional 2026-09-19", "(Black) Monkey.D.Luffy - Open OPTCG", "(Red) Portgas.D.Ace - Open OPTCG", "(Blue) Rocks.D.Xebec - TCG Match Making EB05 2026-11-12 #1", "(Purple/Yellow) Charlotte Pudding - Open OPTCG", "(Green) Roronoa Zoro - OP17 Post-Ban List", "(Blue) Kuzan - 1st Place Bandai Hiroshima", "(Blue/Purple) Vinsmoke Reiju - Top 32 Regional 2025-09-27", "(Red/Black) Koby - 2nd Place Indonesia Regional Final", "(Blue/Yellow) Boa Hancock - 25th Place ChinoizeCup #105", "(Blue) Buggy - TCG Match Making EB05 2026-11-12 #3", "(Red) Trafalgar Law - TCG Match Making EB05 2026-11-12 #8", "(Green/Yellow) Nico Robin - TCG Match Making EB05 2026-11-12 #4", "(Yellow) Monkey.D.Luffy - 1st Place Store Battle 2026-07-15", "(Purple) Charlotte Katakuri - 1st Place Store Battle 2026-08-02", "(Purple) Monkey.D.Luffy - 1st Place Store Battle 2026-09-10", "(Yellow) Eustass Kid - ChinoizeCup #104", "(Green/Yellow) Shirahoshi - 3rd Place ChinoizeCup #125", "(Blue/Purple) Sanji - ChinoizeCup #116", "(Green/Yellow) Yamato - 1st Place Pirates Party 2026-09-20", "(Yellow) Vegapunk - 1st Place Store Battle 2026-06-19", "(Red) Shanks - 1st Place Store Battle 2026-06-29", "(Red/Purple) Gol.D.Roger - 1st Place OPTCGSim 2026-04-22", "(Red/Blue) Nefeltari Vivi - 1st Place Store Battle 2026-05-28", "(Purple) Donquixote Doflamingo - 1st Place Store Battle 2026-01-30", "(Black/Yellow) Koala - 30th Place ChinoizeCup #113", "(Black/Yellow) Gecko Moria - 5th Place ChinoizeCup #120", "(Green) Shanks - 16th Place Rumble League #9", "(Purple) Enel - 2nd Place ChinoizeCup 2026-08-25", "(Red) Silvers Rayleigh - 4th Place ChinoizeCup #124", "(Red/Yellow) Jewelry Bonney - 13th Place ChinoizeCup #104", "(Blue) Jinbe - 11th Place ChinoizeCup #120", "(Red/Blue) Portgas.D.Ace - 1st Place OPTCGSim 2026-06-01", "(Yellow) Enel - TCG Match Making EB05 2026-11-12 #6", "(Green/Purple) Monkey.D.Luffy - 1st Place Store Championship 2026-04-25", "(Green) Jinbe - 1st Place Shop Event 2026-09-16", "(Purple/Black) Monkey.D.Luffy - 1st Place 2v2 2025-06-13", "(Red) Monkey.D.Luffy - Open OPTCG", "(Yellow) Charlotte Linlin - ChinoizeCup #121", "(Red/Green) Monkey.D.Luffy - TCG Match Making EB05 2026-11-12 #2", "(Purple/Yellow) Donquixote Rosinante - TCG Match Making EB05 2026-11-12 #9", "(Purple) Monkey.D.Luffy - Starter Deck 18", "(Blue) Ace & Newgate - Starter Deck 22", "(Red) Shanks - Starter Deck 23", "(Purple/Black) Monkey.D.Luffy - Starter Deck 26", "(Black) Marshall.D.Teach - Starter Deck 27", "(Yellow) Monkey.D.Luffy - Starter Deck 29", "(Red/Green) Luffy & Ace - Starter Deck 30"];
|
|
37
38
|
export type SelectableDeckId = (typeof SELECTABLE_DECK_IDS)[number];
|
|
38
39
|
export declare const DECK_VARIANT_OF: Partial<Record<SelectableDeckId, SelectableDeckId>>;
|
|
39
40
|
export declare function isDeckVariantPair(left: string, right: string): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const OP18_CARD_VALUES: Readonly<Record<string, number>>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type RankedSealedCandidate, type SealedDeck, type SealedPool } from "./sealed.js";
|
|
2
|
+
export declare const SEALED_CARD_VALUES: Readonly<Record<string, Readonly<Record<string, number>>>>;
|
|
3
|
+
export declare function hasSealedCardValues(expansion: string): boolean;
|
|
4
|
+
export declare function rankSealedPoolCandidatesValue(pool: SealedPool): RankedSealedCandidate[];
|
|
5
|
+
export declare function autoBuildSealedDeckBest(pool: SealedPool): SealedDeck;
|
|
@@ -17,6 +17,7 @@ export declare function parseOrderOption(optionId: string, count: number): numbe
|
|
|
17
17
|
export declare function faceDownOption(index: number): string;
|
|
18
18
|
export declare function parseFaceDownOption(optionId: string, count: number): number | undefined;
|
|
19
19
|
export declare function findInstanceCardNumber(state: GameState, instanceId: string): string | undefined;
|
|
20
|
+
export declare function registerTriggerPrograms(registry: ReadonlyMap<string, MechanicProgram>): void;
|
|
20
21
|
export declare function registerEventMainPrograms(registry: ReadonlyMap<string, {
|
|
21
22
|
cost: number;
|
|
22
23
|
donMinus?: number;
|
|
@@ -5,10 +5,11 @@ export interface ReactionRule {
|
|
|
5
5
|
controller: "leader" | "board" | "stage";
|
|
6
6
|
signal: {
|
|
7
7
|
kind: "card-moved";
|
|
8
|
-
from: "life" | "board" | "hand";
|
|
9
|
-
to?: "trash" | "hand";
|
|
8
|
+
from: "life" | "board" | "hand" | "trash";
|
|
9
|
+
to?: "trash" | "hand" | "board";
|
|
10
10
|
ko?: true;
|
|
11
11
|
sourceType?: string;
|
|
12
|
+
sourceLeaderName?: string;
|
|
12
13
|
movedType?: string;
|
|
13
14
|
movedTypeIncluding?: string;
|
|
14
15
|
movedAnyOfTypes?: readonly string[];
|
|
@@ -23,6 +23,10 @@ export interface StaticAbility {
|
|
|
23
23
|
power?: PowerLayer;
|
|
24
24
|
cost?: (context: AbilityContext) => number;
|
|
25
25
|
costZone?: "hand";
|
|
26
|
+
handCounter?: {
|
|
27
|
+
category: string;
|
|
28
|
+
amount: number;
|
|
29
|
+
};
|
|
26
30
|
keyword?: {
|
|
27
31
|
keyword: Keyword;
|
|
28
32
|
when: (context: AbilityContext) => boolean;
|
package/package.json
CHANGED