shithub: pokecrystal

Download patch

ref: fb02e4bde5a442e0d832c6fdb8edbcd691f1d3dd
parent: d588033748535fb3ae6d92b55f126784124c6945
author: surskitty <surskitty@gmail.com>
date: Tue Jan 16 08:26:13 EST 2018

Birdkeeper Jose and Cooltrainerf Reena

--- a/maps/Route27.asm
+++ b/maps/Route27.asm
@@ -37,7 +37,7 @@
 UnknownScript_0x1a088c:
 	spriteface PLAYER, RIGHT
 	opentext
-	writetext UnknownText_0x1a0a6b
+	writetext Route27FisherHeyText
 	buttonsound
 	writetext Route27FisherText
 	waitbutton
@@ -67,31 +67,31 @@
 	end_if_just_battled
 	opentext
 	checkflag ENGINE_JOSE
-	iftrue UnknownScript_0x1a08ff
+	iftrue .WantsBattle
 	checkflag ENGINE_JOSE_HAS_STAR_PIECE
-	iftrue UnknownScript_0x1a0945
+	iftrue .HasStarPiece
 	checkcellnum PHONE_BIRDKEEPER_JOSE
-	iftrue UnknownScript_0x1a0963
+	iftrue .NumberAccepted
 	checkevent EVENT_JOSE_ASKED_FOR_PHONE_NUMBER
-	iftrue UnknownScript_0x1a08e8
-	writetext UnknownText_0x1a0e42
+	iftrue .AskedAlready
+	writetext BirdKeeperJose2AfterBattleText
 	buttonsound
 	setevent EVENT_JOSE_ASKED_FOR_PHONE_NUMBER
-	scall UnknownScript_0x1a0957
-	jump UnknownScript_0x1a08eb
+	scall .AskNumber1
+	jump .AskForNumber
 
-UnknownScript_0x1a08e8:
-	scall UnknownScript_0x1a095b
-UnknownScript_0x1a08eb:
+.AskedAlready:
+	scall .AskNumber2
+.AskForNumber:
 	askforphonenumber PHONE_BIRDKEEPER_JOSE
-	if_equal $1, UnknownScript_0x1a096b
-	if_equal $2, UnknownScript_0x1a0967
+	if_equal $1, .PhoneFull
+	if_equal $2, .NumberDeclined
 	trainertotext BIRD_KEEPER, JOSE2, $0
-	scall UnknownScript_0x1a095f
-	jump UnknownScript_0x1a0963
+	scall .RegisteredNumber
+	jump .NumberAccepted
 
-UnknownScript_0x1a08ff:
-	scall UnknownScript_0x1a096f
+.WantsBattle:
+	scall .Rematch
 	winlosstext BirdKeeperJose2BeatenText, 0
 	copybytetovar wJoseFightCount
 	if_equal 2, .Fight2
@@ -126,49 +126,49 @@
 	clearflag ENGINE_JOSE
 	end
 
-UnknownScript_0x1a0945:
-	scall UnknownScript_0x1a0973
+.HasStarPiece:
+	scall .Gift
 	verbosegiveitem STAR_PIECE
-	iffalse UnknownScript_0x1a0954
+	iffalse .NoRoom
 	clearflag ENGINE_JOSE_HAS_STAR_PIECE
-	jump UnknownScript_0x1a0963
+	jump .NumberAccepted
 
-UnknownScript_0x1a0954:
-	jump UnknownScript_0x1a0977
+.NoRoom:
+	jump .PackFull
 
-UnknownScript_0x1a0957:
+.AskNumber1:
 	jumpstd asknumber1m
 	end
 
-UnknownScript_0x1a095b:
+.AskNumber2:
 	jumpstd asknumber2m
 	end
 
-UnknownScript_0x1a095f:
+.RegisteredNumber:
 	jumpstd registerednumberm
 	end
 
-UnknownScript_0x1a0963:
+.NumberAccepted:
 	jumpstd numberacceptedm
 	end
 
-UnknownScript_0x1a0967:
+.NumberDeclined:
 	jumpstd numberdeclinedm
 	end
 
-UnknownScript_0x1a096b:
+.PhoneFull:
 	jumpstd phonefullm
 	end
 
-UnknownScript_0x1a096f:
+.Rematch:
 	jumpstd rematchm
 	end
 
-UnknownScript_0x1a0973:
+.Gift:
 	jumpstd giftm
 	end
 
-UnknownScript_0x1a0977:
+.PackFull:
 	jumpstd packfullm
 	end
 
@@ -195,7 +195,7 @@
 	end
 
 TrainerCooltrainerfReena:
