From 08358d82c64aebbe68ac0875b50f012afd5c207f Mon Sep 17 00:00:00 2001 From: Idain Date: Sat, 23 Dec 2023 22:35:18 -0400 Subject: [PATCH] Fix comment about maximum possible value --- engine/events/magikarp.asm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/engine/events/magikarp.asm b/engine/events/magikarp.asm index 763c59a67f0..ce46857853b 100644 --- a/engine/events/magikarp.asm +++ b/engine/events/magikarp.asm @@ -110,12 +110,13 @@ CalcMagikarpLength: ; This function is poorly commented. -; In short, it generates a value between 190 and 1625 using +; In short, it generates a value between 190 and 1755 using ; a Magikarp's DVs and its trainer ID. This value is further ; filtered in LoadEnemyMon to make longer Magikarp even rarer. +; Due to the bug at .BCLessThanDE, the max possible value is 1625. ; The value is generated from a lookup table. -; The index is determined by the dv xored with the player's trainer id. +; The index is determined by the dv xored with the player's trainer ID. ; bc = rrc(dv[0]) ++ rrc(dv[1]) ^ rrc(id)