Events and some WRAM cleanup

This commit is contained in:
PikalaxALT 2015-12-18 20:07:09 -05:00
parent d644406f61
commit 3d36f1a837
60 changed files with 752 additions and 724 deletions

View File

@ -866,7 +866,7 @@ PrintText_UsedItemOn: ; 38571
ld [wd265], a ld [wd265], a
call GetItemName call GetItemName
ld hl, StringBuffer1 ld hl, StringBuffer1
ld de, wd050 ld de, wMonOrItemNameBuffer
ld bc, ITEM_NAME_LENGTH ld bc, ITEM_NAME_LENGTH
call CopyBytes call CopyBytes
ld hl, TextJump_EnemyUsedOn ld hl, TextJump_EnemyUsedOn

View File

@ -8809,7 +8809,7 @@ endr
ld hl, wPayDayMoney + 2 ld hl, wPayDayMoney + 2
ld de, Money + 2 ld de, Money + 2
call AddBattleMoneyToAccount call AddBattleMoneyToAccount
ld hl, BattleText_PlayerPickuedUpPayDayMoney ld hl, BattleText_PlayerPickedUpPayDayMoney
call StdBattleTextBox call StdBattleTextBox
ld a, [InBattleTowerBattle] ld a, [InBattleTowerBattle]
bit 0, a bit 0, a

View File

@ -377,14 +377,14 @@ MAX_OUTDOOR_SPRITES EQU 23
const SPRITE_ANIM_FRAMESET_07 const SPRITE_ANIM_FRAMESET_07
const SPRITE_ANIM_FRAMESET_08 const SPRITE_ANIM_FRAMESET_08
const SPRITE_ANIM_FRAMESET_09 const SPRITE_ANIM_FRAMESET_09
const SPRITE_ANIM_FRAMESET_0A const SPRITE_ANIM_FRAMESET_GAMEFREAK_LOGO
const SPRITE_ANIM_FRAMESET_0B const SPRITE_ANIM_FRAMESET_0B
const SPRITE_ANIM_FRAMESET_0C const SPRITE_ANIM_FRAMESET_0C
const SPRITE_ANIM_FRAMESET_SLOT_GOLEM const SPRITE_ANIM_FRAMESET_SLOT_GOLEM
const SPRITE_ANIM_FRAMESET_SLOTS_CHANSEY const SPRITE_ANIM_FRAMESET_SLOTS_CHANSEY
const SPRITE_ANIM_FRAMESET_0F const SPRITE_ANIM_FRAMESET_0F
const SPRITE_ANIM_FRAMESET_SLOTS_EGG const SPRITE_ANIM_FRAMESET_SLOTS_EGG
const SPRITE_ANIM_FRAMESET_11 const SPRITE_ANIM_FRAMESET_WALK_CYCLE
const SPRITE_ANIM_FRAMESET_12 const SPRITE_ANIM_FRAMESET_12
const SPRITE_ANIM_FRAMESET_13 const SPRITE_ANIM_FRAMESET_13
const SPRITE_ANIM_FRAMESET_14 const SPRITE_ANIM_FRAMESET_14
@ -396,7 +396,7 @@ MAX_OUTDOOR_SPRITES EQU 23
const SPRITE_ANIM_FRAMESET_1A const SPRITE_ANIM_FRAMESET_1A
const SPRITE_ANIM_FRAMESET_1B const SPRITE_ANIM_FRAMESET_1B
const SPRITE_ANIM_FRAMESET_1C const SPRITE_ANIM_FRAMESET_1C
const SPRITE_ANIM_FRAMESET_1D const SPRITE_ANIM_FRAMESET_LEAF
const SPRITE_ANIM_FRAMESET_1E const SPRITE_ANIM_FRAMESET_1E
const SPRITE_ANIM_FRAMESET_1F const SPRITE_ANIM_FRAMESET_1F
const SPRITE_ANIM_FRAMESET_20 const SPRITE_ANIM_FRAMESET_20
@ -435,13 +435,13 @@ MAX_OUTDOOR_SPRITES EQU 23
const SPRITE_ANIM_FRAMESET_41 const SPRITE_ANIM_FRAMESET_41
const_def const_def
const SPRITE_ANIM_SEQ_00 const SPRITE_ANIM_SEQ_NULL
const SPRITE_ANIM_SEQ_01 const SPRITE_ANIM_SEQ_01
const SPRITE_ANIM_SEQ_02 const SPRITE_ANIM_SEQ_02
const SPRITE_ANIM_SEQ_03 const SPRITE_ANIM_SEQ_03
const SPRITE_ANIM_SEQ_04 const SPRITE_ANIM_SEQ_04
const SPRITE_ANIM_SEQ_05 const SPRITE_ANIM_SEQ_05
const SPRITE_ANIM_SEQ_06 const SPRITE_ANIM_SEQ_GAMEFREAK_LOGO
const SPRITE_ANIM_SEQ_07 const SPRITE_ANIM_SEQ_07
const SPRITE_ANIM_SEQ_08 const SPRITE_ANIM_SEQ_08
const SPRITE_ANIM_SEQ_SLOT_GOLEM const SPRITE_ANIM_SEQ_SLOT_GOLEM
@ -457,9 +457,9 @@ MAX_OUTDOOR_SPRITES EQU 23
const SPRITE_ANIM_SEQ_13 const SPRITE_ANIM_SEQ_13
const SPRITE_ANIM_SEQ_14 const SPRITE_ANIM_SEQ_14
const SPRITE_ANIM_SEQ_15 const SPRITE_ANIM_SEQ_15
const SPRITE_ANIM_SEQ_16 const SPRITE_ANIM_SEQ_FLY_FROM
const SPRITE_ANIM_SEQ_17 const SPRITE_ANIM_SEQ_FLY_LEAF
const SPRITE_ANIM_SEQ_18 const SPRITE_ANIM_SEQ_FLY_TO
const SPRITE_ANIM_SEQ_19 const SPRITE_ANIM_SEQ_19
const SPRITE_ANIM_SEQ_1A const SPRITE_ANIM_SEQ_1A
const SPRITE_ANIM_SEQ_1B const SPRITE_ANIM_SEQ_1B
@ -475,14 +475,14 @@ MAX_OUTDOOR_SPRITES EQU 23
const SPRITE_ANIM_INDEX_00 const SPRITE_ANIM_INDEX_00
const SPRITE_ANIM_INDEX_01 const SPRITE_ANIM_INDEX_01
const SPRITE_ANIM_INDEX_02 const SPRITE_ANIM_INDEX_02
const SPRITE_ANIM_INDEX_03 const SPRITE_ANIM_INDEX_GAMEFREAK_LOGO
const SPRITE_ANIM_INDEX_04 const SPRITE_ANIM_INDEX_04
const SPRITE_ANIM_INDEX_05 const SPRITE_ANIM_INDEX_05
const SPRITE_ANIM_INDEX_SLOT_GOLEM const SPRITE_ANIM_INDEX_SLOT_GOLEM
const SPRITE_ANIM_INDEX_SLOTS_CHANSEY const SPRITE_ANIM_INDEX_SLOTS_CHANSEY
const SPRITE_ANIM_INDEX_SLOTS_EGG const SPRITE_ANIM_INDEX_SLOTS_EGG
const SPRITE_ANIM_INDEX_09 const SPRITE_ANIM_INDEX_09
const SPRITE_ANIM_INDEX_0A const SPRITE_ANIM_INDEX_WALK_CYCLE
const SPRITE_ANIM_INDEX_0B const SPRITE_ANIM_INDEX_0B
const SPRITE_ANIM_INDEX_0C const SPRITE_ANIM_INDEX_0C
const SPRITE_ANIM_INDEX_0D const SPRITE_ANIM_INDEX_0D
@ -496,7 +496,7 @@ MAX_OUTDOOR_SPRITES EQU 23
const SPRITE_ANIM_INDEX_15 const SPRITE_ANIM_INDEX_15
const SPRITE_ANIM_INDEX_LEAF const SPRITE_ANIM_INDEX_LEAF
const SPRITE_ANIM_INDEX_CUT_TREE const SPRITE_ANIM_INDEX_CUT_TREE
const SPRITE_ANIM_INDEX_18 const SPRITE_ANIM_INDEX_FLY_LEAF
const SPRITE_ANIM_INDEX_19 const SPRITE_ANIM_INDEX_19
const SPRITE_ANIM_INDEX_1A const SPRITE_ANIM_INDEX_1A
const SPRITE_ANIM_INDEX_1B const SPRITE_ANIM_INDEX_1B

View File

@ -575,7 +575,7 @@ GetHeritableMoves: ; 17197
ld a, [wBreedMon2Species] ld a, [wBreedMon2Species]
cp DITTO cp DITTO
jr z, .ditto2 jr z, .ditto2
ld a, [wDittoInDaycare] ld a, [wBreedMotherOrNonDitto]
and a and a
ret z ret z
ld hl, wBreedMon1Moves ld hl, wBreedMon1Moves
@ -633,7 +633,7 @@ GetBreedmonMovePointer: ; 1720b
ld a, [wBreedMon2Species] ld a, [wBreedMon2Species]
cp DITTO cp DITTO
jr z, .ditto jr z, .ditto
ld a, [wDittoInDaycare] ld a, [wBreedMotherOrNonDitto]
and a and a
ret z ret z

View File

@ -95,7 +95,7 @@ RestartClock: ; 20021 (8:4021)
ld [StringBuffer2 + 2], a ld [StringBuffer2 + 2], a
xor a xor a
ld [StringBuffer2 + 3], a ld [StringBuffer2 + 3], a
call Function677 call InitTime
call .PrintTime call .PrintTime
ld hl, .Text_ClockReset ld hl, .Text_ClockReset
call PrintText call PrintText

View File

@ -80,7 +80,7 @@ Copyright_GFPresents: ; e4579
callba ClearSpriteAnims callba ClearSpriteAnims
depixel 10, 11, 4, 0 depixel 10, 11, 4, 0
ld a, SPRITE_ANIM_INDEX_03 ld a, SPRITE_ANIM_INDEX_GAMEFREAK_LOGO
call _InitSpriteAnimStruct call _InitSpriteAnimStruct
ld hl, $7 ld hl, $7
add hl, bc add hl, bc

View File

@ -6,7 +6,7 @@ InitDecorations: ; 26751 (9:6751)
ret ret
_KrisDecorationMenu: ; 0x2675c _KrisDecorationMenu: ; 0x2675c
ld a, [wcf76] ld a, [wWhichIndexSet]
push af push af
ld hl, .MenuDataHeader ld hl, .MenuDataHeader
call LoadMenuDataHeader call LoadMenuDataHeader
@ -30,7 +30,7 @@ _KrisDecorationMenu: ; 0x2675c
.exit_menu .exit_menu
call ExitMenu call ExitMenu
pop af pop af
ld [wcf76], a ld [wWhichIndexSet], a
ld a, [Buffer5] ld a, [Buffer5]
ld c, a ld c, a
ret ret
@ -74,7 +74,7 @@ _KrisDecorationMenu: ; 0x2675c
.FindCategoriesWithOwnedDecos: ; 26806 .FindCategoriesWithOwnedDecos: ; 26806
xor a xor a
ld [wcf76], a ld [wWhichIndexSet], a
call .ClearStringBuffer2 call .ClearStringBuffer2
call .FindOwndDecos call .FindOwndDecos
ld a, 7 ld a, 7
@ -374,7 +374,7 @@ PopulateDecoCategoryMenu: ; 2695b
cp 8 cp 8
jr nc, .beyond_eight jr nc, .beyond_eight
xor a xor a
ld [wcf76], a ld [wWhichIndexSet], a
ld hl, .NonscrollingMenuDataHeader ld hl, .NonscrollingMenuDataHeader
call LoadMenuDataHeader call LoadMenuDataHeader
call DoNthMenu call DoNthMenu

View File

@ -4,7 +4,7 @@ LearnMove: ; 6508
ld hl, PartyMonNicknames ld hl, PartyMonNicknames
call GetNick call GetNick
ld hl, StringBuffer1 ld hl, StringBuffer1
ld de, wd050_MonNick ld de, wMonOrItemNameBuffer
ld bc, PKMN_NAME_LENGTH ld bc, PKMN_NAME_LENGTH
call CopyBytes call CopyBytes

View File

@ -12,7 +12,7 @@ MainMenu: ; 49cdc
ld hl, GameTimerPause ld hl, GameTimerPause
res 0, [hl] res 0, [hl]
call Function49da4 call Function49da4
ld [wcf76], a ld [wWhichIndexSet], a
call Function49e09 call Function49e09
ld hl, MenuDataHeader_0x49d14 ld hl, MenuDataHeader_0x49d14
call LoadMenuDataHeader call LoadMenuDataHeader

View File

@ -70,10 +70,10 @@ BargainShop: ; 15a84
Pharmacist: ; 15aae Pharmacist: ; 15aae
call FarReadMart call FarReadMart
call LoadStandardMenuDataHeader call LoadStandardMenuDataHeader
ld hl, UnknownText_0x15e90 ld hl, Text_Pharmacist_Intro
call MartTextBox call MartTextBox
call BuyMenu call BuyMenu
ld hl, UnknownText_0x15eae ld hl, Text_Pharmacist_ComeAgain
call MartTextBox call MartTextBox
ret ret
; 15ac4 ; 15ac4
@ -493,7 +493,7 @@ BuyMenuLoop: ; 15cef
.useless_pointer .useless_pointer
call MartAskPurchaseQuantity call MartAskPurchaseQuantity
jr c, .cancel jr c, .cancel
call Function15d97 call MartConfirmPurchase
jr c, .cancel jr c, .cancel
ld de, Money ld de, Money
ld bc, hMoneyTemp ld bc, hMoneyTemp
@ -551,7 +551,7 @@ StandardMartAskPurchaseQuantity:
ret ret
; 15d97 ; 15d97
Function15d97: ; 15d97 MartConfirmPurchase: ; 15d97
predef PartyMonItemName predef PartyMonItemName
ld a, MARTTEXT_COSTS_THIS_MUCH ld a, MARTTEXT_COSTS_THIS_MUCH
call LoadBuyMenuText call LoadBuyMenuText
@ -764,7 +764,7 @@ Text_BargainShop_ComeAgain: ; 0x15e8b
db "@" db "@"
; 0x15e90 ; 0x15e90
UnknownText_0x15e90: ; 0x15e90 Text_Pharmacist_Intro: ; 0x15e90
; What's up? Need some medicine? ; What's up? Need some medicine?
text_jump UnknownText_0x1c4e5f text_jump UnknownText_0x1c4e5f
db "@" db "@"
@ -800,7 +800,7 @@ Text_Pharmacy_InsufficientFunds: ; 0x15ea9
db "@" db "@"
; 0x15eae ; 0x15eae
UnknownText_0x15eae: ; 0x15eae Text_Pharmacist_ComeAgain: ; 0x15eae
; All right. See you around. ; All right. See you around.
text_jump UnknownText_0x1c4ef6 text_jump UnknownText_0x1c4ef6
db "@" db "@"
@ -810,36 +810,35 @@ UnknownText_0x15eae: ; 0x15eae
SellMenu: ; 15eb3 SellMenu: ; 15eb3
call DisableSpriteUpdates call DisableSpriteUpdates
callba DepositSellInitPackBuffers callba DepositSellInitPackBuffers
.asm_15ebc .loop
callba DepositSellPack callba DepositSellPack
ld a, [wcf66] ld a, [wcf66]
and a and a
jp z, Function15ece jp z, .quit
call Function15ee0 call .TryToSellItem
jr .asm_15ebc jr .loop
; 15ece
Function15ece: ; 15ece .quit
call Function2b74 call ReturnToMapWithSpeechTextbox
and a and a
ret ret
; 15ed3 ; 15ed3
Function15ed3: ; unreferenced .NothingToSell: ; unreferenced
ld hl, UnknownText_0x15edb ld hl, .NothingToSellText
call MenuTextBoxBackup call MenuTextBoxBackup
and a and a
ret ret
; 15edb ; 15edb
UnknownText_0x15edb: ; 0x15edb .NothingToSellText: ; 0x15edb
; You don't have anything to sell. ; You don't have anything to sell.
text_jump UnknownText_0x1c4f12 text_jump UnknownText_0x1c4f12
db "@" db "@"
; 0x15ee0 ; 0x15ee0
Function15ee0: ; 15ee0 .TryToSellItem: ; 15ee0
callba CheckItemMenu callba CheckItemMenu
ld a, [wItemAttributeParamBuffer] ld a, [wItemAttributeParamBuffer]
ld hl, .jumptable ld hl, .jumptable

View File

@ -243,7 +243,7 @@ Function8e97d: ; 8e97d (23:697d)
call InitSpriteAnimStruct call InitSpriteAnimStruct
ld hl, SPRITEANIMSTRUCT_ANIM_SEQ_ID ld hl, SPRITEANIMSTRUCT_ANIM_SEQ_ID
add hl, bc add hl, bc
ld [hl], SPRITE_ANIM_SEQ_00 ld [hl], SPRITE_ANIM_SEQ_NULL
ret ret
Function8e99a: ; 8e99a (23:699a) Function8e99a: ; 8e99a (23:699a)
@ -371,7 +371,7 @@ FreezeMonIcons: ; 8ea4a
jr z, .next jr z, .next
cp d cp d
jr z, .loadwithtwo jr z, .loadwithtwo
ld a, SPRITE_ANIM_SEQ_00 ld a, SPRITE_ANIM_SEQ_NULL
jr .ok jr .ok
.loadwithtwo .loadwithtwo

View File

@ -1,7 +1,7 @@
_NamingScreen: ; 0x116b7 _NamingScreen: ; 0x116b7
call DisableSpriteUpdates call DisableSpriteUpdates
call NamingScreen call NamingScreen
call Function2b74 call ReturnToMapWithSpeechTextbox
ret ret
; 0x116c1 ; 0x116c1
@ -174,7 +174,7 @@ Function117f5: ; 117f5 (4:57f5)
ld [hli], a ld [hli], a
ld [hl], a ld [hl], a
depixel 4, 4, 4, 0 depixel 4, 4, 4, 0
ld a, SPRITE_ANIM_INDEX_0A ld a, SPRITE_ANIM_INDEX_WALK_CYCLE
call _InitSpriteAnimStruct call _InitSpriteAnimStruct
ld hl, SPRITEANIMSTRUCT_FRAMESET_ID ld hl, SPRITEANIMSTRUCT_FRAMESET_ID
add hl, bc add hl, bc
@ -220,7 +220,7 @@ Function11847: ; 11847 (4:5847)
ld [hli], a ld [hli], a
ld [hl], a ld [hl], a
pop de pop de
ld b, SPRITE_ANIM_INDEX_0A ld b, SPRITE_ANIM_INDEX_WALK_CYCLE
ld a, d ld a, d
cp $7a cp $7a
jr nz, .asm_11873 jr nz, .asm_11873

View File

@ -88,7 +88,7 @@ NPCTrade:: ; fcba8
ld [wcf64], a ld [wcf64], a
pop af pop af
ld [wJumptableIndex], a ld [wJumptableIndex], a
call Function2b74 call ReturnToMapWithSpeechTextbox
ret ret
; fcc23 ; fcc23
@ -399,7 +399,7 @@ GetTradeMonNames: ; fce1b
ld a, [hl] ld a, [hl]
call GetTradeMonName call GetTradeMonName
ld de, wd050 ld de, wMonOrItemNameBuffer
call CopyTradeName call CopyTradeName
ld hl, StringBuffer1 ld hl, StringBuffer1

View File

@ -633,7 +633,7 @@ GiveItem: ; 103fd
push af push af
call GetCurNick call GetCurNick
ld hl, StringBuffer1 ld hl, StringBuffer1
ld de, wd050_MonNick ld de, wMonOrItemNameBuffer
ld bc, PKMN_NAME_LENGTH ld bc, PKMN_NAME_LENGTH
call CopyBytes call CopyBytes
call TryGiveItemToPartymon call TryGiveItemToPartymon

View File

@ -8,7 +8,7 @@ SelectMonFromParty: ; 50000
call SetPalettes call SetPalettes
call DelayFrame call DelayFrame
call PartyMenuSelect call PartyMenuSelect
call Function2b74 call ReturnToMapWithSpeechTextbox
ret ret
; 5001d ; 5001d
@ -25,7 +25,7 @@ SelectTradeOrDaycareMon: ; 5001d
call SetPalettes call SetPalettes
call DelayFrame call DelayFrame
call PartyMenuSelect call PartyMenuSelect
call Function2b74 call ReturnToMapWithSpeechTextbox
ret ret
; 5003f ; 5003f

View File

@ -274,7 +274,7 @@ endr
push hl push hl
call LoadCallerScript call LoadCallerScript
pop hl pop hl
ld de, wd048 ld de, wPhoneScriptPointer
ld a, [hli] ld a, [hli]
ld [de], a ld [de], a
inc de inc de
@ -442,7 +442,7 @@ WrongNumber: ; 90233
Script_ReceivePhoneCall: ; 0x90241 Script_ReceivePhoneCall: ; 0x90241
refreshscreen $0 refreshscreen $0
callasm RingTwice_StartCall callasm RingTwice_StartCall
ptcall wd048 ptcall wPhoneScriptPointer
waitbutton waitbutton
callasm HangUp callasm HangUp
closetext closetext

View File

@ -12,7 +12,7 @@ PokemonCenterPC: ; 1559a
xor a xor a
ld [hBGMapMode], a ld [hBGMapMode], a
call .ChooseWhichPCListToUse call .ChooseWhichPCListToUse
ld [wcf76], a ld [wWhichIndexSet], a
call DoNthMenu call DoNthMenu
jr c, .shutdown jr c, .shutdown
ld a, [MenuSelection] ld a, [MenuSelection]
@ -208,7 +208,7 @@ UnknownText_0x156ff: ; 0x156ff
_PlayersPC: ; 15704 _PlayersPC: ; 15704
ld a, b ld a, b
ld [wcf76], a ld [wWhichIndexSet], a
ld hl, UnknownText_0x157cc ld hl, UnknownText_0x157cc
call PC_DisplayTextWaitMenu call PC_DisplayTextWaitMenu
call Function15715 call Function15715

