correct comments about teleport effect

This commit is contained in:
YamaArashi 2016-10-16 22:30:32 -07:00
parent c2381bb3e6
commit d1162fec71

View file

@ -8047,9 +8047,8 @@ SwitchAndTeleportEffect:
cp c ; get a random number between 0 and c cp c ; get a random number between 0 and c
jr nc, .rejectionSampleLoop1 jr nc, .rejectionSampleLoop1
srl b srl b
srl b ; b = enemy level * 4 srl b ; b = enemyLevel / 4
; bug: does not account for overflow, so levels above 63 can lead to erroneousness results cp b ; is rand[0, playerLevel + enemyLevel) >= (enemyLevel / 4)?
cp b ; is rand[0, playerLevel + enemyLevel] > enemyLevel?
jr nc, .playerMoveWasSuccessful ; if so, allow teleporting jr nc, .playerMoveWasSuccessful ; if so, allow teleporting
ld c, 50 ld c, 50
call DelayFrames call DelayFrames