-	trainer EVENT_BEAT_COOLTRAINERF_REENA, COOLTRAINERF, REENA1, CooltrainerfReena1SeenText, CooltrainerfReena1BeatenText, 0, .Script
+	trainer EVENT_BEAT_COOLTRAINERF_REENA, COOLTRAINERF, REENA1, CooltrainerfReenaSeenText, CooltrainerfReenaBeatenText, 0, .Script
 
 .Script:
 	writecode VAR_CALLERID, PHONE_COOLTRAINERF_REENA
@@ -202,30 +202,30 @@
 	end_if_just_battled
 	opentext
 	checkflag ENGINE_REENA
-	iftrue UnknownScript_0x1a09e9
+	iftrue .WantsBattle
 	checkcellnum PHONE_COOLTRAINERF_REENA
-	iftrue UnknownScript_0x1a0a3b
+	iftrue .NumberAccepted
 	checkevent EVENT_REENA_ASKED_FOR_PHONE_NUMBER
-	iftrue UnknownScript_0x1a09d2
-	writetext UnknownText_0x1a0c35
+	iftrue .AskedAlready
+	writetext CooltrainerfReenaAfterBattleText
 	buttonsound
 	setevent EVENT_REENA_ASKED_FOR_PHONE_NUMBER
-	scall UnknownScript_0x1a0a2f
-	jump UnknownScript_0x1a09d5
+	scall .AskNumber1
+	jump .AskForNumber
 
-UnknownScript_0x1a09d2:
-	scall UnknownScript_0x1a0a33
-UnknownScript_0x1a09d5:
+.AskedAlready:
+	scall .AskNumber2
+.AskForNumber:
 	askforphonenumber PHONE_COOLTRAINERF_REENA
-	if_equal $1, UnknownScript_0x1a0a43
-	if_equal $2, UnknownScript_0x1a0a3f
+	if_equal $1, .PhoneFull
+	if_equal $2, .NumberDeclined
 	trainertotext COOLTRAINERF, REENA1, $0
-	scall UnknownScript_0x1a0a37
-	jump UnknownScript_0x1a0a3b
+	scall .RegisteredNumber
+	jump .NumberAccepted
 
-UnknownScript_0x1a09e9:
-	scall UnknownScript_0x1a0a47
-	winlosstext CooltrainerfReena1BeatenText, 0
+.WantsBattle:
+	scall .Rematch
+	winlosstext CooltrainerfReenaBeatenText, 0
 	copybytetovar wReenaFightCount
 	if_equal 2, .Fight2
 	if_equal 1, .Fight1
@@ -259,31 +259,31 @@
 	clearflag ENGINE_REENA
 	end
 
-UnknownScript_0x1a0a2f:
+.AskNumber1:
 	jumpstd asknumber1f
 	end
 
-UnknownScript_0x1a0a33:
+.AskNumber2:
 	jumpstd asknumber2f
 	end
 
-UnknownScript_0x1a0a37:
+.RegisteredNumber:
 	jumpstd registerednumberf
 	end
 
-UnknownScript_0x1a0a3b:
+.NumberAccepted:
 	jumpstd numberacceptedf
 	end
 
-UnknownScript_0x1a0a3f:
+.NumberDeclined:
 	jumpstd numberdeclinedf
 	end
 
-UnknownScript_0x1a0a43:
+.PhoneFull:
 	jumpstd phonefullf
 	end
 
-UnknownScript_0x1a0a47:
+.Rematch:
 	jumpstd rematchf
 	end
 
@@ -316,7 +316,7 @@
 	step LEFT
 	step_end
 
-UnknownText_0x1a0a6b:
+Route27FisherHeyText:
 	text "Hey!"
 	done
 
@@ -369,7 +369,7 @@
 	cont "good trainers."
 	done
 
-CooltrainerfReena1SeenText:
+CooltrainerfReenaSeenText:
 	text "You shouldn't"
 	line "underestimate the"
 
@@ -377,12 +377,12 @@
 	line "these parts."
 	done
 
-CooltrainerfReena1BeatenText:
+CooltrainerfReenaBeatenText:
 	text "Oh! You're much"
 	line "too strong!"
 	done
 
-UnknownText_0x1a0c35:
+CooltrainerfReenaAfterBattleText:
 	text "You're just a kid,"
 	line "but you're not to"
 
@@ -452,7 +452,7 @@
 	text "Tweet!"
 	done
 
-UnknownText_0x1a0e42:
+BirdKeeperJose2AfterBattleText:
 	text "BIRD KEEPERS like"
 	line "me mimic bird"