Pokémon Crystal
A Generation II Pokémon game for Game Boy Color.
Facts
- Released
- 2000-12-14 (JP); 2001-07-30 (NA)
- Genre
- Japanese role-playing game, Monster-taming
- Platforms
- Game Boy Color
- Developer
- Game Freak
- Publisher
- Nintendo
- Series
- Pokémon
- Code
- Disassembly by pret contributors
- Evidence
- Code (7)
Wiki (1) - Sources
- 5
On this page
Pokémon Crystal is a Generation II game for the Game Boy Color, released in Japan in December 2000 and North America in July 20011. The code read here is pret’s pokecrystal disassembly.
In type effectiveness, Crystal adds Steel and Dark2 and changes four older matchups3. Immunity becomes an explicit miss4, and Foresight removes the Ghost immunities5.
Mechanics
| Mechanic | Kind | How |
|---|---|---|
| Type effectiveness | 17 types | Steel and Dark join, four matchups change, and ×0 becomes an outright miss |
| Same-type attack bonus | Half again | damage plus half, after weather and badge boosts and before the type rows |
| Damage formula | Attack over defense | Red and Blue's order, with held-item boosts and the critical's ×2 inside the base step |
| Critical hit | From stages | Focus Energy, high-critical moves, and a Scope Lens add stages, from 17 to 128 in 256 |
| Hit chance | Move accuracy | an accuracy byte after stages, less 20 against a BrightPowder, and 255 always hits |
| Multi-hit attack | Per-hit damage | 2–5 hits, each with its own critical and damage roll |
| Random encounter | By areaRate by timeSlots by time | the map's rate for morning, day, or night, then one of 7 grass slots |
| Fleeing | Speed ratio | Red and Blue's formula, plus a held Smoke Ball that always escapes |
| Turn order | Priority, then Speed | move priority from 0 to 3, then a held Quick Claw's roll, then Speed |
| Random number generator | Hardware-stirred | Red and Blue's divider-stirred generator, returning the other byte |
| Held item | Gold and Silver's held effects: a Scope Lens, a BrightPowder, a Quick Claw, and a Smoke Ball | |
| Weather | Set by moves | Gold and Silver's rain and sun, unchanged |
| Time of day | morning, day, and night rates for wild encounters, as in Gold and Silver | |
| Raster effects | Per line | an interrupt after each line copies the next line's byte from a 144-entry table into one video register; the Magnet Train scrolls three bands |
| Capture | Single catch roll | one byte against the ball-modified rate scaled by (3M − 2H)/3M plus a sleep or freeze bonus; the wobbles are rolled after the result |
| Physical/special split | By type | the type decides, with Dark special and Steel physical |
Every claim about this game, by concept (39)
References
- ^WikiBulbapedia, “Pokémon Crystal Version”
How we know
Pokémon Crystal (developer Game Freak, publisher Nintendo, Game Boy Color, and Generation II core series) came out in Japan on 14 December 2000 and North America on 30 July 2001.
Developer: Game Freak … Publisher: Nintendo … Part of: Generation II core series … Japan: December 14, 2000 … (Game Boy) … North America: July 30, 2001 … (Game Boy)
infobox, Basic info and Release dates · archived copy ↗ - ^Codepret/pokecrystaltype_constants.asm 9–37; names.asm 37
How we know
Crystal's type constants add Steel (physical), Dark (special), and an unused curse type named “???”; the Bird type remains, still with no rows.
19 const STEEL ⋮ 23 const CURSE_TYPE ⋮ 34 const DARK
constants/type_constants.asm lines 9–37 at 97187cd · upstream ↗ 37CurseType: db "???@"data/types/names.asm line 37 at 97187cd · upstream ↗ Measured by a script. It fails if the result disagrees with the claim.
- ^Codepret/pokered · pret/pokecrystal · Bulbapedia, “Type/Type chart”type_matchups.asm 1–85, 1–118; battle_constants.asm 61–65, 21–25
How we know
Crystal's table adds Steel and Dark and changes four Red/Blue matchups: Poison→Bug ×2 → ×1, Bug→Poison ×2 → ×½, Ghost→Psychic ×0 → ×2, and Ice→Fire ×1 → ×½.
48 db POISON, BUG, SUPER_EFFECTIVE ⋮ 70 db BUG, POISON, SUPER_EFFECTIVE ⋮ 78 db GHOST, PSYCHIC_TYPE, NO_EFFECT
data/types/type_matchups.asm lines 1–85 at af51989 · upstream ↗ 61DEF SUPER_EFFECTIVE EQU 20 ⋮ 63DEF EFFECTIVE EQU 10 64DEF NOT_VERY_EFFECTIVE EQU 05 65DEF NO_EFFECT EQU 00
constants/battle_constants.asm lines 61–65 at af51989 · upstream ↗ 42 db ICE, FIRE, NOT_VERY_EFFECTIVE ⋮ 80 db BUG, POISON, NOT_VERY_EFFECTIVE ⋮ 94 db GHOST, PSYCHIC_TYPE, SUPER_EFFECTIVE ⋮ 103 db DARK, DARK, NOT_VERY_EFFECTIVE ⋮ 110 db STEEL, STEEL, NOT_VERY_EFFECTIVE
data/types/type_matchups.asm lines 1–118 at 97187cd · upstream ↗ The Dark and Steel types were introduced. Bug was made ½× against Poison instead of 2×. Poison was made 1× against Bug instead of 2×. Ghost was made 2× against Psychic instead of 0×. Ice was made ½× against Fire instead of 1×.
Changes: Between Generations I and II · archived copy ↗ - Rests on In table order, each type chart row matching the move's type and either defender type sets damage to ; 0 marks a miss.
- Rests on Each type chart row matching the move's type and either defender type computes ; a nonzero product becomes , raised to 1 if that truncates to 0, and a zero product stays 0.
Measured by a script. It fails if the result disagrees with the claim.
- ^Codepret/pokecrystaleffect_commands.asm 1329–1336; battle_constants.asm 25
How we know
In Crystal, a ×0 type chart row makes the move miss as soon as it matches, where Red and Blue mark a miss only when the damage reaches 0.
1329; If the target is immune to the move, treat it as a miss and calculate the damage as 0 1330 ld a, [hl] 1331 and a 1332 jr nz, .NotImmune 1333 inc a 1334 ld [wAttackMissed], a
engine/battle/effect_commands.asm lines 1329–1336 at 97187cd · upstream ↗ 25DEF NO_EFFECT EQU 00constants/battle_constants.asm line 25 at 97187cd · upstream ↗ - Rests on Under two ½ rows (×¼), 2 or 3 damage truncates to 0 and the move misses; 4 damage gives 1. (Red/Blue: the miss flag is set only when a row's step leaves the damage at 0)
- ^Codepret/pokecrystaleffect_commands.asm 1302–1310; type_matchups.asm 112–118; +1 files
How we know
Against a target hit by Foresight, the type chart is read only up to an end marker placed before the Normal-against-Ghost and Fighting-against-Ghost immunities, so those two rows are skipped.
1302 ; foresight 1303 cp -2 1304 jr nz, .SkipForesightCheck 1305 ld a, BATTLE_VARS_SUBSTATUS1_OPP 1306 call GetBattleVar 1307 bit SUBSTATUS_IDENTIFIED, a 1308 jr nz, .end
engine/battle/effect_commands.asm lines 1302–1310 at 97187cd · upstream ↗ 112 db -2 ; end (with Foresight) ⋮ 114; Foresight removes Ghost's immunities. 115 db NORMAL, GHOST, NO_EFFECT 116 db FIGHTING, GHOST, NO_EFFECT ⋮ 118 db -1 ; end
data/types/type_matchups.asm lines 112–118 at 97187cd · upstream ↗ 1BattleCommand_Foresight: ⋮ 4 jr nz, .failed ⋮ 7 jr nz, .failed ⋮ 9 ld a, BATTLE_VARS_SUBSTATUS1_OPP 10 call GetBattleVarAddr 11 bit SUBSTATUS_IDENTIFIED, [hl] 12 jr nz, .failed ⋮ 14 set SUBSTATUS_IDENTIFIED, [hl]
engine/battle/move_effects/foresight.asm lines 1–14 at 97187cd · upstream ↗ - ^Codepret/pokegold · pret/pokecrystaleffect_commands.asm 1145–1205, 1120–1213; critical_hit_chances.asm 1–8
How we know
Gold and Silver already use the staged critical hit that Crystal keeps line for line: Focus Energy (+1), a high-critical move (+2), and a Scope Lens (+1) add to a critical level, which reads 17, 32, 64, 85, or 128 in 256 from a table. Chansey holding a Lucky Punch and Farfetch'd holding a Stick get level 2 at once and skip the other bonuses.
1145 cp CHANSEY 1146 jr nz, .Farfetchd 1147 ld a, [hl] 1148 cp LUCKY_PUNCH 1149 jr nz, .FocusEnergy ⋮ 1151; +2 critical level 1152 ld c, 2 1153 jr .Tally ⋮ 1156 cp FARFETCH_D 1157 jr nz, .FocusEnergy 1158 ld a, [hl] 1159 cp STICK ⋮
engine/battle/effect_commands.asm lines 1145–1205 at fc702b6 · upstream ↗ 1CriticalHitChances: 2 db 1 out_of 15 ; 0 3 db 1 out_of 8 ; +1 4 db 1 out_of 4 ; +2 5 db 1 out_of 3 ; +3 6 db 1 out_of 2 ; +4
data/battle/critical_hit_chances.asm lines 1–8 at fc702b6 · upstream ↗ engine/battle/effect_commands.asm#L1120-L1213 · upstream ↗ - ^Codepret/pokegold · pret/pokecrystaltype_matchups.asm 1–118, 1–118; type_constants.asm 9–37; +2 files
How we know
Gold and Silver's type chart already has the 17 types (computed from the type constants), Steel and Dark included, and Ghost's ×2 on Psychic (a factor of 20 over 10), so these date from Gold and Silver; Crystal's chart has these rows too.
1TypeMatchups: ⋮ 50 db FIGHTING, DARK, SUPER_EFFECTIVE ⋮ 94 db GHOST, PSYCHIC_TYPE, SUPER_EFFECTIVE ⋮ 101 db DARK, PSYCHIC_TYPE, SUPER_EFFECTIVE ⋮ 108 db STEEL, ICE, SUPER_EFFECTIVE ⋮ 112 db -2 ; end (with Foresight) ⋮ 118 db -1 ; end
data/types/type_matchups.asm lines 1–118 at fc702b6 · upstream ↗ 1TypeMatchups: ⋮ 50 db FIGHTING, DARK, SUPER_EFFECTIVE ⋮ 94 db GHOST, PSYCHIC_TYPE, SUPER_EFFECTIVE ⋮ 101 db DARK, PSYCHIC_TYPE, SUPER_EFFECTIVE ⋮ 108 db STEEL, ICE, SUPER_EFFECTIVE ⋮ 112 db -2 ; end (with Foresight) ⋮ 118 db -1 ; end
data/types/type_matchups.asm lines 1–118 at 97187cd · upstream ↗ 9DEF PHYSICAL EQU const_value 10 const NORMAL 11 const FIGHTING 12 const FLYING 13 const POISON 14 const GROUND 15 const ROCK 16 const BIRD 17 const BUG 18 const GHOST 19 const STEEL ⋮ 21DEF UNUSED_TYPES EQU const_value ⋮
constants/type_constants.asm lines 9–37 at fc702b6 · upstream ↗ - ^Codepret/pokegold · pret/pokecrystalwildmons.asm 283–295, 252–348; probabilities.asm 6–21, 6–21
How we know
The time of day picks which of a grass area's three sets of 7 slots is used; a roll from 1 to 100 then picks a slot at 30, 30, 20, 10, 5, 4, and 1 percent, or one of 3 water slots at 60, 30, and 10 percent. Crystal's routine and table are the same.
engine/overworld/wildmons.asm at fc702b6 Our readingstep past wTimeOfDay × NUM_GRASSMON 2-byte slots (by its label)283–285the grass table286keep the list pointer (not quoted)290roll a random byte until it's below 100291–294+ 1: 1 to 1002956GrassMonProbTable: 7 table_width 2 8 mon_prob 30, 0 ; 30% chance 9 mon_prob 60, 1 ; 30% chance 10 mon_prob 80, 2 ; 20% chance 11 mon_prob 90, 3 ; 10% chance 12 mon_prob 95, 4 ; 5% chance 13 mon_prob 99, 5 ; 4% chance 14 mon_prob 100, 6 ; 1% chance ⋮ 18 table_width 2 19 mon_prob 60, 0 ; 60% chance 20 mon_prob 90, 1 ; 30% chance ⋮
data/wild/probabilities.asm lines 6–21 at fc702b6 · upstream ↗ 6GrassMonProbTable: ⋮ 14 mon_prob 100, 6 ; 1% chance
data/wild/probabilities.asm lines 6–21 at 97187cd · upstream ↗ engine/overworld/wildmons.asm#L252-L348 · upstream ↗ Our readingno wild data here: no battle (not quoted)253–254a roaming Pokémon met: battle it (not quoted)255–256on water: the water table (not quoted)261–263else: step past time of day × NUM_GRASSMON 2-byte slots (not quoted)264–268 the grass table (not quoted)269roll 1 to 100 (not quoted)274–278the first entry whose bound is at least the roll (not quoted)283–288its slot: the level (not quoted)290–296on water: + 0 to 4 levels by a second roll (not quoted)298–313the level kept (not quoted)317–318species not valid: no battle (not quoted)319–321Unown, with none unlocked: no battle (not quoted)323–329else: that species, battle (not quoted)340–345
Sources
Code
- pret contributors. 2026. “pokecrystal: disassembly of Pokémon Crystal.” pret. Commit 97187cd. pret/pokecrystal @ 97187cd · licence, all uses
- pret contributors. 2026. “pokered: disassembly of Pokémon Red and Blue.” pret. Commit af51989. pret/pokered @ af51989 · licence, all uses
- pret contributors. 2026. “pokegold: disassembly of Pokémon Gold and Silver.” pret. Commit fc702b6. pret/pokegold @ fc702b6 · licence, all uses
Secondary
- Bulbapedia contributors. 2026. “Pokémon Crystal Version.” Bulbapedia (Bulbagarden). revision 4565703. original · archived · licence, all uses
- Bulbapedia contributors. 2026. “Type/Type chart.” Bulbapedia (Bulbagarden). revision 4615556. original · archived · licence, all uses