mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
changed more labels
This commit is contained in:
parent
0d4c2776d9
commit
a7cb2a5e9b
@ -9,7 +9,7 @@ AI_SwitchOrTryItem: ; 38000
|
|||||||
and a
|
and a
|
||||||
ret nz
|
ret nz
|
||||||
|
|
||||||
callba Function3e8d1
|
callba CheckSubstatus_RechargeChargedRampageBideRollout
|
||||||
ret nz
|
ret nz
|
||||||
|
|
||||||
ld a, [PlayerSubStatus5]
|
ld a, [PlayerSubStatus5]
|
||||||
@ -24,6 +24,7 @@ AI_SwitchOrTryItem: ; 38000
|
|||||||
ld a, [InBattleTowerBattle] ; Load always the first TrainerClass for BattleTower-Trainers
|
ld a, [InBattleTowerBattle] ; Load always the first TrainerClass for BattleTower-Trainers
|
||||||
and a
|
and a
|
||||||
jr nz, .ok
|
jr nz, .ok
|
||||||
|
|
||||||
ld a, [TrainerClass]
|
ld a, [TrainerClass]
|
||||||
dec a
|
dec a
|
||||||
ld bc, 7
|
ld bc, 7
|
||||||
@ -787,17 +788,17 @@ Function38511: ; 38511
|
|||||||
; 3851e
|
; 3851e
|
||||||
|
|
||||||
Function3851e: ; 3851e
|
Function3851e: ; 3851e
|
||||||
ld [hMultiplier], a
|
ld [hDivisor], a
|
||||||
ld hl, EnemyMonMaxHP
|
ld hl, EnemyMonMaxHP
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld [hProduct], a
|
ld [hDividend + 0], a
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
ld [hMultiplicand], a
|
ld [hDividend + 1], a
|
||||||
ld b, $2
|
ld b, $2
|
||||||
call Divide
|
call Divide
|
||||||
ld a, [$ffb6]
|
ld a, [hQuotient + 2]
|
||||||
ld c, a
|
ld c, a
|
||||||
ld a, [$ffb5]
|
ld a, [hQuotient + 1]
|
||||||
ld b, a
|
ld b, a
|
||||||
ld hl, EnemyMonHP + 1
|
ld hl, EnemyMonHP + 1
|
||||||
ld a, [hld]
|
ld a, [hld]
|
||||||
|
@ -1783,8 +1783,8 @@ AI_Smart_PriorityHit: ; 38d5a
|
|||||||
ld [hBattleTurn], a
|
ld [hBattleTurn], a
|
||||||
push hl
|
push hl
|
||||||
callab EnemyAttackDamage
|
callab EnemyAttackDamage
|
||||||
callab BattleCommand62
|
callab BattleCommand62_DamageCalcWithStats
|
||||||
callab BattleCommand07
|
callab BattleCommand07_CalcDamageTypeMultiplier
|
||||||
pop hl
|
pop hl
|
||||||
ld a, [CurDamage + 1]
|
ld a, [CurDamage + 1]
|
||||||
ld c, a
|
ld c, a
|
||||||
@ -3380,8 +3380,8 @@ AIDamageCalc: ; 393e7
|
|||||||
|
|
||||||
.asm_39400
|
.asm_39400
|
||||||
callab EnemyAttackDamage
|
callab EnemyAttackDamage
|
||||||
callab BattleCommand62
|
callab BattleCommand62_DamageCalcWithStats
|
||||||
callab BattleCommand07
|
callab BattleCommand07_CalcDamageTypeMultiplier
|
||||||
ret
|
ret
|
||||||
|
|
||||||
.ConstantDamageEffects
|
.ConstantDamageEffects
|
||||||
|
360
battle/core.asm
360
battle/core.asm
File diff suppressed because it is too large
Load Diff
@ -8,7 +8,7 @@ BattleCommandPointers: ; 3fd28
|
|||||||
dw BattleCommand04 ; 34555
|
dw BattleCommand04 ; 34555
|
||||||
dw BattleCommand05 ; 34631
|
dw BattleCommand05 ; 34631
|
||||||
dw BattleCommand06 ; 352dc
|
dw BattleCommand06 ; 352dc
|
||||||
dw BattleCommand07 ; 346d2
|
dw BattleCommand07_CalcDamageTypeMultiplier ; 346d2
|
||||||
dw BattleCommand08 ; 34cfd
|
dw BattleCommand08 ; 34cfd
|
||||||
dw BattleCommand09 ; 34d32
|
dw BattleCommand09 ; 34d32
|
||||||
dw BattleCommand0a ; 34eee
|
dw BattleCommand0a ; 34eee
|
||||||
@ -99,7 +99,7 @@ BattleCommandPointers: ; 3fd28
|
|||||||
dw BattleCommand5f ; 377ce
|
dw BattleCommand5f ; 377ce
|
||||||
dw BattleCommand60 ; 3784b
|
dw BattleCommand60 ; 3784b
|
||||||
dw BattleCommand61 ; 37874
|
dw BattleCommand61 ; 37874
|
||||||
dw BattleCommand62 ; 35612
|
dw BattleCommand62_DamageCalcWithStats ; 35612
|
||||||
dw BattleCommand63 ; 3790e
|
dw BattleCommand63 ; 3790e
|
||||||
dw BattleCommand64 ; 37939
|
dw BattleCommand64 ; 37939
|
||||||
dw BattleCommand65 ; 37972
|
dw BattleCommand65 ; 37972
|
||||||
@ -170,7 +170,7 @@ BattleCommandPointers: ; 3fd28
|
|||||||
dw BattleCommanda6 ; 365af
|
dw BattleCommanda6 ; 365af
|
||||||
dw BattleCommanda7 ; 365c3
|
dw BattleCommanda7 ; 365c3
|
||||||
dw BattleCommanda8 ; 355b5
|
dw BattleCommanda8 ; 355b5
|
||||||
dw BattleCommanda9 ; 355d5
|
dw BattleCommanda9_IfAttackMissedResetDamage ; 355d5
|
||||||
dw BattleCommandaa ; 37e80
|
dw BattleCommandaa ; 37e80
|
||||||
dw BattleCommandab ; 34f57
|
dw BattleCommandab ; 34f57
|
||||||
dw BattleCommandac ; 3658f
|
dw BattleCommandac ; 3658f
|
||||||
|
@ -539,7 +539,7 @@ CheckEnemyTurn: ; 3421f
|
|||||||
ld hl, HurtItselfText
|
ld hl, HurtItselfText
|
||||||
call StdBattleTextBox
|
call StdBattleTextBox
|
||||||
call Function355dd
|
call Function355dd
|
||||||
call BattleCommand62
|
call BattleCommand62_DamageCalcWithStats
|
||||||
call BattleCommand0a
|
call BattleCommand0a
|
||||||
xor a
|
xor a
|
||||||
ld [wcfca], a
|
ld [wcfca], a
|
||||||
@ -652,7 +652,7 @@ HitConfusion: ; 343a5
|
|||||||
ld [CriticalHit], a
|
ld [CriticalHit], a
|
||||||
|
|
||||||
call Function355dd
|
call Function355dd
|
||||||
call BattleCommand62
|
call BattleCommand62_DamageCalcWithStats
|
||||||
call BattleCommand0a
|
call BattleCommand0a
|
||||||
|
|
||||||
xor a
|
xor a
|
||||||
@ -1336,8 +1336,8 @@ BattleCommand4f: ; 346cd
|
|||||||
; 346d2
|
; 346d2
|
||||||
|
|
||||||
|
|
||||||
BattleCommand07: ; 346d2
|
BattleCommand07_CalcDamageTypeMultiplier: ; 346d2
|
||||||
; stab
|
; STAB = Same Type Attack Bonus
|
||||||
ld a, BATTLE_VARS_MOVE_ANIM
|
ld a, BATTLE_VARS_MOVE_ANIM
|
||||||
call GetBattleVar
|
call GetBattleVar
|
||||||
cp STRUGGLE
|
cp STRUGGLE
|
||||||
@ -1354,7 +1354,7 @@ BattleCommand07: ; 346d2
|
|||||||
|
|
||||||
ld a, [hBattleTurn]
|
ld a, [hBattleTurn]
|
||||||
and a
|
and a
|
||||||
jr z, .go
|
jr z, .go ; Who Attacks and who Defends
|
||||||
|
|
||||||
ld hl, EnemyMonType1
|
ld hl, EnemyMonType1
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
@ -3932,6 +3932,7 @@ BattleCommanda8: ; 355b5
|
|||||||
ld a, [wc72d]
|
ld a, [wc72d]
|
||||||
and a
|
and a
|
||||||
ret nz
|
ret nz
|
||||||
|
|
||||||
jp PrintButItFailed
|
jp PrintButItFailed
|
||||||
; 355bd
|
; 355bd
|
||||||
|
|
||||||
@ -3955,11 +3956,12 @@ Function355bd: ; 355bd
|
|||||||
; 355d5
|
; 355d5
|
||||||
|
|
||||||
|
|
||||||
BattleCommanda9: ; 355d5
|
BattleCommanda9_IfAttackMissedResetDamage: ; 355d5
|
||||||
; clearmissdamage
|
; clearmissdamage
|
||||||
ld a, [AttackMissed]
|
ld a, [AttackMissed]
|
||||||
and a
|
and a
|
||||||
ret z
|
ret z
|
||||||
|
|
||||||
jp ResetDamage
|
jp ResetDamage
|
||||||
; 355dd
|
; 355dd
|
||||||
|
|
||||||
@ -4002,7 +4004,7 @@ endr
|
|||||||
; 35612
|
; 35612
|
||||||
|
|
||||||
|
|
||||||
BattleCommand62: ; 35612
|
BattleCommand62_DamageCalcWithStats: ; 35612
|
||||||
; damagecalc
|
; damagecalc
|
||||||
|
|
||||||
; Return a damage value for move power d, player level e, enemy defense c and player attack b.
|
; Return a damage value for move power d, player level e, enemy defense c and player attack b.
|
||||||
@ -4136,12 +4138,12 @@ endr
|
|||||||
; Update CurDamage (capped at 997).
|
; Update CurDamage (capped at 997).
|
||||||
ld hl, CurDamage
|
ld hl, CurDamage
|
||||||
ld b, [hl]
|
ld b, [hl]
|
||||||
ld a, [$ffb6]
|
ld a, [hQuotient + 2]
|
||||||
add b
|
add b
|
||||||
ld [$ffb6], a
|
ld [$ffb6], a
|
||||||
jr nc, .asm_356a5
|
jr nc, .asm_356a5
|
||||||
|
|
||||||
ld a, [$ffb5]
|
ld a, [hQuotient + 1]
|
||||||
inc a
|
inc a
|
||||||
ld [$ffb5], a
|
ld [$ffb5], a
|
||||||
and a
|
and a
|
||||||
@ -4395,22 +4397,22 @@ BattleCommand3f: ; 35726
|
|||||||
ld a, [hBattleTurn]
|
ld a, [hBattleTurn]
|
||||||
and a
|
and a
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
jr nz, .asm_357f8
|
jr nz, .notPlayersTurn
|
||||||
|
|
||||||
ld hl, wPlayerMoveStruct + MOVE_POWER
|
ld hl, wPlayerMoveStruct + MOVE_POWER
|
||||||
ld [hl], a
|
ld [hl], a
|
||||||
push hl
|
push hl
|
||||||
call PlayerAttackDamage
|
call PlayerAttackDamage
|
||||||
jr .asm_35800
|
jr .notEnemysTurn
|
||||||
|
|
||||||
.asm_357f8
|
.notPlayersTurn
|
||||||
ld hl, wEnemyMoveStruct + MOVE_POWER
|
ld hl, wEnemyMoveStruct + MOVE_POWER
|
||||||
ld [hl], a
|
ld [hl], a
|
||||||
push hl
|
push hl
|
||||||
call EnemyAttackDamage
|
call EnemyAttackDamage
|
||||||
|
|
||||||
.asm_35800
|
.notEnemysTurn
|
||||||
call BattleCommand62
|
call BattleCommand62_DamageCalcWithStats
|
||||||
pop hl
|
pop hl
|
||||||
ld [hl], 1
|
ld [hl], 1
|
||||||
ret
|
ret
|
||||||
@ -7200,7 +7202,7 @@ BattleCommand23: ; 3680f
|
|||||||
ld a, [BattleType]
|
ld a, [BattleType]
|
||||||
cp BATTLETYPE_SHINY
|
cp BATTLETYPE_SHINY
|
||||||
jp z, .asm_36969
|
jp z, .asm_36969
|
||||||
cp $9
|
cp BATTLETYPE_TRAP
|
||||||
jp z, .asm_36969
|
jp z, .asm_36969
|
||||||
cp BATTLETYPE_CELEBI
|
cp BATTLETYPE_CELEBI
|
||||||
jp z, .asm_36969
|
jp z, .asm_36969
|
||||||
@ -9498,7 +9500,7 @@ BattleCommand61: ; 37874
|
|||||||
push de
|
push de
|
||||||
.asm_3787d
|
.asm_3787d
|
||||||
|
|
||||||
call BattleCommand07
|
call BattleCommand07_CalcDamageTypeMultiplier
|
||||||
|
|
||||||
ld a, [InLinkBattle]
|
ld a, [InLinkBattle]
|
||||||
cp $3
|
cp $3
|
||||||
@ -9746,7 +9748,7 @@ BattleCommand67: ; 379c9
|
|||||||
call ClearBox
|
call ClearBox
|
||||||
ld b, 1
|
ld b, 1
|
||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
call BatonPass_LinkPlayerSwitch
|
call BatonPass_LinkPlayerSwitch
|
||||||
|
|
||||||
; Mobile link battles handle entrances differently
|
; Mobile link battles handle entrances differently
|
||||||
@ -9787,7 +9789,7 @@ BattleCommand67: ; 379c9
|
|||||||
call CallBattleCore
|
call CallBattleCore
|
||||||
ld a, 1
|
ld a, 1
|
||||||
ld [wd265], a
|
ld [wd265], a
|
||||||
ld hl, Function3ecab
|
ld hl, ApplyStatLevelMultiplierOnAllStats
|
||||||
call CallBattleCore
|
call CallBattleCore
|
||||||
|
|
||||||
ld hl, SpikesDamage
|
ld hl, SpikesDamage
|
||||||
|
@ -187,7 +187,7 @@ Function109847:: ; 109847
|
|||||||
ld [hLCDStatCustom], a
|
ld [hLCDStatCustom], a
|
||||||
|
|
||||||
call GetCreditsPalette
|
call GetCreditsPalette
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
ld a, [hVBlank]
|
ld a, [hVBlank]
|
||||||
push af
|
push af
|
||||||
ld a, $5
|
ld a, $5
|
||||||
@ -447,7 +447,7 @@ endr
|
|||||||
xor a
|
xor a
|
||||||
ld [wcf64], a ; frame
|
ld [wcf64], a ; frame
|
||||||
call GetCreditsPalette
|
call GetCreditsPalette
|
||||||
call Function32f9 ; update hw pal registers
|
call SetPalettes ; update hw pal registers
|
||||||
jr .loop
|
jr .loop
|
||||||
|
|
||||||
.clear
|
.clear
|
||||||
|
@ -33,7 +33,7 @@ Function1dd709: ; 1dd709
|
|||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
ld b, $8
|
ld b, $8
|
||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
ret
|
ret
|
||||||
; 1dd760
|
; 1dd760
|
||||||
|
@ -1021,12 +1021,14 @@ Function96bd3: ; 96bd3
|
|||||||
; 96bd7
|
; 96bd7
|
||||||
|
|
||||||
Function96bd7: ; 96bd7
|
Function96bd7: ; 96bd7
|
||||||
ld a, [wdca1]
|
ld a, [RepelStepsLeft]
|
||||||
and a
|
and a
|
||||||
ret z
|
ret z
|
||||||
|
|
||||||
dec a
|
dec a
|
||||||
ld [wdca1], a
|
ld [RepelStepsLeft], a
|
||||||
ret nz
|
ret nz
|
||||||
|
|
||||||
ld a, BANK(RepelWoreOffScript)
|
ld a, BANK(RepelWoreOffScript)
|
||||||
ld hl, RepelWoreOffScript
|
ld hl, RepelWoreOffScript
|
||||||
call CallScript
|
call CallScript
|
||||||
|
@ -278,7 +278,7 @@ Function97db5: ; 97db5
|
|||||||
call GetMapHeaderPhoneServiceNybble
|
call GetMapHeaderPhoneServiceNybble
|
||||||
and a
|
and a
|
||||||
jr nz, .NoCall
|
jr nz, .NoCall
|
||||||
ld hl, wdca1 + 1
|
ld hl, wdca2
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld d, a
|
ld d, a
|
||||||
ld e, [hl]
|
ld e, [hl]
|
||||||
|
@ -594,7 +594,7 @@ Function103fd: ; 103fd
|
|||||||
callba WritePartyMenuTilemap
|
callba WritePartyMenuTilemap
|
||||||
callba PrintPartyMenuText
|
callba PrintPartyMenuText
|
||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
callba PartyMenuSelect
|
callba PartyMenuSelect
|
||||||
jr c, .asm_10475
|
jr c, .asm_10475
|
||||||
@ -1112,7 +1112,7 @@ Function107bb: ; 107bb
|
|||||||
ld a, [InputType]
|
ld a, [InputType]
|
||||||
or a
|
or a
|
||||||
jr z, .asm_107ca
|
jr z, .asm_107ca
|
||||||
callba Function1de28f
|
callba Start_DudeAutoInput_RightA
|
||||||
|
|
||||||
.asm_107ca
|
.asm_107ca
|
||||||
call Function107d7
|
call Function107d7
|
||||||
@ -1507,7 +1507,7 @@ Function10a40: ; 10a40
|
|||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
ld b, $14
|
ld b, $14
|
||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
ret
|
ret
|
||||||
; 10a4f
|
; 10a4f
|
||||||
|
@ -50,7 +50,7 @@ PredefPointers:: ; 856b
|
|||||||
add_predef PrintMoveDesc
|
add_predef PrintMoveDesc
|
||||||
add_predef UpdatePlayerHUD
|
add_predef UpdatePlayerHUD
|
||||||
add_predef FillBox
|
add_predef FillBox
|
||||||
add_predef Function3d873
|
add_predef CheckPlayerPartyForFitPkmn
|
||||||
add_predef UpdateEnemyHUD
|
add_predef UpdateEnemyHUD
|
||||||
add_predef StartBattle
|
add_predef StartBattle
|
||||||
add_predef FillInExpBar
|
add_predef FillInExpBar
|
||||||
|
30
home.asm
30
home.asm
@ -70,6 +70,7 @@ Function2ebb:: ; 2ebb
|
|||||||
ld a, [wc2cc]
|
ld a, [wc2cc]
|
||||||
bit 1, a
|
bit 1, a
|
||||||
ret z
|
ret z
|
||||||
|
|
||||||
ld a, [hJoyDown]
|
ld a, [hJoyDown]
|
||||||
bit 1, a ; B_BUTTON
|
bit 1, a ; B_BUTTON
|
||||||
ret
|
ret
|
||||||
@ -212,7 +213,8 @@ HideSprites:: ; 3016
|
|||||||
INCLUDE "home/copy2.asm"
|
INCLUDE "home/copy2.asm"
|
||||||
|
|
||||||
|
|
||||||
Function309d:: ; 309d
|
LoadTileMapToTempTileMap:: ; 309d
|
||||||
|
; Load TileMap into TempTileMap
|
||||||
ld a, [rSVBK]
|
ld a, [rSVBK]
|
||||||
push af
|
push af
|
||||||
ld a, BANK(w2_d000)
|
ld a, BANK(w2_d000)
|
||||||
@ -226,16 +228,17 @@ Function309d:: ; 309d
|
|||||||
ret
|
ret
|
||||||
; 30b4
|
; 30b4
|
||||||
|
|
||||||
Function30b4:: ; 30b4
|
Call_LoadTempTileMapToTileMap:: ; 30b4
|
||||||
xor a
|
xor a
|
||||||
ld [hBGMapMode], a
|
ld [hBGMapMode], a
|
||||||
call Function30bf
|
call LoadTempTileMapToTileMap
|
||||||
ld a, 1
|
ld a, 1
|
||||||
ld [hBGMapMode], a
|
ld [hBGMapMode], a
|
||||||
ret
|
ret
|
||||||
; 30bf
|
; 30bf
|
||||||
|
|
||||||
Function30bf:: ; 30bf
|
LoadTempTileMapToTileMap:: ; 30bf
|
||||||
|
; Load TempTileMap into TileMap
|
||||||
ld a, [rSVBK]
|
ld a, [rSVBK]
|
||||||
push af
|
push af
|
||||||
ld a, BANK(w2_d000)
|
ld a, BANK(w2_d000)
|
||||||
@ -676,11 +679,12 @@ endr
|
|||||||
; 32f9
|
; 32f9
|
||||||
|
|
||||||
|
|
||||||
|
SetPalettes:: ; 32f9
|
||||||
Function32f9:: ; 32f9
|
; Inits the Palettes
|
||||||
|
; depending on the system the monochromes palettes or color palettes
|
||||||
ld a, [hCGB]
|
ld a, [hCGB]
|
||||||
and a
|
and a
|
||||||
jr nz, .asm_3309
|
jr nz, .SetPalettesForGameBoyColor
|
||||||
ld a, $e4
|
ld a, $e4
|
||||||
ld [rBGP], a
|
ld [rBGP], a
|
||||||
ld a, $d0
|
ld a, $d0
|
||||||
@ -688,7 +692,7 @@ Function32f9:: ; 32f9
|
|||||||
ld [rOBP1], a
|
ld [rOBP1], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
.asm_3309
|
.SetPalettesForGameBoyColor
|
||||||
push de
|
push de
|
||||||
ld a, $e4
|
ld a, $e4
|
||||||
call DmgToCgbBGPals
|
call DmgToCgbBGPals
|
||||||
@ -959,10 +963,10 @@ GetPokemonName:: ; 343b
|
|||||||
ld h, 0
|
ld h, 0
|
||||||
ld l, a
|
ld l, a
|
||||||
rept 2
|
rept 2
|
||||||
add hl, hl
|
add hl, hl ; hl = hl * 4
|
||||||
endr
|
endr
|
||||||
add hl, de
|
add hl, de ; hl = (hl*4) + de
|
||||||
add hl, hl
|
add hl, hl ; hl = (5*hl) + (5*hl)
|
||||||
ld de, PokemonNames
|
ld de, PokemonNames
|
||||||
add hl, de
|
add hl, de
|
||||||
|
|
||||||
@ -1159,7 +1163,7 @@ Function3524:: ; 3524
|
|||||||
ld hl, VramState
|
ld hl, VramState
|
||||||
bit 0, [hl]
|
bit 0, [hl]
|
||||||
jp nz, UpdateTimePals
|
jp nz, UpdateTimePals
|
||||||
jp Function32f9
|
jp SetPalettes
|
||||||
; 352f
|
; 352f
|
||||||
|
|
||||||
Function352f:: ; 352f
|
Function352f:: ; 352f
|
||||||
@ -1760,7 +1764,7 @@ Function383d:: ; 383d
|
|||||||
Function3842:: ; 3842
|
Function3842:: ; 3842
|
||||||
ld [wd265], a
|
ld [wd265], a
|
||||||
ld de, wd265
|
ld de, wd265
|
||||||
ld b, 1 << 6 + 1
|
ld b, 1 << 6 + 1 ; 65
|
||||||
jp PrintNum
|
jp PrintNum
|
||||||
; 384d
|
; 384d
|
||||||
|
|
||||||
|
@ -410,7 +410,7 @@ Functionac6:: ; ac6
|
|||||||
ld a, [InputType]
|
ld a, [InputType]
|
||||||
or a
|
or a
|
||||||
jr z, .asm_ad9
|
jr z, .asm_ad9
|
||||||
callba Function1de28a
|
callba Start_DudeAutoInput_A
|
||||||
.asm_ad9
|
.asm_ad9
|
||||||
call Functionaf5
|
call Functionaf5
|
||||||
call Functiona57
|
call Functiona57
|
||||||
|
@ -1967,14 +1967,14 @@ Function2b3c:: ; 2b3c
|
|||||||
call WhiteBGMap
|
call WhiteBGMap
|
||||||
call Function2bae
|
call Function2bae
|
||||||
call UpdateSprites
|
call UpdateSprites
|
||||||
call Function1d7d
|
call Call_ExitMenu
|
||||||
call Functiond90
|
call Functiond90
|
||||||
jr Function2b5c
|
jr Function2b5c
|
||||||
; 2b4d
|
; 2b4d
|
||||||
|
|
||||||
Function2b4d:: ; 2b4d
|
Function2b4d:: ; 2b4d
|
||||||
call WhiteBGMap
|
call WhiteBGMap
|
||||||
call Function1d7d
|
call Call_ExitMenu
|
||||||
call Function2bae
|
call Function2bae
|
||||||
call UpdateSprites
|
call UpdateSprites
|
||||||
call Functiond90
|
call Functiond90
|
||||||
|
@ -66,7 +66,7 @@ MenuDataHeader_0x1d75:: ; 1d75
|
|||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 1d7d
|
; 1d7d
|
||||||
|
|
||||||
Function1d7d:: ; 1d7d
|
Call_ExitMenu:: ; 1d7d
|
||||||
call ExitMenu
|
call ExitMenu
|
||||||
ret
|
ret
|
||||||
; 1d81
|
; 1d81
|
||||||
|
@ -273,15 +273,15 @@ Function83b:: ; 83b
|
|||||||
; 862
|
; 862
|
||||||
|
|
||||||
Function862:: ; 862
|
Function862:: ; 862
|
||||||
call Function309d
|
call LoadTileMapToTempTileMap
|
||||||
callab Function4000
|
callab Function4000
|
||||||
call Function87d
|
call Function87d
|
||||||
jp Function30b4
|
jp Call_LoadTempTileMapToTileMap
|
||||||
; 871
|
; 871
|
||||||
|
|
||||||
|
|
||||||
Function871:: ; 871
|
Function871:: ; 871
|
||||||
call Function309d
|
call LoadTileMapToTempTileMap
|
||||||
callab Function4000
|
callab Function4000
|
||||||
jp Function87d
|
jp Function87d
|
||||||
; 87d
|
; 87d
|
||||||
|
2
hram.asm
2
hram.asm
@ -73,7 +73,7 @@ hRandom EQU $ffe1
|
|||||||
hRandomAdd EQU $ffe1
|
hRandomAdd EQU $ffe1
|
||||||
hRandomSub EQU $ffe2
|
hRandomSub EQU $ffe2
|
||||||
|
|
||||||
hBattleTurn EQU $ffe4
|
hBattleTurn EQU $ffe4 ; Which trainers turn is it? 0: Player, 1: Opponent Trainer
|
||||||
hCGBPalUpdate EQU $ffe5
|
hCGBPalUpdate EQU $ffe5
|
||||||
hCGB EQU $ffe6
|
hCGB EQU $ffe6
|
||||||
hSGB EQU $ffe7
|
hSGB EQU $ffe7
|
||||||
|
@ -705,7 +705,7 @@ endr
|
|||||||
ld a, [BattleType]
|
ld a, [BattleType]
|
||||||
cp BATTLETYPE_TUTORIAL
|
cp BATTLETYPE_TUTORIAL
|
||||||
ret z
|
ret z
|
||||||
cp 2
|
cp BATTLETYPE_DEBUG
|
||||||
ret z
|
ret z
|
||||||
cp BATTLETYPE_CONTEST
|
cp BATTLETYPE_CONTEST
|
||||||
jr z, .used_park_ball
|
jr z, .used_park_ball
|
||||||
@ -1880,7 +1880,7 @@ Functionf21c: ; f21c (3:721c)
|
|||||||
callba WritePartyMenuTilemap
|
callba WritePartyMenuTilemap
|
||||||
callba PrintPartyMenuText
|
callba PrintPartyMenuText
|
||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
callba PartyMenuSelect
|
callba PartyMenuSelect
|
||||||
ret
|
ret
|
||||||
@ -1897,7 +1897,7 @@ Functionf24a: ; f24a (3:724a)
|
|||||||
callba WritePartyMenuTilemap
|
callba WritePartyMenuTilemap
|
||||||
callba Function50566
|
callba Function50566
|
||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
pop bc
|
pop bc
|
||||||
pop de
|
pop de
|
||||||
@ -2254,18 +2254,19 @@ Repel: ; f46a
|
|||||||
; f46c
|
; f46c
|
||||||
|
|
||||||
Function_0xf46c: ; f46c
|
Function_0xf46c: ; f46c
|
||||||
ld a, [wdca1]
|
ld a, [RepelStepsLeft]
|
||||||
and a
|
and a
|
||||||
ld hl, UnknownText_0xf47d
|
ld hl, TextJump_RepelUsedEarlierIsStillInEffect
|
||||||
jp nz, PrintText
|
jp nz, PrintText
|
||||||
ld a, b
|
|
||||||
ld [wdca1], a
|
|
||||||
jp Functionf789
|
|
||||||
; f47d
|
|
||||||
|
|
||||||
UnknownText_0xf47d: ; 0xf47d
|
ld a, b
|
||||||
|
ld [RepelStepsLeft], a
|
||||||
|
jp Functionf789
|
||||||
|
|
||||||
|
|
||||||
|
TextJump_RepelUsedEarlierIsStillInEffect: ; 0xf47d
|
||||||
; The REPEL used earlier is still in effect.
|
; The REPEL used earlier is still in effect.
|
||||||
text_jump UnknownText_0x1c5bcd
|
text_jump Text_RepelUsedEarlierIsStillInEffect
|
||||||
db "@"
|
db "@"
|
||||||
; 0xf482
|
; 0xf482
|
||||||
|
|
||||||
|
241
main.asm
241
main.asm
@ -1579,7 +1579,7 @@ Function64db: ; 64db
|
|||||||
; 6508
|
; 6508
|
||||||
|
|
||||||
LearnMove: ; 6508
|
LearnMove: ; 6508
|
||||||
call Function309d
|
call LoadTileMapToTempTileMap
|
||||||
ld a, [CurPartyMon]
|
ld a, [CurPartyMon]
|
||||||
ld hl, PartyMonNicknames
|
ld hl, PartyMonNicknames
|
||||||
call GetNick
|
call GetNick
|
||||||
@ -1741,7 +1741,7 @@ ForgetMove: ; 65d3
|
|||||||
ld [wcfa7], a
|
ld [wcfa7], a
|
||||||
call Function1bc9
|
call Function1bc9
|
||||||
push af
|
push af
|
||||||
call Function30b4
|
call Call_LoadTempTileMapToTileMap
|
||||||
pop af
|
pop af
|
||||||
pop hl
|
pop hl
|
||||||
bit 1, a
|
bit 1, a
|
||||||
@ -3177,7 +3177,7 @@ Function8000: ; 8000
|
|||||||
ld a, $7
|
ld a, $7
|
||||||
call ByteFill
|
call ByteFill
|
||||||
call Function3200
|
call Function3200
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
ret
|
ret
|
||||||
; 8029
|
; 8029
|
||||||
|
|
||||||
@ -9726,7 +9726,7 @@ Functione443: ; e443 (3:6443)
|
|||||||
ld a, $1
|
ld a, $1
|
||||||
.asm_e44b
|
.asm_e44b
|
||||||
ld [wcf88], a
|
ld [wcf88], a
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
xor a
|
xor a
|
||||||
ld [wcf76], a
|
ld [wcf76], a
|
||||||
ld [hBGMapMode], a ; $ff00+$d4
|
ld [hBGMapMode], a ; $ff00+$d4
|
||||||
@ -9946,7 +9946,7 @@ ClearPCItemScreen: ; e58b
|
|||||||
ld bc, $0412
|
ld bc, $0412
|
||||||
call TextBox
|
call TextBox
|
||||||
call Function3200
|
call Function3200
|
||||||
call Function32f9 ; load regular palettes?
|
call SetPalettes ; load regular palettes?
|
||||||
ret
|
ret
|
||||||
; 0xe5bb
|
; 0xe5bb
|
||||||
|
|
||||||
@ -10918,7 +10918,7 @@ Function116f8: ; 116f8
|
|||||||
call Function1171d
|
call Function1171d
|
||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
call WaitTop
|
call WaitTop
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
call Function11be0
|
call Function11be0
|
||||||
ret
|
ret
|
||||||
; 1171d
|
; 1171d
|
||||||
@ -12693,7 +12693,7 @@ Function124fa: ; 124fa
|
|||||||
Function1250a: ; 1250a
|
Function1250a: ; 1250a
|
||||||
ld b, $0
|
ld b, $0
|
||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
ret
|
ret
|
||||||
; 12513
|
; 12513
|
||||||
|
|
||||||
@ -13004,7 +13004,7 @@ endr
|
|||||||
|
|
||||||
.Clear ; 126b7
|
.Clear ; 126b7
|
||||||
call WhiteBGMap
|
call WhiteBGMap
|
||||||
call Function1d7d
|
call Call_ExitMenu
|
||||||
call Function2bae
|
call Function2bae
|
||||||
call .DrawMenuAccount_
|
call .DrawMenuAccount_
|
||||||
call MenuFunc_1e7f
|
call MenuFunc_1e7f
|
||||||
@ -13403,7 +13403,7 @@ StartMenu_Pokemon: ; 12976
|
|||||||
callba WritePartyMenuTilemap
|
callba WritePartyMenuTilemap
|
||||||
callba PrintPartyMenuText
|
callba PrintPartyMenuText
|
||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
call Function32f9 ; load regular palettes?
|
call SetPalettes ; load regular palettes?
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
callba PartyMenuSelect
|
callba PartyMenuSelect
|
||||||
jr c, .return ; if cancelled or pressed B
|
jr c, .return ; if cancelled or pressed B
|
||||||
@ -13625,7 +13625,7 @@ SwitchPartyMons: ; 12aec
|
|||||||
call AddNTimes
|
call AddNTimes
|
||||||
ld [hl], "▷"
|
ld [hl], "▷"
|
||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
|
|
||||||
callba PartyMenuSelect
|
callba PartyMenuSelect
|
||||||
@ -14082,7 +14082,7 @@ OpenPartyStats: ; 12e00
|
|||||||
call LowVolume
|
call LowVolume
|
||||||
predef StatsScreenInit
|
predef StatsScreenInit
|
||||||
call MaxVolume
|
call MaxVolume
|
||||||
call Function1d7d
|
call Call_ExitMenu
|
||||||
ld a, 0
|
ld a, 0
|
||||||
ret
|
ret
|
||||||
; 12e1b
|
; 12e1b
|
||||||
@ -14253,19 +14253,19 @@ Function12f05: ; 12f05
|
|||||||
ld a, PartyMon1MaxHP - PartyMon1
|
ld a, PartyMon1MaxHP - PartyMon1
|
||||||
call GetPartyParamLocation
|
call GetPartyParamLocation
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld [hProduct], a
|
ld [hDividend + 0], a
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
ld [hMultiplicand], a
|
ld [hDividend + 1], a
|
||||||
ld a, $5
|
ld a, $5
|
||||||
ld [hMultiplier], a
|
ld [hDivisor], a
|
||||||
ld b, $2
|
ld b, $2
|
||||||
call Divide
|
call Divide
|
||||||
ld a, PartyMon1HP + 1 - PartyMon1
|
ld a, PartyMon1HP + 1 - PartyMon1
|
||||||
call GetPartyParamLocation
|
call GetPartyParamLocation
|
||||||
ld a, [$ffb6]
|
ld a, [hQuotient + 2]
|
||||||
sub [hl]
|
sub [hl]
|
||||||
dec hl
|
dec hl
|
||||||
ld a, [$ffb5]
|
ld a, [hQuotient + 1]
|
||||||
sbc [hl]
|
sbc [hl]
|
||||||
ret
|
ret
|
||||||
; 12f26
|
; 12f26
|
||||||
@ -14665,7 +14665,7 @@ Function131ef: ; 131ef
|
|||||||
hlcoord 10, 4
|
hlcoord 10, 4
|
||||||
predef Function50c50
|
predef Function50c50
|
||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
ld a, [wd0eb]
|
ld a, [wd0eb]
|
||||||
inc a
|
inc a
|
||||||
ld [wcfa3], a
|
ld [wcfa3], a
|
||||||
@ -21684,7 +21684,7 @@ Function16be4: ; 16be4
|
|||||||
|
|
||||||
ld b, $1c
|
ld b, $1c
|
||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
|
|
||||||
.asm_16c6b
|
.asm_16c6b
|
||||||
call Functiona57
|
call Functiona57
|
||||||
@ -22592,7 +22592,7 @@ Function17254: ; 17254 (5:7254)
|
|||||||
predef FillBox
|
predef FillBox
|
||||||
pop af
|
pop af
|
||||||
call Function17363
|
call Function17363
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
jp WaitBGMap
|
jp WaitBGMap
|
||||||
|
|
||||||
Function1727f: ; 1727f (5:727f)
|
Function1727f: ; 1727f (5:727f)
|
||||||
@ -26001,7 +26001,7 @@ Function2513b: ; 2513b (9:513b)
|
|||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
ld b, $15
|
ld b, $15
|
||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
ld hl, wcf63
|
ld hl, wcf63
|
||||||
xor a
|
xor a
|
||||||
@ -28283,7 +28283,7 @@ Function2715c: ; 2715c
|
|||||||
call WriteBackup
|
call WriteBackup
|
||||||
call Function1d6e
|
call Function1d6e
|
||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
jp Function32f9
|
jp SetPalettes
|
||||||
; 27192
|
; 27192
|
||||||
|
|
||||||
Function27192: ; 27192
|
Function27192: ; 27192
|
||||||
@ -29743,7 +29743,7 @@ Function2891c: ; 2891c
|
|||||||
; 28926
|
; 28926
|
||||||
|
|
||||||
Function28926: ; 28926
|
Function28926: ; 28926
|
||||||
call Function309d
|
call LoadTileMapToTempTileMap
|
||||||
ld a, [wcfa9]
|
ld a, [wcfa9]
|
||||||
push af
|
push af
|
||||||
hlcoord 0, 15
|
hlcoord 0, 15
|
||||||
@ -29784,7 +29784,7 @@ Function28926: ; 28926
|
|||||||
.asm_28983
|
.asm_28983
|
||||||
pop af
|
pop af
|
||||||
ld [wcfa9], a
|
ld [wcfa9], a
|
||||||
call Function30b4
|
call Call_LoadTempTileMapToTileMap
|
||||||
jp Function2888b
|
jp Function2888b
|
||||||
|
|
||||||
.asm_2898d
|
.asm_2898d
|
||||||
@ -29822,7 +29822,7 @@ Function28926: ; 28926
|
|||||||
ld [wd263], a
|
ld [wd263], a
|
||||||
callab Function50db9
|
callab Function50db9
|
||||||
callba Function4d319
|
callba Function4d319
|
||||||
call Function30b4
|
call Call_LoadTempTileMapToTileMap
|
||||||
hlcoord 6, 1
|
hlcoord 6, 1
|
||||||
ld bc, $0601
|
ld bc, $0601
|
||||||
ld a, $7f
|
ld a, $7f
|
||||||
@ -30091,7 +30091,7 @@ Function28b87: ; 28b87
|
|||||||
callba Function4d354
|
callba Function4d354
|
||||||
call Function1bd3
|
call Function1bd3
|
||||||
push af
|
push af
|
||||||
call Function1d7d
|
call Call_ExitMenu
|
||||||
call Function3200
|
call Function3200
|
||||||
pop af
|
pop af
|
||||||
bit 1, a
|
bit 1, a
|
||||||
@ -30404,7 +30404,7 @@ Function28ef8: ; 28ef8
|
|||||||
|
|
||||||
Function28eff: ; 28eff
|
Function28eff: ; 28eff
|
||||||
callba Function16d6a7
|
callba Function16d6a7
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
ret
|
ret
|
||||||
; 28f09
|
; 28f09
|
||||||
|
|
||||||
@ -32894,7 +32894,7 @@ endr
|
|||||||
|
|
||||||
CheckRepelEffect:: ; 2a1df
|
CheckRepelEffect:: ; 2a1df
|
||||||
; If there is no active Repel, there's no need to be here.
|
; If there is no active Repel, there's no need to be here.
|
||||||
ld a, [wdca1]
|
ld a, [RepelStepsLeft]
|
||||||
and a
|
and a
|
||||||
jr z, .encounter
|
jr z, .encounter
|
||||||
; Get the first Pokemon in your party that isn't fainted.
|
; Get the first Pokemon in your party that isn't fainted.
|
||||||
@ -33663,13 +33663,13 @@ Function2b9a6: ; 2b9a6
|
|||||||
jr z, .asm_2b9d7
|
jr z, .asm_2b9d7
|
||||||
dec hl
|
dec hl
|
||||||
xor a
|
xor a
|
||||||
ld [hProduct], a
|
ld [hDividend + 0], a
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld [hMultiplicand], a
|
ld [hDividend + 1], a
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld [$ffb5], a
|
ld [hDividend + 2], a
|
||||||
xor a
|
xor a
|
||||||
ld [$ffb6], a
|
ld [hDividend + 3], a
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld b, a
|
ld b, a
|
||||||
ld a, [hld]
|
ld a, [hld]
|
||||||
@ -33677,13 +33677,13 @@ Function2b9a6: ; 2b9a6
|
|||||||
rr a
|
rr a
|
||||||
srl b
|
srl b
|
||||||
rr a
|
rr a
|
||||||
ld [hMultiplier], a
|
ld [hDivisor], a
|
||||||
ld b, $4
|
ld b, $4
|
||||||
call Divide
|
call Divide
|
||||||
ld a, [$ffb6]
|
ld a, [hQuotient + 2]
|
||||||
add e
|
add e
|
||||||
ld e, a
|
ld e, a
|
||||||
ld a, [$ffb5]
|
ld a, [hQuotient + 1]
|
||||||
adc d
|
adc d
|
||||||
ld d, a
|
ld d, a
|
||||||
dec hl
|
dec hl
|
||||||
@ -34020,7 +34020,7 @@ Function2c1b2: ; 2c1b2
|
|||||||
callba Function2c10d
|
callba Function2c10d
|
||||||
ld b, $8
|
ld b, $8
|
||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
ld a, $e4
|
ld a, $e4
|
||||||
ld [rOBP0], a
|
ld [rOBP0], a
|
||||||
ret
|
ret
|
||||||
@ -34559,7 +34559,7 @@ Function2c80a: ; 2c80a
|
|||||||
callba WritePartyMenuTilemap
|
callba WritePartyMenuTilemap
|
||||||
callba PrintPartyMenuText
|
callba PrintPartyMenuText
|
||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
callba PartyMenuSelect
|
callba PartyMenuSelect
|
||||||
push af
|
push af
|
||||||
@ -36764,7 +36764,7 @@ AIChooseMove: ; 440ce
|
|||||||
ret nz
|
ret nz
|
||||||
|
|
||||||
; No use picking a move if there's no choice.
|
; No use picking a move if there's no choice.
|
||||||
callba Function3e8d1
|
callba CheckSubstatus_RechargeChargedRampageBideRollout
|
||||||
ret nz
|
ret nz
|
||||||
|
|
||||||
|
|
||||||
@ -37768,7 +37768,7 @@ Function4484a: ; 0x4484a
|
|||||||
callba WritePartyMenuTilemap
|
callba WritePartyMenuTilemap
|
||||||
callba PrintPartyMenuText
|
callba PrintPartyMenuText
|
||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
callba PartyMenuSelect
|
callba PartyMenuSelect
|
||||||
jr c, .asm_44939
|
jr c, .asm_44939
|
||||||
@ -37987,7 +37987,7 @@ Function4802f: ; 4802f (12:402f)
|
|||||||
call PlaceString
|
call PlaceString
|
||||||
call Function48187
|
call Function48187
|
||||||
call Function3200
|
call Function3200
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
call Function1bc9
|
call Function1bc9
|
||||||
ld hl, wcfa9
|
ld hl, wcfa9
|
||||||
ld b, [hl]
|
ld b, [hl]
|
||||||
@ -39673,11 +39673,11 @@ Function48d4a: ; 48d4a (12:4d4a)
|
|||||||
Function48d94: ; 48d94 (12:4d94)
|
Function48d94: ; 48d94 (12:4d94)
|
||||||
xor a
|
xor a
|
||||||
ld [hDividend + 0], a
|
ld [hDividend + 0], a
|
||||||
ld [hQuotient], a ; $ff00+$b4 (aliases: hMultiplicand)
|
ld [hDividend + 1], a ; $ff00+$b4 (aliases: hMultiplicand)
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld [hDividend + 0], a
|
ld [hDividend + 0], a
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
ld [hQuotient], a ; $ff00+$b4 (aliases: hMultiplicand)
|
ld [hDividend + 1], a ; $ff00+$b4 (aliases: hMultiplicand)
|
||||||
ld a, 100
|
ld a, 100
|
||||||
ld [hDivisor], a ; $ff00+$b7 (aliases: hMultiplier)
|
ld [hDivisor], a ; $ff00+$b7 (aliases: hMultiplier)
|
||||||
ld b, 2
|
ld b, 2
|
||||||
@ -39707,7 +39707,7 @@ Function48dcb: ; 48dcb (12:4dcb)
|
|||||||
call Function48e47
|
call Function48e47
|
||||||
call Function48e64
|
call Function48e64
|
||||||
call Function3200
|
call Function3200
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
ld hl, UnknownText_0x48e0f
|
ld hl, UnknownText_0x48e0f
|
||||||
call PrintText
|
call PrintText
|
||||||
ld hl, MenuDataHeader_0x48dfc
|
ld hl, MenuDataHeader_0x48dfc
|
||||||
@ -40921,7 +40921,7 @@ MainMenu: ; 49cdc
|
|||||||
call Function49ed0
|
call Function49ed0
|
||||||
ld b, $8
|
ld b, $8
|
||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
ld hl, GameTimerPause
|
ld hl, GameTimerPause
|
||||||
res 0, [hl]
|
res 0, [hl]
|
||||||
call Function49da4
|
call Function49da4
|
||||||
@ -41302,7 +41302,7 @@ Function49f16: ; 49f16
|
|||||||
hlcoord 1, 14
|
hlcoord 1, 14
|
||||||
call PlaceString
|
call PlaceString
|
||||||
call Function3200
|
call Function3200
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
call Function1bc9
|
call Function1bc9
|
||||||
ld hl, wcfa9
|
ld hl, wcfa9
|
||||||
ld b, [hl]
|
ld b, [hl]
|
||||||
@ -41449,7 +41449,7 @@ Function4a098: ; 4a098 (12:6098)
|
|||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
call Function1d6e
|
call Function1d6e
|
||||||
callba Function89de0
|
callba Function89de0
|
||||||
call Function1d7d
|
call Call_ExitMenu
|
||||||
call Function49351
|
call Function49351
|
||||||
call Function4a485
|
call Function4a485
|
||||||
pop bc
|
pop bc
|
||||||
@ -41558,7 +41558,7 @@ Function4a149: ; 4a149 (12:6149)
|
|||||||
hlcoord 1, 14
|
hlcoord 1, 14
|
||||||
call PlaceString
|
call PlaceString
|
||||||
callba Function104148
|
callba Function104148
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
call Function1bc9
|
call Function1bc9
|
||||||
ld hl, wcfa9
|
ld hl, wcfa9
|
||||||
ld b, [hl]
|
ld b, [hl]
|
||||||
@ -41696,7 +41696,7 @@ Function4a28a: ; 4a28a (12:628a)
|
|||||||
.asm_4a2df
|
.asm_4a2df
|
||||||
callba Function11765d
|
callba Function11765d
|
||||||
call WhiteBGMap
|
call WhiteBGMap
|
||||||
call Function1d7d
|
call Call_ExitMenu
|
||||||
call Functione5f
|
call Functione5f
|
||||||
scf
|
scf
|
||||||
ret
|
ret
|
||||||
@ -41730,7 +41730,7 @@ Function4a28a: ; 4a28a (12:628a)
|
|||||||
.asm_4a338
|
.asm_4a338
|
||||||
call ExitMenu
|
call ExitMenu
|
||||||
.asm_4a33b
|
.asm_4a33b
|
||||||
call Function1d7d
|
call Call_ExitMenu
|
||||||
callba Function104148
|
callba Function104148
|
||||||
xor a
|
xor a
|
||||||
ret
|
ret
|
||||||
@ -41807,7 +41807,7 @@ Function4a39a: ; 4a39a
|
|||||||
call Function4a485
|
call Function4a485
|
||||||
call Function4a492
|
call Function4a492
|
||||||
call Function4a3aa
|
call Function4a3aa
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
ret
|
ret
|
||||||
; 4a3a7
|
; 4a3a7
|
||||||
|
|
||||||
@ -41987,7 +41987,7 @@ Function4a4c4: ; 4a4c4 (12:64c4)
|
|||||||
hlcoord 1, 16
|
hlcoord 1, 16
|
||||||
call PlaceString
|
call PlaceString
|
||||||
call Function3200
|
call Function3200
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
call Function1bc9
|
call Function1bc9
|
||||||
ld hl, wcfa9
|
ld hl, wcfa9
|
||||||
ld b, [hl]
|
ld b, [hl]
|
||||||
@ -42631,7 +42631,7 @@ Function4a94e: ; 4a94e
|
|||||||
ld [wd019], a
|
ld [wd019], a
|
||||||
ld b, $14
|
ld b, $14
|
||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
call Function4aa22
|
call Function4aa22
|
||||||
jr c, .asm_4a985
|
jr c, .asm_4a985
|
||||||
jr z, .asm_4a9a1
|
jr z, .asm_4a9a1
|
||||||
@ -42762,7 +42762,7 @@ Function4aa34: ; 4aa34
|
|||||||
callba PrintPartyMenuText
|
callba PrintPartyMenuText
|
||||||
call Function4aab6
|
call Function4aab6
|
||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
call Function4ab1a
|
call Function4ab1a
|
||||||
jr z, .asm_4aa66
|
jr z, .asm_4aa66
|
||||||
@ -45652,7 +45652,7 @@ Function4dfb6: ; 4dfb6 (13:5fb6)
|
|||||||
ld hl, wcf64
|
ld hl, wcf64
|
||||||
bit 4, [hl]
|
bit 4, [hl]
|
||||||
jr nz, .asm_4dfd6
|
jr nz, .asm_4dfd6
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
ret
|
ret
|
||||||
.asm_4dfd6
|
.asm_4dfd6
|
||||||
call Function4e226
|
call Function4e226
|
||||||
@ -45965,14 +45965,14 @@ Function4e226: ; 4e226 (13:6226)
|
|||||||
jr .asm_4e246
|
jr .asm_4e246
|
||||||
.asm_4e238
|
.asm_4e238
|
||||||
call Function4e271
|
call Function4e271
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
ret
|
ret
|
||||||
.asm_4e23f
|
.asm_4e23f
|
||||||
call Function4e253
|
call Function4e253
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
ret
|
ret
|
||||||
.asm_4e246
|
.asm_4e246
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
call Function4e253
|
call Function4e253
|
||||||
ld a, [CurPartySpecies]
|
ld a, [CurPartySpecies]
|
||||||
call PlayCry2
|
call PlayCry2
|
||||||
@ -46156,7 +46156,7 @@ EggStatsScreen: ; 4e33a
|
|||||||
call PlaceString
|
call PlaceString
|
||||||
ld hl, wcf64
|
ld hl, wcf64
|
||||||
set 5, [hl]
|
set 5, [hl]
|
||||||
call Function32f9 ; pals
|
call SetPalettes ; pals
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
hlcoord 0, 0
|
hlcoord 0, 0
|
||||||
call Function3786
|
call Function3786
|
||||||
@ -46799,7 +46799,7 @@ Function4e881: ; 4e881
|
|||||||
ld hl, UnknownText_0x4e8bd
|
ld hl, UnknownText_0x4e8bd
|
||||||
call PrintText
|
call PrintText
|
||||||
call Function3200
|
call Function3200
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
ret
|
ret
|
||||||
; 4e8bd
|
; 4e8bd
|
||||||
|
|
||||||
@ -46839,7 +46839,7 @@ Function4e8c2: ; 4e8c2
|
|||||||
ld [hSCX], a
|
ld [hSCX], a
|
||||||
call EnableLCD
|
call EnableLCD
|
||||||
call Function3200
|
call Function3200
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
ret
|
ret
|
||||||
; 4e906
|
; 4e906
|
||||||
|
|
||||||
@ -47157,7 +47157,7 @@ SelectMonFromParty: ; 50000
|
|||||||
call WhiteBGMap
|
call WhiteBGMap
|
||||||
call Function5003f
|
call Function5003f
|
||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
call PartyMenuSelect
|
call PartyMenuSelect
|
||||||
call Function2b74
|
call Function2b74
|
||||||
@ -47174,7 +47174,7 @@ Function5001d: ; 5001d
|
|||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
ld b, $a
|
ld b, $a
|
||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
call PartyMenuSelect
|
call PartyMenuSelect
|
||||||
call Function2b74
|
call Function2b74
|
||||||
@ -48230,7 +48230,7 @@ Function5067b: ; 5067b
|
|||||||
ld a, [PartyCount]
|
ld a, [PartyCount]
|
||||||
cp [hl]
|
cp [hl]
|
||||||
jr nz, .asm_50682
|
jr nz, .asm_50682
|
||||||
predef Function3d873
|
predef CheckPlayerPartyForFitPkmn
|
||||||
ld a, d
|
ld a, d
|
||||||
ld [ScriptVar], a
|
ld [ScriptVar], a
|
||||||
ret
|
ret
|
||||||
@ -49385,15 +49385,15 @@ endr
|
|||||||
|
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
and $f
|
and $f
|
||||||
ld [hMultiplier], a
|
ld [hDivisor], a
|
||||||
ld b, $4
|
ld b, $4
|
||||||
call Divide
|
call Divide
|
||||||
|
|
||||||
ld a, [hMultiplicand + 0]
|
ld a, [hQuotient + 0]
|
||||||
push af
|
push af
|
||||||
ld a, [hMultiplicand + 1]
|
ld a, [hQuotient + 1]
|
||||||
push af
|
push af
|
||||||
ld a, [hMultiplicand + 2]
|
ld a, [hQuotient + 2]
|
||||||
push af
|
push af
|
||||||
|
|
||||||
call Function50eed
|
call Function50eed
|
||||||
@ -53774,11 +53774,11 @@ Function84560: ; 84560
|
|||||||
ld [hl], $4
|
ld [hl], $4
|
||||||
xor a
|
xor a
|
||||||
ld [hBGMapMode], a
|
ld [hBGMapMode], a
|
||||||
call Function309d
|
call LoadTileMapToTempTileMap
|
||||||
callba Function16dac
|
callba Function16dac
|
||||||
ld a, $0
|
ld a, $0
|
||||||
call Function84419
|
call Function84419
|
||||||
call Function30b4
|
call Call_LoadTempTileMapToTileMap
|
||||||
call Function84742
|
call Function84742
|
||||||
ld a, $9
|
ld a, $9
|
||||||
ld [wcf65], a
|
ld [wcf65], a
|
||||||
@ -53806,7 +53806,7 @@ Function84560: ; 84560
|
|||||||
pop af
|
pop af
|
||||||
ld [hVBlank], a
|
ld [hVBlank], a
|
||||||
call Function84411
|
call Function84411
|
||||||
call Function30b4
|
call Call_LoadTempTileMapToTileMap
|
||||||
xor a
|
xor a
|
||||||
ld [rIF], a
|
ld [rIF], a
|
||||||
pop af
|
pop af
|
||||||
@ -53939,13 +53939,13 @@ Function84688: ; 84688
|
|||||||
call Function84411
|
call Function84411
|
||||||
ld c, $c
|
ld c, $c
|
||||||
call DelayFrames
|
call DelayFrames
|
||||||
call Function309d
|
call LoadTileMapToTempTileMap
|
||||||
xor a
|
xor a
|
||||||
ld [hBGMapMode], a
|
ld [hBGMapMode], a
|
||||||
callba Function1dd7ae
|
callba Function1dd7ae
|
||||||
ld a, $3
|
ld a, $3
|
||||||
call Function84419
|
call Function84419
|
||||||
call Function30b4
|
call Call_LoadTempTileMapToTileMap
|
||||||
call Function84742
|
call Function84742
|
||||||
ld a, $9
|
ld a, $9
|
||||||
ld [wcf65], a
|
ld [wcf65], a
|
||||||
@ -54716,7 +54716,7 @@ endr
|
|||||||
ld [hBGMapMode], a
|
ld [hBGMapMode], a
|
||||||
ld b, $1a
|
ld b, $1a
|
||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
call Function86635
|
call Function86635
|
||||||
xor a
|
xor a
|
||||||
ld [wc2c6], a
|
ld [wc2c6], a
|
||||||
@ -54854,7 +54854,7 @@ Function86692: ; 86692
|
|||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
ld b, $1a
|
ld b, $1a
|
||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
decoord 6, 5
|
decoord 6, 5
|
||||||
ld c, $6
|
ld c, $6
|
||||||
predef Functiond066e
|
predef Functiond066e
|
||||||
@ -55015,7 +55015,7 @@ Function86810: ; 86810
|
|||||||
ld [CurPartySpecies], a
|
ld [CurPartySpecies], a
|
||||||
ld b, $1a
|
ld b, $1a
|
||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
call Function86635
|
call Function86635
|
||||||
xor a
|
xor a
|
||||||
ld [wc2c6], a
|
ld [wc2c6], a
|
||||||
@ -55135,7 +55135,7 @@ Function88018: ; 88018
|
|||||||
call Function88161
|
call Function88161
|
||||||
|
|
||||||
.asm_88051
|
.asm_88051
|
||||||
call Function1d7d
|
call Call_ExitMenu
|
||||||
ret
|
ret
|
||||||
; 88055
|
; 88055
|
||||||
|
|
||||||
@ -56433,7 +56433,7 @@ Function894ca: ; 894ca (22:54ca)
|
|||||||
call Function895c7
|
call Function895c7
|
||||||
call Function8949c
|
call Function8949c
|
||||||
call Function8a60d
|
call Function8a60d
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
pop bc
|
pop bc
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@ -57085,7 +57085,7 @@ Function89844: ; 89844
|
|||||||
call Function897af
|
call Function897af
|
||||||
push bc
|
push bc
|
||||||
call Function3200
|
call Function3200
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
pop bc
|
pop bc
|
||||||
ret
|
ret
|
||||||
; 89856
|
; 89856
|
||||||
@ -57594,9 +57594,9 @@ Function89b28: ; 89b28 (22:5b28)
|
|||||||
call Function891de
|
call Function891de
|
||||||
call WhiteBGMap
|
call WhiteBGMap
|
||||||
call Function893e2
|
call Function893e2
|
||||||
call Function1d7d
|
call Call_ExitMenu
|
||||||
call Function891ab
|
call Function891ab
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
ret
|
ret
|
||||||
|
|
||||||
Function89b3b: ; 89b3b (22:5b3b)
|
Function89b3b: ; 89b3b (22:5b3b)
|
||||||
@ -57945,7 +57945,7 @@ Function89d0d: ; 89d0d (22:5d0d)
|
|||||||
call CopyBytes
|
call CopyBytes
|
||||||
pop af
|
pop af
|
||||||
ld [rSVBK], a ; $ff00+$70
|
ld [rSVBK], a ; $ff00+$70
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
callba Function845db
|
callba Function845db
|
||||||
call Function89240
|
call Function89240
|
||||||
ld c, $18
|
ld c, $18
|
||||||
@ -58151,7 +58151,7 @@ Function89e6f: ; 89e6f (22:5e6f)
|
|||||||
hlcoord 10, 4, AttrMap
|
hlcoord 10, 4, AttrMap
|
||||||
call Function8a5a3
|
call Function8a5a3
|
||||||
call Function891ab
|
call Function891ab
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
jp Function89e36
|
jp Function89e36
|
||||||
|
|
||||||
Function89e9a: ; 89e9a (22:5e9a)
|
Function89e9a: ; 89e9a (22:5e9a)
|
||||||
@ -58188,7 +58188,7 @@ Function89eb9: ; 89eb9 (22:5eb9)
|
|||||||
hlcoord 10, 4, AttrMap
|
hlcoord 10, 4, AttrMap
|
||||||
call Function8a5a3
|
call Function8a5a3
|
||||||
call Function891ab
|
call Function891ab
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
jp Function89e36
|
jp Function89e36
|
||||||
|
|
||||||
Function89ee1: ; 89ee1 (22:5ee1)
|
Function89ee1: ; 89ee1 (22:5ee1)
|
||||||
@ -58369,7 +58369,7 @@ Function89fce: ; 89fce (22:5fce)
|
|||||||
hlcoord 10, 4, AttrMap
|
hlcoord 10, 4, AttrMap
|
||||||
call Function8a5a3
|
call Function8a5a3
|
||||||
call Function89448
|
call Function89448
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
call Function891ab
|
call Function891ab
|
||||||
jp Function89e36
|
jp Function89e36
|
||||||
|
|
||||||
@ -58716,7 +58716,7 @@ Function8a241: ; 8a241 (22:6241)
|
|||||||
.asm_8a254
|
.asm_8a254
|
||||||
call Function891de
|
call Function891de
|
||||||
call WhiteBGMap
|
call WhiteBGMap
|
||||||
call Function1d7d
|
call Call_ExitMenu
|
||||||
call Function891de
|
call Function891de
|
||||||
and a
|
and a
|
||||||
ret
|
ret
|
||||||
@ -58743,7 +58743,7 @@ Function8a262: ; 8a262 (22:6262)
|
|||||||
call Function8b36c
|
call Function8b36c
|
||||||
call Function8b493
|
call Function8b493
|
||||||
call Function891ab
|
call Function891ab
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
call Function8b5e7
|
call Function8b5e7
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@ -58841,7 +58841,7 @@ Function8a31c: ; 8a31c (22:631c)
|
|||||||
call Function8a4d3
|
call Function8a4d3
|
||||||
call Function8a4fc
|
call Function8a4fc
|
||||||
call Function891ab
|
call Function891ab
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
call Function8a383
|
call Function8a383
|
||||||
jr c, .asm_8a370
|
jr c, .asm_8a370
|
||||||
jr z, .asm_8a34e
|
jr z, .asm_8a34e
|
||||||
@ -61780,7 +61780,7 @@ Function8b677: ; 8b677
|
|||||||
call Function8b6ed
|
call Function8b6ed
|
||||||
call EnableLCD
|
call EnableLCD
|
||||||
call Function891ab
|
call Function891ab
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
ret
|
ret
|
||||||
; 8b690
|
; 8b690
|
||||||
|
|
||||||
@ -69325,7 +69325,7 @@ Function909de: ; 909de
|
|||||||
ld a, [wd002]
|
ld a, [wd002]
|
||||||
ld e, a
|
ld e, a
|
||||||
ld d, 0
|
ld d, 0
|
||||||
ld hl, Unknown_909f2
|
ld hl, WeekdaysStrings
|
||||||
rept 2
|
rept 2
|
||||||
add hl, de
|
add hl, de
|
||||||
endr
|
endr
|
||||||
@ -69337,7 +69337,7 @@ endr
|
|||||||
ret
|
ret
|
||||||
; 909f2
|
; 909f2
|
||||||
|
|
||||||
Unknown_909f2: ; 909f2
|
WeekdaysStrings: ; 909f2
|
||||||
dw Sunday
|
dw Sunday
|
||||||
dw Monday
|
dw Monday
|
||||||
dw Tuesday
|
dw Tuesday
|
||||||
@ -69397,13 +69397,13 @@ UnknownText_0x90a6c: ; 90a6c
|
|||||||
ld c, a
|
ld c, a
|
||||||
decoord 1, 14
|
decoord 1, 14
|
||||||
callba Function1dd6bb
|
callba Function1dd6bb
|
||||||
ld hl, UnknownText_0x90a83
|
ld hl, TextJump_DSTIsThatOK
|
||||||
ret
|
ret
|
||||||
; 90a83 (24:4a83)
|
; 90a83 (24:4a83)
|
||||||
|
|
||||||
UnknownText_0x90a83: ; 0x90a83
|
TextJump_DSTIsThatOK: ; 0x90a83
|
||||||
; DST, is that OK?
|
; DST, is that OK?
|
||||||
text_jump UnknownText_0x1c5fde
|
text_jump Text_DSTIsThatOK
|
||||||
db "@"
|
db "@"
|
||||||
; 0x90a88
|
; 0x90a88
|
||||||
|
|
||||||
@ -69655,7 +69655,7 @@ Function90bea: ; 90bea (24:4bea)
|
|||||||
call Function90da8
|
call Function90da8
|
||||||
ld b, $2
|
ld b, $2
|
||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
ld a, [hCGB]
|
ld a, [hCGB]
|
||||||
and a
|
and a
|
||||||
ret z
|
ret z
|
||||||
@ -71442,7 +71442,7 @@ Function9191c: ; 9191c
|
|||||||
ld [wd005], a
|
ld [wd005], a
|
||||||
ld b, $2
|
ld b, $2
|
||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
ld a, [hCGB]
|
ld a, [hCGB]
|
||||||
and a
|
and a
|
||||||
jr z, .asm_9198b
|
jr z, .asm_9198b
|
||||||
@ -71696,7 +71696,7 @@ _FlyMap: ; 91af3
|
|||||||
call Function91c8f
|
call Function91c8f
|
||||||
ld b, $2
|
ld b, $2
|
||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
.loop
|
.loop
|
||||||
call Functiona57
|
call Functiona57
|
||||||
ld hl, hJoyPressed
|
ld hl, hJoyPressed
|
||||||
@ -72118,7 +72118,7 @@ Function91d11: ; 91d11
|
|||||||
call TownMapBGUpdate
|
call TownMapBGUpdate
|
||||||
ld b, $2
|
ld b, $2
|
||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
xor a
|
xor a
|
||||||
ld [hBGMapMode], a
|
ld [hBGMapMode], a
|
||||||
xor a
|
xor a
|
||||||
@ -72628,7 +72628,7 @@ Function92311: ; 92311
|
|||||||
ld [wd004], a
|
ld [wd004], a
|
||||||
ld b, $2
|
ld b, $2
|
||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
.loop
|
.loop
|
||||||
call Functiona57
|
call Functiona57
|
||||||
ld hl, hJoyPressed
|
ld hl, hJoyPressed
|
||||||
@ -75771,7 +75771,7 @@ Functionb9237: ; b9237
|
|||||||
ld a, [wd1ec]
|
ld a, [wd1ec]
|
||||||
ld e, a
|
ld e, a
|
||||||
callba Function8cb4
|
callba Function8cb4
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
xor a
|
xor a
|
||||||
ld [hJoyPressed], a
|
ld [hJoyPressed], a
|
||||||
call Functionb929a
|
call Functionb929a
|
||||||
@ -76979,7 +76979,7 @@ Functioncc000: ; cc000
|
|||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
ld b, $8
|
ld b, $8
|
||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
ret
|
ret
|
||||||
; cc0a7
|
; cc0a7
|
||||||
|
|
||||||
@ -83069,7 +83069,7 @@ _OptionsMenu: ; e41d0
|
|||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
ld b, $8
|
ld b, $8
|
||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
.asm_e4217
|
.asm_e4217
|
||||||
call Functiona57
|
call Functiona57
|
||||||
ld a, [hJoyPressed]
|
ld a, [hJoyPressed]
|
||||||
@ -83636,7 +83636,7 @@ Functione4579: ; e4579
|
|||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
ld b, $19
|
ld b, $19
|
||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
ld c, 10
|
ld c, 10
|
||||||
call DelayFrames
|
call DelayFrames
|
||||||
callab Copyright
|
callab Copyright
|
||||||
@ -86753,7 +86753,7 @@ Functionfb8c8: ; fb8c8
|
|||||||
ld [TempMonDVs + 1], a
|
ld [TempMonDVs + 1], a
|
||||||
ld b, $1c
|
ld b, $1c
|
||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
ret
|
ret
|
||||||
; fb8f1
|
; fb8f1
|
||||||
|
|
||||||
@ -89503,7 +89503,7 @@ DoMysteryGift: ; 1048ba (41:48ba)
|
|||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
ld b, $8
|
ld b, $8
|
||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
pop de
|
pop de
|
||||||
hlcoord 2, 8
|
hlcoord 2, 8
|
||||||
ld a, d
|
ld a, d
|
||||||
@ -90803,7 +90803,7 @@ Function105153: ; 105153 (41:5153)
|
|||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
ld b, $1d
|
ld b, $1d
|
||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
ret
|
ret
|
||||||
|
|
||||||
Function10522e: ; 10522e (41:522e)
|
Function10522e: ; 10522e (41:522e)
|
||||||
@ -90981,7 +90981,7 @@ Function105777: ; 105777 (41:5777)
|
|||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
ld b, $8
|
ld b, $8
|
||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
ret
|
ret
|
||||||
|
|
||||||
Function10578c: ; 10578c (41:578c)
|
Function10578c: ; 10578c (41:578c)
|
||||||
@ -91106,7 +91106,7 @@ Function1057d7: ; 1057d7 (41:57d7)
|
|||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
ld b, $2
|
ld b, $2
|
||||||
callba Function4930f
|
callba Function4930f
|
||||||
jp Function32f9
|
jp SetPalettes
|
||||||
|
|
||||||
Function1058c6: ; 1058c6 (41:58c6)
|
Function1058c6: ; 1058c6 (41:58c6)
|
||||||
ld b, $6
|
ld b, $6
|
||||||
@ -92241,10 +92241,11 @@ endr
|
|||||||
ld [$ffbb], a
|
ld [$ffbb], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
Function1062f7
|
Function1062f7:
|
||||||
ld a, [$ffbc]
|
ld a, [$ffbc]
|
||||||
bit 7, a
|
bit 7, a
|
||||||
ret z
|
ret z
|
||||||
|
|
||||||
ld [hl], $f6
|
ld [hl], $f6
|
||||||
ret
|
ret
|
||||||
; 1062ff
|
; 1062ff
|
||||||
@ -92950,7 +92951,7 @@ Function1dc381: ; 1dc381
|
|||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
ld b, $3
|
ld b, $3
|
||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
ret
|
ret
|
||||||
; 1dc47b
|
; 1dc47b
|
||||||
|
|
||||||
@ -93002,7 +93003,7 @@ Function1dc47b: ; 1dc47b
|
|||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
ld b, $3
|
ld b, $3
|
||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
ret
|
ret
|
||||||
; 1dc507
|
; 1dc507
|
||||||
|
|
||||||
@ -93144,18 +93145,18 @@ Function1dd6bb: ; 1dd6bb (77:56bb)
|
|||||||
ld bc, $8102
|
ld bc, $8102
|
||||||
call PrintNum
|
call PrintNum
|
||||||
pop bc
|
pop bc
|
||||||
ld de, String_1dd6fc
|
ld de, String_AM
|
||||||
pop af
|
pop af
|
||||||
jr c, .asm_1dd6f7
|
jr c, .asm_1dd6f7
|
||||||
ld de, String_1dd6ff
|
ld de, String_PM
|
||||||
.asm_1dd6f7
|
.asm_1dd6f7
|
||||||
inc hl
|
inc hl
|
||||||
call PlaceString
|
call PlaceString
|
||||||
ret
|
ret
|
||||||
; 1dd6fc (77:56fc)
|
; 1dd6fc (77:56fc)
|
||||||
|
|
||||||
String_1dd6fc: db "AM@"
|
String_AM: db "AM@" ; 1dd6fc
|
||||||
String_1dd6ff: db "PM@"
|
String_PM: db "PM@" ; 1dd6ff
|
||||||
; 1dd702
|
; 1dd702
|
||||||
|
|
||||||
|
|
||||||
@ -93333,22 +93334,22 @@ Function1de27f: ; 1de27f
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
Function1de28a:: ; 1de28a
|
Start_DudeAutoInput_A:: ; 1de28a
|
||||||
ld hl, DudeAutoInput_A
|
ld hl, DudeAutoInput_A
|
||||||
jr Function1de299
|
jr CallStartAutoInput
|
||||||
; 1de28f
|
; 1de28f
|
||||||
|
|
||||||
Function1de28f: ; 1de28f
|
Start_DudeAutoInput_RightA: ; 1de28f
|
||||||
ld hl, DudeAutoInput_RightA
|
ld hl, DudeAutoInput_RightA
|
||||||
jr Function1de299
|
jr CallStartAutoInput
|
||||||
; 1de294
|
; 1de294
|
||||||
|
|
||||||
Function1de294: ; 1de294
|
Start_DudeAutoInput_DownA: ; 1de294
|
||||||
ld hl, DudeAutoInput_DownA
|
ld hl, DudeAutoInput_DownA
|
||||||
jr Function1de299
|
jr CallStartAutoInput
|
||||||
; 1de299
|
; 1de299
|
||||||
|
|
||||||
Function1de299: ; 1de299
|
CallStartAutoInput: ; 1de299
|
||||||
ld a, BANK(DudeAutoInputs)
|
ld a, BANK(DudeAutoInputs)
|
||||||
call StartAutoInput
|
call StartAutoInput
|
||||||
ret
|
ret
|
||||||
|
@ -50,7 +50,7 @@ Function17a6a8: ; 17a6a8 (5e:66a8)
|
|||||||
call Function17abcf
|
call Function17abcf
|
||||||
callba Function49409
|
callba Function49409
|
||||||
callba Function49420
|
callba Function49420
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
@ -1615,6 +1615,7 @@ Function100a09: ; 100a09
|
|||||||
ld a, [InLinkBattle]
|
ld a, [InLinkBattle]
|
||||||
cp $4
|
cp $4
|
||||||
jr nz, .asm_100a2a
|
jr nz, .asm_100a2a
|
||||||
|
|
||||||
call Function100a87
|
call Function100a87
|
||||||
call Function100da5
|
call Function100da5
|
||||||
callba Function3ee27
|
callba Function3ee27
|
||||||
@ -1941,15 +1942,15 @@ endr
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
.asm_100c63
|
.asm_100c63
|
||||||
ld hl, BattleText_0x80c5b
|
ld hl, BattleText_TheMoveIsDisabled
|
||||||
jr .asm_100c6b
|
jr .asm_100c6b
|
||||||
|
|
||||||
.asm_100c68
|
.asm_100c68
|
||||||
ld hl, BattleText_0x80c39
|
ld hl, BattleText_TheresNoPPLeftForThisMove
|
||||||
|
|
||||||
.asm_100c6b
|
.asm_100c6b
|
||||||
call StdBattleTextBox
|
call StdBattleTextBox
|
||||||
call Function30b4
|
call Call_LoadTempTileMapToTileMap
|
||||||
jp Function100bc2
|
jp Function100bc2
|
||||||
; 100c74
|
; 100c74
|
||||||
|
|
||||||
@ -3015,7 +3016,7 @@ Function10138b: ; 10138b
|
|||||||
|
|
||||||
Function1013aa: ; 1013aa
|
Function1013aa: ; 1013aa
|
||||||
call WhiteBGMap
|
call WhiteBGMap
|
||||||
call Function1d7d
|
call Call_ExitMenu
|
||||||
call Function2bae
|
call Function2bae
|
||||||
callba Function106464
|
callba Function106464
|
||||||
call UpdateSprites
|
call UpdateSprites
|
||||||
@ -6793,7 +6794,7 @@ Function102dec: ; 102dec
|
|||||||
ld a, $5
|
ld a, $5
|
||||||
call FarCopyWRAM
|
call FarCopyWRAM
|
||||||
callba Function49742
|
callba Function49742
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
ret
|
ret
|
||||||
; 102e07
|
; 102e07
|
||||||
|
@ -5789,7 +5789,7 @@ Function116294: ; 116294
|
|||||||
ld de, Unkn1Pals + 8 * 7
|
ld de, Unkn1Pals + 8 * 7
|
||||||
ld bc, $0008
|
ld bc, $0008
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
pop af
|
pop af
|
||||||
ld [rSVBK], a
|
ld [rSVBK], a
|
||||||
ld a, $30
|
ld a, $30
|
||||||
@ -5810,7 +5810,7 @@ Function1162cb: ; 1162cb
|
|||||||
ld de, wd050
|
ld de, wd050
|
||||||
ld bc, $0030
|
ld bc, $0030
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
pop af
|
pop af
|
||||||
ld [rSVBK], a
|
ld [rSVBK], a
|
||||||
ret
|
ret
|
||||||
@ -5917,7 +5917,7 @@ Function11636e: ; 11636e
|
|||||||
call CopyBytes
|
call CopyBytes
|
||||||
pop af
|
pop af
|
||||||
ld [rSVBK], a
|
ld [rSVBK], a
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
ld a, [rSVBK]
|
ld a, [rSVBK]
|
||||||
push af
|
push af
|
||||||
ld a, $1
|
ld a, $1
|
||||||
@ -5967,7 +5967,7 @@ Function1163c0: ; 1163c0
|
|||||||
call CopyBytes
|
call CopyBytes
|
||||||
pop af
|
pop af
|
||||||
ld [rSVBK], a
|
ld [rSVBK], a
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
ld a, $90
|
ld a, $90
|
||||||
ld [hWY], a
|
ld [hWY], a
|
||||||
@ -14155,7 +14155,7 @@ Function11a9c0: ; 11a9c0
|
|||||||
Function11a9ce: ; 11a9ce
|
Function11a9ce: ; 11a9ce
|
||||||
call WhiteBGMap
|
call WhiteBGMap
|
||||||
call Function2bae
|
call Function2bae
|
||||||
call Function1d7d
|
call Call_ExitMenu
|
||||||
callba Function106462
|
callba Function106462
|
||||||
callba Function106464
|
callba Function106464
|
||||||
call Functiond90
|
call Functiond90
|
||||||
@ -14937,7 +14937,7 @@ Function11b082: ; 11b082
|
|||||||
call Function11b099
|
call Function11b099
|
||||||
call Function11b295
|
call Function11b295
|
||||||
call Function11b275
|
call Function11b275
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
jp Function11ad8a
|
jp Function11ad8a
|
||||||
; 11b099
|
; 11b099
|
||||||
|
|
||||||
@ -16875,7 +16875,7 @@ Function11c1ca: ; 11c1ca
|
|||||||
call ClearSprites
|
call ClearSprites
|
||||||
call ClearScreen
|
call ClearScreen
|
||||||
call Function11d323
|
call Function11d323
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
call DisableLCD
|
call DisableLCD
|
||||||
ld hl, GFX_11d67e
|
ld hl, GFX_11d67e
|
||||||
ld de, VTiles2
|
ld de, VTiles2
|
||||||
@ -21659,7 +21659,7 @@ endr
|
|||||||
cp $8
|
cp $8
|
||||||
jr nz, .asm_16c969
|
jr nz, .asm_16c969
|
||||||
callba Function96a4
|
callba Function96a4
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
ld a, [rSVBK]
|
ld a, [rSVBK]
|
||||||
push af
|
push af
|
||||||
ld a, $1
|
ld a, $1
|
||||||
@ -21762,7 +21762,7 @@ endr
|
|||||||
cp $8
|
cp $8
|
||||||
jr nz, .asm_16ca28
|
jr nz, .asm_16ca28
|
||||||
callba Function96a4
|
callba Function96a4
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
ld a, [rSVBK]
|
ld a, [rSVBK]
|
||||||
push af
|
push af
|
||||||
ld a, $1
|
ld a, $1
|
||||||
@ -22185,10 +22185,10 @@ Function16d43b: ; 16d43b
|
|||||||
callba Function16d42e
|
callba Function16d42e
|
||||||
ld b, $8
|
ld b, $8
|
||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
call Functiona36
|
call Functiona36
|
||||||
call Function1d7d
|
call Call_ExitMenu
|
||||||
ret
|
ret
|
||||||
; 16d465
|
; 16d465
|
||||||
|
|
||||||
@ -22330,7 +22330,7 @@ Function16d6ce: ; 16d6ce
|
|||||||
call Function1d6e
|
call Function1d6e
|
||||||
call Function16d6e1
|
call Function16d6e1
|
||||||
callba Function87d
|
callba Function87d
|
||||||
call Function1d7d
|
call Call_ExitMenu
|
||||||
call Function3200
|
call Function3200
|
||||||
ret
|
ret
|
||||||
; 16d6e1
|
; 16d6e1
|
||||||
@ -23293,7 +23293,7 @@ Function170525: ; 170525
|
|||||||
|
|
||||||
|
|
||||||
Function170571:
|
Function170571:
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
call Function1705b2
|
call Function1705b2
|
||||||
|
|
||||||
|
|
||||||
@ -24906,7 +24906,7 @@ Function171ccd: ; 171ccd (5c:5ccd)
|
|||||||
ld [hli], a
|
ld [hli], a
|
||||||
ld a, $7f
|
ld a, $7f
|
||||||
ld [hl], a
|
ld [hl], a
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
pop af
|
pop af
|
||||||
ld [rSVBK], a ; $ff00+$70
|
ld [rSVBK], a ; $ff00+$70
|
||||||
ret
|
ret
|
||||||
@ -25068,7 +25068,7 @@ Function172eb9:
|
|||||||
ld de, BGPals
|
ld de, BGPals
|
||||||
ld bc, $40
|
ld bc, $40
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
pop af
|
pop af
|
||||||
ld [rSVBK], a ; $ff00+$70
|
ld [rSVBK], a ; $ff00+$70
|
||||||
ret
|
ret
|
||||||
|
@ -706,7 +706,7 @@ Function17d405:
|
|||||||
ld de, Unkn1Pals
|
ld de, Unkn1Pals
|
||||||
ld bc, $0040
|
ld bc, $0040
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
pop af
|
pop af
|
||||||
ld [rSVBK], a
|
ld [rSVBK], a
|
||||||
ret
|
ret
|
||||||
@ -938,7 +938,7 @@ endr
|
|||||||
; 17d5be
|
; 17d5be
|
||||||
|
|
||||||
Function17d5be: ; 17d5be
|
Function17d5be: ; 17d5be
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
call Function17e438
|
call Function17e438
|
||||||
|
|
||||||
Function17d5c4:
|
Function17d5c4:
|
||||||
@ -1508,7 +1508,7 @@ Function17d93a: ; 17d93a
|
|||||||
ld a, [wc70c]
|
ld a, [wc70c]
|
||||||
ld e, a
|
ld e, a
|
||||||
callba Function8bc6
|
callba Function8bc6
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
ld a, [wc708]
|
ld a, [wc708]
|
||||||
ld l, a
|
ld l, a
|
||||||
ld a, [wc709]
|
ld a, [wc709]
|
||||||
@ -1544,7 +1544,7 @@ Function17d98b: ; 17d98b
|
|||||||
ld a, [wc70b]
|
ld a, [wc70b]
|
||||||
ld e, a
|
ld e, a
|
||||||
callba Function8bbd
|
callba Function8bbd
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
ld a, [wc708]
|
ld a, [wc708]
|
||||||
ld e, a
|
ld e, a
|
||||||
ld a, [wc709]
|
ld a, [wc709]
|
||||||
@ -4764,7 +4764,7 @@ Function17f5c3: ; 17f5c3
|
|||||||
Function17f5d2: ; 17f5d2
|
Function17f5d2: ; 17f5d2
|
||||||
call Function17f5e4
|
call Function17f5e4
|
||||||
callba Function104000
|
callba Function104000
|
||||||
call Function32f9
|
call SetPalettes
|
||||||
ld a, $1
|
ld a, $1
|
||||||
ld [wc303], a
|
ld [wc303], a
|
||||||
ret
|
ret
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
BattleText_0x80730: ; 0x80730
|
BattleText_PlayerPickuedUpPayDayMoney: ; 0x80730
|
||||||
text "<PLAYER> picked up"
|
text "<PLAYER> picked up"
|
||||||
line "¥@"
|
line "¥@"
|
||||||
deciram wPayDayMoney, $36
|
deciram wPayDayMoney, $36
|
||||||
@ -307,7 +307,7 @@ BattleText_GotAwaySafely: ; 0x80b77
|
|||||||
text "Got away safely!"
|
text "Got away safely!"
|
||||||
prompt
|
prompt
|
||||||
|
|
||||||
BattleText_0x80b89: ; 0x80b89
|
BattleText_UserFledUsingAStringBuffer1: ; 0x80b89
|
||||||
text "<USER>"
|
text "<USER>"
|
||||||
line "fled using a"
|
line "fled using a"
|
||||||
cont "@"
|
cont "@"
|
||||||
@ -321,7 +321,7 @@ BattleText_CantEscape: ; 0x80ba0
|
|||||||
prompt
|
prompt
|
||||||
; 0x80bae
|
; 0x80bae
|
||||||
|
|
||||||
BattleText_0x80bae: ; 0x80bae
|
BattleText_UserHurtBySpikes: ; 0x80bae
|
||||||
text "<USER>'s"
|
text "<USER>'s"
|
||||||
line "hurt by SPIKES!"
|
line "hurt by SPIKES!"
|
||||||
prompt
|
prompt
|
||||||
@ -336,7 +336,7 @@ RecoveredUsingText: ; 0x80bc2
|
|||||||
prompt
|
prompt
|
||||||
; 0x80bde
|
; 0x80bde
|
||||||
|
|
||||||
BattleText_0x80bde: ; 0x80bde
|
BattleText_UsersStringBuffer1Activated: ; 0x80bde
|
||||||
text "<USER>'s"
|
text "<USER>'s"
|
||||||
line "@"
|
line "@"
|
||||||
text_from_ram StringBuffer1
|
text_from_ram StringBuffer1
|
||||||
@ -345,52 +345,52 @@ BattleText_0x80bde: ; 0x80bde
|
|||||||
prompt
|
prompt
|
||||||
; 0x80bf3
|
; 0x80bf3
|
||||||
|
|
||||||
BattleText_0x80bf3: ; 0x80bf3
|
BattleText_ItemsCantBeUsedHere: ; 0x80bf3
|
||||||
text "Items can't be"
|
text "Items can't be"
|
||||||
line "used here."
|
line "used here."
|
||||||
prompt
|
prompt
|
||||||
; 0x80c0d
|
; 0x80c0d
|
||||||
|
|
||||||
BattleText_0x80c0d: ; 0x80c0d
|
BattleText_PkmnIsAlreadyOut: ; 0x80c0d
|
||||||
text_from_ram BattleMonNick
|
text_from_ram BattleMonNick
|
||||||
text ""
|
text ""
|
||||||
line "is already out."
|
line "is already out."
|
||||||
prompt
|
prompt
|
||||||
; 0x80c22
|
; 0x80c22
|
||||||
|
|
||||||
BattleText_0x80c22: ; 0x80c22
|
BattleText_PkmnCantBeRecalled: ; 0x80c22
|
||||||
text_from_ram BattleMonNick
|
text_from_ram BattleMonNick
|
||||||
text ""
|
text ""
|
||||||
line "can't be recalled!"
|
line "can't be recalled!"
|
||||||
prompt
|
prompt
|
||||||
; 0x80c39
|
; 0x80c39
|
||||||
|
|
||||||
BattleText_0x80c39: ; 0x80c39
|
BattleText_TheresNoPPLeftForThisMove: ; 0x80c39
|
||||||
text "There's no PP left"
|
text "There's no PP left"
|
||||||
line "for this move!"
|
line "for this move!"
|
||||||
prompt
|
prompt
|
||||||
; 0x80c5b
|
; 0x80c5b
|
||||||
|
|
||||||
BattleText_0x80c5b: ; 0x80c5b
|
BattleText_TheMoveIsDisabled: ; 0x80c5b
|
||||||
text "The move is"
|
text "The move is"
|
||||||
line "DISABLED!"
|
line "DISABLED!"
|
||||||
prompt
|
prompt
|
||||||
; 0x80c72
|
; 0x80c72
|
||||||
|
|
||||||
BattleText_0x80c72: ; 0x80c72
|
BattleText_PkmnHasNoMovesLeft: ; 0x80c72
|
||||||
text_from_ram BattleMonNick
|
text_from_ram BattleMonNick
|
||||||
text ""
|
text ""
|
||||||
line "has no moves left!"
|
line "has no moves left!"
|
||||||
done
|
done
|
||||||
; 0x80c8a
|
; 0x80c8a
|
||||||
|
|
||||||
BattleText_0x80c8a: ; 0x80c8a
|
BattleText_TargetsEncoreEnded: ; 0x80c8a
|
||||||
text "<TARGET>'s"
|
text "<TARGET>'s"
|
||||||
line "ENCORE ended!"
|
line "ENCORE ended!"
|
||||||
prompt
|
prompt
|
||||||
; 0x80c9c
|
; 0x80c9c
|
||||||
|
|
||||||
BattleText_0x80c9c: ; 0x80c9c
|
BattleText_StringBuffer1GrewToLevel: ; 0x80c9c
|
||||||
text_from_ram StringBuffer1
|
text_from_ram StringBuffer1
|
||||||
text " grew to"
|
text " grew to"
|
||||||
line "level @"
|
line "level @"
|
||||||
@ -404,7 +404,7 @@ BattleText_0x80cb9: ; 0x80cb9
|
|||||||
db "@"
|
db "@"
|
||||||
; 0x80cba
|
; 0x80cba
|
||||||
|
|
||||||
BattleText_0x80cba: ; 0x80cba
|
BattleText_WildPkmnIsEating: ; 0x80cba
|
||||||
text "Wild @"
|
text "Wild @"
|
||||||
text_from_ram EnemyMonNick
|
text_from_ram EnemyMonNick
|
||||||
text ""
|
text ""
|
||||||
@ -412,7 +412,7 @@ BattleText_0x80cba: ; 0x80cba
|
|||||||
prompt
|
prompt
|
||||||
; 0x80cd1
|
; 0x80cd1
|
||||||
|
|
||||||
BattleText_0x80cd1: ; 0x80cd1
|
BattleText_WildPkmnIsAngry: ; 0x80cd1
|
||||||
text "Wild @"
|
text "Wild @"
|
||||||
text_from_ram EnemyMonNick
|
text_from_ram EnemyMonNick
|
||||||
text ""
|
text ""
|
||||||
@ -495,7 +495,7 @@ AlreadyConfusedText: ; 0x80dcc
|
|||||||
prompt
|
prompt
|
||||||
; 0x80de2
|
; 0x80de2
|
||||||
|
|
||||||
BattleText_0x80de2: ; 0x80de2
|
BattleText_UsersHurtByStringBuffer1: ; 0x80de2
|
||||||
text "<USER>'s"
|
text "<USER>'s"
|
||||||
line "hurt by"
|
line "hurt by"
|
||||||
cont "@"
|
cont "@"
|
||||||
@ -504,7 +504,7 @@ BattleText_0x80de2: ; 0x80de2
|
|||||||
prompt
|
prompt
|
||||||
; 0x80df5
|
; 0x80df5
|
||||||
|
|
||||||
BattleText_0x80df5: ; 0x80df5
|
BattleText_UserWasReleasedFromStringBuffer1: ; 0x80df5
|
||||||
text "<USER>"
|
text "<USER>"
|
||||||
line "was released from"
|
line "was released from"
|
||||||
cont "@"
|
cont "@"
|
||||||
|
@ -106,13 +106,13 @@ UnknownText_0x1c0272: ; 1c0272
|
|||||||
prompt
|
prompt
|
||||||
; 1c029c
|
; 1c029c
|
||||||
|
|
||||||
UnknownText_0x1c029c: ; 1c029c
|
Text_Gained: ; 1c029c
|
||||||
text_from_ram StringBuffer1
|
text_from_ram StringBuffer1
|
||||||
text " gained@"
|
text " gained@"
|
||||||
db "@"
|
db "@"
|
||||||
; 1c02a9
|
; 1c02a9
|
||||||
|
|
||||||
UnknownText_0x1c02a9: ; 1c02a9
|
Text_ABoostedStringBuffer2ExpPoints: ; 1c02a9
|
||||||
text ""
|
text ""
|
||||||
line "a boosted"
|
line "a boosted"
|
||||||
cont "@"
|
cont "@"
|
||||||
@ -121,7 +121,7 @@ UnknownText_0x1c02a9: ; 1c02a9
|
|||||||
prompt
|
prompt
|
||||||
; 1c02c9
|
; 1c02c9
|
||||||
|
|
||||||
UnknownText_0x1c02c9: ; 1c02c9
|
Text_StringBuffer2ExpPoints: ; 1c02c9
|
||||||
text ""
|
text ""
|
||||||
line "@"
|
line "@"
|
||||||
deciram StringBuffer2, $24
|
deciram StringBuffer2, $24
|
||||||
@ -157,31 +157,31 @@ Text_BattleMonNick01: ; 1c0317
|
|||||||
done
|
done
|
||||||
; 1c031d
|
; 1c031d
|
||||||
|
|
||||||
UnknownText_0x1c031d: ; 1c031d
|
Text_BattleMonNickComma: ; 1c031d
|
||||||
text_from_ram BattleMonNick
|
text_from_ram BattleMonNick
|
||||||
text ",@"
|
text ",@"
|
||||||
db "@"
|
db "@"
|
||||||
; 1c0324
|
; 1c0324
|
||||||
|
|
||||||
UnknownText_0x1c0324: ; 1c0324
|
Text_ThatsEnoughComeBack: ; 1c0324
|
||||||
text " that's"
|
text " that's"
|
||||||
line "enough! Come back!@"
|
line "enough! Come back!@"
|
||||||
db "@"
|
db "@"
|
||||||
; 1c0340
|
; 1c0340
|
||||||
|
|
||||||
UnknownText_0x1c0340: ; 1c0340
|
Text_OKComeBack: ; 1c0340
|
||||||
text " OK!"
|
text " OK!"
|
||||||
line "Come back!@"
|
line "Come back!@"
|
||||||
db "@"
|
db "@"
|
||||||
; 1c0352
|
; 1c0352
|
||||||
|
|
||||||
UnknownText_0x1c0352: ; 1c0352
|
Text_GoodComeBack: ; 1c0352
|
||||||
text " good!"
|
text " good!"
|
||||||
line "Come back!@"
|
line "Come back!@"
|
||||||
db "@"
|
db "@"
|
||||||
; 1c0366
|
; 1c0366
|
||||||
|
|
||||||
UnknownText_0x1c0366: ; 1c0366
|
Text_ComeBack: ; 1c0366
|
||||||
text " come"
|
text " come"
|
||||||
line "back!"
|
line "back!"
|
||||||
done
|
done
|
||||||
|
@ -1428,7 +1428,7 @@ UnknownText_0x1c5bac: ; 0x1c5bac
|
|||||||
prompt
|
prompt
|
||||||
; 0x1c5bcd
|
; 0x1c5bcd
|
||||||
|
|
||||||
UnknownText_0x1c5bcd: ; 0x1c5bcd
|
Text_RepelUsedEarlierIsStillInEffect: ; 0x1c5bcd
|
||||||
text "The REPEL used"
|
text "The REPEL used"
|
||||||
line "earlier is still"
|
line "earlier is still"
|
||||||
cont "in effect."
|
cont "in effect."
|
||||||
@ -1674,7 +1674,7 @@ UnknownText_0x1c5fd1: ; 0x1c5fd1
|
|||||||
prompt
|
prompt
|
||||||
; 0x1c5fde
|
; 0x1c5fde
|
||||||
|
|
||||||
UnknownText_0x1c5fde: ; 0x1c5fde
|
Text_DSTIsThatOK: ; 0x1c5fde
|
||||||
text " DST,"
|
text " DST,"
|
||||||
line "is that OK?"
|
line "is that OK?"
|
||||||
done
|
done
|
||||||
|
46
wram.asm
46
wram.asm
@ -819,13 +819,13 @@ LastEnemyMove:: ; c71c
|
|||||||
wc71d:: ds 1
|
wc71d:: ds 1
|
||||||
wc71e:: ds 1
|
wc71e:: ds 1
|
||||||
wc71f:: ds 1
|
wc71f:: ds 1
|
||||||
wc720:: ds 4
|
wc720:: ds 4 ; copy from/to EnemyMonBaseStats, length=7
|
||||||
wc724:: ds 3
|
wc724:: ds 3
|
||||||
wc727:: ds 2
|
wc727:: ds 2
|
||||||
wc729:: ds 2
|
wc729:: ds 2
|
||||||
wc72b:: ds 1
|
wc72b:: ds 1
|
||||||
wc72c:: ds 1
|
wc72c:: ds 1
|
||||||
wc72d:: ds 1
|
wc72d:: ds 1 ; if 0 then PrintButItFailed
|
||||||
wc72e:: ds 1
|
wc72e:: ds 1
|
||||||
wc72f:: ds 1
|
wc72f:: ds 1
|
||||||
wc730:: ds 1
|
wc730:: ds 1
|
||||||
@ -887,17 +887,17 @@ wc7e8:: ds 24
|
|||||||
|
|
||||||
|
|
||||||
RSSET 0 ; Offsets for wBT_OTTempCopy:: @ $c608
|
RSSET 0 ; Offsets for wBT_OTTempCopy:: @ $c608
|
||||||
wBT_OTTempCopy_0 RB $A ; $c608
|
wBT_OTTempCopy_0 RB $A ; $c608
|
||||||
wBT_OTTempCopy_TrainerClass RB $1 ; $c608 + $a = $c612
|
wBT_OTTempCopy_TrainerClass RB $1 ; $c608 + $a = $c612
|
||||||
wBT_OTTempCopy_Pkmn1 RB $30 ; $c608 + $b = $c613
|
wBT_OTTempCopy_Pkmn1 RB $30 ; $c608 + $b = $c613
|
||||||
wBT_OTTempCopy_Pkmn1Name RB $A ; $c608 + $3b = $c643
|
wBT_OTTempCopy_Pkmn1Name RB $A ; $c608 + $3b = $c643
|
||||||
wBT_OTTempCopy_45 RB $1 ; $c608 + $45 = $c64d
|
wBT_OTTempCopy_45 RB $1 ; $c608 + $45 = $c64d
|
||||||
wBT_OTTempCopy_Pkmn2 RB $30 ; $c608 + $46 = $c64e
|
wBT_OTTempCopy_Pkmn2 RB $30 ; $c608 + $46 = $c64e
|
||||||
wBT_OTTempCopy_Pkmn2Name RB $A ; $c608 + $76 = $c67e
|
wBT_OTTempCopy_Pkmn2Name RB $A ; $c608 + $76 = $c67e
|
||||||
wBT_OTTempCopy_80 RB $1 ; $c608 + $80 = $c688
|
wBT_OTTempCopy_80 RB $1 ; $c608 + $80 = $c688
|
||||||
wBT_OTTempCopy_Pkmn3 RB $30 ; $c608 + $81 = $c689
|
wBT_OTTempCopy_Pkmn3 RB $30 ; $c608 + $81 = $c689
|
||||||
wBT_OTTempCopy_Pkmn3Name RB $A ; $c608 + $b1 = $c6b9
|
wBT_OTTempCopy_Pkmn3Name RB $A ; $c608 + $b1 = $c6b9
|
||||||
wBT_OTTempCopy_BB RB $1 ; $c608 + $bb = $c6c3
|
wBT_OTTempCopy_BB RB $1 ; $c608 + $bb = $c6c3
|
||||||
|
|
||||||
GLOBAL wBT_OTTempCopy_TrainerClass, wBT_OTTempCopy_Pkmn1, wBT_OTTempCopy_Pkmn1Name, wBT_OTTempCopy_45, wBT_OTTempCopy_Pkmn2, wBT_OTTempCopy_Pkmn2Name, wBT_OTTempCopy_80, wBT_OTTempCopy_Pkmn3, wBT_OTTempCopy_Pkmn3Name, wBT_OTTempCopy_BB
|
GLOBAL wBT_OTTempCopy_TrainerClass, wBT_OTTempCopy_Pkmn1, wBT_OTTempCopy_Pkmn1Name, wBT_OTTempCopy_45, wBT_OTTempCopy_Pkmn2, wBT_OTTempCopy_Pkmn2Name, wBT_OTTempCopy_80, wBT_OTTempCopy_Pkmn3, wBT_OTTempCopy_Pkmn3Name, wBT_OTTempCopy_BB
|
||||||
|
|
||||||
@ -1758,17 +1758,17 @@ OtherTrainerClass:: ; d22f
|
|||||||
|
|
||||||
BattleType:: ; d230
|
BattleType:: ; d230
|
||||||
; $00 normal
|
; $00 normal
|
||||||
; $01
|
; $01 can lose
|
||||||
; $02
|
; $02 debug
|
||||||
; $03 dude
|
; $03 dude/tutorial
|
||||||
; $04 fishing
|
; $04 fishing
|
||||||
; $05 roaming
|
; $05 roaming
|
||||||
; $06
|
; $06 contest
|
||||||
; $07 shiny
|
; $07 shiny
|
||||||
; $08 headbutt/rock smash
|
; $08 headbutt/rock smash
|
||||||
; $09
|
; $09 trap
|
||||||
; $0a force Item1
|
; $0a force Item1
|
||||||
; $0b
|
; $0b celebi
|
||||||
; $0c suicune
|
; $0c suicune
|
||||||
ds 1
|
ds 1
|
||||||
|
|
||||||
@ -2421,7 +2421,9 @@ wdc7c:: ds 33
|
|||||||
wdc9d:: ds 2
|
wdc9d:: ds 2
|
||||||
wdc9f:: ds 1
|
wdc9f:: ds 1
|
||||||
wdca0:: ds 1
|
wdca0:: ds 1
|
||||||
wdca1:: ds 3
|
RepelStepsLeft:: ; If a Repel is in use, it contains the nr of steps it's still active
|
||||||
|
ds 1
|
||||||
|
wdca2:: ds 2
|
||||||
wdca4:: ds 1
|
wdca4:: ds 1
|
||||||
|
|
||||||
wPlayerDataEnd::
|
wPlayerDataEnd::
|
||||||
@ -2586,7 +2588,9 @@ wPokemonDataEnd::
|
|||||||
|
|
||||||
SECTION "Pic Animations", WRAMX, BANK [2]
|
SECTION "Pic Animations", WRAMX, BANK [2]
|
||||||
|
|
||||||
w2_d000:: ds $168
|
w2_d000::
|
||||||
|
; 20x18 grid of 8x8 tiles
|
||||||
|
ds SCREEN_WIDTH * SCREEN_HEIGHT ; $168 = 360
|
||||||
|
|
||||||
w2_d168:: ds 1
|
w2_d168:: ds 1
|
||||||
w2_d169:: ds 1
|
w2_d169:: ds 1
|
||||||
|
Loading…
Reference in New Issue
Block a user