Atlasプレビュー
しくみ

クリスタルの捕獲:計算式が見落としたもの

やけど・どく・まひは無効、最大HP 341 の境目、3匹を量りまちがえるヘビーボール。

Burn, poison, paralysis: no bonus

The game computes a catch value from 1 to 255. It starts from the species' catch rate, multiplied by the Ball, then reduces it according to the HP left: rate × (3 × max HP − 2 × current HP) ÷ (3 × max HP). It then adds a status bonus: +10 if the Pokémon is asleep or frozen.

For other statuses the code meant to add 5, but it tests a value it has just reset to zero itself. Burn, poison and paralysis therefore never add anything. The capture succeeds if a number drawn between 0 and 255 is lower than or equal to the value obtained.

When 3 × max HP exceeds 255, both terms are first divided by 4. The calculation then loses precision: at 1, 2 or 3 HP left the result is the same.

Sources : pokecrystal engine/items/item_effects.asm : PokeBallEffect (.statuscheck, « BUG: BRN/PSN/PAR do not affect catch rate »), UltraBallMultiplier, GreatBallMultiplier

Above 341 max HP the formula wraps around

After the division by 4, the game only keeps the low byte of 3 × max HP ÷ 4. As long as max HP does not exceed 341, that number fits in one byte. At 342 HP it is 256: the low byte falls back to 0 and the whole calculation restarts from a wrong number.

No wild or stationary Pokémon in Crystal reaches that threshold. The highest is the Snorlax of Vermilion City: 235 HP at best, at level 50. The flaw therefore does not show in a normal game; the demonstration above lets you trigger it by raising max HP.

Sources : pokecrystal engine/items/item_effects.asm : PokeBallEffect (« BUG: Catch rate formula breaks for Pokémon with max HP > 341 ») ; PV maximaux calculés d'après data/pokemon/base_stats et les rencontres de l'atlas (DV de PV à 15, niveau le plus haut)

Heavy Ball: three Pokémon weighed in the wrong bank

The Heavy Ball reads the opponent's weight from its Pokédex entry: −20 to the rate under 102.4 kg, nothing up to 204.8 kg, then +20, +30 and +40 for the heaviest. Entries are stored in four memory banks: numbers 1 to 64, 65 to 128, 129 to 192, 193 to 251.

To pick the bank, the code divides the number by 64 without subtracting 1 first. Numbers 64, 128 and 192 therefore land in the next bank. For Kadabra, Tauros and Sunflora the game reads the weight at the right address but in the wrong bank: it gets the bytes of another entry.

Sources : pokecrystal engine/items/item_effects.asm : HeavyBallMultiplier, HeavyBall_GetDexEntryBank (« BUG: Heavy Ball uses wrong weight value for three Pokémon »)

A held-item bonus that cannot work

The code provides a held-item effect that adds a bonus to the catch value. It calls the routine that reads an item's effect, but without handing it the item: the routine expects the number in a register the code does not fill. It therefore reads whatever was left there.

On top of that, no item in the game's table carries this effect. The bonus is dead twice over.

Sources : pokecrystal engine/items/item_effects.asm : PokeBallEffect (« BUG: HELD_CATCH_CHANCE has no effect ») ; constants/item_data_constants.asm : HELD_CATCH_CHANCE (aucune entrée de data/items/attributes.asm ne l'utilise)

A transformed Pokémon becomes a Ditto

At the moment of capture, the game checks whether the opponent is under Transform. If so, it writes Ditto as the species, without checking what the Pokémon was before transforming. In a normal game only Ditto transforms and the result is right. But the rule is blind: any transformed wild Pokémon is recorded as a Ditto.

Sources : pokecrystal engine/items/item_effects.asm : PokeBallEffect (« BUG: Catching a Transformed Pokémon always catches a Ditto »)