View File

@ -673,7 +673,7 @@ Function9102f: ; 9102f (24:502f)
Function9106a: ; 9106a Function9106a: ; 9106a
push af push af
depixel 0, 0 depixel 0, 0
ld b, SPRITE_ANIM_INDEX_0A ld b, SPRITE_ANIM_INDEX_WALK_CYCLE
ld a, [PlayerGender] ld a, [PlayerGender]
bit 0, a bit 0, a
jr z, .asm_91079 jr z, .asm_91079
@ -709,7 +709,7 @@ Function91098: ; 91098
ld [hl], $4 ld [hl], $4
ld hl, SPRITEANIMSTRUCT_ANIM_SEQ_ID ld hl, SPRITEANIMSTRUCT_ANIM_SEQ_ID
add hl, bc add hl, bc
ld [hl], SPRITE_ANIM_SEQ_00 ld [hl], SPRITE_ANIM_SEQ_NULL
pop af pop af
push bc push bc
call Function910d4 call Function910d4
@ -2781,7 +2781,7 @@ TownMapMon: ; 91f7b
ld [hl], $8 ld [hl], $8
ld hl, SPRITEANIMSTRUCT_ANIM_SEQ_ID ld hl, SPRITEANIMSTRUCT_ANIM_SEQ_ID
add hl, bc add hl, bc
ld [hl], SPRITE_ANIM_SEQ_00 ld [hl], SPRITE_ANIM_SEQ_NULL
ret ret
; 91fa6 ; 91fa6
@ -2808,7 +2808,7 @@ TownMapPlayerIcon: ; 91fa6
; Animation/palette ; Animation/palette
depixel 0, 0 depixel 0, 0
ld b, SPRITE_ANIM_INDEX_0A ; Male ld b, SPRITE_ANIM_INDEX_WALK_CYCLE ; Male
ld a, [PlayerGender] ld a, [PlayerGender]
bit 0, a bit 0, a
jr z, .got_gender jr z, .got_gender

View File

@ -274,7 +274,7 @@ endr
ld [CurPartySpecies], a ld [CurPartySpecies], a
call GetPokemonName call GetPokemonName
ld hl, StringBuffer1 ld hl, StringBuffer1
ld de, wOaksPkmnTalkPkmnNameBuffer ld de, wMonOrItemNameBuffer
ld bc, PKMN_NAME_LENGTH ld bc, PKMN_NAME_LENGTH
call CopyBytes call CopyBytes
; Now that we've chosen our wild Pokemon, ; Now that we've chosen our wild Pokemon,

View File

@ -163,7 +163,7 @@ Function140ae: ; 140ae
ret ret
; 140ed ; 140ed
Function140ed:: ; 140ed _InitTime:: ; 140ed
call GetClock call GetClock
call FixDays call FixDays
ld hl, hRTCSeconds ld hl, hRTCSeconds

View File

@ -877,7 +877,7 @@ endr
Script_scripttalkafter: ; 97125 Script_scripttalkafter: ; 97125
; script command 0x65 ; script command 0x65
ld hl, wd04b ld hl, wScriptAfterPointer
ld a, [hli] ld a, [hli]
ld h, [hl] ld h, [hl]
ld l, a ld l, a

View File

@ -16,18 +16,18 @@ endr
.Jumptable: ; 8d25b (23:525b) .Jumptable: ; 8d25b (23:525b)
jumptable_start jumptable_start
jumptable .zero ; null jumptable .Null ; null
jumptable .one ; bouncing mon icon jumptable .one ; bouncing mon icon
jumptable .two ; bouncing mon icon, selected jumptable .two ; bouncing mon icon, selected
jumptable .three ; bouncing mon icon, menu open jumptable .three ; bouncing mon icon, menu open
jumptable .four jumptable .four
jumptable .five jumptable .five
jumptable .six ; Game Freak logo jumptable .GameFreakLogo ; Game Freak logo
jumptable .seven jumptable .seven
jumptable .eight jumptable .eight
jumptable .nine ; Something to do with slots jumptable .SlotsGolem ; Something to do with slots
jumptable .ten ; Something to do with slots jumptable .SlotsChansey ; Something to do with slots
jumptable .eleven ; Something to do with slots jumptable .SlotsChanseyEgg ; Something to do with slots
jumptable .twelve ; blinking cursor jumptable .twelve ; blinking cursor
jumptable .thirteen jumptable .thirteen
jumptable .fourteen jumptable .fourteen
@ -35,12 +35,12 @@ endr
jumptable .sixteen jumptable .sixteen
jumptable .seventeen jumptable .seventeen
jumptable .eighteen jumptable .eighteen
jumptable .nineteen ; finish egg hatching animation jumptable .EggShell ; finish egg hatching animation
jumptable .twenty ; radio tuning knob jumptable .RadioTuningKnob ; radio tuning knob
jumptable .twentyone ; cut grass leaves jumptable .twentyone ; cut grass leaves
jumptable .twentytwo ; flying sprite jumptable .FlyFrom ; flying sprite
jumptable .twentythree ; flying leaves jumptable .FlyLeaf ; flying leaves
jumptable .twentyfour jumptable .FlyTo ; fly to
jumptable .twentyfive jumptable .twentyfive
jumptable .twentysix jumptable .twentysix
jumptable .twentyseven jumptable .twentyseven
@ -53,7 +53,7 @@ endr
jumptable .thirtyfour ; intro suicune facing away from us jumptable .thirtyfour ; intro suicune facing away from us
.zero: ; 8d2a1 (23:52a1) .Null: ; 8d2a1 (23:52a1)
ret ret
.one: ; 8d2a2 (23:52a2) .one: ; 8d2a2 (23:52a2)
@ -94,13 +94,13 @@ endr
add hl, bc add hl, bc
ld a, d ld a, d
and $10 ; bit 4 and $10 ; bit 4
jr z, .load_zero jr z, .load_Null
ld a, e ld a, e
and a and a
jr z, .load_minus_two jr z, .load_minus_two
cp $1 cp $1
jr z, .load_minus_one jr z, .load_minus_one
.load_zero .load_Null
xor a xor a
ld [hl], a ld [hl], a
ret ret
@ -140,11 +140,11 @@ endr
; 8d306 (23:5306) ; 8d306 (23:5306)
; Anonymous jumptable (see .anonymous_jumptable) ; Anonymous jumptable (see .anonymous_jumptable)
dw .four_zero dw .four_Null
dw .four_one dw .four_one
; 8d30a ; 8d30a
.four_zero: ; 8d30a .four_Null: ; 8d30a
call .IncrementSpriteAnimStruct0B call .IncrementSpriteAnimStruct0B
ld hl, SPRITEANIMSTRUCT_INDEX ld hl, SPRITEANIMSTRUCT_INDEX
@ -227,7 +227,7 @@ endr
callab Function120c1 callab Function120c1
ret ret
.six: ; 8d37a (23:537a) .GameFreakLogo: ; 8d37a (23:537a)
callab GameFreakLogoJumper callab GameFreakLogoJumper
ret ret
@ -359,11 +359,11 @@ endr
call DeinitializeSprite call DeinitializeSprite
ret ret
.nine: ; 8d422 (23:5422) .SlotsGolem: ; 8d422 (23:5422)
callab SlotMachine_AnimateGolem callab SlotMachine_AnimateGolem
ret ret
.ten: ; 8d429 (23:5429) .SlotsChansey: ; 8d429 (23:5429)
callab Slots_AnimateChansey callab Slots_AnimateChansey
ld hl, wcf64 ld hl, wcf64
ld a, [hl] ld a, [hl]
@ -374,7 +374,7 @@ endr
call _ReinitSpriteAnimFrame call _ReinitSpriteAnimFrame
ret ret
.eleven: ; 8d43e (23:543e) .SlotsChanseyEgg: ; 8d43e (23:543e)
ld hl, SPRITEANIMSTRUCT_0B ld hl, SPRITEANIMSTRUCT_0B
add hl, bc add hl, bc
ld a, [hl] ld a, [hl]
@ -425,7 +425,7 @@ endr
; 8d487 (23:5487) ; 8d487 (23:5487)
; Anonymous jumptable (see .anonymous_jumptable) ; Anonymous jumptable (see .anonymous_jumptable)
dw .sixteen_zero dw .sixteen_Null
dw .sixteen_one dw .sixteen_one
dw .sixteen_two dw .sixteen_two
dw .sixteen_three dw .sixteen_three
@ -433,7 +433,7 @@ endr
dw .sixteen_five dw .sixteen_five
; 8d493 ; 8d493
.sixteen_zero: ; 8d493 .sixteen_Null: ; 8d493
ld a, $14 ld a, $14
call _ReinitSpriteAnimFrame call _ReinitSpriteAnimFrame
@ -573,12 +573,12 @@ endr
callab Function29676 callab Function29676
ret ret
.nineteen: ; 8d54a (23:554a) .EggShell: ; 8d54a (23:554a)
ld hl, SPRITEANIMSTRUCT_0C ld hl, SPRITEANIMSTRUCT_0C
add hl, bc add hl, bc
ld a, [hl] ld a, [hl]
cp $80 cp $80
jr nc, .finish_nineteen jr nc, .finish_EggShell
ld d, a ld d, a
add $8 add $8
ld [hl], a ld [hl], a
@ -606,11 +606,11 @@ endr
ld [hl], a ld [hl], a
ret ret
.finish_nineteen .finish_EggShell
call DeinitializeSprite call DeinitializeSprite
ret ret
.twenty: ; 8d578 (23:5578) .RadioTuningKnob: ; 8d578 (23:5578)
callab AnimateTuningKnob callab AnimateTuningKnob
ret ret
@ -653,7 +653,7 @@ endr
ld [hl], a ld [hl], a
ret ret
.twentytwo: ; 8d5b0 (23:55b0) .FlyFrom: ; 8d5b0 (23:55b0)
ld hl, SPRITEANIMSTRUCT_YCOORD ld hl, SPRITEANIMSTRUCT_YCOORD
add hl, bc add hl, bc
ld a, [hl] ld a, [hl]
@ -678,10 +678,10 @@ endr
ld a, [hl] ld a, [hl]
ld d, a ld d, a
cp $40 cp $40
jr nc, .asm_8d5d3 jr nc, .skip
add $8 add $8
ld [hl], a ld [hl], a
.asm_8d5d3 .skip
ld hl, SPRITEANIMSTRUCT_0E ld hl, SPRITEANIMSTRUCT_0E
add hl, bc add hl, bc
ld a, [hl] ld a, [hl]
@ -693,12 +693,12 @@ endr
ld [hl], a ld [hl], a
ret ret
.twentythree: ; 8d5e2 (23:55e2) .FlyLeaf: ; 8d5e2 (23:55e2)
ld hl, SPRITEANIMSTRUCT_XCOORD ld hl, SPRITEANIMSTRUCT_XCOORD
add hl, bc add hl, bc
ld a, [hl] ld a, [hl]
cp $b8 cp -9 * 8
jr nc, .asm_8d603 jr nc, .delete_leaf
rept 2 rept 2
inc [hl] inc [hl]
endr endr
@ -706,8 +706,8 @@ endr
ld hl, SPRITEANIMSTRUCT_YCOORD ld hl, SPRITEANIMSTRUCT_YCOORD
add hl, bc add hl, bc
dec [hl] dec [hl]
ld d, $40
ld d, $40
ld hl, SPRITEANIMSTRUCT_0C ld hl, SPRITEANIMSTRUCT_0C
add hl, bc add hl, bc
ld a, [hl] ld a, [hl]
@ -718,15 +718,16 @@ endr
add hl, bc add hl, bc
ld [hl], a ld [hl], a
ret ret
.asm_8d603
.delete_leaf
call DeinitializeSprite call DeinitializeSprite
ret ret
.twentyfour: ; 8d607 (23:5607) .FlyTo: ; 8d607 (23:5607)
ld hl, SPRITEANIMSTRUCT_YCOORD ld hl, SPRITEANIMSTRUCT_YCOORD
add hl, bc add hl, bc
ld a, [hl] ld a, [hl]
cp $54 cp 10 * 8 + 4
ret z ret z
ld hl, SPRITEANIMSTRUCT_YCOORD ld hl, SPRITEANIMSTRUCT_YCOORD

View File

@ -561,48 +561,48 @@ SpriteAnimSeqData: ; 8d1c4
db SPRITE_ANIM_FRAMESET_01, SPRITE_ANIM_SEQ_01, $00 ; 00 db SPRITE_ANIM_FRAMESET_01, SPRITE_ANIM_SEQ_01, $00 ; 00
db SPRITE_ANIM_FRAMESET_07, SPRITE_ANIM_SEQ_04, $00 ; 01 db SPRITE_ANIM_FRAMESET_07, SPRITE_ANIM_SEQ_04, $00 ; 01
db SPRITE_ANIM_FRAMESET_08, SPRITE_ANIM_SEQ_05, $05 ; 02 db SPRITE_ANIM_FRAMESET_08, SPRITE_ANIM_SEQ_05, $05 ; 02
db SPRITE_ANIM_FRAMESET_0A, SPRITE_ANIM_SEQ_06, $00 ; 03 db SPRITE_ANIM_FRAMESET_GAMEFREAK_LOGO, SPRITE_ANIM_SEQ_GAMEFREAK_LOGO, $00 ; 03
db SPRITE_ANIM_FRAMESET_0B, SPRITE_ANIM_SEQ_07, $06 ; 04 db SPRITE_ANIM_FRAMESET_0B, SPRITE_ANIM_SEQ_07, $06 ; 04
db SPRITE_ANIM_FRAMESET_0C, SPRITE_ANIM_SEQ_08, $06 ; 05 db SPRITE_ANIM_FRAMESET_0C, SPRITE_ANIM_SEQ_08, $06 ; 05
db SPRITE_ANIM_FRAMESET_SLOT_GOLEM, SPRITE_ANIM_SEQ_SLOT_GOLEM, $07 ; 06 slots golem db SPRITE_ANIM_FRAMESET_SLOT_GOLEM, SPRITE_ANIM_SEQ_SLOT_GOLEM, $07 ; 06 slots golem
db SPRITE_ANIM_FRAMESET_SLOTS_CHANSEY, SPRITE_ANIM_SEQ_SLOTS_CHANSEY, $07 ; 07 slots chansey db SPRITE_ANIM_FRAMESET_SLOTS_CHANSEY, SPRITE_ANIM_SEQ_SLOTS_CHANSEY, $07 ; 07 slots chansey
db SPRITE_ANIM_FRAMESET_SLOTS_EGG, SPRITE_ANIM_SEQ_SLOTS_EGG, $07 ; 08 slots egg db SPRITE_ANIM_FRAMESET_SLOTS_EGG, SPRITE_ANIM_SEQ_SLOTS_EGG, $07 ; 08 slots egg
db SPRITE_ANIM_FRAMESET_08, SPRITE_ANIM_SEQ_0C, $05 ; 09 db SPRITE_ANIM_FRAMESET_08, SPRITE_ANIM_SEQ_0C, $05 ; 09
db SPRITE_ANIM_FRAMESET_11, SPRITE_ANIM_SEQ_00, $00 ; 0a flying sprite db SPRITE_ANIM_FRAMESET_WALK_CYCLE, SPRITE_ANIM_SEQ_NULL, $00 ; 0a walk cycle
db SPRITE_ANIM_FRAMESET_12, SPRITE_ANIM_SEQ_0D, $08 ; 0b db SPRITE_ANIM_FRAMESET_12, SPRITE_ANIM_SEQ_0D, $08 ; 0b
db SPRITE_ANIM_FRAMESET_12, SPRITE_ANIM_SEQ_0E, $08 ; 0c db SPRITE_ANIM_FRAMESET_12, SPRITE_ANIM_SEQ_0E, $08 ; 0c
db SPRITE_ANIM_FRAMESET_12, SPRITE_ANIM_SEQ_0F, $08 ; 0d db SPRITE_ANIM_FRAMESET_12, SPRITE_ANIM_SEQ_0F, $08 ; 0d
db SPRITE_ANIM_FRAMESET_13, SPRITE_ANIM_SEQ_10, $00 ; 0e db SPRITE_ANIM_FRAMESET_13, SPRITE_ANIM_SEQ_10, $00 ; 0e
db SPRITE_ANIM_FRAMESET_15, SPRITE_ANIM_SEQ_00, $00 ; 0f db SPRITE_ANIM_FRAMESET_15, SPRITE_ANIM_SEQ_NULL, $00 ; 0f
db SPRITE_ANIM_FRAMESET_16, SPRITE_ANIM_SEQ_11, $00 ; 10 db SPRITE_ANIM_FRAMESET_16, SPRITE_ANIM_SEQ_11, $00 ; 10
db SPRITE_ANIM_FRAMESET_17, SPRITE_ANIM_SEQ_12, $00 ; 11 db SPRITE_ANIM_FRAMESET_17, SPRITE_ANIM_SEQ_12, $00 ; 11
db SPRITE_ANIM_FRAMESET_18, SPRITE_ANIM_SEQ_12, $00 ; 12 db SPRITE_ANIM_FRAMESET_18, SPRITE_ANIM_SEQ_12, $00 ; 12
db SPRITE_ANIM_FRAMESET_19, SPRITE_ANIM_SEQ_13, $00 ; 13 db SPRITE_ANIM_FRAMESET_19, SPRITE_ANIM_SEQ_13, $00 ; 13
db SPRITE_ANIM_FRAMESET_1A, SPRITE_ANIM_SEQ_14, $00 ; 14 radio tuning knob db SPRITE_ANIM_FRAMESET_1A, SPRITE_ANIM_SEQ_14, $00 ; 14 radio tuning knob
db SPRITE_ANIM_FRAMESET_1B, SPRITE_ANIM_SEQ_00, $00 ; 15 db SPRITE_ANIM_FRAMESET_1B, SPRITE_ANIM_SEQ_NULL, $00 ; 15
db SPRITE_ANIM_FRAMESET_1D, SPRITE_ANIM_SEQ_15, $00 ; 16 leaves when cutting down a tree db SPRITE_ANIM_FRAMESET_LEAF, SPRITE_ANIM_SEQ_15, $00 ; 16 leaves when cutting down a tree
db SPRITE_ANIM_FRAMESET_1E, SPRITE_ANIM_SEQ_00, $00 ; 17 db SPRITE_ANIM_FRAMESET_1E, SPRITE_ANIM_SEQ_NULL, $00 ; 17
db SPRITE_ANIM_FRAMESET_1D, SPRITE_ANIM_SEQ_17, $00 ; 18 flying leaves db SPRITE_ANIM_FRAMESET_LEAF, SPRITE_ANIM_SEQ_FLY_LEAF, $00 ; 18 flying leaves
db SPRITE_ANIM_FRAMESET_1F, SPRITE_ANIM_SEQ_00, $00 ; 19 db SPRITE_ANIM_FRAMESET_1F, SPRITE_ANIM_SEQ_NULL, $00 ; 19
db SPRITE_ANIM_FRAMESET_24, SPRITE_ANIM_SEQ_19, $00 ; 1a db SPRITE_ANIM_FRAMESET_24, SPRITE_ANIM_SEQ_19, $00 ; 1a
db SPRITE_ANIM_FRAMESET_25, SPRITE_ANIM_SEQ_00, $00 ; 1b headbutt db SPRITE_ANIM_FRAMESET_25, SPRITE_ANIM_SEQ_NULL, $00 ; 1b headbutt
db SPRITE_ANIM_FRAMESET_20, SPRITE_ANIM_SEQ_13, $00 ; 1c db SPRITE_ANIM_FRAMESET_20, SPRITE_ANIM_SEQ_13, $00 ; 1c
db SPRITE_ANIM_FRAMESET_26, SPRITE_ANIM_SEQ_1A, $00 ; 1d db SPRITE_ANIM_FRAMESET_26, SPRITE_ANIM_SEQ_1A, $00 ; 1d
db SPRITE_ANIM_FRAMESET_2D, SPRITE_ANIM_SEQ_00, $00 ; 1e db SPRITE_ANIM_FRAMESET_2D, SPRITE_ANIM_SEQ_NULL, $00 ; 1e
db SPRITE_ANIM_FRAMESET_2E, SPRITE_ANIM_SEQ_00, $00 ; 1f db SPRITE_ANIM_FRAMESET_2E, SPRITE_ANIM_SEQ_NULL, $00 ; 1f
db SPRITE_ANIM_FRAMESET_2F, SPRITE_ANIM_SEQ_00, $00 ; 20 db SPRITE_ANIM_FRAMESET_2F, SPRITE_ANIM_SEQ_NULL, $00 ; 20
db SPRITE_ANIM_FRAMESET_30, SPRITE_ANIM_SEQ_00, $00 ; 21 db SPRITE_ANIM_FRAMESET_30, SPRITE_ANIM_SEQ_NULL, $00 ; 21
db SPRITE_ANIM_FRAMESET_31, SPRITE_ANIM_SEQ_00, $00 ; 22 db SPRITE_ANIM_FRAMESET_31, SPRITE_ANIM_SEQ_NULL, $00 ; 22
db SPRITE_ANIM_FRAMESET_32, SPRITE_ANIM_SEQ_1B, $00 ; 23 db SPRITE_ANIM_FRAMESET_32, SPRITE_ANIM_SEQ_1B, $00 ; 23
db SPRITE_ANIM_FRAMESET_33, SPRITE_ANIM_SEQ_1C, $00 ; 24 db SPRITE_ANIM_FRAMESET_33, SPRITE_ANIM_SEQ_1C, $00 ; 24
db SPRITE_ANIM_FRAMESET_34, SPRITE_ANIM_SEQ_00, $00 ; 25 db SPRITE_ANIM_FRAMESET_34, SPRITE_ANIM_SEQ_NULL, $00 ; 25
db SPRITE_ANIM_FRAMESET_35, SPRITE_ANIM_SEQ_1D, $00 ; 26 db SPRITE_ANIM_FRAMESET_35, SPRITE_ANIM_SEQ_1D, $00 ; 26
db SPRITE_ANIM_FRAMESET_37, SPRITE_ANIM_SEQ_1E, $00 ; 27 db SPRITE_ANIM_FRAMESET_37, SPRITE_ANIM_SEQ_1E, $00 ; 27
db SPRITE_ANIM_FRAMESET_38, SPRITE_ANIM_SEQ_1E, $00 ; 28 db SPRITE_ANIM_FRAMESET_38, SPRITE_ANIM_SEQ_1E, $00 ; 28
db SPRITE_ANIM_FRAMESET_39, SPRITE_ANIM_SEQ_20, $00 ; 29 intro unown db SPRITE_ANIM_FRAMESET_39, SPRITE_ANIM_SEQ_20, $00 ; 29 intro unown
db SPRITE_ANIM_FRAMESET_3F, SPRITE_ANIM_SEQ_21, $00 ; 2a db SPRITE_ANIM_FRAMESET_3F, SPRITE_ANIM_SEQ_21, $00 ; 2a
db SPRITE_ANIM_FRAMESET_3E, SPRITE_ANIM_SEQ_22, $00 ; 2b db SPRITE_ANIM_FRAMESET_3E, SPRITE_ANIM_SEQ_22, $00 ; 2b
db SPRITE_ANIM_FRAMESET_40, SPRITE_ANIM_SEQ_00, $00 ; 2c db SPRITE_ANIM_FRAMESET_40, SPRITE_ANIM_SEQ_NULL, $00 ; 2c
; 8d24b ; 8d24b
INCLUDE "engine/sprite_anims.asm" ; DoAnimFrame INCLUDE "engine/sprite_anims.asm" ; DoAnimFrame

