mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
f5c9958aea
Fixes #580
40 lines
958 B
NASM
40 lines
958 B
NASM
ReenaPhoneCalleeScript:
|
|
gettrainername STRING_BUFFER_3, COOLTRAINERF, REENA1
|
|
checkflag ENGINE_REENA
|
|
iftrue .WantsBattle
|
|
farscall PhoneScript_AnswerPhone_Female
|
|
checkflag ENGINE_REENA_SUNDAY_MORNING
|
|
iftrue .NotSunday
|
|
readvar VAR_WEEKDAY
|
|
ifnotequal SUNDAY, .NotSunday
|
|
checktime MORN
|
|
iftrue ReenaSundayMorning
|
|
|
|
.NotSunday:
|
|
farsjump UnknownScript_0xa0928
|
|
|
|
.WantsBattle:
|
|
getlandmarkname STRING_BUFFER_5, ROUTE_27
|
|
farsjump UnknownScript_0xa0a46
|
|
|
|
ReenaPhoneCallerScript:
|
|
gettrainername STRING_BUFFER_3, COOLTRAINERF, REENA1
|
|
farscall PhoneScript_GreetPhone_Female
|
|
checkflag ENGINE_REENA
|
|
iftrue .Generic
|
|
checkflag ENGINE_REENA_SUNDAY_MORNING
|
|
iftrue .Generic
|
|
farscall PhoneScript_Random2
|
|
ifequal 0, ReenaWantsBattle
|
|
|
|
.Generic:
|
|
farsjump Phone_GenericCall_Female
|
|
|
|
ReenaSundayMorning:
|
|
setflag ENGINE_REENA_SUNDAY_MORNING
|
|
|
|
ReenaWantsBattle:
|
|
getlandmarkname STRING_BUFFER_5, ROUTE_27
|
|
setflag ENGINE_REENA
|
|
farsjump PhoneScript_WantsToBattle_Female
|