← Back

Data Formats

Binary-to-Text

Varint

Defined the same way as it is defined in Protocol Buffers, that is:

Match Code

(Crockford Base32 encoded)

15 random bytes

The first 20 bits are overridden based on the client type:

Deck Code

(Crockford Base32 encoded)

Short Form

Byte 0:

Byte 1:

Bytes 2, 5, 8, ...:

Bytes 3, 6, 9, ...:

Bytes 4, 7, 10, ...:

Long Form

Byte 0:

Bytes 1, 2, 3, ...:

Match Recording

CosmeticData

CustomCardDef

EncodedDeck

TurnData

Custom Card

(base64-encoded)

Effect Definition

For all effects:

0: ATK (static)

1: DEF (static)

2: ATK (static, once per turn)

3: ATK+n

4: DEF+n

5: Empower (card)

6: Empower (Tribe)

7: Heal

8: Lifesteal

9: Numb

10: Pierce

11: Summon

12: Summon Rank

13: Summon Tribe

14: Unity

(if Tribe is (none), replace this effect with ATK when decoding)

15: TP

16: Summon as Opponent

17: Multiply Healing

128: Coin

129: If Card

130: Per Card

131: If Tribe

132: VS Tribe

133: If Stat

134: Setup

135: Limit

136: VS Card

137: If Rank

138: VS Rank

139: If Win

140: If Tie

141: If Stat (after modifiers)

142: VS Stat

143: VS Stat (after modifiers)

144: If HP

145: Per Tribe

146: Per Rank

Condition Flags

Appendix A: Card Indices

This section contains spoilers.

Global

Boss

Mini-Boss

Enemy

Tribe