View File

@ -141,7 +141,7 @@ endr
.Clear ; 126b7 .Clear ; 126b7
call ClearBGPalettes call ClearBGPalettes
call Call_ExitMenu call Call_ExitMenu
call Function2bae call ReloadTilesetAndPalettes
call .DrawMenuAccount_ call .DrawMenuAccount_
call MenuFunc_1e7f call MenuFunc_1e7f
call .DrawBugContestStatus call .DrawBugContestStatus
@ -283,7 +283,7 @@ endr
.SetUpMenuItems ; 12829 .SetUpMenuItems ; 12829
xor a xor a
ld [wcf76], a ld [wWhichIndexSet], a
call .FillMenuList call .FillMenuList
ld hl, StatusFlags ld hl, StatusFlags
@ -805,7 +805,7 @@ GiveTakePartyMonItem: ; 12b60
call GetCurNick call GetCurNick
ld hl, StringBuffer1 ld hl, StringBuffer1
ld de, wd050_MonNick ld de, wMonOrItemNameBuffer
ld bc, PKMN_NAME_LENGTH ld bc, PKMN_NAME_LENGTH
call CopyBytes call CopyBytes
ld a, [wMenuCursorY] ld a, [wMenuCursorY]

View File

@ -38,7 +38,7 @@ InitClock: ; 90672 (24:4672)
call .ClearScreen call .ClearScreen
call WaitBGMap call WaitBGMap
call RotateFourPalettesRight call RotateFourPalettesRight
ld hl, UnknownText_0x90874 ld hl, Text_WokeUpOak
call PrintText call PrintText
ld hl, wc608 ld hl, wc608
ld bc, 50 ld bc, 50
@ -48,7 +48,7 @@ InitClock: ; 90672 (24:4672)
ld [wInitHourBuffer], a ld [wInitHourBuffer], a
.loop .loop
ld hl, UnknownText_0x90879 ld hl, Text_WhatTimeIsIt
call PrintText call PrintText
hlcoord 3, 7 hlcoord 3, 7
ld b, 2 ld b, 2
@ -71,7 +71,7 @@ InitClock: ; 90672 (24:4672)
ld a, [wInitHourBuffer] ld a, [wInitHourBuffer]
ld [StringBuffer2 + 1], a ld [StringBuffer2 + 1], a
call .ClearScreen call .ClearScreen
ld hl, UnknownText_0x90886 ld hl, Text_WhatHrs
call PrintText call PrintText
call YesNoBox call YesNoBox
jr nc, .HourIsSet jr nc, .HourIsSet
@ -79,7 +79,7 @@ InitClock: ; 90672 (24:4672)
jr .loop jr .loop
.HourIsSet .HourIsSet
ld hl, UnknownText_0x9089a ld hl, Text_HowManyMinutes
call PrintText call PrintText
hlcoord 11, 7 hlcoord 11, 7
lb bc, 2, 7 lb bc, 2, 7
@ -101,7 +101,7 @@ InitClock: ; 90672 (24:4672)
ld a, [BattleMonNick + 5] ld a, [BattleMonNick + 5]
ld [StringBuffer2 + 2], a ld [StringBuffer2 + 2], a
call .ClearScreen call .ClearScreen
ld hl, UnknownText_0x908a4 ld hl, Text_WhoaMins
call PrintText call PrintText
call YesNoBox call YesNoBox
jr nc, .MinutesAreSet jr nc, .MinutesAreSet
@ -109,7 +109,7 @@ InitClock: ; 90672 (24:4672)
jr .HourIsSet jr .HourIsSet
.MinutesAreSet .MinutesAreSet
call Function658 call SetTimeOfDay
ld hl, OakText_ResponseToSetTime ld hl, OakText_ResponseToSetTime
call PrintText call PrintText
call WaitPressAorB_BlinkCursor call WaitPressAorB_BlinkCursor
@ -194,7 +194,7 @@ DisplayHourOClock: ; 907de (24:47de)
ret ret
; 907f1 (24:47f1) ; 907f1 (24:47f1)
Function907f1: ; 907f1 UnreferencedFunction907f1: ; 907f1
ld h, d ld h, d
ld l, e ld l, e
push hl push hl
@ -203,11 +203,11 @@ Function907f1: ; 907f1
rept 2 rept 2
inc de inc de
endr endr
ld a, $9c ld a, ":"
ld [de], a ld [de], a
inc de inc de
push de push de
ld hl, $3 ld hl, 3
add hl, de add hl, de
ld a, [de] ld a, [de]
inc de inc de
@ -225,37 +225,39 @@ endr
SetMinutes: ; 90810 (24:4810) SetMinutes: ; 90810 (24:4810)
ld a, [hJoyPressed] ld a, [hJoyPressed]
and A_BUTTON and A_BUTTON
jr nz, .asm_90857 jr nz, .a_button
ld hl, hJoyLast ld hl, hJoyLast
ld a, [hl] ld a, [hl]
and D_UP and D_UP
jr nz, .asm_90835 jr nz, .d_up
ld a, [hl] ld a, [hl]
and D_DOWN and D_DOWN
jr nz, .asm_90828 jr nz, .d_down
call DelayFrame call DelayFrame
and a and a
ret ret
.asm_90828
.d_down
ld hl, BattleMonNick + 5 ld hl, BattleMonNick + 5
ld a, [hl] ld a, [hl]
and a and a
jr nz, .asm_90831 jr nz, .decrease
ld a, 59 + 1 ld a, 59 + 1
.asm_90831 .decrease
dec a dec a
ld [hl], a ld [hl], a
jr .asm_90841 jr .finish_dpad
.asm_90835
.d_up
ld hl, BattleMonNick + 5 ld hl, BattleMonNick + 5
ld a, [hl] ld a, [hl]
cp 59 cp 59
jr c, .asm_9083f jr c, .increase
ld a, -1 ld a, -1
.asm_9083f .increase
inc a inc a
ld [hl], a ld [hl], a
.asm_90841 .finish_dpad
hlcoord 12, 9 hlcoord 12, 9
ld a, " " ld a, " "
ld bc, 7 ld bc, 7
@ -265,7 +267,7 @@ SetMinutes: ; 90810 (24:4810)
call WaitBGMap call WaitBGMap
and a and a
ret ret
.asm_90857 .a_button
scf scf
ret ret
@ -288,13 +290,13 @@ PrintTwoDigitNumberRightAlign: ; 90867 (24:4867)
ret ret
; 90874 (24:4874) ; 90874 (24:4874)
UnknownText_0x90874: ; 0x90874 Text_WokeUpOak: ; 0x90874
; Zzz… Hm? Wha…? You woke me up! Will you check the clock for me? ; Zzz… Hm? Wha…? You woke me up! Will you check the clock for me?
text_jump UnknownText_0x1bc29c text_jump UnknownText_0x1bc29c
db "@" db "@"
; 0x90879 ; 0x90879
UnknownText_0x90879: ; 0x90879 Text_WhatTimeIsIt: ; 0x90879
; What time is it? ; What time is it?
text_jump UnknownText_0x1bc2eb text_jump UnknownText_0x1bc2eb
db "@" db "@"
@ -304,23 +306,23 @@ String_oclock:
db "o'clock@" db "o'clock@"
; 90886 ; 90886
UnknownText_0x90886: ; 0x90886 Text_WhatHrs: ; 0x90886
; What?@ @ ; What?@ @
text_jump UnknownText_0x1bc2fd text_jump UnknownText_0x1bc2fd
start_asm start_asm
hlcoord 1, 16 hlcoord 1, 16
call DisplayHourOClock call DisplayHourOClock
ld hl, UnknownText_0x90895 ld hl, .QuestionMark
ret ret
; 90895 (24:4895) ; 90895 (24:4895)
UnknownText_0x90895: ; 0x90895 .QuestionMark: ; 0x90895
; ? ; ?
text_jump UnknownText_0x1bc305 text_jump UnknownText_0x1bc305
db "@" db "@"
; 0x9089a ; 0x9089a
UnknownText_0x9089a: ; 0x9089a Text_HowManyMinutes: ; 0x9089a
; How many minutes? ; How many minutes?
text_jump UnknownText_0x1bc308 text_jump UnknownText_0x1bc308
db "@" db "@"
@ -330,18 +332,18 @@ String_min:
db "min.@" db "min.@"
; 908a4 ; 908a4
UnknownText_0x908a4: ; 0x908a4 Text_WhoaMins: ; 0x908a4
; Whoa!@ @ ; Whoa!@ @
text_jump UnknownText_0x1bc31b text_jump UnknownText_0x1bc31b
start_asm start_asm
; 0x908a9 ; 0x908a9
hlcoord 7, 14 hlcoord 7, 14
call DisplayMinutesWithMinString call DisplayMinutesWithMinString
ld hl, UnknownText_0x908b3 ld hl, .QuestionMark
ret ret
; 908b3 (24:48b3) ; 908b3 (24:48b3)
UnknownText_0x908b3: ; 0x908b3 .QuestionMark: ; 0x908b3
; ? ; ?
text_jump UnknownText_0x1bc323 text_jump UnknownText_0x1bc323
db "@" db "@"
@ -418,108 +420,108 @@ Special_SetDayOfWeek: ; 90913
lb bc, BANK(GFX_9090b), 1 lb bc, BANK(GFX_9090b), 1
call Request1bpp call Request1bpp
xor a xor a
ld [wd002], a ld [wTempDayOfWeek], a
.asm_90936 .loop
hlcoord 0, 12 hlcoord 0, 12
lb bc, 4, 18 lb bc, 4, 18
call TextBox call TextBox
call LoadStandardMenuDataHeader call LoadStandardMenuDataHeader
ld hl, UnknownText_0x90a3f ld hl, .WhatDayIsItText
call PrintText call PrintText
hlcoord 9, 3 hlcoord 9, 3
ld b, 2 ld b, 2
ld c, 9 ld c, 9
call TextBox call TextBox
hlcoord 14, 3 hlcoord 14, 3
ld [hl], $ef ld [hl], "♂" ; gets overwritten with special up arrow
hlcoord 14, 6 hlcoord 14, 6
ld [hl], $f5 ld [hl], "♀" ; gets overwritten with special down arrow
hlcoord 10, 5 hlcoord 10, 5
call Function909de call .PlaceWeekdayString
call ApplyTilemap call ApplyTilemap
ld c, 10 ld c, 10
call DelayFrames call DelayFrames
.asm_9096a .loop2
call JoyTextDelay call JoyTextDelay
call Function90993 call .GetJoypadAction
jr nc, .asm_9096a jr nc, .loop2
call ExitMenu call ExitMenu
call UpdateSprites call UpdateSprites
ld hl, UnknownText_0x90a44 ld hl, .ConfirmWeekdayText
call PrintText call PrintText
call YesNoBox call YesNoBox
jr c, .asm_90936 jr c, .loop
ld a, [wd002] ld a, [wTempDayOfWeek]
ld [StringBuffer2], a ld [StringBuffer2], a
call Function663 call SetDayOfWeek
call LoadStandardFont call LoadStandardFont
pop af pop af
ld [hInMenu], a ld [hInMenu], a
ret ret
; 90993 ; 90993
Function90993: ; 90993 .GetJoypadAction: ; 90993
ld a, [hJoyPressed] ld a, [hJoyPressed]
and A_BUTTON and A_BUTTON
jr z, .asm_9099b jr z, .not_A
scf scf
ret ret
.asm_9099b .not_A
ld hl, hJoyLast ld hl, hJoyLast
ld a, [hl] ld a, [hl]
and D_UP and D_UP
jr nz, .asm_909ba jr nz, .d_up
ld a, [hl] ld a, [hl]
and D_DOWN and D_DOWN
jr nz, .asm_909ad jr nz, .d_down
call DelayFrame call DelayFrame
and a and a
ret ret
.asm_909ad .d_down
ld hl, wd002 ld hl, wTempDayOfWeek
ld a, [hl] ld a, [hl]
and a and a
jr nz, .asm_909b6 jr nz, .decrease
ld a, 6 + 1 ld a, 6 + 1
.asm_909b6 .decrease
dec a dec a
ld [hl], a ld [hl], a
jr .asm_909c6 jr .finish_dpad
.asm_909ba .d_up
ld hl, wd002 ld hl, wTempDayOfWeek
ld a, [hl] ld a, [hl]
cp 6 cp 6
jr c, .asm_909c4 jr c, .increase
ld a, -1 ld a, 0 - 1
.asm_909c4 .increase
inc a inc a
ld [hl], a ld [hl], a
.asm_909c6 .finish_dpad
xor a xor a
ld [hBGMapMode], a ld [hBGMapMode], a
hlcoord 10, 4 hlcoord 10, 4
ld b, $2 ld b, 2
ld c, $9 ld c, 9
call ClearBox call ClearBox
hlcoord 10, 5 hlcoord 10, 5
call Function909de call .PlaceWeekdayString
call WaitBGMap call WaitBGMap
and a and a
ret ret
; 909de ; 909de
Function909de: ; 909de .PlaceWeekdayString: ; 909de
push hl push hl
ld a, [wd002] ld a, [wTempDayOfWeek]
ld e, a ld e, a
ld d, 0 ld d, 0
ld hl, WeekdaysStrings ld hl, .WeekdayStrings
rept 2 rept 2
add hl, de add hl, de
endr endr
@ -531,40 +533,40 @@ endr
ret ret
; 909f2 ; 909f2
WeekdaysStrings: ; 909f2 .WeekdayStrings: ; 909f2
dw Sunday dw .Sunday
dw Monday dw .Monday
dw Tuesday dw .Tuesday
dw Wednesday dw .Wednesday
dw Thursday dw .Thursday
dw Friday dw .Friday
dw Saturday dw .Saturday
dw Sunday dw .Sunday
Sunday: db " SUNDAY@" .Sunday: db " SUNDAY@"
Monday: db " MONDAY@" .Monday: db " MONDAY@"
Tuesday: db " TUESDAY@" .Tuesday: db " TUESDAY@"
Wednesday: db "WEDNESDAY@" .Wednesday: db "WEDNESDAY@"
Thursday: db "THURSDAY@" .Thursday: db "THURSDAY@"
Friday: db " FRIDAY@" .Friday: db " FRIDAY@"
Saturday: db "SATURDAY@" .Saturday: db "SATURDAY@"
UnknownText_0x90a3f: ; 0x90a3f .WhatDayIsItText: ; 0x90a3f
; What day is it? ; What day is it?
text_jump UnknownText_0x1bc369 text_jump UnknownText_0x1bc369
db "@" db "@"
; 0x90a44 ; 0x90a44
UnknownText_0x90a44: ; 0x90a44 .ConfirmWeekdayText: ; 0x90a44
start_asm start_asm
hlcoord 1, 14 hlcoord 1, 14
call Function909de call .PlaceWeekdayString
ld hl, UnknownText_0x90a4f ld hl, .IsIt
ret ret
; 90a4f (24:4a4f) ; 90a4f (24:4a4f)
UnknownText_0x90a4f: ; 0x90a4f .IsIt: ; 0x90a4f
; , is it? ; , is it?
text_jump UnknownText_0x1bc37a text_jump UnknownText_0x1bc37a
db "@" db "@"
@ -577,12 +579,12 @@ Special_InitialSetDSTFlag: ; 90a54
hlcoord 1, 14 hlcoord 1, 14
lb bc, 3, 18 lb bc, 3, 18
call ClearBox call ClearBox
ld hl, UnknownText_0x90a6c ld hl, .Text
call PlaceWholeStringInBoxAtOnce call PlaceWholeStringInBoxAtOnce
ret ret
; 90a6c ; 90a6c
UnknownText_0x90a6c: ; 90a6c .Text: ; 90a6c
start_asm start_asm
call UpdateTime call UpdateTime
ld a, [hHours] ld a, [hHours]
@ -591,11 +593,11 @@ UnknownText_0x90a6c: ; 90a6c
ld c, a ld c, a
decoord 1, 14 decoord 1, 14
callba PrintHoursMins callba PrintHoursMins
ld hl, TextJump_DSTIsThatOK ld hl, .DSTIsThatOK
ret ret
; 90a83 (24:4a83) ; 90a83 (24:4a83)
TextJump_DSTIsThatOK: ; 0x90a83 .DSTIsThatOK: ; 0x90a83
; DST, is that OK? ; DST, is that OK?
text_jump Text_DSTIsThatOK text_jump Text_DSTIsThatOK
db "@" db "@"
@ -608,12 +610,12 @@ Special_InitialClearDSTFlag: ; 90a88
hlcoord 1, 14 hlcoord 1, 14
lb bc, 3, 18 lb bc, 3, 18
call ClearBox call ClearBox
ld hl, UnknownText_0x90aa0 ld hl, .Text
call PlaceWholeStringInBoxAtOnce call PlaceWholeStringInBoxAtOnce
ret ret
; 90aa0 ; 90aa0
UnknownText_0x90aa0: ; 90aa0 .Text: ; 90aa0
start_asm start_asm
call UpdateTime call UpdateTime
ld a, [hHours] ld a, [hHours]
@ -622,26 +624,26 @@ UnknownText_0x90aa0: ; 90aa0
ld c, a ld c, a
decoord 1, 14 decoord 1, 14
callba PrintHoursMins callba PrintHoursMins
ld hl, UnknownText_0x90ab7 ld hl, .IsThatOK
ret ret
; 90ab7 ; 90ab7
UnknownText_0x90ab7: ; 0x90ab7 .IsThatOK: ; 0x90ab7
; , is that OK? ; , is that OK?
text_jump UnknownText_0x1c5ff1 text_jump UnknownText_0x1c5ff1
db "@" db "@"
; 0x90abc ; 0x90abc
Function90abc: ; 90abc DebugDisplayTime: ; 90abc
hlcoord 1, 14 hlcoord 1, 14
lb bc, 3, SCREEN_WIDTH - 2 lb bc, 3, SCREEN_WIDTH - 2
call ClearBox call ClearBox
ld hl, UnknownText_0x90acc ld hl, .Text
call PlaceWholeStringInBoxAtOnce call PlaceWholeStringInBoxAtOnce
ret ret
; 90acc ; 90acc
UnknownText_0x90acc: ; 0x90acc .Text: ; 0x90acc
start_asm start_asm
call UpdateTime call UpdateTime
@ -655,7 +657,7 @@ UnknownText_0x90acc: ; 0x90acc
inc hl inc hl
ld de, hRTCDayLo ld de, hRTCDayLo
call Function90b23 call .PrintTime
hlcoord 1, 16 hlcoord 1, 16
ld [hl], "D" ld [hl], "D"
@ -666,7 +668,7 @@ UnknownText_0x90acc: ; 0x90acc
inc hl inc hl
ld de, StartDay ld de, StartDay
call Function90b23 call .PrintTime
ld [hl], " " ld [hl], " "
inc hl inc hl
@ -690,16 +692,16 @@ UnknownText_0x90acc: ; 0x90acc
inc hl inc hl
.done .done
ld hl, UnknownText_0x90b13 ld hl, .NowOnDebug
ret ret
; 90b13 ; 90b13
UnknownText_0x90b13: ; 0x90b13 .NowOnDebug: ; 0x90b13
text "<PARA>Now on DEBUG…" text "<PARA>Now on DEBUG…"
prompt prompt
; 0x90b23 ; 0x90b23
Function90b23: ; 90b23 .PrintTime: ; 90b23
lb bc, 1, 3 lb bc, 1, 3
call PrintNum call PrintNum
ld [hl], "." ld [hl], "."

View File

@ -72,7 +72,7 @@ AskTeachTMHM: ; 2c7bf (b:47bf)
ChooseMonToLearnTMHM: ; 2c7fb ChooseMonToLearnTMHM: ; 2c7fb
ld hl, StringBuffer2 ld hl, StringBuffer2
ld de, wd066 ld de, wTMHMMoveNameBackup
ld bc, 12 ld bc, 12
call CopyBytes call CopyBytes
call ClearBGPalettes call ClearBGPalettes
@ -95,7 +95,7 @@ ChooseMonToLearnTMHM_NoRefresh: ; 2c80a
pop bc ; now contains the former contents of af pop bc ; now contains the former contents of af
jr z, .egg jr z, .egg
push bc push bc
ld hl, wd066 ld hl, wTMHMMoveNameBackup
ld de, StringBuffer2 ld de, StringBuffer2
ld bc, 12 ld bc, 12
call CopyBytes call CopyBytes

View File

@ -1,6 +1,6 @@
SpecialBuenasPassword: ; 8af6b SpecialBuenasPassword: ; 8af6b
xor a xor a
ld [wcf76], a ld [wWhichIndexSet], a
ld hl, .MenuDataHeader ld hl, .MenuDataHeader
call CopyMenuDataHeader call CopyMenuDataHeader
ld a, [wBuenasPassword] ld a, [wBuenasPassword]
@ -69,8 +69,8 @@ SpecialBuenaPrize: ; 8afd4
ld [wMenuScrollPosition], a ld [wMenuScrollPosition], a
ld a, $1 ld a, $1
ld [MenuSelection], a ld [MenuSelection], a
call Function8b0d6 call Buena_PlacePrizeMenuBox
call Function8b090 call Buena_DisplayBlueCardBalance
ld hl, .Text_AskWhichPrize ld hl, .Text_AskWhichPrize
call PrintText call PrintText
jr .okay jr .okay
@ -83,12 +83,12 @@ SpecialBuenaPrize: ; 8afd4
call DelayFrame call DelayFrame
call UpdateSprites call UpdateSprites
call PrintBlueCardBalance call PrintBlueCardBalance
call Function8b0e2 call Buena_PrizeMenu
jr z, .done jr z, .done
ld [MenuSelectionQuantity], a ld [MenuSelectionQuantity], a
call Buena_getprize call Buena_getprize
ld a, [hl] ld a, [hl]
ld [wd265], a ld [wNamedObjectIndexBuffer], a
call GetItemName call GetItemName
ld hl, .Text_IsThatRight ld hl, .Text_IsThatRight
call BuenaPrintText call BuenaPrintText
@ -183,7 +183,7 @@ SpecialBuenaPrize: ; 8afd4
db "@" db "@"
; 0x8b090 ; 0x8b090
Function8b090: ; 8b090 Buena_DisplayBlueCardBalance: ; 8b090
ld hl, BlueCardBalanceMenuDataHeader ld hl, BlueCardBalanceMenuDataHeader
call LoadMenuDataHeader call LoadMenuDataHeader
ret ret
@ -230,7 +230,7 @@ BlueCardBalanceMenuDataHeader: ; 0x8b0d1
db 13, 11 ; end coords db 13, 11 ; end coords
; 8b0d6 ; 8b0d6
Function8b0d6: ; 8b0d6 Buena_PlacePrizeMenuBox: ; 8b0d6
ld hl, .menudataheader ld hl, .menudataheader
call LoadMenuDataHeader call LoadMenuDataHeader
ret ret
@ -242,13 +242,13 @@ Function8b0d6: ; 8b0d6
db 11, 17 ; end coords db 11, 17 ; end coords
; 8b0e2 ; 8b0e2
Function8b0e2: ; 8b0e2 Buena_PrizeMenu: ; 8b0e2
ld hl, .MenuDataHeader ld hl, .MenuDataHeader
call CopyMenuDataHeader call CopyMenuDataHeader
ld a, [MenuSelection] ld a, [MenuSelection]
ld [wMenuCursorBuffer], a ld [wMenuCursorBuffer], a
xor a xor a
ld [wcf76], a ld [wWhichIndexSet], a
ld [hBGMapMode], a ld [hBGMapMode], a
call InitScrollingMenu call InitScrollingMenu
call UpdateSprites call UpdateSprites

View File

@ -27,9 +27,9 @@ endr
.next .next
; Choose a flag at uniform random to be set. ; Choose a flag at uniform random to be set.
call Random call Random
cp $fa ; 250 cp 250
jr nc, .next jr nc, .next
ld c, $19 ; 25 ld c, 25
call SimpleDivide call SimpleDivide
ld e, b ld e, b
ld d, 0 ld d, 0
@ -124,7 +124,7 @@ ContestReturnMons: ; 13a31
ld b, $1 ld b, $1
.loop .loop
ld a, [hli] ld a, [hli]
cp $ff cp -1
jr z, .done jr z, .done
inc b inc b
jr .loop jr .loop

View File

@ -1,7 +1,7 @@
_BugContestJudging: ; 1369d _BugContestJudging: ; 1369d
call ContestScore call ContestScore
callba MobileFn_105f79 callba MobileFn_105f79
call Function13819 call BugContest_JudgeContestants
ld a, [wBugContestThirdPlacePersonID] ld a, [wBugContestThirdPlacePersonID]
call LoadContestantName call LoadContestantName
ld a, [wBugContestThirdPlaceMon] ld a, [wBugContestThirdPlaceMon]
@ -23,13 +23,12 @@ _BugContestJudging: ; 1369d
call GetPokemonName call GetPokemonName
ld hl, BugContest_FirstPlaceText ld hl, BugContest_FirstPlaceText
call PrintText call PrintText
jp Function13807 jp BugContest_GetPlayersResult
; 136eb ; 136eb
BugContest_FirstPlaceText: ; 0x136eb BugContest_FirstPlaceText: ; 0x136eb
text_jump ContestJudging_FirstPlaceText text_jump ContestJudging_FirstPlaceText
start_asm start_asm
BugContest_FirstPlace: ; 136f0
ld de, SFX_1ST_PLACE ld de, SFX_1ST_PLACE
call PlaySFX call PlaySFX
call WaitSFX call WaitSFX
@ -47,7 +46,6 @@ BugContest_SecondPlaceText: ; 0x13702
; Placing second was @ , who caught a @ !@ @ ; Placing second was @ , who caught a @ !@ @
text_jump ContestJudging_SecondPlaceText text_jump ContestJudging_SecondPlaceText
start_asm start_asm
BugContest_SecondPlace: ; 13707
ld de, SFX_2ND_PLACE ld de, SFX_2ND_PLACE
call PlaySFX call PlaySFX
call WaitSFX call WaitSFX
@ -215,13 +213,13 @@ BugContestant_SchoolboyKipp:
dbw KAKUNA, 259 dbw KAKUNA, 259
; 13807 ; 13807
Function13807: ; 13807 BugContest_GetPlayersResult: ; 13807
ld hl, wBugContestThirdPlacePersonID ld hl, wBugContestThirdPlacePersonID
ld de, -4 ld de, -4
ld b, 3 ld b, 3
.loop .loop
ld a, [hl] ld a, [hl]
cp 1 cp 1 ; Player
jr z, .done jr z, .done
add hl, de add hl, de
dec b dec b
@ -231,25 +229,25 @@ Function13807: ; 13807
ret ret
; 13819 ; 13819
Function13819: ; 13819 BugContest_JudgeContestants: ; 13819
call ClearContestResults call ClearContestResults
call ComputeAIContestantScores call ComputeAIContestantScores
ld hl, wBugContestTempPersonID ld hl, wBugContestTempPersonID
ld a, 1 ld a, 1 ; Player
ld [hli], a ld [hli], a
ld a, [wContestMon] ld a, [wContestMon]
ld [hli], a ld [hli], a
ld a, [hProduct] ld a, [hProduct]
ld [hli], a ld [hli], a
ld a, [hMultiplicand] ld a, [hProduct + 1]
ld [hl], a ld [hl], a
call DetermineContestWinners call DetermineContestWinners
ret ret
; 13833 ; 13833
ClearContestResults: ; 13833 ClearContestResults: ; 13833
ld hl, wBugContestFirstPlacePersonID ld hl, wBugContestResults
ld b, 12 ld b, wBugContestWinnersEnd - wBugContestResults
xor a xor a
.loop .loop
ld [hli], a ld [hli], a

View File

@ -9,7 +9,7 @@ _CardKey: ; 50779
jr nz, .nope jr nz, .nope
; Are we facing the slot? ; Are we facing the slot?
ld a, [PlayerDirection] ld a, [PlayerDirection]
and $c and %1100
cp OW_UP cp OW_UP
jr nz, .nope jr nz, .nope
@ -23,12 +23,12 @@ _CardKey: ; 50779
; Let's use the Card Key. ; Let's use the Card Key.
ld hl, .CardKeyScript ld hl, .CardKeyScript
call QueueScript call QueueScript
ld a, $1 ld a, TRUE
ld [wItemEffectSucceeded], a ld [wItemEffectSucceeded], a
ret ret
.nope .nope
ld a, $0 ld a, FALSE
ld [wItemEffectSucceeded], a ld [wItemEffectSucceeded], a
ret ret
; 507af ; 507af

View File

@ -114,7 +114,7 @@ CelebiEvent_SpawnLeaf: ; 49944
add $40 add $40
ld d, a ld d, a
ld e, $0 ld e, $0
ld a, SPRITE_ANIM_INDEX_18 ; fly land ld a, SPRITE_ANIM_INDEX_FLY_LEAF ; fly land
call _InitSpriteAnimStruct call _InitSpriteAnimStruct
ld hl, SPRITEANIMSTRUCT_TILE_ID ld hl, SPRITEANIMSTRUCT_TILE_ID
add hl, bc add hl, bc

View File

