Rename random number function and hram labels.

GenRandom -> Random
GenRandomInBattle -> BattleRandom
H_RAND1 -> hRandomAdd
H_RAND2 -> hRandomSub
This commit is contained in:
yenatch 2014-05-24 11:40:38 -07:00
parent 8f8281fe6e
commit 64479cd642
14 changed files with 121 additions and 109 deletions

View file

@ -11,7 +11,7 @@ CeladonGameCornerScript_48bcf: ; 48bcf (12:4bcf)
bit 6, [hl]
res 6, [hl]
ret z
call GenRandom
call Random
ld a, [$ffd3]
cp $7
jr nc, .asm_48be2

View file

@ -14,7 +14,7 @@ VermilionCityScript: ; 197a1 (6:57a1)
jp CallFunctionInTable
VermilionCityScript_197c0: ; 197c0 (6:57c0)
call GenRandom
call Random
ld a, [$ffd4]
and $e
ld [$d743], a