ref: b6aa26ffa4629e027ae0384c85ebeb9bc5635728
parent: dcff1305fed75506f651d0d4a100fb116770c145
author: Matt <5638426+mattbruv@users.noreply.github.com>
date: Sat May 2 22:00:01 EDT 2020
label hardcoded HRAM address, start documenting Vermilion
--- a/scripts/VermilionCity.asm
+++ b/scripts/VermilionCity.asm
@@ -8,14 +8,14 @@
pop hl
bit 5, [hl]
res 5, [hl]
- call nz, VermilionCityScript_197c0
+ call nz, .setFirstLockTrashCanIndex
ld hl, VermilionCity_ScriptPointers
ld a, [wVermilionCityCurScript]
jp CallFunctionInTable
-VermilionCityScript_197c0:
+.setFirstLockTrashCanIndex
call Random
- ld a, [$ffd4]
+ ld a, [hRandomSub]
and $e
ld [wFirstLockTrashCanIndex], a
ret