summaryrefslogtreecommitdiff
path: root/main.asm
diff options
context:
space:
mode:
Diffstat (limited to 'main.asm')
-rw-r--r--main.asm243
1 files changed, 37 insertions, 206 deletions
diff --git a/main.asm b/main.asm
index dbf8b350..66eca040 100644
--- a/main.asm
+++ b/main.asm
@@ -194,83 +194,27 @@ INCLUDE "engine/pokemon/mail.asm"
SECTION "bank14", ROMX
-SelectMonFromParty::
- dr $50000, $5001d
-SelectTradeOrDayCareMon::
- dr $5001d, $5004f
-LoadPartyMenuGFX::
- dr $5004f, $5005f
-WritePartyMenuTilemap::
- dr $5005f, $50355
-InitPartyMenuGFX::
- dr $50355, $5037a
-InitPartyMenuWithCancel::
- dr $5037a, $503a2
-InitPartyMenuNoCancel::
- dr $503a2, $503cc
-PartyMenuSelect::
- dr $503cc, $5040f
-PrintPartyMenuText::
- dr $5040f, $504db
-PrintPartyMenuActionText::
- dr $504db, $5054f
-LoadFishingGFX::
- dr $5054f, $50610
-DoPoisonStep::
- dr $50610, $506f2
-SweetScentFromMenu::
- dr $506f2, $50763
-_Squirtbottle::
- dr $50763, $507ac
-_CardKey::
- dr $507ac, $507e7
-_BasementKey::
- dr $507e7, $50819
-_SacredAsh::
- dr $50819, $5087d
-CopyMonToTempMon::
- dr $5087d, $50940
-PrintMonTypes::
- dr $50940, $5096d
-PrintMoveType::
- dr $5096d, $50986
-PrintType::
- dr $50986, $50997
-GetTypeName::
- dr $50997, $50b3d
-DrawPlayerHP::
- dr $50b3d, $50b41
-DrawEnemyHP::
- dr $50b41, $50bae
-StatsScreenInit::
- dr $50bae, $5128f
-
-PrintTempMonStats::
- dr $5128f, $512f1
-GetGender::
- dr $512f1, $51364
-ListMovePP::
- dr $51364, $513e4
-Unused_PlaceEnemyHPLevel::
- dr $513e4, $51437
-PlaceNonFaintStatus::
- dr $51437, $51478
-ListMoves::
- dr $51478, $514c2
-InitList::
- dr $514c2, $51524
-CalcLevel::
- dr $51524, $51550
-CalcExpAtLevel::
- dr $51550, $5161b
-_SwitchPartyMons::
- dr $5161b, $51749
+
+INCLUDE "engine/pokemon/party_menu.asm"
+INCLUDE "engine/events/fishing_gfx.asm"
+INCLUDE "engine/events/poisonstep.asm"
+INCLUDE "engine/events/sweet_scent.asm"
+INCLUDE "engine/events/squirtbottle.asm"
+INCLUDE "engine/events/card_key.asm"
+INCLUDE "engine/events/basement_key.asm"
+INCLUDE "engine/events/sacred_ash.asm"
+INCLUDE "engine/pokemon/tempmon.asm"
+INCLUDE "engine/pokemon/types.asm"
+INCLUDE "engine/battle/unreferenced_getgen1trainerclassname.asm"
+INCLUDE "engine/pokemon/mon_stats.asm"
+INCLUDE "engine/link/init_list.asm"
+INCLUDE "engine/pokemon/experience.asm"
+INCLUDE "engine/pokemon/switchpartymons.asm"
INCLUDE "engine/gfx/load_pics.asm"
INCLUDE "engine/pokemon/move_mon_wo_mail.asm"
INCLUDE "data/pokemon/base_stats.asm"
+INCLUDE "data/pokemon/unused_pic_banks.asm"
-Unknown53a6b::
- dr $53a6b, $53a83
EggPic::
INCBIN "gfx/pokemon/egg/front.2bpp.lz"
@@ -514,8 +458,10 @@ _DepositPKMN::
_WithdrawPKMN::
dr $e2d71, $e2f47
_MovePKMNWithoutMail::
- dr $e2f47, $e3d25
+ dr $e2f47, $e3773
+StatsScreenDPad::
+ dr $e3773, $e3d25
_ChangeBox::
dr $e3d25, $e3f74
@@ -565,7 +511,9 @@ _LoadFontsBattleExtra::
LoadBattleFontsHPBar::
dr $f8066, $f8081
LoadHPBar::
- dr $f8081, $f80d9
+ dr $f8081, $f80a6
+StatsScreen_LoadFont::
+ dr $f80a6, $f80d9
LoadStatsScreenPageTilesGFX::
dr $f80d9, $f8aa2
StatsScreenPageTilesGFX::
@@ -647,137 +595,20 @@ INCLUDE "data/text/std_text.asm"
INCLUDE "data/text/battle.asm"
-SECTION "bank41", ROMX
-
-; Phone scripts and text
-UnusedPhoneScript::
- dr $104000, $104004
-MomPhoneCalleeScript::
- dr $104004, $104124
-MomPhoneLectureScript::
- dr $104124, $104137
-BillPhoneCalleeScript::
- dr $104137, $104172
-BillPhoneCallerScript::
- dr $104172, $104177
-ElmPhoneCalleeScript::
- dr $104177, $1041e1
-ElmPhoneCallerScript::
- dr $1041e1, $10422a
-JackPhoneCalleeScript::
- dr $10422a, $104234
-JackPhoneCallerScript::
- dr $104234, $104256
-BeverlyPhoneCalleeScript::
- dr $104256, $104260
-BeverlyPhoneCallerScript::
- dr $104260, $104282
-HueyPhoneCalleeScript::
- dr $104282, $10428c
-HueyPhoneCallerScript::
- dr $10428c, $1042a7
-GavenPhoneCalleeScript::
- dr $1042a7, $1042b1
-GavenPhoneCallerScript::
- dr $1042b1, $1042d3
-BethPhoneCalleeScript::
- dr $1042d3, $1042dd
-BethPhoneCallerScript::
- dr $1042dd, $1042ff
-JosePhoneCalleeScript::
- dr $1042ff, $104309
-JosePhoneCallerScript::
- dr $104309, $104332
-ReenaPhoneCalleeScript::
- dr $104332, $10433c
-ReenaPhoneCallerScript::
- dr $10433c, $10435e
-JoeyPhoneCalleeScript::
- dr $10435e, $104368
-JoeyPhoneCallerScript::
- dr $104368, $104390
-WadePhoneCalleeScript::
- dr $104390, $1043b5
-WadePhoneCallerScript::
- dr $1043b5, $1043f8
-RalphPhoneCalleeScript::
- dr $1043f8, $104402
-RalphPhoneCallerScript::
- dr $104402, $104446
-LizPhoneCalleeScript::
- dr $104446, $104450
-LizPhoneCallerScript::
- dr $104450, $104478
-AnthonyPhoneCalleeScript::
- dr $104478, $104482
-AnthonyPhoneCallerScript::
- dr $104482, $1044c4
-ToddPhoneCalleeScript::
- dr $1044c4, $1044ce
-ToddPhoneCallerScript::
- dr $1044ce, $1044f6
-GinaPhoneCalleeScript::
- dr $1044f6, $104506
-GinaPhoneCallerScript::
- dr $104506, $104534
-IrwinPhoneCalleeScript::
- dr $104534, $104544
-IrwinPhoneCallerScript::
- dr $104544, $10456c
-ArniePhoneCalleeScript::
- dr $10456c, $104576
-ArniePhoneCallerScript::
- dr $104576, $1045b2
-AlanPhoneCalleeScript::
- dr $1045b2, $1045bc
-AlanPhoneCallerScript::
- dr $1045bc, $1045de
-DanaPhoneCalleeScript::
- dr $1045de, $1045e8
-DanaPhoneCallerScript::
- dr $1045e8, $10460a
-ChadPhoneCalleeScript::
- dr $10460a, $104614
-ChadPhoneCallerScript::
- dr $104614, $104650
-DerekPhoneCalleeScript::
- dr $104650, $104675
-DerekPhoneCallerScript::
- dr $104675, $1046b2
-ChrisPhoneCalleeScript::
- dr $1046b2, $1046bc
-ChrisPhoneCallerScript::
- dr $1046bc, $1046de
-BrentPhoneCalleeScript::
- dr $1046de, $1046e8
-BrentPhoneCallerScript::
- dr $1046e8, $104711
-TiffanyPhoneCalleeScript::
- dr $104711, $10471b
-TiffanyPhoneCallerScript::
- dr $10471b, $104744
-VancePhoneCalleeScript::
- dr $104744, $10474e
-VancePhoneCallerScript::
- dr $10474e, $104770
-WiltonPhoneCalleeScript::
- dr $104770, $10477a
-WiltonPhoneCallerScript::
- dr $10477a, $1047b8
-KenjiPhoneCalleeScript::
- dr $1047b8, $1047c2
-KenjiPhoneCallerScript::
- dr $1047c2, $1047e4
-ParryPhoneCalleeScript::
- dr $1047e4, $1047ee
-ParryPhoneCallerScript::
- dr $1047ee, $10482a
-ErinPhoneCalleeScript::
- dr $10482a, $104834
-ErinPhoneCallerScript::
- dr $104834, $104a80
-BikeShopPhoneCallerScript::
- dr $104a80, $10614d
+SECTION "Phone Scripts", ROMX
+
+INCLUDE "engine/phone/scripts/unused.asm"
+INCLUDE "engine/phone/scripts/mom.asm"
+INCLUDE "engine/phone/scripts/bill.asm"
+INCLUDE "engine/phone/scripts/elm.asm"
+INCLUDE "engine/phone/scripts/trainers.asm"
+INCLUDE "engine/phone/scripts/bike_shop.asm"
+INCLUDE "data/phone/text/unused.asm"
+INCLUDE "data/phone/text/mom.asm"
+INCLUDE "data/phone/text/bill.asm"
+INCLUDE "data/phone/text/elm.asm"
+INCLUDE "data/phone/text/trainers.asm"
+INCLUDE "data/phone/text/bike_shop.asm"
SECTION "Names", ROMX