mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-11-11 07:44:47 +13:00
label hardcoded HRAM address, start documenting Vermilion
This commit is contained in:
parent
dcff1305fe
commit
b6aa26ffa4
|
|
@ -8,14 +8,14 @@ VermilionCity_Script:
|
||||||
pop hl
|
pop hl
|
||||||
bit 5, [hl]
|
bit 5, [hl]
|
||||||
res 5, [hl]
|
res 5, [hl]
|
||||||
call nz, VermilionCityScript_197c0
|
call nz, .setFirstLockTrashCanIndex
|
||||||
ld hl, VermilionCity_ScriptPointers
|
ld hl, VermilionCity_ScriptPointers
|
||||||
ld a, [wVermilionCityCurScript]
|
ld a, [wVermilionCityCurScript]
|
||||||
jp CallFunctionInTable
|
jp CallFunctionInTable
|
||||||
|
|
||||||
VermilionCityScript_197c0:
|
.setFirstLockTrashCanIndex
|
||||||
call Random
|
call Random
|
||||||
ld a, [$ffd4]
|
ld a, [hRandomSub]
|
||||||
and $e
|
and $e
|
||||||
ld [wFirstLockTrashCanIndex], a
|
ld [wFirstLockTrashCanIndex], a
|
||||||
ret
|
ret
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue