mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
RTC -> UpdateTimeAndPals
Rename clear misnomer. Most of the related functions in that file aren't really aptly named but I don't know good names right now.
This commit is contained in:
parent
317188b35f
commit
c22e268083
@ -92,7 +92,7 @@ HideHeadbuttTree:
|
|||||||
ld h, [hl]
|
ld h, [hl]
|
||||||
ld l, a
|
ld l, a
|
||||||
|
|
||||||
ld a, $5
|
ld a, $05 ; grass block
|
||||||
ld [hli], a
|
ld [hli], a
|
||||||
ld [hld], a
|
ld [hld], a
|
||||||
ld bc, SCREEN_WIDTH
|
ld bc, SCREEN_WIDTH
|
||||||
|
@ -240,7 +240,7 @@ LinkTradeMenu:
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
.loop2
|
.loop2
|
||||||
call RTC
|
call UpdateTimeAndPals
|
||||||
call .TryAnims
|
call .TryAnims
|
||||||
ret c
|
ret c
|
||||||
ld a, [w2DMenuFlags1]
|
ld a, [w2DMenuFlags1]
|
||||||
|
@ -344,7 +344,7 @@ MenuJoypadLoop:
|
|||||||
|
|
||||||
Do2DMenuRTCJoypad:
|
Do2DMenuRTCJoypad:
|
||||||
.loopRTC
|
.loopRTC
|
||||||
call RTC
|
call UpdateTimeAndPals
|
||||||
call Menu_WasButtonPressed
|
call Menu_WasButtonPressed
|
||||||
ret c
|
ret c
|
||||||
ld a, [w2DMenuFlags1]
|
ld a, [w2DMenuFlags1]
|
||||||
|
@ -295,7 +295,7 @@ JoyWaitAorB::
|
|||||||
ldh a, [hJoyPressed]
|
ldh a, [hJoyPressed]
|
||||||
and A_BUTTON | B_BUTTON
|
and A_BUTTON | B_BUTTON
|
||||||
ret nz
|
ret nz
|
||||||
call RTC
|
call UpdateTimeAndPals
|
||||||
jr .loop
|
jr .loop
|
||||||
|
|
||||||
WaitButton::
|
WaitButton::
|
||||||
@ -413,7 +413,7 @@ PromptButton::
|
|||||||
ldh a, [hJoyPressed]
|
ldh a, [hJoyPressed]
|
||||||
and A_BUTTON | B_BUTTON
|
and A_BUTTON | B_BUTTON
|
||||||
jr nz, .received_input
|
jr nz, .received_input
|
||||||
call RTC
|
call UpdateTimeAndPals
|
||||||
ld a, $1
|
ld a, $1
|
||||||
ldh [hBGMapMode], a
|
ldh [hBGMapMode], a
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
|
@ -125,7 +125,7 @@ GetPokemonName::
|
|||||||
ld e, a
|
ld e, a
|
||||||
ld h, 0
|
ld h, 0
|
||||||
ld l, a
|
ld l, a
|
||||||
add hl, hl ; hl = hl * 4
|
add hl, hl ; hl = hl * 2
|
||||||
add hl, hl ; hl = hl * 4
|
add hl, hl ; hl = hl * 4
|
||||||
add hl, de ; hl = (hl*4) + de
|
add hl, de ; hl = (hl*4) + de
|
||||||
add hl, hl ; hl = (5*hl) + (5*hl)
|
add hl, hl ; hl = (5*hl) + (5*hl)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
RTC::
|
UpdateTimeAndPals::
|
||||||
; update time and time-sensitive palettes
|
; update time and time-sensitive palettes
|
||||||
|
|
||||||
; rtc enabled?
|
; rtc enabled?
|
||||||
|
Loading…
Reference in New Issue
Block a user