@ -1,167 +1,188 @@
const_def
const DAYCARETEXT_00
const DAYCARETEXT_01
const DAYCARETEXT_02
const DAYCARETEXT_03
const DAYCARETEXT_04
const DAYCARETEXT_05
const DAYCARETEXT_06
const DAYCARETEXT_07
const DAYCARETEXT_08
const DAYCARETEXT_09
const DAYCARETEXT_0A
const DAYCARETEXT_0B
const DAYCARETEXT_0C
const DAYCARETEXT_0D
const DAYCARETEXT_0E
const DAYCARETEXT_0F
const DAYCARETEXT_10
const DAYCARETEXT_11
const DAYCARETEXT_12
const DAYCARETEXT_13
Special_DayCareMan: ; 166d6 Special_DayCareMan: ; 166d6
ld hl, wDaycareMan ld hl, wDaycareMan
bit 0, [hl] bit 0, [hl]
jr nz, .asm_166fe jr nz, .AskWithdrawMon
ld hl, wDaycareMan ld hl, wDaycareMan
ld a, $0 ld a, DAYCARETEXT_00
call Function1678f call DayCareManIntroText
jr c, .asm_16724 jr c, .cancel
call Function16798 call DayCareAskDepositPokemon
jr c, .asm_16721 jr c, .print_text
callba Functionde2a callba Functionde2a
ld hl, wDaycareMan ld hl, wDaycareMan
set 0, [hl] set 0, [hl]
call Function167f6 call DayCare_DepositPokemonText
call Function16a3b call DayCare_InitBreeding
ret ret
.asm_166fe .AskWithdrawMon
callba Functione698 callba Functione698
ld hl, wBreedMon1Nick ld hl, wBreedMon1Nick
call Function1686d call Function1686d
call Function16807 call Function16807
jr c, .asm_16721 jr c, .print_text
callba Functiondd21 callba Functiondd21
call Function16850 call Function16850
ld hl, wDaycareMan ld hl, wDaycareMan
res 0, [hl] res 0, [hl]
res 5, [hl] res 5, [hl]
jr .asm_16724 jr .cancel
.asm_16721 .print_text
call Function1689b call PrintDayCareText
.asm_16724 .cancel
ld a, $13 ld a, DAYCARETEXT_13
call Function1689b call PrintDayCareText
ret ret
; 1672a ; 1672a
Special_DayCareLady: ; 1672a Special_DayCareLady: ; 1672a
ld hl, wDaycareLady ld hl, wDaycareLady
bit 0, [hl] bit 0, [hl]
jr nz, .asm_16752 jr nz, .AskWithdrawMon
ld hl, wDaycareLady ld hl, wDaycareLady
ld a, $2 ld a, DAYCARETEXT_02
call Function16781 call DayCareLadyIntroText
jr c, .asm_1677b jr c, .cancel
call Function16798 call DayCareAskDepositPokemon
jr c, .asm_16778 jr c, .print_text
callba Functionde37 callba Functionde37
ld hl, wDaycareLady ld hl, wDaycareLady
set 0, [hl] set 0, [hl]
call Function167f6 call DayCare_DepositPokemonText
call Function16a3b call DayCare_InitBreeding
ret ret
.asm_16752 .AskWithdrawMon
callba Functione6b3 callba Functione6b3
ld hl, wBreedMon2Nick ld hl, wBreedMon2Nick
call Function1686d call Function1686d
call Function16807 call Function16807
jr c, .asm_16778 jr c, .print_text
callba Functiondd42 callba Functiondd42
call Function16850 call Function16850
ld hl, wDaycareLady ld hl, wDaycareLady
res 0, [hl] res 0, [hl]
ld hl, wDaycareMan ld hl, wDaycareMan
res 5, [hl] res 5, [hl]
jr .asm_1677b jr .cancel
.asm_16778 .print_text
call Function1689b call PrintDayCareText
.asm_1677b .cancel
ld a, $13 ld a, DAYCARETEXT_13
call Function1689b call PrintDayCareText
ret ret
; 16781 ; 16781
Function16781: ; 16781 DayCareLadyIntroText: ; 16781
bit 7, [hl] bit 7, [hl]
jr nz, .asm_16788 jr nz, .okay
set 7, [hl] set 7, [hl]
inc a inc a
.okay
.asm_16788 call PrintDayCareText
call Function1689b
call YesNoBox call YesNoBox
ret ret
; 1678f ; 1678f
Function1678f: ; 1678f DayCareManIntroText: ; 1678f
set 7, [hl] set 7, [hl]
call Function1689b call PrintDayCareText
call YesNoBox call YesNoBox
ret ret
; 16798 ; 16798
Function16798: ; 16798 DayCareAskDepositPokemon: ; 16798
ld a, [PartyCount] ld a, [PartyCount]
cp 2 cp 2
jr c, .asm_167e5 jr c, .OnlyOneMon
ld a, 4 ld a, DAYCARETEXT_04
call Function1689b call PrintDayCareText
ld b, 6 ld b, 6
callba SelectTradeOrDaycareMon callba SelectTradeOrDaycareMon
jr c, .asm_167dd jr c, .Declined
ld a, [CurPartySpecies] ld a, [CurPartySpecies]
cp EGG cp EGG
jr z, .asm_167e1 jr z, .Egg
callba CheckCurPartyMonFainted callba CheckCurPartyMonFainted
jr c, .asm_167e9 jr c, .OutOfUsableMons
ld hl, PartyMon1Item ld hl, PartyMon1Item
ld bc, PARTYMON_STRUCT_LENGTH ld bc, PARTYMON_STRUCT_LENGTH
ld a, [CurPartyMon] ld a, [CurPartyMon]
call AddNTimes call AddNTimes
ld d, [hl] ld d, [hl]
callba ItemIsMail callba ItemIsMail
jr c, .asm_167ed jr c, .HoldingMail
ld hl, PartyMonNicknames ld hl, PartyMonNicknames
ld a, [CurPartyMon] ld a, [CurPartyMon]
call GetNick call GetNick
and a and a
ret ret
.asm_167dd .Declined
ld a, $12 ld a, DAYCARETEXT_12
scf scf
ret ret
.asm_167e1 .Egg
ld a, $6 ld a, DAYCARETEXT_06
scf scf
ret ret
.asm_167e5 .OnlyOneMon
ld a, $7 ld a, DAYCARETEXT_07
scf scf
ret ret
.asm_167e9 .OutOfUsableMons
ld a, $8 ld a, DAYCARETEXT_08
scf scf
ret ret
.asm_167ed .HoldingMail
ld a, $a ld a, DAYCARETEXT_0A
scf scf
ret ret
; 167f1 ; 167f1
UnknownText_0x167f1: ; 0x167f1 .DummyText: ; 0x167f1
; ;
text_jump UnknownText_0x1bdaa7 text_jump UnknownText_0x1bdaa7
db "@" db "@"
; 0x167f6 ; 0x167f6
Function167f6: ; 167f6 DayCare_DepositPokemonText: ; 167f6
ld a, $5 ld a, DAYCARETEXT_05
call Function1689b call PrintDayCareText
ld a, [CurPartySpecies] ld a, [CurPartySpecies]
call PlayCry call PlayCry
ld a, $9 ld a, DAYCARETEXT_09
call Function1689b call PrintDayCareText
ret ret
; 16807 ; 16807
@ -170,18 +191,18 @@ Function16807: ; 16807
and a and a
jr nz, .asm_16819 jr nz, .asm_16819
ld a, $f ld a, $f
call Function1689b call PrintDayCareText
call YesNoBox call YesNoBox
jr c, .asm_16844 jr c, .asm_16844
jr .asm_1682d jr .asm_1682d
.asm_16819 .asm_16819
ld a, $b ld a, $b
call Function1689b call PrintDayCareText
call YesNoBox call YesNoBox
jr c, .asm_16844 jr c, .asm_16844
ld a, $c ld a, $c
call Function1689b call PrintDayCareText
call YesNoBox call YesNoBox
jr c, .asm_16844 jr c, .asm_16844
@ -217,11 +238,11 @@ Function16850: ; 16850
ld de, Money ld de, Money
callba TakeMoney callba TakeMoney
ld a, $d ld a, $d
call Function1689b call PrintDayCareText
ld a, [CurPartySpecies] ld a, [CurPartySpecies]
call PlayCry call PlayCry
ld a, $e ld a, $e
call Function1689b call PrintDayCareText
ret ret
; 1686d ; 1686d
@ -248,7 +269,7 @@ Function1686d: ; 1686d
ret ret
; 1689b ; 1689b
Function1689b: ; 1689b PrintDayCareText: ; 1689b
ld e, a ld e, a
ld d, 0 ld d, 0
ld hl, TextTable_168aa ld hl, TextTable_168aa
@ -263,143 +284,143 @@ endr
; 168aa ; 168aa
TextTable_168aa: ; 168aa TextTable_168aa: ; 168aa
dw UnknownText_0x168d2 dw .DayCareManIntro ; 00
dw UnknownText_0x168d7 dw .DayCareManOddEgg ; 01
dw UnknownText_0x168dc dw .DayCareLadyIntro ; 02
dw UnknownText_0x168e1 dw .DayCareLadyOddEgg ; 03
dw UnknownText_0x168e6 dw .WhichOne ; 04
dw UnknownText_0x168ff dw .OkayIllRaiseYourMon ; 05
dw UnknownText_0x168f0 dw .CantAcceptEgg ; 06
dw UnknownText_0x168eb dw .JustOneMon ; 07
dw UnknownText_0x168fa dw .LastHealthyMon ; 08
dw UnknownText_0x16904 dw .ComeBackForItLater ; 09
dw UnknownText_0x168f5 dw .RemoveMail ; 0a
dw UnknownText_0x16909 dw .AreWeGeniusesOrWhat ; 0b
dw UnknownText_0x1690e dw .AskRetrieveMon ; 0c
dw UnknownText_0x16913 dw .PerfectHeresYourMon ; 0d
dw UnknownText_0x16918 dw .GotBackMon ; 0e
dw UnknownText_0x1691d dw .ImmediatelyWithdrawMon ; 0f
dw UnknownText_0x16922 dw .PartyFull ; 10
dw UnknownText_0x16927 dw .NotEnoughMoney ; 11
dw UnknownText_0x1692c dw .OhFineThen ; 12
dw UnknownText_0x16931 dw .ComeAgain ; 13
; 168d2 ; 168d2
UnknownText_0x168d2: ; 0x168d2 .DayCareManIntro: ; 0x168d2
; I'm the DAY-CARE MAN. Want me to raise a #MON? ; I'm the DAY-CARE MAN. Want me to raise a #MON?
text_jump UnknownText_0x1bdaa9 text_jump UnknownText_0x1bdaa9
db "@" db "@"
; 0x168d7 ; 0x168d7
UnknownText_0x168d7: ; 0x168d7 .DayCareManOddEgg: ; 0x168d7
; I'm the DAY-CARE MAN. Do you know about EGGS? I was raising #MON with my wife, you see. We were shocked to find an EGG! How incredible is that? So, want me to raise a #MON? ; I'm the DAY-CARE MAN. Do you know about EGGS? I was raising #MON with my wife, you see. We were shocked to find an EGG! How incredible is that? So, want me to raise a #MON?
text_jump UnknownText_0x1bdad8 text_jump UnknownText_0x1bdad8
db "@" db "@"
; 0x168dc ; 0x168dc
UnknownText_0x168dc: ; 0x168dc .DayCareLadyIntro: ; 0x168dc
; I'm the DAY-CARE LADY. Should I raise a #MON for you? ; I'm the DAY-CARE LADY. Should I raise a #MON for you?
text_jump UnknownText_0x1bdb85 text_jump UnknownText_0x1bdb85
db "@" db "@"
; 0x168e1 ; 0x168e1
UnknownText_0x168e1: ; 0x168e1 .DayCareLadyOddEgg: ; 0x168e1
; I'm the DAY-CARE LADY. Do you know about EGGS? My husband and I were raising some #MON, you see. We were shocked to find an EGG! How incredible could that be? Should I raise a #MON for you? ; I'm the DAY-CARE LADY. Do you know about EGGS? My husband and I were raising some #MON, you see. We were shocked to find an EGG! How incredible could that be? Should I raise a #MON for you?
text_jump UnknownText_0x1bdbbb text_jump UnknownText_0x1bdbbb
db "@" db "@"
; 0x168e6 ; 0x168e6
UnknownText_0x168e6: ; 0x168e6 .WhichOne: ; 0x168e6
; What should I raise for you? ; What should I raise for you?
text_jump UnknownText_0x1bdc79 text_jump UnknownText_0x1bdc79
db "@" db "@"
; 0x168eb ; 0x168eb
UnknownText_0x168eb: ; 0x168eb .JustOneMon: ; 0x168eb
; Oh? But you have just one #MON. ; Oh? But you have just one #MON.
text_jump UnknownText_0x1bdc97 text_jump UnknownText_0x1bdc97
db "@" db "@"
; 0x168f0 ; 0x168f0
UnknownText_0x168f0: ; 0x168f0 .CantAcceptEgg: ; 0x168f0
; Sorry, but I can't accept an EGG. ; Sorry, but I can't accept an EGG.
text_jump UnknownText_0x1bdcb8 text_jump UnknownText_0x1bdcb8
db "@" db "@"
; 0x168f5 ; 0x168f5
UnknownText_0x168f5: ; 0x168f5 .RemoveMail: ; 0x168f5
; Remove MAIL before you come see me. ; Remove MAIL before you come see me.
text_jump UnknownText_0x1bdcda text_jump UnknownText_0x1bdcda
db "@" db "@"
; 0x168fa ; 0x168fa
UnknownText_0x168fa: ; 0x168fa .LastHealthyMon: ; 0x168fa
; If you give me that, what will you battle with? ; If you give me that, what will you battle with?
text_jump UnknownText_0x1bdcff text_jump UnknownText_0x1bdcff
db "@" db "@"
; 0x168ff ; 0x168ff
UnknownText_0x168ff: ; 0x168ff .OkayIllRaiseYourMon: ; 0x168ff
; OK. I'll raise your @ . ; OK. I'll raise your @ .
text_jump UnknownText_0x1bdd30 text_jump UnknownText_0x1bdd30
db "@" db "@"
; 0x16904 ; 0x16904
UnknownText_0x16904: ; 0x16904 .ComeBackForItLater: ; 0x16904
; Come back for it later. ; Come back for it later.
text_jump UnknownText_0x1bdd4b text_jump UnknownText_0x1bdd4b
db "@" db "@"
; 0x16909 ; 0x16909
UnknownText_0x16909: ; 0x16909 .AreWeGeniusesOrWhat: ; 0x16909
; Are we geniuses or what? Want to see your @ ? ; Are we geniuses or what? Want to see your @ ?
text_jump UnknownText_0x1bdd64 text_jump UnknownText_0x1bdd64
db "@" db "@"
; 0x1690e ; 0x1690e
UnknownText_0x1690e: ; 0x1690e .AskRetrieveMon: ; 0x1690e
; Your @ has grown a lot. By level, it's grown by @ . If you want your #MON back, it will cost ¥@ . ; Your @ has grown a lot. By level, it's grown by @ . If you want your #MON back, it will cost ¥@ .
text_jump UnknownText_0x1bdd96 text_jump UnknownText_0x1bdd96
db "@" db "@"
; 0x16913 ; 0x16913
UnknownText_0x16913: ; 0x16913 .PerfectHeresYourMon: ; 0x16913
; Perfect! Here's your #MON. ; Perfect! Here's your #MON.
text_jump UnknownText_0x1bde04 text_jump UnknownText_0x1bde04
db "@" db "@"
; 0x16918 ; 0x16918
UnknownText_0x16918: ; 0x16918 .GotBackMon: ; 0x16918
; got back @ . ; got back @ .
text_jump UnknownText_0x1bde1f text_jump UnknownText_0x1bde1f
db "@" db "@"
; 0x1691d ; 0x1691d
UnknownText_0x1691d: ; 0x1691d .ImmediatelyWithdrawMon: ; 0x1691d
; Huh? Back already? Your @ needs a little more time with us. If you want your #MON back, it will cost ¥100. ; Huh? Back already? Your @ needs a little more time with us. If you want your #MON back, it will cost ¥100.
text_jump UnknownText_0x1bde32 text_jump UnknownText_0x1bde32
db "@" db "@"
; 0x16922 ; 0x16922
UnknownText_0x16922: ; 0x16922 .PartyFull: ; 0x16922
; You have no room for it. ; You have no room for it.
text_jump UnknownText_0x1bdea2 text_jump UnknownText_0x1bdea2
db "@" db "@"
; 0x16927 ; 0x16927
UnknownText_0x16927: ; 0x16927 .NotEnoughMoney: ; 0x16927
; You don't have enough money. ; You don't have enough money.
text_jump UnknownText_0x1bdebc text_jump UnknownText_0x1bdebc
db "@" db "@"
; 0x1692c ; 0x1692c
UnknownText_0x1692c: ; 0x1692c .OhFineThen: ; 0x1692c
; Oh, fine then. ; Oh, fine then.
text_jump UnknownText_0x1bded9 text_jump UnknownText_0x1bded9
db "@" db "@"
; 0x16931 ; 0x16931
UnknownText_0x16931: ; 0x16931 .ComeAgain: ; 0x16931
; Come again. ; Come again.
text_jump UnknownText_0x1bdee9 text_jump UnknownText_0x1bdee9
db "@" db "@"
@ -408,94 +429,95 @@ UnknownText_0x16931: ; 0x16931
Special_DayCareManOutside: ; 16936 Special_DayCareManOutside: ; 16936
ld hl, wDaycareMan ld hl, wDaycareMan
bit 6, [hl] bit 6, [hl]
jr nz, Function16949 jr nz, .AskGiveEgg
ld hl, UnknownText_0x16944 ld hl, .NotYet
call PrintText call PrintText
ret ret
UnknownText_0x16944: ; 0x16944 .NotYet: ; 0x16944
; Not yet… ; Not yet…
text_jump UnknownText_0x1bdef6 text_jump UnknownText_0x1bdef6
db "@" db "@"
; 0x16949 ; 0x16949
Function16949: ; 16949 .AskGiveEgg: ; 16949
ld hl, UnknownText_0x16993 ld hl, .IntroText
call PrintText call PrintText
call YesNoBox call YesNoBox
jr c, .asm_1697c jr c, .Declined
ld a, [PartyCount] ld a, [PartyCount]
cp PARTY_LENGTH cp PARTY_LENGTH
jr nc, .asm_16987 jr nc, .PartyFull
call Function169ac call DayCare_GiveEgg
ld hl, wDaycareMan ld hl, wDaycareMan
res 6, [hl] res 6, [hl]
call Function16a3b call DayCare_InitBreeding
ld hl, UnknownText_0x16998 ld hl, .GotEggText
call PrintText call PrintText
ld de, SFX_GET_EGG_FROM_DAYCARE_LADY ld de, SFX_GET_EGG_FROM_DAYCARE_LADY
call PlaySFX call PlaySFX
ld c, 120 ld c, 120
call DelayFrames call DelayFrames
ld hl, UnknownText_0x1699d ld hl, .TakeGoodCareOfItText
jr .asm_1697f jr .Load0
.asm_1697c .Declined
ld hl, UnknownText_0x169a2 ld hl, .IllKeepItThanksText
.asm_1697f .Load0
call PrintText call PrintText
xor a xor a
ld [ScriptVar], a ld [ScriptVar], a
ret ret
.asm_16987 .PartyFull
ld hl, UnknownText_0x169a7 ld hl, .PartyFullText
call PrintText call PrintText
ld a, $1 ld a, $1
ld [ScriptVar], a ld [ScriptVar], a
ret ret
; 16993 ; 16993
UnknownText_0x16993: ; 0x16993 .IntroText: ; 0x16993
; Ah, it's you! We were raising your #MON, and my goodness, were we surprised! Your #MON had an EGG! We don't know how it got there, but your #MON had it. You want it? ; Ah, it's you! We were raising your #MON, and my goodness, were we surprised! Your #MON had an EGG! We don't know how it got there, but your #MON had it. You want it?
text_jump UnknownText_0x1bdf00 text_jump UnknownText_0x1bdf00
db "@" db "@"
; 0x16998 ; 0x16998
UnknownText_0x16998: ; 0x16998 .GotEggText: ; 0x16998
; received the EGG! ; received the EGG!
text_jump UnknownText_0x1bdfa5 text_jump UnknownText_0x1bdfa5
db "@" db "@"
; 0x1699d ; 0x1699d
UnknownText_0x1699d: ; 0x1699d .TakeGoodCareOfItText: ; 0x1699d
; Take good care of it. ; Take good care of it.
text_jump UnknownText_0x1bdfba text_jump UnknownText_0x1bdfba
db "@" db "@"
; 0x169a2 ; 0x169a2
UnknownText_0x169a2: ; 0x169a2 .IllKeepItThanksText: ; 0x169a2
; Well then, I'll keep it. Thanks! ; Well then, I'll keep it. Thanks!
text_jump UnknownText_0x1bdfd1 text_jump UnknownText_0x1bdfd1
db "@" db "@"
; 0x169a7 ; 0x169a7
UnknownText_0x169a7: ; 0x169a7 .PartyFullText: ; 0x169a7
; You have no room in your party. Come back later. ; You have no room in your party. Come back later.
text_jump UnknownText_0x1bdff2 text_jump UnknownText_0x1bdff2
db "@" db "@"
; 0x169ac ; 0x169ac
Function169ac: ; 169ac DayCare_GiveEgg: ; 169ac
ld a, [wEggMonLevel] ld a, [wEggMonLevel]
ld [CurPartyLevel], a ld [CurPartyLevel], a
ld hl, PartyCount ld hl, PartyCount
ld a, [hl] ld a, [hl]
cp PARTY_LENGTH cp PARTY_LENGTH
jr nc, .asm_16a2f jr nc, .PartyFull
inc a inc a
ld [hl], a ld [hl], a
ld c, a ld c, a
ld b, 0 ld b, 0
add hl, bc add hl, bc
@ -504,24 +526,28 @@ Function169ac: ; 169ac
ld a, [wEggMonSpecies] ld a, [wEggMonSpecies]
ld [CurSpecies], a ld [CurSpecies], a
ld [CurPartySpecies], a ld [CurPartySpecies], a
ld a, $ff ld a, -1
ld [hl], a ld [hl], a
ld hl, PartyMonNicknames ld hl, PartyMonNicknames
ld bc, PKMN_NAME_LENGTH ld bc, PKMN_NAME_LENGTH
call Function16a31 call DayCare_GetCurrentPartyMember
ld hl, wEggNick ld hl, wEggNick
call CopyBytes call CopyBytes
ld hl, PartyMonOT ld hl, PartyMonOT
ld bc, NAME_LENGTH ld bc, NAME_LENGTH
call Function16a31 call DayCare_GetCurrentPartyMember
ld hl, wEggOT ld hl, wEggOT
call CopyBytes call CopyBytes
ld hl, PartyMon1 ld hl, PartyMon1
ld bc, PARTYMON_STRUCT_LENGTH ld bc, PARTYMON_STRUCT_LENGTH
call Function16a31 call DayCare_GetCurrentPartyMember
ld hl, wEggMon ld hl, wEggMon
ld bc, wEggMonEnd - wEggMon ld bc, wEggMonEnd - wEggMon
call CopyBytes call CopyBytes
call GetBaseData call GetBaseData
ld a, [PartyCount] ld a, [PartyCount]
dec a dec a
@ -550,12 +576,12 @@ Function169ac: ; 169ac
and a and a
ret ret
.asm_16a2f .PartyFull
scf scf
ret ret
; 16a31 ; 16a31
Function16a31: ; 16a31 DayCare_GetCurrentPartyMember: ; 16a31
ld a, [PartyCount] ld a, [PartyCount]
dec a dec a
call AddNTimes call AddNTimes
@ -564,7 +590,7 @@ Function16a31: ; 16a31
ret ret
; 16a3b ; 16a3b
Function16a3b: ; 16a3b DayCare_InitBreeding: ; 16a3b
ld a, [wDaycareLady] ld a, [wDaycareLady]
bit 0, a bit 0, a
ret z ret z
@ -579,15 +605,15 @@ Function16a3b: ; 16a3b
ret z ret z
ld hl, wDaycareMan ld hl, wDaycareMan
set 5, [hl] set 5, [hl]
.asm_16a59 .loop
call Random call Random
cp 150 cp 150
jr c, .asm_16a59 jr c, .loop
ld [wStepsToEgg], a ld [wStepsToEgg], a
jp Function16a66 jp .UselessJump
; 16a66 ; 16a66
Function16a66: ; 16a66 .UselessJump: ; 16a66
xor a xor a
ld hl, wEggMon ld hl, wEggMon
ld bc, wEggMonEnd - wEggMon ld bc, wEggMonEnd - wEggMon
@ -609,24 +635,24 @@ Function16a66: ; 16a66
ld a, [wBreedMon1Species] ld a, [wBreedMon1Species]
cp DITTO cp DITTO
ld a, $1 ld a, $1
jr z, .asm_16ab6 jr z, .LoadWhichBreedmonIsTheMother
ld a, [wBreedMon2Species] ld a, [wBreedMon2Species]
cp DITTO cp DITTO
ld a, $0 ld a, $0
jr z, .asm_16ab6 jr z, .LoadWhichBreedmonIsTheMother
callba GetGender callba GetGender
ld a, $0 ld a, $0
jr z, .asm_16ab6 jr z, .LoadWhichBreedmonIsTheMother
inc a inc a
.asm_16ab6 .LoadWhichBreedmonIsTheMother
ld [wDittoInDaycare], a ld [wBreedMotherOrNonDitto], a
and a and a
ld a, [wBreedMon1Species] ld a, [wBreedMon1Species]
jr z, .asm_16ac2 jr z, .GotMother
ld a, [wBreedMon2Species] ld a, [wBreedMon2Species]
.asm_16ac2 .GotMother
ld [CurPartySpecies], a ld [CurPartySpecies], a
callab GetPreEvolution callab GetPreEvolution
callab GetPreEvolution callab GetPreEvolution
@ -635,20 +661,20 @@ Function16a66: ; 16a66
ld a, [CurPartySpecies] ld a, [CurPartySpecies]
cp NIDORAN_F cp NIDORAN_F
jr nz, .asm_16ae8 jr nz, .GotEggSpecies
call Random call Random
cp $80 cp 1 + 50 percent
ld a, NIDORAN_F ld a, NIDORAN_F
jr c, .asm_16ae8 jr c, .GotEggSpecies
ld a, NIDORAN_M ld a, NIDORAN_M
.asm_16ae8 .GotEggSpecies
ld [CurPartySpecies], a ld [CurPartySpecies], a
ld [CurSpecies], a ld [CurSpecies], a
ld [wEggMonSpecies], a ld [wEggMonSpecies], a
call GetBaseData call GetBaseData
ld hl, wEggNick ld hl, wEggNick
ld de, String_16be0 ld de, .String_EGG
call CopyName2 call CopyName2
ld hl, PlayerName ld hl, PlayerName
ld de, wEggOT ld de, wEggOT
@ -672,17 +698,17 @@ Function16a66: ; 16a66
ld hl, wEggMonExp ld hl, wEggMonExp
ld a, [hMultiplicand] ld a, [hMultiplicand]
ld [hli], a ld [hli], a
ld a, [$ffb5] ld a, [hMultiplicand + 1]
ld [hli], a ld [hli], a
ld a, [$ffb6] ld a, [hMultiplicand + 2]
ld [hl], a ld [hl], a
xor a xor a
ld b, $a ld b, wEggMonDVs - wEggMonStatExp
ld hl, wEggMonStatExp ld hl, wEggMonStatExp
.asm_16b46 .loop2
ld [hli], a ld [hli], a
dec b dec b
jr nz, .asm_16b46 jr nz, .loop2
ld hl, wEggMonDVs ld hl, wEggMonDVs
call Random call Random
ld [hli], a ld [hli], a
@ -693,35 +719,35 @@ Function16a66: ; 16a66
ld de, wBreedMon1DVs ld de, wBreedMon1DVs
ld a, [wBreedMon1Species] ld a, [wBreedMon1Species]
cp DITTO cp DITTO
jr z, .asm_16b98 jr z, .GotDVs
ld de, wBreedMon2DVs ld de, wBreedMon2DVs
ld a, [wBreedMon2Species] ld a, [wBreedMon2Species]
cp DITTO cp DITTO
jr z, .asm_16b98 jr z, .GotDVs
ld a, $3 ld a, BREEDMON
ld [MonType], a ld [MonType], a
push hl push hl
callba GetGender callba GetGender
pop hl pop hl
ld de, wBreedMon1DVs ld de, wBreedMon1DVs
ld bc, wBreedMon2DVs ld bc, wBreedMon2DVs
jr c, .asm_16bab jr c, .SkipDVs
jr z, .asm_16b90 jr z, .ParentCheck2
ld a, [wDittoInDaycare] ld a, [wBreedMotherOrNonDitto]
and a and a
jr z, .asm_16b98 jr z, .GotDVs
ld d, b ld d, b
ld e, c ld e, c
jr .asm_16b98 jr .GotDVs
.asm_16b90 .ParentCheck2
ld a, [wDittoInDaycare] ld a, [wBreedMotherOrNonDitto]
and a and a
jr nz, .asm_16b98 jr nz, .GotDVs
ld d, b ld d, b
ld e, c ld e, c
.asm_16b98 .GotDVs
ld a, [de] ld a, [de]
inc de inc de
and $f and $f
@ -738,15 +764,15 @@ Function16a66: ; 16a66
add b add b
ld [hl], a ld [hl], a
.asm_16bab .SkipDVs
ld hl, StringBuffer1 ld hl, StringBuffer1
ld de, wd050 ld de, wMonOrItemNameBuffer
ld bc, NAME_LENGTH ld bc, NAME_LENGTH
call CopyBytes call CopyBytes
ld hl, wEggMonMoves ld hl, wEggMonMoves
ld de, wEggMonPP ld de, wEggMonPP
predef FillPP predef FillPP
ld hl, wd050 ld hl, wMonOrItemNameBuffer
ld de, StringBuffer1 ld de, StringBuffer1
ld bc, NAME_LENGTH ld bc, NAME_LENGTH
call CopyBytes call CopyBytes
@ -763,6 +789,6 @@ endr
ret ret
; 16be0 ; 16be0
String_16be0: ; 16be0 .String_EGG: ; 16be0
db "EGG@" db "EGG@"
; 16be4 ; 16be4

View File

@ -8,8 +8,8 @@ SpecialDratini: ; 0x8b170
ret nc ret nc
ld bc, PartyCount ld bc, PartyCount
ld a, [bc] ld a, [bc]
ld hl, 0 ld hl, MON_SPECIES
call GetNthPartyMon call .GetNthPartyMon
ld a, [bc] ld a, [bc]
ld c, a ld c, a
ld de, PARTYMON_STRUCT_LENGTH ld de, PARTYMON_STRUCT_LENGTH
@ -85,7 +85,7 @@ endr
db TWISTER db TWISTER
db 0 db 0
GetNthPartyMon: ; 0x8b1ce .GetNthPartyMon: ; 0x8b1ce
; inputs: ; inputs:
; hl must be set to 0 before calling this function. ; hl must be set to 0 before calling this function.
; a must be set to the number of Pokémon in the party. ; a must be set to the number of Pokémon in the party.
@ -106,6 +106,7 @@ GetNthPartyMon: ; 0x8b1ce
dec a dec a
jr nz, .loop jr nz, .loop
ret ret
.EmptyParty .EmptyParty
scf scf
ret ret

View File

@ -330,15 +330,15 @@ FlyFromAnim: ; 8caed
ld [VramState], a ld [VramState], a
call FlyFunction_InitGFX call FlyFunction_InitGFX
depixel 10, 10, 4, 0 depixel 10, 10, 4, 0
ld a, SPRITE_ANIM_INDEX_0A ld a, SPRITE_ANIM_INDEX_WALK_CYCLE
call _InitSpriteAnimStruct call _InitSpriteAnimStruct
ld hl, SPRITEANIMSTRUCT_TILE_ID ld hl, SPRITEANIMSTRUCT_TILE_ID
add hl, bc add hl, bc
ld [hl], $84 ld [hl], $84
ld hl, SPRITEANIMSTRUCT_ANIM_SEQ_ID ld hl, SPRITEANIMSTRUCT_ANIM_SEQ_ID
add hl, bc add hl, bc
ld [hl], SPRITE_ANIM_SEQ_16 ld [hl], SPRITE_ANIM_SEQ_FLY_FROM
ld a, $80 ld a, 128
ld [wcf64], a ld [wcf64], a
.loop .loop
ld a, [wJumptableIndex] ld a, [wJumptableIndex]
@ -347,7 +347,7 @@ FlyFromAnim: ; 8caed
ld a, 0 * 4 ld a, 0 * 4
ld [wCurrSpriteOAMAddr], a ld [wCurrSpriteOAMAddr], a
callab DoNextFrameForAllSprites callab DoNextFrameForAllSprites
call Function8cbc8 call FlyFunction_FrameTimer
call DelayFrame call DelayFrame
jr .loop jr .loop
@ -365,18 +365,18 @@ FlyToAnim: ; 8cb33
ld [VramState], a ld [VramState], a
call FlyFunction_InitGFX call FlyFunction_InitGFX
depixel 31, 10, 4, 0 depixel 31, 10, 4, 0
ld a, SPRITE_ANIM_INDEX_0A ld a, SPRITE_ANIM_INDEX_WALK_CYCLE
call _InitSpriteAnimStruct call _InitSpriteAnimStruct
ld hl, SPRITEANIMSTRUCT_TILE_ID ld hl, SPRITEANIMSTRUCT_TILE_ID
add hl, bc add hl, bc
ld [hl], $84 ld [hl], $84
ld hl, SPRITEANIMSTRUCT_ANIM_SEQ_ID ld hl, SPRITEANIMSTRUCT_ANIM_SEQ_ID
add hl, bc add hl, bc
ld [hl], $18 ld [hl], SPRITE_ANIM_SEQ_FLY_TO
ld hl, SPRITEANIMSTRUCT_0F ld hl, SPRITEANIMSTRUCT_0F
add hl, bc add hl, bc
ld [hl], $58 ld [hl], 11 * 8
ld a, $40 ld a, 64
ld [wcf64], a ld [wcf64], a
.loop .loop
ld a, [wJumptableIndex] ld a, [wJumptableIndex]
@ -385,28 +385,28 @@ FlyToAnim: ; 8cb33
ld a, 0 * 4 ld a, 0 * 4
ld [wCurrSpriteOAMAddr], a ld [wCurrSpriteOAMAddr], a
callab DoNextFrameForAllSprites callab DoNextFrameForAllSprites
call Function8cbc8 call FlyFunction_FrameTimer
call DelayFrame call DelayFrame
jr .loop jr .loop
.exit .exit
pop af pop af
ld [VramState], a ld [VramState], a
call Function8cb82 call .RestorePlayerSprite_DespawnLeaves
ret ret
Function8cb82: ; 8cb82 (23:4b82) .RestorePlayerSprite_DespawnLeaves: ; 8cb82 (23:4b82)
ld hl, Sprites + 2 ; Tile ID ld hl, Sprites + 2 ; Tile ID
xor a xor a
ld c, $4 ld c, $4
.loop .loop2
ld [hli], a ld [hli], a
rept 3 rept 3
inc hl inc hl
endr endr
inc a inc a
dec c dec c
jr nz, .loop jr nz, .loop2
ld hl, Sprites + 4 * 4 ld hl, Sprites + 4 * 4
ld bc, SpritesEnd - (Sprites + 4 * 4) ld bc, SpritesEnd - (Sprites + 4 * 4)
xor a xor a
@ -432,8 +432,8 @@ FlyFunction_InitGFX: ; 8cb9b (23:4b9b)
ld [wJumptableIndex], a ld [wJumptableIndex], a
ret ret
Function8cbc8: ; 8cbc8 (23:4bc8) FlyFunction_FrameTimer: ; 8cbc8 (23:4bc8)
call Function8cbe6 call .SpawnLeaf
ld hl, wcf64 ld hl, wcf64
ld a, [hl] ld a, [hl]
and a and a
@ -452,19 +452,19 @@ Function8cbc8: ; 8cbc8 (23:4bc8)
set 7, [hl] set 7, [hl]
ret ret
Function8cbe6: ; 8cbe6 (23:4be6) .SpawnLeaf: ; 8cbe6 (23:4be6)
ld hl, wcf65 ld hl, wcf65
ld a, [hl] ld a, [hl]
inc [hl] inc [hl]
and $7 and $7
ret nz ret nz
ld a, [hl] ld a, [hl]
and $18 and (6 * 8) >> 1
sla a sla a
add $40 add 8 * 8 ; gives a number in [$40, $50, $60, $70]
ld d, a ld d, a
ld e, $0 ld e, $0
ld a, SPRITE_ANIM_INDEX_18 ; fly land ld a, SPRITE_ANIM_INDEX_FLY_LEAF ; fly land
call _InitSpriteAnimStruct call _InitSpriteAnimStruct
ld hl, SPRITEANIMSTRUCT_TILE_ID ld hl, SPRITEANIMSTRUCT_TILE_ID
add hl, bc add hl, bc

View File

@ -37,7 +37,7 @@ FindItemInBallScript:: ; 0x122ce
xor a xor a
ld [ScriptVar], a ld [ScriptVar], a
ld a, [EngineBuffer1] ld a, [EngineBuffer1]
ld [wd265], a ld [wNamedObjectIndexBuffer], a
call GetItemName call GetItemName
ld hl, StringBuffer3 ld hl, StringBuffer3
call CopyName2 call CopyName2

View File

@ -15,7 +15,7 @@ ItemFinder: ; 12580
; 12599 ; 12599
.ItemfinderSound: ; 12599 .ItemfinderSound: ; 12599
ld c, $4 ld c, 4
.sfx_loop .sfx_loop
push bc push bc
ld de, SFX_SECOND_PART_OF_ITEMFINDER ld de, SFX_SECOND_PART_OF_ITEMFINDER

View File

@ -1,22 +1,22 @@
Kurt_PrintTextWhichApricorn: ; 88000 Kurt_PrintTextWhichApricorn: ; 88000
ld hl, UnknownText_0x88007 ld hl, .Text
call PrintText call PrintText
ret ret
; 88007 ; 88007
UnknownText_0x88007: ; 0x88007 .Text: ; 0x88007
; Which APRICORN should I use? ; Which APRICORN should I use?
text_jump UnknownText_0x1bc06b text_jump UnknownText_0x1bc06b
db "@" db "@"
; 0x8800c ; 0x8800c
Kurt_PrintTextHowMany: ; 8800c Kurt_PrintTextHowMany: ; 8800c
ld hl, UnknownText_0x88013 ld hl, .Text
call PrintText call PrintText
ret ret
; 88013 ; 88013
UnknownText_0x88013: ; 0x88013 .Text: ; 0x88013
; How many should I make? ; How many should I make?
text_jump UnknownText_0x1bc089 text_jump UnknownText_0x1bc089
db "@" db "@"
@ -69,7 +69,7 @@ Kurt_SelectApricorn: ; 88055
call UpdateSprites call UpdateSprites
call ScrollingMenu call ScrollingMenu
ld a, [wMenuJoypad] ld a, [wMenuJoypad]
cp $2 cp B_BUTTON
jr z, .nope jr z, .nope
ld a, [MenuSelection] ld a, [MenuSelection]
cp -1 cp -1
@ -167,7 +167,7 @@ Kurt_SelectQuantity: ; 880c2
.PlaceApricornName: ; 88116 .PlaceApricornName: ; 88116
call MenuBoxCoord2Tile call MenuBoxCoord2Tile
ld de, $0015 ld de, SCREEN_WIDTH + 1
add hl, de add hl, de
ld d, h ld d, h
ld e, l ld e, l
@ -177,7 +177,7 @@ Kurt_SelectQuantity: ; 880c2
PlaceApricornQuantity: ; 88126 PlaceApricornQuantity: ; 88126
call MenuBoxCoord2Tile call MenuBoxCoord2Tile
ld de, $0032 ld de, 2 * SCREEN_WIDTH + 10
add hl, de add hl, de
ld [hl], "×" ld [hl], "×"
inc hl inc hl
@ -233,7 +233,7 @@ Kurt_GiveUpSelectedQuantityOfSelectedApricorn: ; 88161
xor a xor a
ld [CurItemQuantity], a ld [CurItemQuantity], a
ld a, -1 ld a, -1
ld [wd002], a ld [wApricorns], a
; Search for [CurItem] in the bag. ; Search for [CurItem] in the bag.
.loop1 .loop1
@ -253,7 +253,7 @@ Kurt_GiveUpSelectedQuantityOfSelectedApricorn: ; 88161
; Increment the result counter and store the bag index of the match. ; Increment the result counter and store the bag index of the match.
ld d, $0 ld d, $0
push hl push hl
ld hl, wd002 ld hl, wApricorns
add hl, de add hl, de
inc e inc e
ld a, [CurItemQuantity] ld a, [CurItemQuantity]
@ -271,7 +271,7 @@ Kurt_GiveUpSelectedQuantityOfSelectedApricorn: ; 88161
jr z, .done jr z, .done
dec a dec a
jr z, .OnlyOne jr z, .OnlyOne
ld hl, wd002 ld hl, wApricorns
.loop2 .loop2
ld a, [hl] ld a, [hl]
@ -316,7 +316,7 @@ Kurt_GiveUpSelectedQuantityOfSelectedApricorn: ; 88161
jr nz, .loop2 jr nz, .loop2
.OnlyOne .OnlyOne
ld hl, wd002 ld hl, wApricorns
.loop4 .loop4
ld a, [hl] ld a, [hl]
cp -1 cp -1

View File

@ -1,5 +1,3 @@
Special_CheckMagikarpLength: ; fbb32 Special_CheckMagikarpLength: ; fbb32
; Returns 3 if you select a Magikarp that beats the previous record. ; Returns 3 if you select a Magikarp that beats the previous record.
; Returns 2 if you select a Magikarp, but the current record is longer. ; Returns 2 if you select a Magikarp, but the current record is longer.
@ -81,7 +79,7 @@ Special_CheckMagikarpLength: ; fbb32
; 0xfbbae ; 0xfbbae
Magikarp_LoadFeetInchesChars: ; fbbae Magikarp_LoadFeetInchesChars: ; fbbae
ld hl, VTiles2 + "" * $10 ld hl, VTiles2 tile ""
ld de, .feetinchchars ld de, .feetinchchars
lb bc, BANK(.feetinchchars), 2 lb bc, BANK(.feetinchchars), 2
call Request2bpp call Request2bpp

View File

@ -4,13 +4,13 @@ Special_MagnetTrain: ; 8cc04
jr nz, .ToGoldenrod jr nz, .ToGoldenrod
ld a, 1 ; forwards ld a, 1 ; forwards
lb bc, $40, $60 lb bc, $40, $60
ld de, $fca0 lb de, (11 * 8) - (11 * 8 + 4), -$60
jr .continue jr .continue
.ToGoldenrod .ToGoldenrod
ld a, -1 ; backwards ld a, -1 ; backwards
lb bc, $c0, $a0 lb bc, -$40, -$60
ld de, $b460 lb de, (11 * 8) + (11 * 8 + 4), $60
.continue .continue
ld h, a ld h, a
@ -18,21 +18,23 @@ Special_MagnetTrain: ; 8cc04
push af push af
ld a, $5 ld a, $5
ld [rSVBK], a ld [rSVBK], a
ld a, h ld a, h
ld [w5_d191], a ld [wMagnetTrainDirection], a
ld a, c ld a, c
ld [w5_d192], a ld [wMagnetTrainInitPosition], a
ld a, b ld a, b
ld [w5_d193], a ld [wMagnetTrainHoldPosition], a
ld a, e ld a, e
ld [w5_d194], a ld [wMagnetTrainFinalPosition], a
ld a, d ld a, d
ld [w5_d195], a ld [wMagnetTrainPlayerSpriteInitX], a
ld a, [hSCX] ld a, [hSCX]
push af push af
ld a, [hSCY] ld a, [hSCY]
push af push af
call Function8ccc9 call MagntTrain_LoadGFX_PlayMusic
ld hl, hVBlank ld hl, hVBlank
ld a, [hl] ld a, [hl]
push af push af
@ -44,14 +46,14 @@ Special_MagnetTrain: ; 8cc04
bit 7, a bit 7, a
jr nz, .done jr nz, .done
callab PlaySpriteAnimations callab PlaySpriteAnimations
call Function8cdf7 call MagnetTrain_Jumptable
call Function8cc99 call MagnetTrain_UpdateLYOverrides
call Function3b0c call Function3b0c
call DelayFrame call DelayFrame
jr .loop jr .loop
.initialize .initialize
call Function8ceae call MagnetTrain_Jumptable_FirstRunThrough
jr .loop jr .loop
.done .done
@ -69,6 +71,7 @@ Special_MagnetTrain: ; 8cc04
ld [Requested2bppDest + 1], a ld [Requested2bppDest + 1], a
ld [Requested2bpp], a ld [Requested2bpp], a
call ClearTileMap call ClearTileMap
pop af pop af
ld [hSCY], a ld [hSCY], a
pop af pop af
@ -80,21 +83,21 @@ Special_MagnetTrain: ; 8cc04
ret ret
; 8cc99 ; 8cc99
Function8cc99: ; 8cc99 MagnetTrain_UpdateLYOverrides: ; 8cc99
ld hl, LYOverridesBackup ld hl, LYOverridesBackup
ld c, $2f ld c, $2f
ld a, [wcf64] ld a, [wcf64]
add a add a
ld [hSCX], a ld [hSCX], a
call Function8ccc4 call .loadloop
ld c, $30 ld c, $30
ld a, [wcf65] ld a, [wcf65]
call Function8ccc4 call .loadloop
ld c, $31 ld c, $31
ld a, [wcf64] ld a, [wcf64]
add a add a
call Function8ccc4 call .loadloop
ld a, [wd191] ld a, [wMagnetTrainDirection]
ld d, a ld d, a
ld hl, wcf64 ld hl, wcf64
ld a, [hl] ld a, [hl]
@ -103,17 +106,15 @@ rept 2
endr endr
ld [hl], a ld [hl], a
ret ret
; 8ccc4
Function8ccc4: ; 8ccc4 .loadloop
.asm_8ccc4
ld [hli], a ld [hli], a
dec c dec c
jr nz, .asm_8ccc4 jr nz, .loadloop
ret ret
; 8ccc9 ; 8ccc9
Function8ccc9: ; 8ccc9 MagntTrain_LoadGFX_PlayMusic: ; 8ccc9
call ClearBGPalettes call ClearBGPalettes
call ClearSprites call ClearSprites
call DisableLCD call DisableLCD
@ -135,20 +136,20 @@ Function8ccc9: ; 8ccc9
pop af pop af
ld [rSVBK], a ld [rSVBK], a
ld hl, VTiles0 ld hl, VTiles0
ld c, $4 ld c, 4
call Request2bpp call Request2bpp
ld hl, $c0 ld hl, 12 tiles
add hl, de add hl, de
ld d, h ld d, h
ld e, l ld e, l
ld hl, VTiles0 tile $04 ld hl, VTiles0 tile $04
ld c, $4 ld c, 4
call Request2bpp call Request2bpp
call Function8cda6 call MagnetTrain_InitLYOverrides
ld hl, wJumptableIndex ld hl, wJumptableIndex
xor a xor a
ld [hli], a ld [hli], a
ld a, [wd192] ld a, [wMagnetTrainInitPosition]
rept 3 rept 3
ld [hli], a ld [hli], a
endr endr
@ -160,13 +161,13 @@ endr
DrawMagnetTrain: ; 8cd27 DrawMagnetTrain: ; 8cd27
hlbgcoord 0, 0 hlbgcoord 0, 0
xor a xor a
.asm_8cd2b .loop
call GetMagnetTrainBGTiles call GetMagnetTrainBGTiles
ld b, 32 / 2 ld b, 32 / 2
call .FillAlt call .FillAlt
inc a inc a
cp $12 cp $12
jr c, .asm_8cd2b jr c, .loop
hlbgcoord 0, 6 hlbgcoord 0, 6
ld de, MagnetTrainTilemap1 ld de, MagnetTrainTilemap1
ld c, 20 ld c, 20
@ -243,14 +244,14 @@ MagnetTrainBGTiles: ; 8cd82
db $5c, $5d ; bush db $5c, $5d ; bush
; 8cda6 ; 8cda6
Function8cda6: ; 8cda6 MagnetTrain_InitLYOverrides: ; 8cda6
ld hl, LYOverrides ld hl, LYOverrides
ld bc, $90 ld bc, LYOverridesEnd - LYOverrides
ld a, [wd192] ld a, [wMagnetTrainInitPosition]
call ByteFill call ByteFill
ld hl, LYOverridesBackup ld hl, LYOverridesBackup
ld bc, $90 ld bc, LYOverridesBackupEnd - LYOverridesBackup
ld a, [wd192] ld a, [wMagnetTrainInitPosition]
call ByteFill call ByteFill
ld a, $43 ld a, $43
ld [hLCDStatCustom], a ld [hLCDStatCustom], a
@ -290,11 +291,11 @@ SetMagnetTrainPals: ; 8cdc3
ret ret
; 8cdf7 ; 8cdf7
Function8cdf7: ; 8cdf7 MagnetTrain_Jumptable: ; 8cdf7
ld a, [wJumptableIndex] ld a, [wJumptableIndex]
ld e, a ld e, a
ld d, 0 ld d, 0
ld hl, Jumptable_8ce06 ld hl, .Jumptable
rept 2 rept 2
add hl, de add hl, de
endr endr
@ -304,25 +305,26 @@ endr
jp [hl] jp [hl]
; 8ce06 ; 8ce06
Jumptable_8ce06: ; 8ce06 .Jumptable: ; 8ce06
dw Function8ce19 jumptable_start
dw Function8ce6d jumptable .InitPlayerSpriteAnim
dw Function8ce47 jumptable .WaitScene
dw Function8ce6d jumptable .MoveTrain1
dw Function8ce7a jumptable .WaitScene
dw Function8ce6d jumptable .MoveTrain2
dw Function8cea2 jumptable .WaitScene
jumptable .TrainArrived
; 8ce14 ; 8ce14
Function8ce14: ; 8ce14 .Next: ; 8ce14
ld hl, wJumptableIndex ld hl, wJumptableIndex
inc [hl] inc [hl]
ret ret
; 8ce19 ; 8ce19
Function8ce19: ; 8ce19 .InitPlayerSpriteAnim: ; 8ce19
ld d, $55 ld d, 10 * 8 + 5
ld a, [wOverworldMapAnchor + 1] ld a, [wMagnetTrainPlayerSpriteInitX]
ld e, a ld e, a
ld b, SPRITE_ANIM_INDEX_15 ld b, SPRITE_ANIM_INDEX_15
ld a, [rSVBK] ld a, [rSVBK]
@ -331,67 +333,67 @@ Function8ce19: ; 8ce19
ld [rSVBK], a ld [rSVBK], a
ld a, [PlayerGender] ld a, [PlayerGender]
bit 0, a bit 0, a
jr z, .asm_8ce31 jr z, .got_gender
ld b, SPRITE_ANIM_INDEX_1F ld b, SPRITE_ANIM_INDEX_1F
.asm_8ce31 .got_gender
pop af pop af
ld [rSVBK], a ld [rSVBK], a
ld a, b ld a, b
call _InitSpriteAnimStruct call _InitSpriteAnimStruct
ld hl, $3 ld hl, SPRITEANIMSTRUCT_TILE_ID
add hl, bc add hl, bc
ld [hl], $0 ld [hl], $0
call Function8ce14 call .Next
ld a, $80 ld a, $80
ld [wcf66], a ld [wcf66], a
ret ret
; 8ce47 ; 8ce47
Function8ce47: ; 8ce47 .MoveTrain1: ; 8ce47
ld hl, wd193 ld hl, wMagnetTrainHoldPosition
ld a, [wcf65] ld a, [wcf65]
cp [hl] cp [hl]
jr z, .asm_8ce64 jr z, .PrepareToHoldTrain
ld e, a ld e, a
ld a, [wd191] ld a, [wMagnetTrainDirection]
xor $ff xor $ff
inc a inc a
add e add e
ld [wcf65], a ld [wcf65], a
ld hl, wGlobalAnimXOffset ld hl, wGlobalAnimXOffset
ld a, [wd191] ld a, [wMagnetTrainDirection]
add [hl] add [hl]
ld [hl], a ld [hl], a
ret ret
.asm_8ce64 .PrepareToHoldTrain
call Function8ce14 call .Next
ld a, $80 ld a, $80
ld [wcf66], a ld [wcf66], a
ret ret
; 8ce6d ; 8ce6d
Function8ce6d: ; 8ce6d .WaitScene: ; 8ce6d
ld hl, wcf66 ld hl, wcf66
ld a, [hl] ld a, [hl]
and a and a
jr z, .asm_8ce76 jr z, .DoneWaiting
dec [hl] dec [hl]
ret ret
.asm_8ce76 .DoneWaiting
call Function8ce14 call .Next
ret ret
; 8ce7a ; 8ce7a
Function8ce7a: ; 8ce7a .MoveTrain2: ; 8ce7a
ld hl, wOverworldMapAnchor ld hl, wMagnetTrainFinalPosition
ld a, [wcf65] ld a, [wcf65]
cp [hl] cp [hl]
jr z, .asm_8ce9e jr z, .PrepareToFinishAnim
ld e, a ld e, a
ld a, [wd191] ld a, [wMagnetTrainDirection]
xor $ff xor $ff
inc a inc a
ld d, a ld d, a
@ -401,7 +403,7 @@ rept 2
endr endr
ld [wcf65], a ld [wcf65], a
ld hl, wGlobalAnimXOffset ld hl, wGlobalAnimXOffset
ld a, [wd191] ld a, [wMagnetTrainDirection]
ld d, a ld d, a
ld a, [hl] ld a, [hl]
rept 2 rept 2
@ -412,12 +414,12 @@ endr
ret ret
.asm_8ce9e .PrepareToFinishAnim
call Function8ce14 call .Next
ret ret
; 8cea2 ; 8cea2
Function8cea2: ; 8cea2 .TrainArrived: ; 8cea2
ld a, $80 ld a, $80
ld [wJumptableIndex], a ld [wJumptableIndex], a
ld de, SFX_TRAIN_ARRIVED ld de, SFX_TRAIN_ARRIVED
@ -425,10 +427,10 @@ Function8cea2: ; 8cea2
ret ret
; 8ceae ; 8ceae
Function8ceae: ; 8ceae MagnetTrain_Jumptable_FirstRunThrough: ; 8ceae
callba PlaySpriteAnimations callba PlaySpriteAnimations
call Function8cdf7 call MagnetTrain_Jumptable
call Function8cc99 call MagnetTrain_UpdateLYOverrides
call Function3b0c call Function3b0c
call DelayFrame call DelayFrame
ld a, [rSVBK] ld a, [rSVBK]

View File

@ -5,20 +5,20 @@ Special_BankOfMom: ; 16218
ld [hInMenu], a ld [hInMenu], a
xor a xor a
ld [wJumptableIndex], a ld [wJumptableIndex], a
.asm_16223 .loop
ld a, [wJumptableIndex] ld a, [wJumptableIndex]
bit 7, a bit 7, a
jr nz, .asm_1622f jr nz, .done
call Function16233 call .RunJumptable
jr .asm_16223 jr .loop
.asm_1622f .done
pop af pop af
ld [hInMenu], a ld [hInMenu], a
ret ret
; 16233 ; 16233
Function16233: ; 16233 .RunJumptable: ; 16233
ld a, [wJumptableIndex] ld a, [wJumptableIndex]
ld e, a ld e, a
ld d, 0 ld d, 0
@ -33,15 +33,16 @@ endr
; 16242 ; 16242
.jumptable: ; 16242 .jumptable: ; 16242
dw .CheckIfBankInitialized jumptable_start
dw .InitializeBank jumptable .CheckIfBankInitialized
dw .IsThisAboutYourMoney jumptable .InitializeBank
dw .AccessBankOfMom jumptable .IsThisAboutYourMoney
dw .StoreMoney jumptable .AccessBankOfMom
dw .TakeMoney jumptable .StoreMoney
dw .StopOrStartSavingMoney jumptable .TakeMoney
dw .AskDST jumptable .StopOrStartSavingMoney
dw .JustDoWhatYouCan jumptable .AskDST
jumptable .JustDoWhatYouCan
; 16254 ; 16254
.CheckIfBankInitialized: ; 16254 .CheckIfBankInitialized: ; 16254
@ -309,72 +310,72 @@ DSTChecks: ; 16439
ld a, [wDST] ld a, [wDST]
bit 7, a bit 7, a
ld a, [hHours] ld a, [hHours]
jr z, .asm_16447 jr z, .NotDST
and a ; within one hour of 00:00? and a ; within one hour of 00:00?
jr z, .LostBooklet jr z, .LostBooklet
jr .loop jr .loop
.asm_16447 .NotDST
cp 23 ; within one hour of 23:00? cp 23 ; within one hour of 23:00?
jr nz, .loop jr nz, .loop
; fallthrough ; fallthrough
.LostBooklet .LostBooklet
call Function164ea call .ClearBox
bccoord 1, 14 bccoord 1, 14
ld hl, UnknownText_0x164f4 ld hl, .Text_AdjustClock
call PlaceWholeStringInBoxAtOnce call PlaceWholeStringInBoxAtOnce
call YesNoBox call YesNoBox
ret c ret c
call Function164ea call .ClearBox
bccoord 1, 14 bccoord 1, 14
ld hl, LostInstructionBookletText ld hl, .Text_LostInstructionBooklet
call PlaceWholeStringInBoxAtOnce call PlaceWholeStringInBoxAtOnce
ret ret
.loop .loop
call Function164ea call .ClearBox
bccoord 1, 14 bccoord 1, 14
ld a, [wDST] ld a, [wDST]
bit 7, a bit 7, a
jr z, .asm_16497 jr z, .SetDST
ld hl, UnknownText_0x16508 ld hl, .Text_IsDSTOver
call PlaceWholeStringInBoxAtOnce call PlaceWholeStringInBoxAtOnce
call YesNoBox call YesNoBox
ret c ret c
ld a, [wDST] ld a, [wDST]
res 7, a res 7, a
ld [wDST], a ld [wDST], a
call Function164d1 call .SetClockBack
call Function164ea call .ClearBox
bccoord 1, 14 bccoord 1, 14
ld hl, UnknownText_0x1650d ld hl, .Text_SetClockBack
call PlaceWholeStringInBoxAtOnce call PlaceWholeStringInBoxAtOnce
ret ret
.asm_16497 .SetDST
ld hl, UnknownText_0x164fe ld hl, .Text_SwitchToDST
call PlaceWholeStringInBoxAtOnce call PlaceWholeStringInBoxAtOnce
call YesNoBox call YesNoBox
ret c ret c
ld a, [wDST] ld a, [wDST]
set 7, a set 7, a
ld [wDST], a ld [wDST], a
call Function164b9 call .SetClockForward
call Function164ea call .ClearBox
bccoord 1, 14 bccoord 1, 14
ld hl, UnknownText_0x16503 ld hl, .Text_SetClockForward
call PlaceWholeStringInBoxAtOnce call PlaceWholeStringInBoxAtOnce
ret ret
; 164b9 ; 164b9
Function164b9: ; 164b9 .SetClockForward: ; 164b9
ld a, [StartHour] ld a, [StartHour]
add 1 add 1
sub 24 sub 24
jr nc, .asm_164c4 jr nc, .DontLoopHourForward
add 24 add 24
.asm_164c4 .DontLoopHourForward
ld [StartHour], a ld [StartHour], a
ccf ccf
ld a, [StartDay] ld a, [StartDay]
@ -383,61 +384,61 @@ Function164b9: ; 164b9
ret ret
; 164d1 ; 164d1
Function164d1: ; 164d1 .SetClockBack: ; 164d1
ld a, [StartHour] ld a, [StartHour]
sub 1 sub 1
jr nc, .asm_164da jr nc, .DontLoopHourBack
add 24 add 24
.asm_164da .DontLoopHourBack
ld [StartHour], a ld [StartHour], a
ld a, [StartDay] ld a, [StartDay]
sbc 0 sbc 0
jr nc, .asm_164e6 jr nc, .DontLoopDayBack
add 7 add 7
.asm_164e6 .DontLoopDayBack
ld [StartDay], a ld [StartDay], a
ret ret
; 164ea ; 164ea
Function164ea: ; 164ea .ClearBox: ; 164ea
hlcoord 1, 14 hlcoord 1, 14
lb bc, 3, 18 lb bc, 3, 18
call ClearBox call ClearBox
ret ret
; 164f4 ; 164f4
UnknownText_0x164f4: ; 0x164f4 .Text_AdjustClock: ; 0x164f4
; Do you want to adjust your clock for Daylight Saving Time? ; Do you want to adjust your clock for Daylight Saving Time?
text_jump UnknownText_0x1c6095 text_jump UnknownText_0x1c6095
db "@" db "@"
; 0x164f9 ; 0x164f9
LostInstructionBookletText: ; 0x164f9 .Text_LostInstructionBooklet: ; 0x164f9
; I lost the instruction booklet for the POKéGEAR. ; I lost the instruction booklet for the POKéGEAR.
; Come back again in a while. ; Come back again in a while.
text_jump UnknownText_0x1c60d1 text_jump UnknownText_0x1c60d1
db "@" db "@"
; 0x164fe ; 0x164fe
UnknownText_0x164fe: ; 0x164fe .Text_SwitchToDST: ; 0x164fe
; Do you want to switch to Daylight Saving Time? ; Do you want to switch to Daylight Saving Time?
text_jump UnknownText_0x1c6000 text_jump UnknownText_0x1c6000
db "@" db "@"
; 0x16503 ; 0x16503
UnknownText_0x16503: ; 0x16503 .Text_SetClockForward: ; 0x16503
; I set the clock forward by one hour. ; I set the clock forward by one hour.
text_jump UnknownText_0x1c6030 text_jump UnknownText_0x1c6030
db "@" db "@"
; 0x16508 ; 0x16508
UnknownText_0x16508: ; 0x16508 .Text_IsDSTOver: ; 0x16508
; Is Daylight Saving Time over? ; Is Daylight Saving Time over?
text_jump UnknownText_0x1c6056 text_jump UnknownText_0x1c6056
db "@" db "@"
; 0x1650d ; 0x1650d
UnknownText_0x1650d: ; 0x1650d .Text_SetClockBack: ; 0x1650d
; I put the clock back one hour. ; I put the clock back one hour.
text_jump UnknownText_0x1c6075 text_jump UnknownText_0x1c6075
db "@" db "@"

View File

@ -9,40 +9,40 @@ MomTriesToBuySomething:: ; fcfec
ld [wdc18], a ld [wdc18], a
call CheckBalance_MomItem2 call CheckBalance_MomItem2
ret nc ret nc
call Functionfd0c3 call Mom_GiveItemOrDoll
ret nc ret nc
ld b, BANK(UnknownScript_0xfd00f) ld b, BANK(.Script)
ld de, UnknownScript_0xfd00f ld de, .Script
callba LoadScriptBDE callba LoadScriptBDE
scf scf
ret ret
; fd00f ; fd00f
UnknownScript_0xfd00f: ; 0xfd00f .Script: ; 0xfd00f
callasm Functionfd017 callasm .ASMFunction
farjump Script_ReceivePhoneCall farjump Script_ReceivePhoneCall
; 0xfd017 ; 0xfd017
Functionfd017: ; fd017 .ASMFunction: ; fd017
call MomBuysItem_DeductFunds call MomBuysItem_DeductFunds
call Functionfd0eb call Mom_GetScriptPointer
ld a, [wdc18] ld a, [wdc18]
and a and a
jr nz, .ok jr nz, .ok
ld hl, wdc17 ld hl, wdc17
inc [hl] inc [hl]
.ok .ok
ld a, 1 ld a, PHONE_MOM
ld [wCurrentCaller], a ld [wCurrentCaller], a
ld bc, wd03f ld bc, EngineBuffer2
ld hl, 0 ld hl, 0
add hl, bc add hl, bc
ld [hl], 0 ld [hl], 0
inc hl inc hl
ld [hl], 1 ld [hl], 1
ld hl, 9 ld hl, wPhoneScriptPointer - EngineBuffer2
add hl, bc add hl, bc
ld a, $3f ld a, BANK(Mom_GetScriptPointer)
ld [hli], a ld [hli], a
ld a, e ld a, e
ld [hli], a ld [hli], a
@ -114,7 +114,7 @@ Functionfd099: ; fd099
MomBuysItem_DeductFunds: ; fd0a6 (3f:50a6) MomBuysItem_DeductFunds: ; fd0a6 (3f:50a6)
call GetItemFromMom call GetItemFromMom
ld de, 3 ld de, 3 ; cost
add hl, de add hl, de
ld a, [hli] ld a, [hli]
ld [hMoneyTemp], a ld [hMoneyTemp], a
@ -128,12 +128,12 @@ MomBuysItem_DeductFunds: ; fd0a6 (3f:50a6)
ret ret
Functionfd0c3: ; fd0c3 Mom_GiveItemOrDoll: ; fd0c3
call GetItemFromMom call GetItemFromMom
ld de, 6 ld de, 6 ; item type
add hl, de add hl, de
ld a, [hli] ld a, [hli]
cp 1 cp MOM_ITEM
jr z, .not_doll jr z, .not_doll
ld a, [hl] ld a, [hl]
ld c, a ld c, a
@ -145,7 +145,7 @@ Functionfd0c3: ; fd0c3
.not_doll .not_doll
ld a, [hl] ld a, [hl]
ld [CurItem], a ld [CurItem], a
ld a, $1 ld a, 1
ld [wItemQuantityChangeBuffer], a ld [wItemQuantityChangeBuffer], a
ld hl, PCItems ld hl, PCItems
call ReceiveItem call ReceiveItem
@ -153,19 +153,19 @@ Functionfd0c3: ; fd0c3
; fd0eb ; fd0eb
Functionfd0eb: ; fd0eb (3f:50eb) Mom_GetScriptPointer: ; fd0eb (3f:50eb)
call GetItemFromMom call GetItemFromMom
ld de, 6 ; field ld de, 6 ; item type
add hl, de add hl, de
ld a, [hli] ld a, [hli]
ld de, Script_MomBoughtItem ld de, .ItemScript
cp 1 cp MOM_ITEM
ret z ret z
ld de, Script_MomBoughtDoll ld de, .DollScript
ret ret
; fd0fd (3f:50fd) ; fd0fd (3f:50fd)
Script_MomBoughtItem: ; 0xfd0fd .ItemScript: ; 0xfd0fd
writetext _MomText_HiHowAreYou writetext _MomText_HiHowAreYou
writetext _MomText_FoundAnItem writetext _MomText_FoundAnItem
writetext _MomText_BoughtWithYourMoney writetext _MomText_BoughtWithYourMoney
@ -173,7 +173,7 @@ Script_MomBoughtItem: ; 0xfd0fd
end end
; 0xfd10a ; 0xfd10a
Script_MomBoughtDoll: ; 0xfd10a .DollScript: ; 0xfd10a
writetext _MomText_HiHowAreYou writetext _MomText_HiHowAreYou
writetext _MomText_FoundADoll writetext _MomText_FoundADoll
writetext _MomText_BoughtWithYourMoney writetext _MomText_BoughtWithYourMoney
@ -188,7 +188,7 @@ GetItemFromMom: ; fd117
jr z, .zero jr z, .zero
dec a dec a
ld de, MomItems_1 ld de, MomItems_1
jr .incave jr .GetFromList1
.zero .zero
ld a, [wdc17] ld a, [wdc17]
@ -199,7 +199,7 @@ GetItemFromMom: ; fd117
.ok .ok
ld de, MomItems_2 ld de, MomItems_2
.incave .GetFromList1
ld l, a ld l, a
ld h, 0 ld h, 0
rept 3 ; multiply hl by 8 rept 3 ; multiply hl by 8
@ -223,8 +223,6 @@ MomItems_1: ; fd136
momitem 0, 180, MOM_ITEM, POKE_BALL momitem 0, 180, MOM_ITEM, POKE_BALL
momitem 0, 450, MOM_ITEM, ESCAPE_ROPE momitem 0, 450, MOM_ITEM, ESCAPE_ROPE
momitem 0, 500, MOM_ITEM, GREAT_BALL momitem 0, 500, MOM_ITEM, GREAT_BALL
; fd15e
MomItems_2: ; fd15e MomItems_2: ; fd15e
momitem 900, 600, MOM_ITEM, SUPER_POTION momitem 900, 600, MOM_ITEM, SUPER_POTION
momitem 4000, 270, MOM_ITEM, REPEL momitem 4000, 270, MOM_ITEM, REPEL

View File

@ -22,7 +22,7 @@ MoveDeletion:
call LoadStandardMenuDataHeader call LoadStandardMenuDataHeader
callba ChooseMoveToDelete callba ChooseMoveToDelete
push af push af
call Function2b74 call ReturnToMapWithSpeechTextbox
pop af pop af
jr c, .asm_2c5c3 jr c, .asm_2c5c3
ld a, [wMenuCursorY] ld a, [wMenuCursorY]

View File

@ -249,7 +249,7 @@ PhotoStudio: ; 16dc7
call PrintText call PrintText
call DisableSpriteUpdates call DisableSpriteUpdates
callba PrintPartymon callba PrintPartymon
call Function2b74 call ReturnToMapWithSpeechTextbox
ld a, [hPrinter] ld a, [hPrinter]
and a and a
jr nz, .cancel jr nz, .cancel

View File

@ -694,22 +694,22 @@ MailGFX_GenerateMonochromeTilesColor2: ; b97f8
MailGFX_PlaceMessage: ; b9803 MailGFX_PlaceMessage: ; b9803
ld bc, MAIL_STRUCT_LENGTH ld bc, MAIL_STRUCT_LENGTH
ld de, wd002 ld de, wTempMail
ld a, $0 ld a, BANK(sPartyMail)
call GetSRAMBank call GetSRAMBank
call CopyBytes call CopyBytes
call CloseSRAM call CloseSRAM
ld hl, wd002 + sPartyMon1MailAuthor - sPartyMon1Mail ld hl, wTempMailAuthor
ld de, wd050 ld de, wMonOrItemNameBuffer
ld bc, NAME_LENGTH - 1 ld bc, NAME_LENGTH - 1
call CopyBytes call CopyBytes
ld a, "@" ld a, "@"
ld [wd002 + sPartyMon1MailAuthor - sPartyMon1Mail], a ld [wTempMailAuthor], a
ld [wd050 + NAME_LENGTH - 1], a ld [wMonOrItemNameBuffer + NAME_LENGTH - 1], a
ld de, wd002 ld de, wTempMailMessage
hlcoord 2, 7 hlcoord 2, 7
call PlaceString call PlaceString
ld de, wd050 ld de, wMonOrItemNameBuffer
ld a, [de] ld a, [de]
and a and a
ret z ret z

View File

@ -1988,7 +1988,7 @@ FadeToMenu:: ; 2b29
CloseSubmenu:: ; 2b3c CloseSubmenu:: ; 2b3c
call ClearBGPalettes call ClearBGPalettes
call Function2bae call ReloadTilesetAndPalettes
call UpdateSprites call UpdateSprites
call Call_ExitMenu call Call_ExitMenu
call ret_d90 call ret_d90
@ -1998,7 +1998,7 @@ CloseSubmenu:: ; 2b3c
ExitAllMenus:: ; 2b4d ExitAllMenus:: ; 2b4d
call ClearBGPalettes call ClearBGPalettes
call Call_ExitMenu call Call_ExitMenu
call Function2bae call ReloadTilesetAndPalettes
call UpdateSprites call UpdateSprites
call ret_d90 call ret_d90
Function2b5c:: ; 2b5c Function2b5c:: ; 2b5c
@ -2011,13 +2011,13 @@ Function2b5c:: ; 2b5c
ret ret
; 2b74 ; 2b74
Function2b74:: ; 0x2b74 ReturnToMapWithSpeechTextbox:: ; 0x2b74
push af push af
ld a, $1 ld a, $1
ld [wSpriteUpdatesEnabled], a ld [wSpriteUpdatesEnabled], a
call ClearBGPalettes call ClearBGPalettes
call ClearSprites call ClearSprites
call Function2bae call ReloadTilesetAndPalettes
hlcoord 0, 12 hlcoord 0, 12
lb bc, 4, 18 lb bc, 4, 18
call TextBox call TextBox
@ -2036,7 +2036,7 @@ Function2b74:: ; 0x2b74
ret ret
; 0x2bae ; 0x2bae
Function2bae:: ; 2bae ReloadTilesetAndPalettes:: ; 2bae
call DisableLCD call DisableLCD
call ClearSprites call ClearSprites
callba RefreshSprites callba RefreshSprites

View File

@ -249,7 +249,7 @@ SetUpMenu:: ; 1e70
MenuFunc_1e7f:: MenuFunc_1e7f::
call CopyMenuData2 call CopyMenuData2
call Function1ebd call GetMenuIndexSet
call Function1ea6 call Function1ea6
call MenuBox call MenuBox
ret ret
@ -257,7 +257,7 @@ MenuFunc_1e7f::
MenuWriteText:: MenuWriteText::
xor a xor a
ld [hBGMapMode], a ld [hBGMapMode], a
call Function1ebd ; sort out the text call GetMenuIndexSet ; sort out the text
call Function1eda ; actually write it call Function1eda ; actually write it
call Function2e31 call Function2e31
ld a, [hOAMUpdate] ld a, [hOAMUpdate]
@ -286,12 +286,12 @@ Function1ea6:: ; 1ea6
ret ret
; 1ebd ; 1ebd
Function1ebd:: ; 1ebd GetMenuIndexSet:: ; 1ebd
ld hl, wMenuData2IndicesPointer ld hl, wMenuData2IndicesPointer
ld a, [hli] ld a, [hli]
ld h, [hl] ld h, [hl]
ld l, a ld l, a
ld a, [wcf76] ld a, [wWhichIndexSet]
and a and a
jr z, .skip jr z, .skip
ld b, a ld b, a
@ -404,7 +404,7 @@ Function1f2a:: ; 1f2a
ld [wMenuJoypad], a ld [wMenuJoypad], a
.asm_1f57 .asm_1f57
call Function1ebd call GetMenuIndexSet
ld a, [wMenuCursorY] ld a, [wMenuCursorY]
ld l, a ld l, a
ld h, $0 ld h, $0

View File

@ -187,14 +187,14 @@ FixTime:: ; 61d
ret ret
; 658 ; 658
Function658:: ; 658 SetTimeOfDay:: ; 658
xor a xor a
ld [StringBuffer2], a ld [StringBuffer2], a
ld a, $0 ; useless ld a, $0 ; useless
ld [StringBuffer2 + 3], a ld [StringBuffer2 + 3], a
jr Function677 jr InitTime
Function663:: ; 663 SetDayOfWeek:: ; 663
call UpdateTime call UpdateTime
ld a, [hHours] ld a, [hHours]
ld [StringBuffer2 + 1], a ld [StringBuffer2 + 1], a
@ -202,10 +202,10 @@ Function663:: ; 663
ld [StringBuffer2 + 2], a ld [StringBuffer2 + 2], a
ld a, [hSeconds] ld a, [hSeconds]
ld [StringBuffer2 + 3], a ld [StringBuffer2 + 3], a
jr Function677 ; useless jr InitTime ; useless
Function677:: ; 677 InitTime:: ; 677
callba Function140ed callba _InitTime
ret ret
; 67e ; 67e

View File

@ -654,14 +654,14 @@ endr
ld [CurPartyMon], a ld [CurPartyMon], a
ld a, BOXMON ld a, BOXMON
ld [MonType], a ld [MonType], a
ld de, wd050 ld de, wMonOrItemNameBuffer
ld b, $0 ld b, $0
callba NamingScreen callba NamingScreen
ld a, BANK(sBoxMonNicknames) ld a, BANK(sBoxMonNicknames)
call GetSRAMBank call GetSRAMBank
ld hl, wd050 ld hl, wMonOrItemNameBuffer
ld de, sBoxMonNicknames ld de, sBoxMonNicknames
ld bc, PKMN_NAME_LENGTH ld bc, PKMN_NAME_LENGTH
call CopyBytes call CopyBytes
@ -677,7 +677,7 @@ endr
call GetSRAMBank call GetSRAMBank
ld hl, sBoxMonNicknames ld hl, sBoxMonNicknames
ld de, wd050 ld de, wMonOrItemNameBuffer
ld bc, PKMN_NAME_LENGTH ld bc, PKMN_NAME_LENGTH
call CopyBytes call CopyBytes

View File

@ -92,11 +92,11 @@ dab: MACRO ; dwb address, bank
ENDM ENDM
lb: MACRO ; r, hi, lo lb: MACRO ; r, hi, lo
ld \1, (\2) << 8 + (\3) ld \1, (\2 & $ff) << 8 + (\3 & $ff)
ENDM ENDM
ln: MACRO ; r, hi, lo ln: MACRO ; r, hi, lo
ld \1, (\2) << 4 + (\3) ld \1, (\2 & $f) << 4 + (\3 & $f)
ENDM ENDM
bccoord equs "coord bc," bccoord equs "coord bc,"

View File

@ -6737,7 +6737,7 @@ GivePoke:: ; e277
ld [MonType], a ld [MonType], a
xor a xor a
ld [CurPartyMon], a ld [CurPartyMon], a
ld de, wd050_MonNick ld de, wMonOrItemNameBuffer
pop bc pop bc
ld a, b ld a, b
ld b, 1 ld b, 1
@ -6756,7 +6756,7 @@ GivePoke:: ; e277
ld [TempEnemyMonSpecies], a ld [TempEnemyMonSpecies], a
call GetPokemonName call GetPokemonName
ld hl, StringBuffer1 ld hl, StringBuffer1
ld de, wd050_MonNick ld de, wMonOrItemNameBuffer
ld bc, PKMN_NAME_LENGTH ld bc, PKMN_NAME_LENGTH
call CopyBytes call CopyBytes
pop af pop af
@ -6868,7 +6868,7 @@ endr
call PrintText call PrintText
ld a, BANK(sBoxMonNicknames) ld a, BANK(sBoxMonNicknames)
call GetSRAMBank call GetSRAMBank
ld hl, wd050 ld hl, wMonOrItemNameBuffer
ld de, sBoxMonNicknames ld de, sBoxMonNicknames
ld bc, PKMN_NAME_LENGTH ld bc, PKMN_NAME_LENGTH
call CopyBytes call CopyBytes
@ -6965,7 +6965,7 @@ _BillsPC: ; e3fd
ld [wMenuCursorBuffer], a ld [wMenuCursorBuffer], a
call SetPalettes call SetPalettes
xor a xor a
ld [wcf76], a ld [wWhichIndexSet], a
ld [hBGMapMode], a ld [hBGMapMode], a
call DoNthMenu call DoNthMenu
jr c, .cancel jr c, .cancel
@ -11097,7 +11097,7 @@ CheckPartyFullAfterContest: ; 4d9e5
ld [wd265], a ld [wd265], a
call GetPokemonName call GetPokemonName
ld hl, StringBuffer1 ld hl, StringBuffer1
ld de, wd050 ld de, wMonOrItemNameBuffer
ld bc, PKMN_NAME_LENGTH ld bc, PKMN_NAME_LENGTH
call CopyBytes call CopyBytes
call GiveANickname_YesNo call GiveANickname_YesNo
@ -11107,7 +11107,7 @@ CheckPartyFullAfterContest: ; 4d9e5
ld [CurPartyMon], a ld [CurPartyMon], a
xor a xor a
ld [MonType], a ld [MonType], a
ld de, wd050 ld de, wMonOrItemNameBuffer
callab InitNickname callab InitNickname
.Party_SkipNickname .Party_SkipNickname
@ -11117,7 +11117,7 @@ CheckPartyFullAfterContest: ; 4d9e5
call SkipNames call SkipNames
ld d, h ld d, h
ld e, l ld e, l
ld hl, wd050 ld hl, wMonOrItemNameBuffer
call CopyBytes call CopyBytes
ld a, [PartyCount] ld a, [PartyCount]
dec a dec a
@ -11169,9 +11169,9 @@ CheckPartyFullAfterContest: ; 4d9e5
jr c, .Box_SkipNickname jr c, .Box_SkipNickname
ld a, BOXMON ld a, BOXMON
ld [MonType], a ld [MonType], a
ld de, wd050_MonNick ld de, wMonOrItemNameBuffer
callab InitNickname callab InitNickname
ld hl, wd050_MonNick ld hl, wMonOrItemNameBuffer
.Box_SkipNickname .Box_SkipNickname
ld a, BANK(sBoxMonNicknames) ld a, BANK(sBoxMonNicknames)

