Skip to content

Commit

Permalink
Fix comment about maximum possible value
Browse files Browse the repository at this point in the history
  • Loading branch information
Idain committed Dec 24, 2023
1 parent 6508421 commit 08358d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions engine/events/magikarp.asm
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 08358d8

Please sign in to comment.