open-optcg 0.2.1-next.4 → 0.2.1-next.40
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/decks.js +2 -2
- package/dist/engine.js +1 -1
- package/dist/types/internal/decks/src/deck-provenance.d.ts +1 -1
- package/dist/types/internal/decks/src/index.d.ts +6 -4
- package/dist/types/internal/decks/src/op09-buggy-tcgmm-manifest.d.ts +2 -0
- package/dist/types/internal/decks/src/op09-shanks-store-battle-manifest.d.ts +2 -0
- package/dist/types/internal/decks/src/op10-kid-chinoize-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-tcgplayer-manifest.d.ts +2 -0
- package/dist/types/internal/decks/src/op15-rebecca-tournament-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-luffy-open-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-tournament-manifest.d.ts +2 -0
- package/dist/types/internal/decks/src/op18-franky-open-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-chinoize-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.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 +7 -2
- package/dist/types/internal/engine-core/src/engine.d.ts +2 -1
- package/dist/types/internal/engine-core/src/mechanic-dsl.d.ts +1 -0
- package/dist/types/internal/engine-core/src/model.d.ts +6 -0
- package/dist/types/internal/engine-core/src/recorded-shuffle.d.ts +18 -0
- package/dist/types/internal/engine-core/src/service.d.ts +2 -1
- package/dist/types/internal/engine-core/src/turn.d.ts +1 -0
- package/dist/types/internal/protocol/src/index.d.ts +1 -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/op09-shanks-tournament-manifest.d.ts +0 -2
- package/dist/types/internal/decks/src/op10-kid-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-luffy-tournament-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" | "(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 - 1st Place ChinoizeCup #94" | "(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-13" | "(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) Trafalgar Law - TCGplayer EB-05 Heroines Vol.2" | "(Blue) Rebecca - 1st Place Store Battle 2026-04-04" | "(Black) Monkey.D.Luffy - Open OPTCG 2026-11-23" | "(Red/Blue) Karoo - VersusTCG OP-18 Pre-release" | "(Green/Purple) Franky - Open OPTCG" | "(Green) Monkey.D.Luffy - 31st Place ChinoizeCup #136" | "(Blue) Ms. All Sunday - 4th Place ChinoizeCup #136" | "(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" | "(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[];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { type DeckFormat } from "../../cards/src/index.js";
|
|
2
|
-
import type { ResolvedDeck } from "../../protocol/src/index.js";
|
|
2
|
+
import type { RecordedShuffles, ResolvedDeck } from "../../protocol/src/index.js";
|
|
3
3
|
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
8
|
export { autoBuildSealedDeckBest, hasSealedCardValues, rankSealedPoolCandidatesValue, SEALED_CARD_VALUES, } from "./sealed-values.js";
|
|
9
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"];
|
|
10
10
|
export type FormatDeckId = (typeof FORMAT_DECK_IDS)[number];
|
|
@@ -22,7 +22,7 @@ export interface FeaturePageEntry {
|
|
|
22
22
|
posted: string;
|
|
23
23
|
}
|
|
24
24
|
export declare function compareFeaturePageEntries(left: DeckManifest | undefined, right: DeckManifest | undefined): number;
|
|
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 #
|
|
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 2026-11-23", "(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 - TCGplayer EB-05 Heroines Vol.2", "(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 - 1st Place ChinoizeCup #94", "(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-13", "(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", "(Blue) Rebecca - 1st Place Store Battle 2026-04-04", "(Red/Blue) Karoo - VersusTCG OP-18 Pre-release", "(Green/Purple) Franky - Open OPTCG", "(Green) Monkey.D.Luffy - 31st Place ChinoizeCup #136", "(Blue) Ms. All Sunday - 4th Place ChinoizeCup #136", "(Purple/Black) Saint Gunko - heartpiratestcg OP-18 Pre-release", "(Black/Yellow) Spandam - tinkerer OP-18 Pre-release"];
|
|
26
26
|
export type TournamentDeckId = (typeof TOURNAMENT_DECK_IDS)[number];
|
|
27
27
|
export interface DeckManifest {
|
|
28
28
|
id: string;
|
|
@@ -34,7 +34,7 @@ export interface DeckManifest {
|
|
|
34
34
|
recommended?: true;
|
|
35
35
|
}
|
|
36
36
|
export declare function deckFormat(manifest: DeckManifest): DeckFormat;
|
|
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 #
|
|
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 2026-11-23", "(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 - TCGplayer EB-05 Heroines Vol.2", "(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 - 1st Place ChinoizeCup #94", "(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-13", "(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", "(Blue) Rebecca - 1st Place Store Battle 2026-04-04", "(Red/Blue) Karoo - VersusTCG OP-18 Pre-release", "(Green/Purple) Franky - Open OPTCG", "(Green) Monkey.D.Luffy - 31st Place ChinoizeCup #136", "(Blue) Ms. All Sunday - 4th Place ChinoizeCup #136", "(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"];
|
|
38
38
|
export type SelectableDeckId = (typeof SELECTABLE_DECK_IDS)[number];
|
|
39
39
|
export declare const DECK_VARIANT_OF: Partial<Record<SelectableDeckId, SelectableDeckId>>;
|
|
40
40
|
export declare function isDeckVariantPair(left: string, right: string): boolean;
|
|
@@ -58,8 +58,10 @@ export declare function resolveMatchDecks(config: {
|
|
|
58
58
|
p2Deck: string;
|
|
59
59
|
p1CustomDeck?: DeckManifest;
|
|
60
60
|
p2CustomDeck?: DeckManifest;
|
|
61
|
+
recordedShuffles?: RecordedShuffles;
|
|
61
62
|
}): {
|
|
62
63
|
p1: ResolvedDeck;
|
|
63
64
|
p2: ResolvedDeck;
|
|
65
|
+
recordedShuffles?: RecordedShuffles;
|
|
64
66
|
};
|
|
65
67
|
export declare function loadPreviewDeck(deckId: FormatDeckId): string[];
|
|
@@ -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;
|
|
@@ -34,13 +34,18 @@ export declare function createOnEndOfYourTurnResult(state: GameState, playerId:
|
|
|
34
34
|
export declare function runEndOfTurnProgram(state: GameState, playerId: PlayerId, source: CardInstance, mechanicProgram: MechanicProgram, db?: CardDatabase, bindings?: Record<string, string[]>): OnPlayResult;
|
|
35
35
|
export declare function createOnStartOfYourTurnResult(state: GameState, playerId: PlayerId, source: CardInstance, db?: CardDatabase): OnPlayResult;
|
|
36
36
|
export declare function createTriggerResult(state: GameState, playerId: PlayerId, source: CardInstance, db?: CardDatabase, reactions?: readonly MechanicInvocation[], held?: readonly MechanicInvocation[]): OnPlayResult;
|
|
37
|
-
export declare function restEffect(state: GameState, playerId: PlayerId, source: CardInstance, maxCost: number, remaining?: number, afterRest?: "give-three-don-to-leader" | "schedule-active-don"): PendingEffect | null;
|
|
37
|
+
export declare function restEffect(state: GameState, playerId: PlayerId, source: CardInstance, maxCost: number, remaining?: number, afterRest?: "give-three-don-to-leader" | "schedule-active-don", costRead?: "current" | "base"): PendingEffect | null;
|
|
38
38
|
export declare function triggerPerona(state: GameState, playerId: PlayerId): PublicEvent[];
|
|
39
39
|
export declare function applyAfterRest(state: GameState, playerId: PlayerId, afterRest: "give-three-don-to-leader" | "schedule-active-don" | undefined): PublicEvent[];
|
|
40
40
|
export declare function queuePendingContinuations(state: GameState, invocations: readonly MechanicInvocation[]): void;
|
|
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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type CardDatabase } from "../../cards/src/index.js";
|
|
2
|
-
import { type GameObservation, type LegalAction, type PlayerId, type ResolvedDeck, type TimeLimit } from "../../protocol/src/index.js";
|
|
2
|
+
import { type GameObservation, type LegalAction, type PlayerId, type ResolvedDeck, type RecordedShuffles, type TimeLimit } from "../../protocol/src/index.js";
|
|
3
3
|
import type { GameAction, GameState, TransitionResult } from "./model.js";
|
|
4
4
|
export interface Callback<T> {
|
|
5
5
|
handle(event: T): void;
|
|
@@ -22,6 +22,7 @@ export declare function createGame(input: {
|
|
|
22
22
|
startingPlayer?: PlayerId | "random";
|
|
23
23
|
cards?: CardDatabase;
|
|
24
24
|
timeLimit?: TimeLimit;
|
|
25
|
+
recordedShuffles?: RecordedShuffles;
|
|
25
26
|
}): GameState;
|
|
26
27
|
export declare function getLegalActions(state: GameState, playerId: PlayerId, db?: CardDatabase): LegalAction[];
|
|
27
28
|
export declare function canActivate(state: GameState, playerId: PlayerId, sourceInstanceId: string): boolean;
|
|
@@ -428,6 +428,7 @@ export type PendingEffect = {
|
|
|
428
428
|
revealed: CardInstance[];
|
|
429
429
|
eligibleInstanceIds: string[];
|
|
430
430
|
remaining: number;
|
|
431
|
+
drawAfter?: number;
|
|
431
432
|
} | {
|
|
432
433
|
kind: "reduce-power";
|
|
433
434
|
playerId: PlayerId;
|
|
@@ -594,6 +595,7 @@ export type PendingEffect = {
|
|
|
594
595
|
resumePhase: "block";
|
|
595
596
|
resumePlayerId: PlayerId;
|
|
596
597
|
};
|
|
598
|
+
export declare function forgetOncePerTurnUses(state: GameState, instanceId: string): void;
|
|
597
599
|
export declare function pendingEffectChain(effect: PendingEffect | null): PendingEffect[];
|
|
598
600
|
export declare function retargetAttack(attack: ActiveAttack, targetInstanceId: string): void;
|
|
599
601
|
export interface GameState {
|
|
@@ -629,6 +631,10 @@ export interface GameState {
|
|
|
629
631
|
lifeDrawnLast?: PlayerId;
|
|
630
632
|
decidedBy?: TimeLimitProcedure;
|
|
631
633
|
};
|
|
634
|
+
recordedShuffles?: {
|
|
635
|
+
orders: Record<PlayerId, string[][]>;
|
|
636
|
+
dealt: Record<PlayerId, string[][]>;
|
|
637
|
+
};
|
|
632
638
|
pendingEffect: PendingEffect | null;
|
|
633
639
|
pendingContinuations?: MechanicInvocation[];
|
|
634
640
|
pendingDamageReactions?: MechanicInvocation[];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { PlayerId, RecordedShuffles } from "../../protocol/src/index.js";
|
|
2
|
+
import type { GameState } from "./model.js";
|
|
3
|
+
import { type RngState } from "./rng.js";
|
|
4
|
+
interface Shuffled<T> {
|
|
5
|
+
items: T[];
|
|
6
|
+
state: RngState;
|
|
7
|
+
}
|
|
8
|
+
export declare function shuffleRecorded<T extends {
|
|
9
|
+
cardNumber: string;
|
|
10
|
+
}>(cards: readonly T[], rng: RngState, recorded: readonly string[] | undefined): Shuffled<T>;
|
|
11
|
+
export declare function initialRecordedShuffles(recorded: RecordedShuffles | undefined, opening: Record<PlayerId, readonly {
|
|
12
|
+
instanceId: string;
|
|
13
|
+
}[]>): GameState["recordedShuffles"];
|
|
14
|
+
export declare function shuffleCards<T extends {
|
|
15
|
+
instanceId: string;
|
|
16
|
+
cardNumber: string;
|
|
17
|
+
}>(state: GameState, playerId: PlayerId, cards: readonly T[]): T[];
|
|
18
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PlayerId, ResolvedDeck, TimeLimit } from "../../protocol/src/index.js";
|
|
1
|
+
import type { PlayerId, RecordedShuffles, ResolvedDeck, TimeLimit } from "../../protocol/src/index.js";
|
|
2
2
|
import { type Callback, type GameTransitionEvent } from "./engine.js";
|
|
3
3
|
import type { GameState } from "./model.js";
|
|
4
4
|
import { type RulesStamp } from "./provenance.js";
|
|
@@ -19,6 +19,7 @@ export declare class GameService {
|
|
|
19
19
|
seedMode?: "seat" | "matchup";
|
|
20
20
|
startingPlayer?: PlayerId | "random";
|
|
21
21
|
timeLimit?: TimeLimit;
|
|
22
|
+
recordedShuffles?: RecordedShuffles;
|
|
22
23
|
}): import("../../protocol/src/index.js").GameObservation;
|
|
23
24
|
observe(gameId: string, playerId: PlayerId): import("../../protocol/src/index.js").GameObservation;
|
|
24
25
|
simulate(gameId: string, playerId: PlayerId, actionId: string): import("../../protocol/src/index.js").GameObservation | undefined;
|
|
@@ -5,5 +5,6 @@ export declare function activateRestedDonForRefresh(player: PlayerState): void;
|
|
|
5
5
|
export declare function drawForTurn(state: GameState, playerId: PlayerId, db?: CardDatabase): PublicEvent[];
|
|
6
6
|
export declare function completeEndTurn(state: GameState, events: PublicEvent[]): void;
|
|
7
7
|
export declare function resumeStartOfTurn(state: GameState, events: PublicEvent[]): void;
|
|
8
|
+
export declare function kidLeaderEndOfTurnKey(state: GameState, playerId: PlayerId): string;
|
|
8
9
|
export declare function endTurn(state: GameState, events: PublicEvent[], db?: CardDatabase): void;
|
|
9
10
|
export declare function offerDonReturnChoice(state: GameState): void;
|
package/package.json
CHANGED