mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-01-23 09:16:20 -08:00
Merge branch 'master' of https://github.com/pret/pokecrystal
This commit is contained in:
commit
9aa6b55d7b
constants
data/events
engine
battle
events
gfx
link
menus
pokemon
@ -63,7 +63,7 @@ MOVE_LENGTH EQU const_value
|
||||
const STAT_SATK
|
||||
NUM_EXP_STATS EQU const_value + -1
|
||||
const STAT_SDEF
|
||||
NUM_STATS EQU const_value
|
||||
NUM_STATS EQU const_value +- 1
|
||||
STAT_SPC EQU STAT_SATK
|
||||
|
||||
; stat formula constants
|
||||
|
@ -49,6 +49,6 @@ NUM_SPRITE_OAM_STRUCTS EQU 40 ; see wVirtualOAM
|
||||
const ANIM_MON_TRADE
|
||||
const ANIM_MON_EVOLVE
|
||||
const ANIM_MON_HATCH
|
||||
const ANIM_MON_UNUSED
|
||||
const ANIM_MON_HOF
|
||||
const ANIM_MON_EGG1
|
||||
const ANIM_MON_EGG2
|
||||
|
@ -94,7 +94,7 @@ OddEgg1End:
|
||||
bigdw 0
|
||||
bigdw 0
|
||||
bigdw 0
|
||||
db $0, $0 ; DVs
|
||||
dn 0, 0, 0, 0 ; DVs
|
||||
db 35, 20, 10, 0 ; PP
|
||||
db 20 ; Happiness
|
||||
db 0, 0, 0 ; Pokerus, Caught data
|
||||
@ -146,7 +146,7 @@ OddEgg1End:
|
||||
bigdw 0
|
||||
bigdw 0
|
||||
bigdw 0
|
||||
db $0, $0 ; DVs
|
||||
dn 0, 0, 0, 0 ; DVs
|
||||
db 15, 20, 10, 0 ; PP
|
||||
db 20 ; Happiness
|
||||
db 0, 0, 0 ; Pokerus, Caught data
|
||||
@ -198,7 +198,7 @@ OddEgg1End:
|
||||
bigdw 0
|
||||
bigdw 0
|
||||
bigdw 0
|
||||
db $0, $0 ; DVs
|
||||
dn 0, 0, 0, 0 ; DVs
|
||||
db 35, 30, 10, 0 ; PP
|
||||
db 20 ; Happiness
|
||||
db 0, 0, 0 ; Pokerus, Caught data
|
||||
@ -250,7 +250,7 @@ OddEgg1End:
|
||||
bigdw 0
|
||||
bigdw 0
|
||||
bigdw 0
|
||||
db $0, $0 ; DVs
|
||||
dn 0, 0, 0, 0 ; DVs
|
||||
db 25, 10, 0, 0 ; PP
|
||||
db 20 ; Happiness
|
||||
db 0, 0, 0 ; Pokerus, Caught data
|
||||
@ -302,7 +302,7 @@ OddEgg1End:
|
||||
bigdw 0
|
||||
bigdw 0
|
||||
bigdw 0
|
||||
db $0, $0 ; DVs
|
||||
dn 0, 0, 0, 0 ; DVs
|
||||
db 30, 30, 10, 0 ; PP
|
||||
db 20 ; Happiness
|
||||
db 0, 0, 0 ; Pokerus, Caught data
|
||||
@ -354,7 +354,7 @@ OddEgg1End:
|
||||
bigdw 0
|
||||
bigdw 0
|
||||
bigdw 0
|
||||
db $0, $0 ; DVs
|
||||
dn 0, 0, 0, 0 ; DVs
|
||||
db 35, 10, 0, 0 ; PP
|
||||
db 20 ; Happiness
|
||||
db 0, 0, 0 ; Pokerus, Caught data
|
||||
|
@ -530,7 +530,7 @@ DetermineMoveOrder:
|
||||
ld de, wBattleMonSpeed
|
||||
ld hl, wEnemyMonSpeed
|
||||
ld c, 2
|
||||
call StringCmp
|
||||
call CompareBytes
|
||||
jr z, .speed_tie
|
||||
jp nc, .player_first
|
||||
jp .enemy_first
|
||||
@ -3715,19 +3715,19 @@ TryToRunAwayFromBattle:
|
||||
inc a
|
||||
ld [wNumFleeAttempts], a
|
||||
ld a, [hli]
|
||||
ld [hStringCmpString2 + 0], a
|
||||
ld [hPartyMon1Speed + 0], a
|
||||
ld a, [hl]
|
||||
ld [hStringCmpString2 + 1], a
|
||||
ld [hPartyMon1Speed + 1], a
|
||||
ld a, [de]
|
||||
inc de
|
||||
ld [hStringCmpString1 + 0], a
|
||||
ld [hEnemyMonSpeed + 0], a
|
||||
ld a, [de]
|
||||
ld [hStringCmpString1 + 1], a
|
||||
ld [hEnemyMonSpeed + 1], a
|
||||
call Call_LoadTempTileMapToTileMap
|
||||
ld de, hStringCmpString2
|
||||
ld hl, hStringCmpString1
|
||||
ld c, $2
|
||||
call StringCmp
|
||||
ld de, hPartyMon1Speed
|
||||
ld hl, hEnemyMonSpeed
|
||||
ld c, 2
|
||||
call CompareBytes
|
||||
jr nc, .can_escape
|
||||
|
||||
xor a
|
||||
@ -3739,9 +3739,9 @@ TryToRunAwayFromBattle:
|
||||
ld [hDividend + 0], a
|
||||
ld a, [hProduct + 3]
|
||||
ld [hDividend + 1], a
|
||||
ld a, [hStringCmpString1 + 0]
|
||||
ld a, [hEnemyMonSpeed + 0]
|
||||
ld b, a
|
||||
ld a, [hStringCmpString1 + 1]
|
||||
ld a, [hEnemyMonSpeed + 1]
|
||||
srl b
|
||||
rr a
|
||||
srl b
|
||||
@ -7113,7 +7113,7 @@ GiveExperiencePoints:
|
||||
push bc
|
||||
call LoadTileMapToTempTileMap
|
||||
pop bc
|
||||
ld hl, MON_STAT_EXP - 1
|
||||
ld hl, MON_EXP + 2
|
||||
add hl, bc
|
||||
ld d, [hl]
|
||||
ld a, [hQuotient + 2]
|
||||
@ -7145,7 +7145,7 @@ GiveExperiencePoints:
|
||||
ld d, MAX_LEVEL
|
||||
callfar CalcExpAtLevel
|
||||
pop bc
|
||||
ld hl, MON_STAT_EXP - 1
|
||||
ld hl, MON_EXP + 2
|
||||
add hl, bc
|
||||
push bc
|
||||
ld a, [hQuotient]
|
||||
@ -8712,7 +8712,7 @@ AddLastMobileBattleToLinkRecord:
|
||||
push de
|
||||
ld bc, 12
|
||||
ld de, wStringBuffer1
|
||||
call CompareLong
|
||||
call CompareBytesLong
|
||||
pop de
|
||||
pop hl
|
||||
jr c, .done
|
||||
@ -8821,7 +8821,7 @@ AddLastMobileBattleToLinkRecord:
|
||||
pop hl
|
||||
push bc
|
||||
ld c, 3
|
||||
call StringCmp
|
||||
call CompareBytes
|
||||
pop bc
|
||||
jr z, .equal
|
||||
jr nc, .done2
|
||||
@ -9094,7 +9094,7 @@ BattleStartMessage:
|
||||
jr .skip_cry ; cry is played during the animation
|
||||
|
||||
.cry_no_anim
|
||||
ld a, $0f
|
||||
ld a, $f
|
||||
ld [wCryTracks], a
|
||||
ld a, [wTempEnemyMonSpecies]
|
||||
call PlayStereoCry
|
||||
|
@ -6154,7 +6154,7 @@ BattleCommand_Heal:
|
||||
push de
|
||||
push bc
|
||||
ld c, 2
|
||||
call StringCmp
|
||||
call CompareBytes
|
||||
pop bc
|
||||
pop de
|
||||
pop hl
|
||||
@ -6573,7 +6573,7 @@ BattleCommand_TimeBasedHealContinue:
|
||||
|
||||
; Don't bother healing if HP is already full.
|
||||
push bc
|
||||
call StringCmp
|
||||
call CompareBytes
|
||||
pop bc
|
||||
jr z, .Full
|
||||
|
||||
|
@ -13,7 +13,7 @@ BattleCommand_FalseSwipe:
|
||||
ld c, 2
|
||||
push hl
|
||||
push de
|
||||
call StringCmp
|
||||
call CompareBytes
|
||||
pop de
|
||||
pop hl
|
||||
jr c, .done
|
||||
|
@ -171,7 +171,7 @@ DetermineContestWinners:
|
||||
ld de, wBugContestTempScore
|
||||
ld hl, wBugContestFirstPlaceScore
|
||||
ld c, 2
|
||||
call StringCmp
|
||||
call CompareBytes
|
||||
jr c, .not_first_place
|
||||
ld hl, wBugContestSecondPlaceWinnerID
|
||||
ld de, wBugContestThirdPlaceWinnerID
|
||||
@ -189,7 +189,7 @@ DetermineContestWinners:
|
||||
ld de, wBugContestTempScore
|
||||
ld hl, wBugContestSecondPlaceScore
|
||||
ld c, 2
|
||||
call StringCmp
|
||||
call CompareBytes
|
||||
jr c, .not_second_place
|
||||
ld hl, wBugContestSecondPlaceWinnerID
|
||||
ld de, wBugContestThirdPlaceWinnerID
|
||||
@ -203,7 +203,7 @@ DetermineContestWinners:
|
||||
ld de, wBugContestTempScore
|
||||
ld hl, wBugContestThirdPlaceScore
|
||||
ld c, 2
|
||||
call StringCmp
|
||||
call CompareBytes
|
||||
jr c, .done
|
||||
ld hl, wBugContestThirdPlaceWinnerID
|
||||
call CopyTempContestant
|
||||
|
@ -124,7 +124,7 @@ AnimateHallOfFame:
|
||||
call PlaceString
|
||||
call WaitBGMap
|
||||
decoord 6, 5
|
||||
ld c, $6
|
||||
ld c, ANIM_MON_HOF
|
||||
predef HOF_AnimateFrontpic
|
||||
ld c, 60
|
||||
call DelayFrames
|
||||
@ -390,7 +390,7 @@ _HallOfFamePC:
|
||||
call GetSGBLayout
|
||||
call SetPalettes
|
||||
decoord 6, 5
|
||||
ld c, $6
|
||||
ld c, ANIM_MON_HOF
|
||||
predef HOF_AnimateFrontpic
|
||||
and a
|
||||
ret
|
||||
|
@ -36,7 +36,7 @@ CheckMagikarpLength:
|
||||
ld hl, wMagikarpLength
|
||||
ld de, wBestMagikarpLengthFeet
|
||||
ld c, 2
|
||||
call StringCmp
|
||||
call CompareBytes
|
||||
jr nc, .not_long_enough
|
||||
|
||||
; NEW RECORD!!! Let's save that.
|
||||
|
@ -478,21 +478,21 @@ PlayerDepositItemMenu:
|
||||
push af
|
||||
ld a, [wBuffer2]
|
||||
push af
|
||||
call .DepositItem_
|
||||
call .DepositItem
|
||||
pop af
|
||||
ld [wBuffer2], a
|
||||
pop af
|
||||
ld [wBuffer1], a
|
||||
ret
|
||||
|
||||
.DepositItem_:
|
||||
.DepositItem:
|
||||
farcall _CheckTossableItem
|
||||
ld a, [wItemAttributeParamBuffer]
|
||||
and a
|
||||
jr z, .AskQuantity
|
||||
ld a, $1
|
||||
ld [wItemQuantityChangeBuffer], a
|
||||
jr .DepositItem
|
||||
jr .ContinueDeposit
|
||||
|
||||
.AskQuantity:
|
||||
ld hl, .HowManyText
|
||||
@ -504,7 +504,7 @@ PlayerDepositItemMenu:
|
||||
pop af
|
||||
jr c, .DeclinedToDeposit
|
||||
|
||||
.DepositItem:
|
||||
.ContinueDeposit:
|
||||
ld a, [wItemQuantityChangeBuffer]
|
||||
ld [wBuffer1], a
|
||||
ld a, [wCurItemQuantity]
|
||||
|
@ -266,7 +266,7 @@ _CGB_Pokedex:
|
||||
jr .got_palette
|
||||
|
||||
.is_pokemon
|
||||
call GetMonPalettePointer_
|
||||
call GetMonPalettePointer
|
||||
call LoadPalette_White_Col1_Col2_Black ; mon palette
|
||||
.got_palette
|
||||
call WipeAttrMap
|
||||
@ -352,7 +352,7 @@ _CGB_PokedexUnownMode:
|
||||
call GetPredefPal
|
||||
call LoadHLPaletteIntoDE
|
||||
ld a, [wCurPartySpecies]
|
||||
call GetMonPalettePointer_
|
||||
call GetMonPalettePointer
|
||||
call LoadPalette_White_Col1_Col2_Black
|
||||
call WipeAttrMap
|
||||
hlcoord 7, 5, wAttrMap
|
||||
@ -914,7 +914,7 @@ _CGB_PlayerOrMonFrontpicPals:
|
||||
_CGB1e:
|
||||
ld de, wBGPals1
|
||||
ld a, [wCurPartySpecies]
|
||||
call GetMonPalettePointer_
|
||||
call GetMonPalettePointer
|
||||
call LoadPalette_White_Col1_Col2_Black
|
||||
call WipeAttrMap
|
||||
call ApplyAttrMap
|
||||
|
@ -94,9 +94,9 @@ Unreferenced_Function8aa4:
|
||||
ld a, d
|
||||
ld [wSGBPals + 6], a
|
||||
ld hl, wSGBPals
|
||||
call PushSGBPals_
|
||||
call PushSGBPals
|
||||
ld hl, BlkPacket_9a86
|
||||
call PushSGBPals_
|
||||
call PushSGBPals
|
||||
ret
|
||||
|
||||
InitPartyMenuPalettes:
|
||||
@ -173,7 +173,7 @@ Unreferenced_Function8b3f:
|
||||
and a
|
||||
ret z
|
||||
ld hl, BlkPacket_9a86
|
||||
jp PushSGBPals_
|
||||
jp PushSGBPals
|
||||
|
||||
Unreferenced_Function8b4d:
|
||||
call CheckCGB
|
||||
@ -182,7 +182,7 @@ Unreferenced_Function8b4d:
|
||||
and a
|
||||
ret z
|
||||
ld hl, PalPacket_BetaIntroVenusaur
|
||||
jp PushSGBPals_
|
||||
jp PushSGBPals
|
||||
|
||||
.cgb
|
||||
ld de, wOBPals1
|
||||
@ -197,7 +197,7 @@ Unreferenced_Function8b67:
|
||||
and a
|
||||
ret z
|
||||
ld hl, PalPacket_Pack
|
||||
jp PushSGBPals_
|
||||
jp PushSGBPals
|
||||
|
||||
.cgb
|
||||
ld de, wOBPals1
|
||||
@ -218,7 +218,7 @@ Unreferenced_Function8b81:
|
||||
ld bc, PALPACKET_LENGTH
|
||||
call CopyBytes
|
||||
pop af
|
||||
call GetMonPalettePointer_
|
||||
call GetMonPalettePointer
|
||||
ld a, [hli]
|
||||
ld [wSGBPals + 3], a
|
||||
ld a, [hli]
|
||||
@ -228,12 +228,12 @@ Unreferenced_Function8b81:
|
||||
ld a, [hl]
|
||||
ld [wSGBPals + 6], a
|
||||
ld hl, wSGBPals
|
||||
jp PushSGBPals_
|
||||
jp PushSGBPals
|
||||
|
||||
.cgb
|
||||
ld de, wOBPals1
|
||||
ld a, c
|
||||
call GetMonPalettePointer_
|
||||
call GetMonPalettePointer
|
||||
call LoadPalette_White_Col1_Col2_Black
|
||||
ret
|
||||
|
||||
@ -245,7 +245,7 @@ LoadTrainerClassPaletteAsNthBGPal:
|
||||
|
||||
LoadMonPaletteAsNthBGPal:
|
||||
ld a, [wCurPartySpecies]
|
||||
call GetMonPalettePointer
|
||||
call _GetMonPalettePointer
|
||||
ld a, e
|
||||
bit 7, a
|
||||
jr z, got_palette_pointer_8bd7
|
||||
@ -278,7 +278,7 @@ Unreferenced_Function8bec:
|
||||
and a
|
||||
jr nz, .cgb
|
||||
ld hl, wPlayerLightScreenCount
|
||||
jp PushSGBPals_
|
||||
jp PushSGBPals
|
||||
|
||||
.cgb
|
||||
ld a, [wEnemyLightScreenCount] ; col
|
||||
@ -310,7 +310,7 @@ ApplyMonOrTrainerPals:
|
||||
and a
|
||||
jr z, .get_trainer
|
||||
ld a, [wCurPartySpecies]
|
||||
call GetMonPalettePointer_
|
||||
call GetMonPalettePointer
|
||||
jr .load_palettes
|
||||
|
||||
.get_trainer
|
||||
@ -426,9 +426,9 @@ LoadMailPalettes:
|
||||
ld a, [hli]
|
||||
ld [wSGBPals + 6], a
|
||||
ld hl, wSGBPals
|
||||
call PushSGBPals_
|
||||
call PushSGBPals
|
||||
ld hl, BlkPacket_9a86
|
||||
call PushSGBPals_
|
||||
call PushSGBPals
|
||||
ret
|
||||
|
||||
.cgb
|
||||
@ -732,8 +732,8 @@ GetTrainerPalettePointer:
|
||||
add hl, bc
|
||||
ret
|
||||
|
||||
GetMonPalettePointer_:
|
||||
call GetMonPalettePointer
|
||||
GetMonPalettePointer:
|
||||
call _GetMonPalettePointer
|
||||
ret
|
||||
|
||||
Unreferenced_Function9779:
|
||||
@ -781,7 +781,7 @@ Unreferenced_Function97cc:
|
||||
jr nz, .loop
|
||||
ret
|
||||
|
||||
GetMonPalettePointer:
|
||||
_GetMonPalettePointer:
|
||||
ld l, a
|
||||
ld h, $0
|
||||
add hl, hl
|
||||
@ -793,7 +793,7 @@ GetMonPalettePointer:
|
||||
|
||||
GetMonNormalOrShinyPalettePointer:
|
||||
push bc
|
||||
call GetMonPalettePointer
|
||||
call _GetMonPalettePointer
|
||||
pop bc
|
||||
push hl
|
||||
call CheckShininess
|
||||
@ -804,17 +804,17 @@ rept 4
|
||||
endr
|
||||
ret
|
||||
|
||||
PushSGBPals_:
|
||||
PushSGBPals:
|
||||
ld a, [wcfbe]
|
||||
push af
|
||||
set 7, a
|
||||
ld [wcfbe], a
|
||||
call PushSGBPals
|
||||
call _PushSGBPals
|
||||
pop af
|
||||
ld [wcfbe], a
|
||||
ret
|
||||
|
||||
PushSGBPals:
|
||||
_PushSGBPals:
|
||||
ld a, [hl]
|
||||
and $7
|
||||
ret z
|
||||
@ -878,7 +878,7 @@ InitSGBBorder:
|
||||
call SGBDelayCycles
|
||||
call SGB_ClearVRAM
|
||||
ld hl, MaskEnCancelPacket
|
||||
call PushSGBPals
|
||||
call _PushSGBPals
|
||||
|
||||
.skip
|
||||
pop af
|
||||
@ -950,7 +950,7 @@ _InitSGBBorderPals:
|
||||
push hl
|
||||
ld h, [hl]
|
||||
ld l, a
|
||||
call PushSGBPals
|
||||
call _PushSGBPals
|
||||
pop hl
|
||||
inc hl
|
||||
pop bc
|
||||
@ -974,12 +974,12 @@ Unreferenced_Function9911:
|
||||
xor a
|
||||
ld [rJOYP], a
|
||||
ld hl, MaskEnFreezePacket
|
||||
call PushSGBPals
|
||||
call _PushSGBPals
|
||||
call PushSGBBorder
|
||||
call SGBDelayCycles
|
||||
call SGB_ClearVRAM
|
||||
ld hl, MaskEnCancelPacket
|
||||
call PushSGBPals
|
||||
call _PushSGBPals
|
||||
ei
|
||||
ret
|
||||
|
||||
@ -1005,7 +1005,7 @@ SGB_ClearVRAM:
|
||||
|
||||
PushSGBBorderPalsAndWait:
|
||||
ld hl, MltReq2Packet
|
||||
call PushSGBPals
|
||||
call _PushSGBPals
|
||||
call SGBDelayCycles
|
||||
ld a, [rJOYP]
|
||||
and $3
|
||||
@ -1050,7 +1050,7 @@ endr
|
||||
|
||||
.FinalPush:
|
||||
ld hl, MltReq1Packet
|
||||
call PushSGBPals
|
||||
call _PushSGBPals
|
||||
jp SGBDelayCycles
|
||||
|
||||
SGBBorder_PushBGPals:
|
||||
@ -1065,7 +1065,7 @@ SGBBorder_PushBGPals:
|
||||
ld a, LCDC_DEFAULT
|
||||
ld [rLCDC], a
|
||||
ld hl, PalTrnPacket
|
||||
call PushSGBPals
|
||||
call _PushSGBPals
|
||||
xor a
|
||||
ld [rBGP], a
|
||||
ret
|
||||
@ -1099,7 +1099,7 @@ SGBBorder_MorePalPushing:
|
||||
ld a, LCDC_DEFAULT
|
||||
ld [rLCDC], a
|
||||
ld hl, PctTrnPacket
|
||||
call PushSGBPals
|
||||
call _PushSGBPals
|
||||
xor a
|
||||
ld [rBGP], a
|
||||
ret
|
||||
@ -1123,7 +1123,7 @@ SGBBorder_YetMorePalPushing:
|
||||
ld a, LCDC_DEFAULT
|
||||
ld [rLCDC], a
|
||||
ld hl, ChrTrnPacket
|
||||
call PushSGBPals
|
||||
call _PushSGBPals
|
||||
xor a
|
||||
ld [rBGP], a
|
||||
ret
|
||||
|
@ -284,7 +284,7 @@ _InitMG_Mobile_LinkTradePalMap:
|
||||
call ByteFill
|
||||
ret
|
||||
|
||||
LoadTradeRoomBGPals:
|
||||
_LoadTradeRoomBGPals:
|
||||
ld hl, TradeRoomPalette
|
||||
ld de, wBGPals1 palette PAL_BG_GREEN
|
||||
ld bc, 6 palettes
|
||||
|
@ -40,8 +40,8 @@ AnimateMon_Hatch:
|
||||
call AnimateFrontpic
|
||||
ret
|
||||
|
||||
AnimateMon_Unused:
|
||||
ld e, ANIM_MON_UNUSED
|
||||
AnimateMon_HOF:
|
||||
ld e, ANIM_MON_HOF
|
||||
ld d, $0
|
||||
call AnimateFrontpic
|
||||
ret
|
||||
@ -59,13 +59,14 @@ endr
|
||||
ENDM
|
||||
|
||||
PokeAnims:
|
||||
; entries correspond to ANIM_MON_* constants
|
||||
dw .Slow
|
||||
dw .Normal
|
||||
dw .Menu
|
||||
dw .Trade
|
||||
dw .Evolve
|
||||
dw .Hatch
|
||||
dw .Unused ; same as .Menu
|
||||
dw .HOF
|
||||
dw .Egg1
|
||||
dw .Egg2
|
||||
|
||||
@ -75,7 +76,7 @@ PokeAnims:
|
||||
.Trade: pokeanim Idle, Play2, Idle, Play, SetWait, Wait, Cry, Setup, Play
|
||||
.Evolve: pokeanim Idle, Play, SetWait, Wait, CryNoWait, Setup, Play
|
||||
.Hatch: pokeanim Idle, Play, CryNoWait, Setup, Play, SetWait, Wait, Idle, Play
|
||||
.Unused: pokeanim CryNoWait, Setup, Play, SetWait, Wait, Idle, Play
|
||||
.HOF: pokeanim CryNoWait, Setup, Play, SetWait, Wait, Idle, Play
|
||||
.Egg1: pokeanim Setup, Play
|
||||
.Egg2: pokeanim Idle, Play
|
||||
|
||||
@ -108,7 +109,7 @@ LoadMonAnimation:
|
||||
SetUpPokeAnim:
|
||||
ld a, [rSVBK]
|
||||
push af
|
||||
ld a, BANK(wPokeAnimSceneIndex)
|
||||
ld a, BANK(wPokeAnimStruct)
|
||||
ld [rSVBK], a
|
||||
ld a, [wPokeAnimSceneIndex]
|
||||
ld c, a
|
||||
@ -283,14 +284,14 @@ AnimateMon_CheckIfPokemon:
|
||||
PokeAnim_InitPicAttributes:
|
||||
ld a, [rSVBK]
|
||||
push af
|
||||
ld a, BANK(wPokeAnimSceneIndex)
|
||||
ld a, BANK(wPokeAnimStruct)
|
||||
ld [rSVBK], a
|
||||
|
||||
push bc
|
||||
push de
|
||||
push hl
|
||||
ld hl, wPokeAnimSceneIndex
|
||||
ld bc, wPokeAnimStructEnd - wPokeAnimSceneIndex
|
||||
ld hl, wPokeAnimStruct
|
||||
ld bc, wPokeAnimStructEnd - wPokeAnimStruct
|
||||
xor a
|
||||
call ByteFill
|
||||
pop hl
|
||||
|
@ -61,7 +61,7 @@ LoadSGBLayout:
|
||||
|
||||
.SGB_BattleColors:
|
||||
ld hl, BlkPacket_Battle
|
||||
call PushSGBPals_
|
||||
call PushSGBPals
|
||||
|
||||
ld hl, PalPacket_9ce6
|
||||
ld de, wSGBPals
|
||||
@ -210,7 +210,7 @@ LoadSGBLayout:
|
||||
inc hl
|
||||
ld [hl], HIGH(palred 26 + palgreen 10 + palblue 6)
|
||||
ld a, [wCurPartySpecies]
|
||||
call GetMonPalettePointer_
|
||||
call GetMonPalettePointer
|
||||
ld a, [hli]
|
||||
ld [wSGBPals + 9], a
|
||||
ld a, [hli]
|
||||
@ -566,6 +566,6 @@ INCLUDE "data/maps/sgb_roof_pal_inds.asm"
|
||||
|
||||
_LoadSGBLayout_ReturnFromJumpTable:
|
||||
push de
|
||||
call PushSGBPals_
|
||||
call PushSGBPals
|
||||
pop hl
|
||||
jp PushSGBPals_
|
||||
jp PushSGBPals
|
||||
|
@ -1971,7 +1971,7 @@ LoadTradeScreenBorder:
|
||||
ret
|
||||
|
||||
SetTradeRoomBGPals:
|
||||
farcall LoadTradeRoomBGPals_ ; just a nested farcall; so wasteful
|
||||
farcall LoadTradeRoomBGPals ; just a nested farcall; so wasteful
|
||||
call SetPalettes
|
||||
ret
|
||||
|
||||
|
@ -133,8 +133,8 @@ LinkComms_LoadPleaseWaitTextboxBorderGFX:
|
||||
call Get2bpp
|
||||
ret
|
||||
|
||||
LoadTradeRoomBGPals_:
|
||||
farcall LoadTradeRoomBGPals
|
||||
LoadTradeRoomBGPals:
|
||||
farcall _LoadTradeRoomBGPals
|
||||
ret
|
||||
|
||||
Function16d6ae:
|
||||
|
@ -164,7 +164,7 @@ AddHallOfFameEntry:
|
||||
ret
|
||||
|
||||
SaveGameData:
|
||||
call SaveGameData_
|
||||
call _SaveGameData
|
||||
ret
|
||||
|
||||
AskOverwriteSaveFile:
|
||||
@ -228,7 +228,7 @@ CompareLoadedAndSavedPlayerID:
|
||||
_SavingDontTurnOffThePower:
|
||||
call SavingDontTurnOffThePower
|
||||
SavedTheGame:
|
||||
call SaveGameData_
|
||||
call _SaveGameData
|
||||
; wait 32 frames
|
||||
ld c, $20
|
||||
call DelayFrames
|
||||
@ -252,7 +252,7 @@ SavedTheGame:
|
||||
call DelayFrames
|
||||
ret
|
||||
|
||||
SaveGameData_:
|
||||
_SaveGameData:
|
||||
ld a, TRUE
|
||||
ld [wSaveFileExists], a
|
||||
farcall StageRTCTimeForSave
|
||||
|
@ -29,7 +29,7 @@ StartMenu::
|
||||
call .SetUpMenuItems
|
||||
ld a, [wBattleMenuCursorBuffer]
|
||||
ld [wMenuCursorBuffer], a
|
||||
call .DrawMenuAccount_
|
||||
call .DrawMenuAccount
|
||||
call DrawVariableLengthMenuBox
|
||||
call .DrawBugContestStatusBox
|
||||
call SafeUpdateSprites
|
||||
@ -49,7 +49,7 @@ StartMenu::
|
||||
.Select:
|
||||
call .GetInput
|
||||
jr c, .Exit
|
||||
call .DrawMenuAccount
|
||||
call ._DrawMenuAccount
|
||||
ld a, [wMenuCursorBuffer]
|
||||
ld [wBattleMenuCursorBuffer], a
|
||||
call PlayClickSFX
|
||||
@ -96,7 +96,7 @@ StartMenu::
|
||||
; Return carry on exit, and no-carry on selection.
|
||||
xor a
|
||||
ld [hBGMapMode], a
|
||||
call .DrawMenuAccount
|
||||
call ._DrawMenuAccount
|
||||
call SetUpMenu
|
||||
ld a, $ff
|
||||
ld [wMenuSelection], a
|
||||
@ -147,7 +147,7 @@ StartMenu::
|
||||
call ClearBGPalettes
|
||||
call Call_ExitMenu
|
||||
call ReloadTilesetAndPalettes
|
||||
call .DrawMenuAccount_
|
||||
call .DrawMenuAccount
|
||||
call DrawVariableLengthMenuBox
|
||||
call .DrawBugContestStatus
|
||||
call UpdateSprites
|
||||
@ -360,17 +360,17 @@ endr
|
||||
inc c
|
||||
ret
|
||||
|
||||
.DrawMenuAccount_:
|
||||
jp .DrawMenuAccount
|
||||
.DrawMenuAccount:
|
||||
jp ._DrawMenuAccount
|
||||
|
||||
.PrintMenuAccount:
|
||||
call .IsMenuAccountOn
|
||||
ret z
|
||||
call .DrawMenuAccount
|
||||
call ._DrawMenuAccount
|
||||
decoord 0, 14
|
||||
jp .MenuDesc
|
||||
|
||||
.DrawMenuAccount:
|
||||
._DrawMenuAccount:
|
||||
call .IsMenuAccountOn
|
||||
ret z
|
||||
hlcoord 0, 13
|
||||
|
@ -99,7 +99,7 @@ EvolveAfterBattle_MasterLoop:
|
||||
ld de, wTempMonAttack
|
||||
ld hl, wTempMonDefense
|
||||
ld c, 2
|
||||
call StringCmp
|
||||
call CompareBytes
|
||||
ld a, ATK_EQ_DEF
|
||||
jr z, .got_tyrogue_evo
|
||||
ld a, ATK_LT_DEF
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user