open-optcg 0.2.0-next.2 → 0.2.1-next.21
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 +4 -3
- package/dist/types/internal/decks/src/op09-buggy-tcgmm-manifest.d.ts +2 -0
- package/dist/types/internal/decks/src/op11-koby-regional-t16-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/op16-ace-flameflame-manifest.d.ts +2 -0
- package/dist/types/internal/decks/src/op16-luffy-tcgplayer-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-newgate-chinoize-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/op18-all-sunday-preview-manifest.d.ts +2 -0
- package/dist/types/internal/decks/src/op18-franky-preview-manifest.d.ts +2 -0
- package/dist/types/internal/decks/src/op18-gunko-preview-manifest.d.ts +2 -0
- package/dist/types/internal/decks/src/op18-karoo-preview-manifest.d.ts +2 -0
- package/dist/types/internal/decks/src/op18-luffy-preview-manifest.d.ts +2 -0
- package/dist/types/internal/decks/src/op18-spandam-preview-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/decks/src/sealed.d.ts +2 -0
- package/dist/types/internal/decks/src/st22-ace-newgate-tournament-manifest.d.ts +2 -0
- package/dist/types/internal/engine-core/src/effects.d.ts +6 -1
- 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/model.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/op11-koby-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/op16-ace-open-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" | "(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" | "(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" | "(Green/Blue) Monkey.D.Luffy - TCGplayer EB-05 Heroines Vol.2" | "(Red/Black) Koby - Top 16 Wolverhampton Regional 2026-07-19" | "(Red) Edward.Newgate - ChinoizeCup #115" | "(Red) Portgas.D.Ace - FlameFlame 2026-10-04" | "(Blue) Ace & Newgate - 1st Place Patriot Games 2025-09-07" | "(Red/Blue) Karoo - VersusTCG OP-18 Pre-release" | "(Green/Purple) Franky - Sunny_OPTCG OP-18 Pre-release" | "(Green) Monkey.D.Luffy - OPTCG Deck Explorer OP-18 Pre-release" | "(Blue) Ms. All Sunday - Card Kaizoku OP-18 Pre-release" | "(Purple/Black) Saint Gunko - heartpiratestcg OP-18 Pre-release" | "(Black/Yellow) Spandam - tinkerer OP-18 Pre-release" | "(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[];
|
|
@@ -4,7 +4,8 @@ export type { DeckFormat } from "../../cards/src/index.js";
|
|
|
4
4
|
export { copyLimit, isEventRestricted, validateDeck, type DeckValidation, type EditableDeck, } from "./legality.js";
|
|
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
|
-
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";
|
|
7
|
+
export { autoBuildSealedDeck, autoBuildSealedDeckGrape, classifyGrape, GRAPE_FILL_ORDER, openPacks, playablePoolCards, poolCounts, rankSealedPoolCandidates, rankSealedPoolCandidatesGrape, requireSealedExpansion, SEALED_LEADER_IMAGE_URL, SEALED_LEADER_SOURCE_PAGE, 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", "(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", "(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", "(Green/Blue) Monkey.D.Luffy - TCGplayer EB-05 Heroines Vol.2", "(Red/Black) Koby - Top 16 Wolverhampton Regional 2026-07-19", "(Red) Edward.Newgate - ChinoizeCup #115", "(Red) Portgas.D.Ace - FlameFlame 2026-10-04", "(Blue) Ace & Newgate - 1st Place Patriot Games 2025-09-07", "(Red/Blue) Karoo - VersusTCG OP-18 Pre-release", "(Green/Purple) Franky - Sunny_OPTCG OP-18 Pre-release", "(Green) Monkey.D.Luffy - OPTCG Deck Explorer OP-18 Pre-release", "(Blue) Ms. All Sunday - Card Kaizoku OP-18 Pre-release", "(Purple/Black) Saint Gunko - heartpiratestcg OP-18 Pre-release", "(Black/Yellow) Spandam - tinkerer OP-18 Pre-release"];
|
|
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", "(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", "(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", "(Green/Blue) Monkey.D.Luffy - TCGplayer EB-05 Heroines Vol.2", "(Red/Black) Koby - Top 16 Wolverhampton Regional 2026-07-19", "(Red) Edward.Newgate - ChinoizeCup #115", "(Red) Portgas.D.Ace - FlameFlame 2026-10-04", "(Blue) Ace & Newgate - 1st Place Patriot Games 2025-09-07", "(Red/Blue) Karoo - VersusTCG OP-18 Pre-release", "(Green/Purple) Franky - Sunny_OPTCG OP-18 Pre-release", "(Green) Monkey.D.Luffy - OPTCG Deck Explorer OP-18 Pre-release", "(Blue) Ms. All Sunday - Card Kaizoku OP-18 Pre-release", "(Purple/Black) Saint Gunko - heartpiratestcg OP-18 Pre-release", "(Black/Yellow) Spandam - tinkerer OP-18 Pre-release", "(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;
|
|
@@ -3,6 +3,8 @@ import type { DeckManifest } from "./index.js";
|
|
|
3
3
|
export declare const SEALED_DECK_SIZE = 40;
|
|
4
4
|
export declare const SEALED_PACK_COUNT = 6;
|
|
5
5
|
export declare const SEALED_LEADER = "SEALED-LUFFY";
|
|
6
|
+
export declare const SEALED_LEADER_IMAGE_URL = "https://cdn11.bigcommerce.com/s-ua4dd/images/stencil/1280x1280/products/257018/341684/518691__35034.1732611797.jpg?c=2";
|
|
7
|
+
export declare const SEALED_LEADER_SOURCE_PAGE = "https://www.gamenerdz.com/monkey-d-luffy-leader-pack-sealed-battle-2023-vol-1-one-piece-promotion-cards";
|
|
6
8
|
export interface PackSlot {
|
|
7
9
|
readonly count: number;
|
|
8
10
|
readonly options: readonly {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type CardDatabase } from "../../cards/src/index.js";
|
|
2
2
|
import type { PlayerId, PublicEvent } from "../../protocol/src/index.js";
|
|
3
3
|
import { type MechanicInvocation, type MechanicPendingChoice, type MechanicProgram } from "./mechanics.js";
|
|
4
|
-
import type
|
|
4
|
+
import { type CardInstance, type GameState, type PendingEffect } from "./model.js";
|
|
5
5
|
export { onPlayHandlerCards, hasOnPlayHandler, runOnPlayHandler, } from "./on-play-handlers.js";
|
|
6
6
|
export interface OnPlayResult {
|
|
7
7
|
pending: PendingEffect | null;
|
|
@@ -41,6 +41,11 @@ export declare function queuePendingContinuations(state: GameState, invocations:
|
|
|
41
41
|
export declare function releaseDamageReactions(state: GameState): void;
|
|
42
42
|
export declare function drainPendingContinuations(state: GameState, db?: CardDatabase): PublicEvent[];
|
|
43
43
|
export declare function createOnPlayEffect(state: GameState, playerId: PlayerId, source: CardInstance, db?: CardDatabase): OnPlayResult;
|
|
44
|
+
export declare function hiddenPickPosition(state: GameState, instanceId: string): {
|
|
45
|
+
owner: PlayerId;
|
|
46
|
+
zone: "deck" | "life";
|
|
47
|
+
position?: "top" | "bottom";
|
|
48
|
+
} | undefined;
|
|
44
49
|
interface EffectOption {
|
|
45
50
|
optionId: string;
|
|
46
51
|
summary: string;
|
|
@@ -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;
|
|
@@ -594,6 +594,7 @@ export type PendingEffect = {
|
|
|
594
594
|
resumePhase: "block";
|
|
595
595
|
resumePlayerId: PlayerId;
|
|
596
596
|
};
|
|
597
|
+
export declare function forgetOncePerTurnUses(state: GameState, instanceId: string): void;
|
|
597
598
|
export declare function pendingEffectChain(effect: PendingEffect | null): PendingEffect[];
|
|
598
599
|
export declare function retargetAttack(attack: ActiveAttack, targetInstanceId: string): void;
|
|
599
600
|
export interface GameState {
|
|
@@ -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