summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorpikalaxalt <PikalaxALT@gmail.com>2016-05-27 09:38:27 -0400
committerpikalaxalt <PikalaxALT@gmail.com>2016-05-27 09:38:27 -0400
commit4878c118567df8a97e2a796c1c755f2311d955a7 (patch)
tree9ba526dc9150d6aad2f0fcf6cefb277963b870af /scripts
parent40f0dba6c17116c61ce4935663bf1a79485edee9 (diff)
Route 25 scripts
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/route25.asm23
1 files changed, 17 insertions, 6 deletions
diff --git a/scripts/route25.asm b/scripts/route25.asm
index 49580ba6..20dcc890 100755
--- a/scripts/route25.asm
+++ b/scripts/route25.asm
@@ -1,14 +1,21 @@
Route25Script: ; 515cb (14:55cb)
- call Route25Script_515e1
call EnableAutoTextBoxDrawing
ld hl, Route25TrainerHeaders
ld de, Route25ScriptPointers
ld a, [W_ROUTE25CURSCRIPT]
call ExecuteCurMapScriptInTable
ld [W_ROUTE25CURSCRIPT], a
+ call Route25Script_515e1
ret
Route25Script_515e1: ; 515e1 (14:55e1)
+ ld hl, wPreventBlackout
+ res 2, [hl]
+ res 3, [hl]
+ res 4, [hl]
+ res 7, [hl]
+ xor a
+ ld [W_BILLSHOUSECURSCRIPT], a
ld hl, wd126
bit 6, [hl]
res 6, [hl]
@@ -16,14 +23,16 @@ Route25Script_515e1: ; 515e1 (14:55e1)
CheckEventHL EVENT_LEFT_BILLS_HOUSE_AFTER_HELPING
ret nz
CheckEventReuseHL EVENT_MET_BILL_2
- jr nz, .asm_515ff
+ jr nz, .asm_51638
ResetEventReuseHL EVENT_BILL_SAID_USE_CELL_SEPARATOR
ld a, HS_BILL_POKEMON
ld [wMissableObjectIndex], a
- predef_jump ShowObject
-.asm_515ff
+ predef ShowObject
+ jr .asm_5165c
+
+.asm_51638
CheckEventAfterBranchReuseHL EVENT_GOT_SS_TICKET, EVENT_MET_BILL_2
- ret z
+ jr z, .asm_5165c
SetEventReuseHL EVENT_LEFT_BILLS_HOUSE_AFTER_HELPING
ld a, HS_NUGGET_BRIDGE_GUY
ld [wMissableObjectIndex], a
@@ -33,7 +42,9 @@ Route25Script_515e1: ; 515e1 (14:55e1)
predef HideObject
ld a, HS_BILL_2
ld [wMissableObjectIndex], a
- predef_jump ShowObject
+ predef ShowObject
+.asm_5165c
+ ret
Route25ScriptPointers: ; 51622 (14:5622)
dw CheckFightingMapTrainers