Skip to main content

Built and signed on GitHub Actions

ProjectIgnis' EDOPro Core built for WebAssembly using emscripten.

This package works with Node.js, Deno, BrowsersIt is unknown whether this package works with Cloudflare Workers, Bun
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
This package works with Browsers
JSR Score
88%
Published
5 months ago (0.0.29)
variable OcgDuelMode

Duel creation options.

Properties

Speed duel ruleset.

Rush duel ruleset.

Goat ruleset.

readonly
MODE_MR2: bigint

Master Rule 2 ruleset

readonly
MODE_MR3: bigint

Master Rule 3 ruleset

readonly
MODE_MR4: bigint

New Master Rule ruleset

readonly
MODE_MR5: bigint

New Master Rule (April 2020) ruleset

readonly
MODE_MR1: bigint

Master Rule 1 ruleset.

deprecated
readonly
TEST_MODE: 1

Allow battle phase in the first turn.

Continuous traps effects cannot be activated until the end of the chain they're flipped in.

After damage calculation substep actually separated sub steps.

readonly
PSEUDO_SHUFFLE: 16

Disable decks shuffling.

Searching the deck doesn't require knowledge checking.

readonly
SIMPLE_AI: 64

Automate some responses with a simple AI.

readonly
RELAY: 128

Is tag duel.

readonly
OBSOLETE_IGNITION: 256

Master Rule 1 obsolete ignition effects.

readonly
FIRST_TURN_DRAW: 512

Draw on the first turn.

readonly
ONE_FACEUP_FIELD: 1024

Only allow a single face-up field spell.

readonly
PZONE: 2048

Enable pendulum zones.

readonly
SEPARATE_PZONE: 4096

Pendulum zones are separated from S/T zones.

readonly
EMZONE: 8192

Enable extra monster zone.

readonly
FSX_MMZONE: 16384

Fusion, synchro and xyz from the extra deck can go into the main monster zones.

Trap monsters do not take a spell/trap zone aswell as a main monster zone.

Return to main deck or extra deck do not trigger "leaving the field" effects.

Trigger effect cannot be activated if the card is moved to other place.

Negated summons and special summons count towards any limit.

readonly
CANNOT_SUMMON_OATH_OLD: 524288

Negated summons and special summons count towards any limit.

readonly
NO_STANDBY_PHASE: 1048576

Disable standby phase (rush duels).

readonly
NO_MAIN_PHASE_2: 2097152

Disable main phase 2 (rush and speed duels).

readonly
THREE_COLUMNS_FIELD: 4194304

Only 3 main monster zones and spell/trap zones (rush and speed duels).

readonly
DRAW_UNTIL_5: 8388608

In draw phase draw until 5 cards in hand (rush duels).

readonly
NO_HAND_LIMIT: 16777216

Disable hand limit checks.

readonly
UNLIMITED_SUMMONS: 33554432

Remove limit of 1 normal summon per turn (rush duels).

readonly
INVERTED_QUICK_PRIORITY: 67108864

Inverted quick effects priority (rush duels).

The to be equipped monster is not sent to the grave if the equip target is no longer valid (goat duels).

readonly
ZERO_ATK_DESTROYED: 268435456

If a 0 atk monster attacks a 0 atk monster, both get destroyed (goat duels).

readonly
STORE_ATTACK_REPLAYS: 536870912

Attack replays can be used later (goat duels).

One chain per damage sub step (goat duels).

readonly
CAN_REPOS_IF_NON_SUMPLAYER: 2147483648

Cards can be repositioned if the control changed (goat duels).

readonly
TCG_SEGOC_NONPUBLIC: 4294967296

TCG Simultaneous Effects Go On Chain for non public knowledge.

readonly
TCG_SEGOC_FIRSTTRIGGER: 8589934592

TCG Simultaneous Effects Go On Chain.

Add Package

deno add jsr:@n1xx1/ocgcore-wasm

Import symbol

import { OcgDuelMode } from "@n1xx1/ocgcore-wasm";

---- OR ----

Import directly with a jsr specifier

import { OcgDuelMode } from "jsr:@n1xx1/ocgcore-wasm";

Add Package

npx jsr add @n1xx1/ocgcore-wasm

Import symbol

import { OcgDuelMode } from "@n1xx1/ocgcore-wasm";

Add Package

yarn dlx jsr add @n1xx1/ocgcore-wasm

Import symbol

import { OcgDuelMode } from "@n1xx1/ocgcore-wasm";

Add Package

pnpm dlx jsr add @n1xx1/ocgcore-wasm

Import symbol

import { OcgDuelMode } from "@n1xx1/ocgcore-wasm";

Add Package

bunx jsr add @n1xx1/ocgcore-wasm

Import symbol

import { OcgDuelMode } from "@n1xx1/ocgcore-wasm";