View File

@ -3390,16 +3390,16 @@ Function8a5b6: ; 8a5b6 (22:65b6)
ld a, $5 ld a, $5
ld [rSVBK], a ld [rSVBK], a
ld hl, Palette_8a5e5 ld hl, Palette_8a5e5
ld de, wd020 ld de, UnknBGPals + 4 palettes
ld bc, $18 ld bc, 3 palettes
call CopyBytes call CopyBytes
ld hl, Palette_8a5fd ld hl, Palette_8a5fd
ld de, UnknOBPals ld de, UnknOBPals
ld bc, $8 ld bc, 1 palettes
call CopyBytes call CopyBytes
ld hl, Palette_8a605 ld hl, Palette_8a605
ld de, wd048 ld de, UnknOBPals + 1 palettes
ld bc, $8 ld bc, 1 palettes
call CopyBytes call CopyBytes
pop af pop af
ld [rSVBK], a ld [rSVBK], a
@ -3411,10 +3411,12 @@ Palette_8a5e5: ; 8a5e5
RGB 27, 19, 00 RGB 27, 19, 00
RGB 07, 11, 22 RGB 07, 11, 22
RGB 00, 00, 00 RGB 00, 00, 00
RGB 31, 31, 31 RGB 31, 31, 31
RGB 16, 16, 31 RGB 16, 16, 31
RGB 27, 19, 00 RGB 27, 19, 00
RGB 00, 00, 00 RGB 00, 00, 00
RGB 31, 31, 31 RGB 31, 31, 31
RGB 31, 00, 00 RGB 31, 00, 00
RGB 27, 19, 00 RGB 27, 19, 00
@ -3442,7 +3444,7 @@ Function8a60d: ; 8a60d
ld [rSVBK], a ld [rSVBK], a
ld hl, Palette_8a624 ld hl, Palette_8a624
ld de, UnknOBPals ld de, UnknOBPals
ld bc, $0008 ld bc, 1 palettes
call CopyBytes call CopyBytes
pop af pop af
ld [rSVBK], a ld [rSVBK], a

View File

@ -3059,7 +3059,7 @@ Function10138b: ; 10138b
Function1013aa: ; 1013aa Function1013aa: ; 1013aa
call ClearBGPalettes call ClearBGPalettes
call Call_ExitMenu call Call_ExitMenu
call Function2bae call ReloadTilesetAndPalettes
callba Function106464 callba Function106464
call UpdateSprites call UpdateSprites
call Function2b5c call Function2b5c

View File

@ -5781,13 +5781,13 @@ Function116294: ; 116294
push af push af
ld a, $5 ld a, $5
ld [rSVBK], a ld [rSVBK], a
ld hl, wd030 ld hl, UnknBGPals + 8 * 6
ld de, wc314 + 12 ld de, wc314 + 12
ld bc, $0010 ld bc, 2 palettes
call CopyBytes call CopyBytes
ld hl, Palette_11734e ld hl, Palette_11734e
ld de, UnknBGPals + 8 * 7 ld de, UnknBGPals + 8 * 7
ld bc, $0008 ld bc, 1 palettes
call CopyBytes call CopyBytes
call SetPalettes call SetPalettes
pop af pop af
@ -5807,8 +5807,8 @@ Function1162cb: ; 1162cb
ld a, $5 ld a, $5
ld [rSVBK], a ld [rSVBK], a
ld hl, Palette_11730e ld hl, Palette_11730e
ld de, wd050 ld de, UnknOBPals + 2 palettes
ld bc, $0030 ld bc, 6 palettes
call CopyBytes call CopyBytes
call SetPalettes call SetPalettes
pop af pop af
@ -5821,7 +5821,7 @@ Function1162f2: ; 1162f2
call Function116758 call Function116758
call Function1167a6 call Function1167a6
ld a, [wc310] ld a, [wc310]
cp $fd cp EGG
ret z ret z
sla a sla a
ld c, a ld c, a

View File

@ -5690,7 +5690,7 @@ Function11a9c0: ; 11a9c0
Function11a9ce: ; 11a9ce Function11a9ce: ; 11a9ce
call ClearBGPalettes call ClearBGPalettes
call Function2bae call ReloadTilesetAndPalettes
call Call_ExitMenu call Call_ExitMenu
callba MobileFunc_106462 callba MobileFunc_106462
callba Function106464 callba Function106464

View File

@ -711,11 +711,11 @@ Function16cbd1: ; 16cbd1
ld hl, Unknown_16cbfb ld hl, Unknown_16cbfb
add hl, bc add hl, bc
ld a, [hl] ld a, [hl]
ld bc, $0002 ld bc, 2
ld hl, Unknown_16cfa3 ld hl, Unknown_16cfa3
call AddNTimes call AddNTimes
ld de, wd00c ld de, UnknBGPals + 1 palettes + 4
ld bc, $0002 ld bc, 2
ld a, $5 ld a, $5
call FarCopyWRAM call FarCopyWRAM
callba ApplyPals callba ApplyPals
@ -749,19 +749,19 @@ Function16cc18: ; 16cc18
Function16cc25: ; 16cc25 Function16cc25: ; 16cc25
ld hl, Unknown_16cfa9 ld hl, Unknown_16cfa9
ld de, wd008 ld de, UnknBGPals + 1 palettes
call Function16cc41 call .CopyPal
ld hl, Unknown_16cfb1 ld hl, Unknown_16cfb1
ld de, UnknOBPals ld de, UnknOBPals
call Function16cc41 call .CopyPal
ld hl, Unknown_16cfb9 ld hl, Unknown_16cfb9
ld de, wd048 ld de, UnknOBPals + 1 palettes
call Function16cc41 call .CopyPal
ret ret
; 16cc41 ; 16cc41
Function16cc41: ; 16cc41 .CopyPal: ; 16cc41
ld bc, $0008 ld bc, 1 palettes
ld a, $5 ld a, $5
jp FarCopyWRAM jp FarCopyWRAM
; 16cc49 ; 16cc49

View File

@ -1,4 +1,4 @@
BattleText_PlayerPickuedUpPayDayMoney: ; 0x80730 BattleText_PlayerPickedUpPayDayMoney: ; 0x80730
text "<PLAYER> picked up" text "<PLAYER> picked up"
line "¥@" line "¥@"
deciram wPayDayMoney, 3, 6 deciram wPayDayMoney, 3, 6

View File

@ -600,7 +600,7 @@ UnknownText_0x1bc83a: ; 0x1bc83a
UnknownText_0x1bc84b: ; 0x1bc84b UnknownText_0x1bc84b: ; 0x1bc84b
text "" text ""
line "OAK: @" line "OAK: @"
text_from_ram wd050 text_from_ram wMonOrItemNameBuffer
db "@" db "@"
; 0x1bc857 ; 0x1bc857
@ -1307,7 +1307,7 @@ Text_EnemyWithdrew: ; 0x1bcf9c
Text_EnemyUsedOn: ; 0x1bcfaf Text_EnemyUsedOn: ; 0x1bcfaf
text "<ENEMY>" text "<ENEMY>"
line "used @" line "used @"
text_from_ram wd050 text_from_ram wMonOrItemNameBuffer
text "" text ""
cont "on @" cont "on @"
text_from_ram EnemyMonNick text_from_ram EnemyMonNick
@ -1604,7 +1604,7 @@ UnknownText_0x1bd407: ; 0x1bd407
UnknownText_0x1bd429: ; 0x1bd429 UnknownText_0x1bd429: ; 0x1bd429
text "<PLAYER> traded" text "<PLAYER> traded"
line "@" line "@"
text_from_ram wd050 text_from_ram wMonOrItemNameBuffer
text " for" text " for"
cont "@" cont "@"
text_from_ram StringBuffer2 text_from_ram StringBuffer2
@ -1714,7 +1714,7 @@ UnknownText_0x1bd5cc: ; 0x1bd5cc
UnknownText_0x1bd5f4: ; 0x1bd5f4 UnknownText_0x1bd5f4: ; 0x1bd5f4
text "Hi! The @" text "Hi! The @"
text_from_ram wd050 text_from_ram wMonOrItemNameBuffer
text "" text ""
line "you traded me is" line "you traded me is"
cont "doing great!" cont "doing great!"
@ -1722,7 +1722,7 @@ UnknownText_0x1bd5f4: ; 0x1bd5f4
; 0x1bd621 ; 0x1bd621
UnknownText_0x1bd621: ; 0x1bd621 UnknownText_0x1bd621: ; 0x1bd621
text_from_ram wd050 text_from_ram wMonOrItemNameBuffer
text "'s cute," text "'s cute,"
line "but I don't have" line "but I don't have"
@ -1759,7 +1759,7 @@ UnknownText_0x1bd6cd: ; 0x1bd6cd
text "Wow! Thank you!" text "Wow! Thank you!"
line "I always wanted" line "I always wanted"
cont "@" cont "@"
text_from_ram wd050 text_from_ram wMonOrItemNameBuffer
text "!" text "!"
done done
; 0x1bd6f5 ; 0x1bd6f5
@ -1772,7 +1772,7 @@ UnknownText_0x1bd6f5: ; 0x1bd6f5
cont "traded you doing?" cont "traded you doing?"
para "Your @" para "Your @"
text_from_ram wd050 text_from_ram wMonOrItemNameBuffer
text "'s" text "'s"
line "so cute!" line "so cute!"
done done

View File

@ -1641,7 +1641,7 @@ UnknownText_0x1c1b03: ; 1c1b03
UnknownText_0x1c1b2c: ; 1c1b2c UnknownText_0x1c1b2c: ; 1c1b2c
text "Took @" text "Took @"
text_from_ram wd050_MonNick text_from_ram wMonOrItemNameBuffer
text "'s" text "'s"
line "@" line "@"
text_from_ram StringBuffer1 text_from_ram StringBuffer1
@ -1656,7 +1656,7 @@ UnknownText_0x1c1b2c: ; 1c1b2c
UnknownText_0x1c1b57: ; 1c1b57 UnknownText_0x1c1b57: ; 1c1b57
text "Made @" text "Made @"
text_from_ram wd050_MonNick text_from_ram wMonOrItemNameBuffer
text "" text ""
line "hold @" line "hold @"
text_from_ram StringBuffer2 text_from_ram StringBuffer2
@ -1671,7 +1671,7 @@ UnknownText_0x1c1b6f: ; 1c1b6f
; 1c1b8e ; 1c1b8e
UnknownText_0x1c1b8e: ; 1c1b8e UnknownText_0x1c1b8e: ; 1c1b8e
text_from_ram wd050_MonNick text_from_ram wMonOrItemNameBuffer
text " isn't" text " isn't"
line "holding anything." line "holding anything."
prompt prompt
@ -1688,13 +1688,13 @@ UnknownText_0x1c1bc4: ; 1c1bc4
text_from_ram StringBuffer1 text_from_ram StringBuffer1
text "" text ""
line "from @" line "from @"
text_from_ram wd050_MonNick text_from_ram wMonOrItemNameBuffer
text "." text "."
prompt prompt
; 1c1bdc ; 1c1bdc
UnknownText_0x1c1bdc: ; 1c1bdc UnknownText_0x1c1bdc: ; 1c1bdc
text_from_ram wd050_MonNick text_from_ram wMonOrItemNameBuffer
text " is" text " is"
line "already holding" line "already holding"

View File

@ -1045,7 +1045,7 @@ UnknownText_0x1c564a: ; 0x1c564a
; 0x1c5660 ; 0x1c5660
UnknownText_0x1c5660: ; 0x1c5660 UnknownText_0x1c5660: ; 0x1c5660
text_from_ram wd050_MonNick text_from_ram wMonOrItemNameBuffer
text " learned" text " learned"
line "@" line "@"
text_from_ram StringBuffer2 text_from_ram StringBuffer2
@ -1074,7 +1074,7 @@ UnknownText_0x1c5699: ; 0x1c5699
; 0x1c56af ; 0x1c56af
UnknownText_0x1c56af: ; 0x1c56af UnknownText_0x1c56af: ; 0x1c56af
text_from_ram wd050_MonNick text_from_ram wMonOrItemNameBuffer
text "" text ""
line "did not learn" line "did not learn"
cont "@" cont "@"
@ -1084,7 +1084,7 @@ UnknownText_0x1c56af: ; 0x1c56af
; 0x1c56c9 ; 0x1c56c9
UnknownText_0x1c56c9: ; 0x1c56c9 UnknownText_0x1c56c9: ; 0x1c56c9
text_from_ram wd050_MonNick text_from_ram wMonOrItemNameBuffer
text " is" text " is"
line "trying to learn" line "trying to learn"
cont "@" cont "@"
@ -1092,7 +1092,7 @@ UnknownText_0x1c56c9: ; 0x1c56c9
text "." text "."
para "But @" para "But @"
text_from_ram wd050_MonNick text_from_ram wMonOrItemNameBuffer
text "" text ""
line "can't learn more" line "can't learn more"
cont "than four moves." cont "than four moves."
@ -1120,7 +1120,7 @@ UnknownText_0x1c574e: ; 0x1c574e
interpret_data interpret_data
text "" text ""
para "@" para "@"
text_from_ram wd050_MonNick text_from_ram wMonOrItemNameBuffer
text " forgot" text " forgot"
line "@" line "@"
text_from_ram StringBuffer1 text_from_ram StringBuffer1
@ -1385,7 +1385,7 @@ UnknownText_0x1c5b37: ; 0x1c5b37
; 0x1c5b38 ; 0x1c5b38
UnknownText_0x1c5b38: ; 0x1c5b38 UnknownText_0x1c5b38: ; 0x1c5b38
text_from_ram wd050 text_from_ram wMonOrItemNameBuffer
text " was" text " was"
line "sent to BILL's PC." line "sent to BILL's PC."
prompt prompt

View File

@ -1493,7 +1493,7 @@ wWindowStackPointer:: dw ; cf71
wMenuJoypad:: ds 1 ; cf73 wMenuJoypad:: ds 1 ; cf73
MenuSelection:: ds 1 ; cf74 MenuSelection:: ds 1 ; cf74
MenuSelectionQuantity:: ds 1 ; cf75 MenuSelectionQuantity:: ds 1 ; cf75
wcf76:: ds 1 wWhichIndexSet:: ds 1
wScrollingMenuCursorPosition:: ds 1 wScrollingMenuCursorPosition:: ds 1
wWindowStackSize:: ds 9 wWindowStackSize:: ds 9
@ -1691,29 +1691,45 @@ wSeerCaughtGender:: ds 1
wBufferMonNick:: ds PKMN_NAME_LENGTH wBufferMonNick:: ds PKMN_NAME_LENGTH
wBufferMonOT:: ds NAME_LENGTH wBufferMonOT:: ds NAME_LENGTH
wBufferMon:: party_struct wBufferMon wBufferMon:: party_struct wBufferMon
ds 8
wMonOrItemNameBuffer::
ds wBufferMonNick - @ ds wBufferMonNick - @
wd002:: bugcontestwinner: macro
\1PersonID:: ds 1
\1Mon:: ds 1
\1Score:: ds 2
endm
wBugContestResults::
bugcontestwinner wBugContestFirstPlace
bugcontestwinner wBugContestSecondPlace
bugcontestwinner wBugContestThirdPlace
wBugContestWinnersEnd::
bugcontestwinner wBugContestTemp
ds 4
wBugContestWinnerName:: ds NAME_LENGTH
ds wBugContestResults - @
wd002::
wTempDayOfWeek::
wApricorns::
PhoneScriptBank:: PhoneScriptBank::
LuckyNumberDigit1Buffer:: LuckyNumberDigit1Buffer::
wCurrentRadioLine:: wCurrentRadioLine::
wMovementBufferCount:: wMovementBufferCount::
wMartItem1BCD:: wMartItem1BCD::
wBugContestFirstPlacePersonID::
ds 1 ds 1
wd003:: wd003::
LuckyNumberDigit2Buffer:: LuckyNumberDigit2Buffer::
PhoneCallerLo:: PhoneCallerLo::
wNextRadioLine:: wNextRadioLine::
wMovementBufferPerson:: wMovementBufferPerson::
wBugContestFirstPlaceMon::
ds 1 ds 1
wd004:: wd004::
LuckyNumberDigit3Buffer:: LuckyNumberDigit3Buffer::
PhoneCallerHi:: PhoneCallerHi::
wRadioTextDelay:: wRadioTextDelay::
wBugContestFirstPlaceScore::
ds 1 ds 1
wd005:: wd005::
LuckyNumberDigit4Buffer:: LuckyNumberDigit4Buffer::
@ -1726,20 +1742,15 @@ wMobileParticipant1Nickname::
LuckyNumberDigit5Buffer:: LuckyNumberDigit5Buffer::
EndFlypoint:: ; d006 EndFlypoint:: ; d006
wOaksPkmnTalkSegmentCounter:: wOaksPkmnTalkSegmentCounter::
wBugContestSecondPlacePersonID::
ds 1 ds 1
wd007:: wd007::
MovementBuffer:: ; d007 MovementBuffer:: ; d007
wBugContestSecondPlaceMon::
ds 1 ds 1
wMartItem3BCD:: wMartItem3BCD::
wBugContestSecondPlaceScore::
wd008:: ds 2 wd008:: ds 2
wBugContestThirdPlacePersonID::
wd00a:: ds 1 wd00a:: ds 1
wBugContestThirdPlaceMon::
wMartItem4BCD:: wMartItem4BCD::
wd00b:: ds 1 wd00b:: ds 1
@ -1748,15 +1759,11 @@ wRadioTextEnd::
ds wRadioText - @ ds wRadioText - @
wMobileParticipant2Nickname:: wMobileParticipant2Nickname::
wBugContestThirdPlaceScore::
wd00c:: ds 1 wd00c:: ds 1
wd00d:: ds 1 wd00d:: ds 1
wMartItem5BCD:: wMartItem5BCD::
wBugContestTempPersonID::
wd00e:: ds 1 wd00e:: ds 1
wBugContestTempMon::
wd00f:: ds 1 wd00f:: ds 1
wBugContestTempScore::
wd010:: ds 1 wd010:: ds 1
wMartItem6BCD:: wMartItem6BCD::
wd011:: ds 1 wd011:: ds 1
@ -1765,7 +1772,6 @@ wd012:: ds 1
wd013:: ds 1 wd013:: ds 1
wMartItem7BCD:: wMartItem7BCD::
wd014:: ds 2 wd014:: ds 2
wBugContestWinnerName::
wd016:: ds 1 wd016:: ds 1
wMartItem8BCD:: wMartItem8BCD::
wd017:: ds 1 wd017:: ds 1
@ -1846,20 +1852,14 @@ WalkingTile:: ; d047
wWinTextPointer:: wWinTextPointer::
ds 1 ds 1
wd048:: ds 1 wPhoneScriptPointer:: ds 1
wLossTextPointer:: ds 2 wLossTextPointer:: ds 2
wScriptAfterPointer:: wScriptAfterPointer:: ds 2
wd04b:: ds 2
wRunningTrainerBattleScript:: ds 1 wRunningTrainerBattleScript:: ds 1
MenuItemsListEnd:: MenuItemsListEnd::
wTempTrainerHeaderEnd:: wTempTrainerHeaderEnd::
wd04e:: ds 2 wd04e:: ds 24
wOaksPkmnTalkPkmnNameBuffer:: wTMHMMoveNameBackup:: ds MOVE_NAME_LENGTH
wd050_MonNick::
wd050:: ds PKMN_NAME_LENGTH +- 1
wd05a:: ds 12
wd066:: ds 10
wd070:: ds 3
StringBuffer1:: ; d073 StringBuffer1:: ; d073
ds 19 ds 19
@ -3059,7 +3059,7 @@ wDaycareLady:: ; df2c
wStepsToEgg:: ; df2d wStepsToEgg:: ; df2d
ds 1 ds 1
wDittoInDaycare:: ; df2e wBreedMotherOrNonDitto:: ; df2e
; z: yes ; z: yes
; nz: no ; nz: no
ds 1 ds 1
@ -3195,11 +3195,11 @@ LYOverrides:: ; d100
LYOverridesEnd:: ; d190 LYOverridesEnd:: ; d190
ds 1 ds 1
w5_d191:: ds 1 wMagnetTrainDirection:: ds 1
w5_d192:: ds 1 wMagnetTrainInitPosition:: ds 1
w5_d193:: ds 1 wMagnetTrainHoldPosition:: ds 1
w5_d194:: ds 1 wMagnetTrainFinalPosition:: ds 1
w5_d195:: ds 1 wMagnetTrainPlayerSpriteInitX:: ds 1
ds 106 ds 106
LYOverridesBackup:: ; d200 LYOverridesBackup:: ; d200