mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-11-15 17:46:40 +13:00
small changes
This commit is contained in:
parent
c169073eed
commit
d0526c0362
|
|
@ -145,7 +145,7 @@ Evolution_PartyMonLoop: ; loop over party mons
|
||||||
call GetName
|
call GetName
|
||||||
push hl
|
push hl
|
||||||
ld hl, IntoText
|
ld hl, IntoText
|
||||||
call Func_3c59
|
call PrintText_NoCreatingTextBox
|
||||||
ld a, (SFX_02_3b - SFX_Headers_02) / 3
|
ld a, (SFX_02_3b - SFX_Headers_02) / 3
|
||||||
call PlaySoundWaitForCurrent
|
call PlaySoundWaitForCurrent
|
||||||
call WaitForSoundToFinish
|
call WaitForSoundToFinish
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,16 @@
|
||||||
ShakeElevator: ; 7bf15 (1e:7f15)
|
ShakeElevator: ; 7bf15 (1e:7f15)
|
||||||
ld de, $ffe0
|
ld de, -$20
|
||||||
call Func_7bf64
|
call ShakeElevatorRedrawRow
|
||||||
ld de, $240
|
ld de, SCREEN_HEIGHT * $20
|
||||||
call Func_7bf64
|
call ShakeElevatorRedrawRow
|
||||||
call Delay3
|
call Delay3
|
||||||
ld a, $ff
|
ld a, $ff
|
||||||
call PlaySound
|
call PlaySound
|
||||||
ld a, [hSCY]
|
ld a, [hSCY]
|
||||||
ld d, a
|
ld d, a
|
||||||
ld e, $1
|
ld e, $1
|
||||||
; number of times to play collision sfx
|
|
||||||
ld b, 100
|
ld b, 100
|
||||||
.asm_7bf30
|
.shakeLoop ; scroll the BG up and down and play a sound effect
|
||||||
ld a, e
|
ld a, e
|
||||||
xor $fe
|
xor $fe
|
||||||
ld e, a
|
ld e, a
|
||||||
|
|
@ -25,7 +24,7 @@ ShakeElevator: ; 7bf15 (1e:7f15)
|
||||||
ld c, 2
|
ld c, 2
|
||||||
call DelayFrames
|
call DelayFrames
|
||||||
dec b
|
dec b
|
||||||
jr nz, .asm_7bf30
|
jr nz, .shakeLoop
|
||||||
ld a, d
|
ld a, d
|
||||||
ld [hSCY], a
|
ld [hSCY], a
|
||||||
ld a, $ff
|
ld a, $ff
|
||||||
|
|
@ -33,14 +32,17 @@ ShakeElevator: ; 7bf15 (1e:7f15)
|
||||||
ld c, BANK(SFX_02_5f)
|
ld c, BANK(SFX_02_5f)
|
||||||
ld a, (SFX_02_5f - SFX_Headers_02) / 3
|
ld a, (SFX_02_5f - SFX_Headers_02) / 3
|
||||||
call PlayMusic
|
call PlayMusic
|
||||||
.asm_7bf57
|
.musicLoop
|
||||||
ld a, [wc02a]
|
ld a, [wc02a]
|
||||||
cp $b9
|
cp $b9
|
||||||
jr z, .asm_7bf57
|
jr z, .musicLoop
|
||||||
call UpdateSprites
|
call UpdateSprites
|
||||||
jp PlayDefaultMusic
|
jp PlayDefaultMusic
|
||||||
|
|
||||||
Func_7bf64: ; 7bf64 (1e:7f64)
|
ShakeElevatorRedrawRow: ; 7bf64 (1e:7f64)
|
||||||
|
; This function is used to redraw certain portions of the screen, but it does
|
||||||
|
; not appear to ever result in any visible effect, so this function seems to
|
||||||
|
; be pointless.
|
||||||
ld hl, wMapViewVRAMPointer + 1
|
ld hl, wMapViewVRAMPointer + 1
|
||||||
ld a, [hld]
|
ld a, [hld]
|
||||||
push af
|
push af
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ AnimateHealingMachine: ; 70433 (1c:4433)
|
||||||
ld [rOBP1], a
|
ld [rOBP1], a
|
||||||
ld hl, wOAMBuffer + $84
|
ld hl, wOAMBuffer + $84
|
||||||
ld de, PokeCenterOAMData
|
ld de, PokeCenterOAMData
|
||||||
call Func_70503
|
call CopyHealingMachineOAM
|
||||||
ld a, $4
|
ld a, $4
|
||||||
ld [wMusicHeaderPointer], a
|
ld [wMusicHeaderPointer], a
|
||||||
ld a, $ff
|
ld a, $ff
|
||||||
|
|
@ -27,7 +27,7 @@ AnimateHealingMachine: ; 70433 (1c:4433)
|
||||||
ld a, [wPartyCount]
|
ld a, [wPartyCount]
|
||||||
ld b, a
|
ld b, a
|
||||||
.asm_7046e
|
.asm_7046e
|
||||||
call Func_70503
|
call CopyHealingMachineOAM
|
||||||
ld a, (SFX_02_4a - SFX_Headers_02) / 3
|
ld a, (SFX_02_4a - SFX_Headers_02) / 3
|
||||||
call PlaySound
|
call PlaySound
|
||||||
ld c, 30
|
ld c, 30
|
||||||
|
|
@ -87,7 +87,8 @@ FlashSprite8Times: ; 704f3 (1c:44f3)
|
||||||
jr nz, .loop
|
jr nz, .loop
|
||||||
ret
|
ret
|
||||||
|
|
||||||
Func_70503: ; 70503 (1c:4503)
|
CopyHealingMachineOAM: ; 70503 (1c:4503)
|
||||||
|
; copy one OAM entry and advance the pointers
|
||||||
ld a, [de]
|
ld a, [de]
|
||||||
inc de
|
inc de
|
||||||
ld [hli], a
|
ld [hli], a
|
||||||
|
|
|
||||||
4
home.asm
4
home.asm
|
|
@ -1140,7 +1140,7 @@ DisplayTextID:: ; 2920 (0:2920)
|
||||||
callab CableClubNPC
|
callab CableClubNPC
|
||||||
jr AfterDisplayingTextID
|
jr AfterDisplayingTextID
|
||||||
.notSpecialCase
|
.notSpecialCase
|
||||||
call Func_3c59 ; display the text
|
call PrintText_NoCreatingTextBox ; display the text
|
||||||
ld a,[wDoNotWaitForButtonPressAfterDisplayingText]
|
ld a,[wDoNotWaitForButtonPressAfterDisplayingText]
|
||||||
and a
|
and a
|
||||||
jr nz,HoldTextDisplayOpen
|
jr nz,HoldTextDisplayOpen
|
||||||
|
|
@ -4206,7 +4206,7 @@ PrintText:: ; 3c49 (0:3c49)
|
||||||
call UpdateSprites
|
call UpdateSprites
|
||||||
call Delay3
|
call Delay3
|
||||||
pop hl
|
pop hl
|
||||||
Func_3c59:: ; 3c59 (0:3c59)
|
PrintText_NoCreatingTextBox:: ; 3c59 (0:3c59)
|
||||||
coord bc, 1, 14
|
coord bc, 1, 14
|
||||||
jp TextCommandProcessor
|
jp TextCommandProcessor
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1705,7 +1705,7 @@ ScheduleNorthRowRedraw:: ; 0e91 (0:0e91)
|
||||||
|
|
||||||
CopyToScreenEdgeTiles:: ; 0ea6 (0:0ea6)
|
CopyToScreenEdgeTiles:: ; 0ea6 (0:0ea6)
|
||||||
ld de,wScreenEdgeTiles
|
ld de,wScreenEdgeTiles
|
||||||
ld c,2 * 20
|
ld c,2 * SCREEN_WIDTH
|
||||||
.loop
|
.loop
|
||||||
ld a,[hli]
|
ld a,[hli]
|
||||||
ld [de],a
|
ld [de],a
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ RedrawExposedScreenEdge:: ; 1d01 (0:1d01)
|
||||||
ld e,a
|
ld e,a
|
||||||
ld a,[H_SCREENEDGEREDRAWADDR + 1]
|
ld a,[H_SCREENEDGEREDRAWADDR + 1]
|
||||||
ld d,a
|
ld d,a
|
||||||
ld c,18 ; screen height
|
ld c,SCREEN_HEIGHT
|
||||||
.loop1
|
.loop1
|
||||||
ld a,[hli]
|
ld a,[hli]
|
||||||
ld [de],a
|
ld [de],a
|
||||||
|
|
|
||||||
|
|
@ -155,8 +155,8 @@ SafariZoneEntranceAutoWalk:
|
||||||
ld bc,3
|
ld bc,3
|
||||||
call FillMemory
|
call FillMemory
|
||||||
ld hl,.OhAllRightText
|
ld hl,.OhAllRightText
|
||||||
call Func_3c59
|
call PrintText_NoCreatingTextBox
|
||||||
ld a,$13
|
ld a,MONEY_BOX
|
||||||
ld a,[$d124]
|
ld a,[$d124]
|
||||||
call DisplayTextBoxID
|
call DisplayTextBoxID
|
||||||
ld hl,.CantGive30BallsText
|
ld hl,.CantGive30BallsText
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue