mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-12-10 13:11:36 +13:00
Add the ghost battle text.
hg-commit-id: 29da85a6ac0b
This commit is contained in:
parent
e0f94f9384
commit
ee3c63737d
56
pokered.asm
56
pokered.asm
|
|
@ -10130,7 +10130,7 @@ INCBIN "baserom.gbc",$3CA83,$3D6A9 - $3CA83
|
||||||
cp a,9
|
cp a,9
|
||||||
jr nz,.next6\@ ; 577A
|
jr nz,.next6\@ ; 577A
|
||||||
call $62FD
|
call $62FD
|
||||||
jp z,$580A
|
jp z,Function580A
|
||||||
xor a
|
xor a
|
||||||
ld [$CCED],a
|
ld [$CCED],a
|
||||||
jp $569A
|
jp $569A
|
||||||
|
|
@ -10152,7 +10152,7 @@ INCBIN "baserom.gbc",$3CA83,$3D6A9 - $3CA83
|
||||||
ld a,[$CFD3]
|
ld a,[$CFD3]
|
||||||
cp a,7
|
cp a,7
|
||||||
jr z,.next9\@ ; 57B9
|
jr z,.next9\@ ; 57B9
|
||||||
jp $580A
|
jp Function580A
|
||||||
.next8\@
|
.next8\@
|
||||||
call $60DF
|
call $60DF
|
||||||
call $5C5C
|
call $5C5C
|
||||||
|
|
@ -10190,18 +10190,52 @@ INCBIN "baserom.gbc",$3CA83,$3D6A9 - $3CA83
|
||||||
.next10\@
|
.next10\@
|
||||||
ld a,[$CFD3]
|
ld a,[$CFD3]
|
||||||
and a
|
and a
|
||||||
jp z,$580A
|
jp z,Function580A
|
||||||
ld hl,EffectsArray5
|
ld hl,EffectsArray5
|
||||||
ld de,1
|
ld de,1
|
||||||
call IsInArray
|
call IsInArray
|
||||||
call nc,$7132
|
call nc,$7132
|
||||||
jp $580A
|
jp Function580A
|
||||||
|
|
||||||
MultiHitText:
|
MultiHitText:
|
||||||
TX_FAR _MultiHitText
|
TX_FAR _MultiHitText
|
||||||
db "@"
|
db "@"
|
||||||
|
|
||||||
INCBIN "baserom.gbc",$3D80A,$3E474 - $3D80A
|
Function580A: ; 580A
|
||||||
|
xor a
|
||||||
|
ld [$CD6A],a
|
||||||
|
ld b,1
|
||||||
|
ret
|
||||||
|
|
||||||
|
Function5811: ; 5811
|
||||||
|
; print the ghost battle messages
|
||||||
|
call $583A
|
||||||
|
ret nz
|
||||||
|
ld a,[$FFF3]
|
||||||
|
and a
|
||||||
|
jr nz,.next\@
|
||||||
|
ld a,[$D018]
|
||||||
|
and a,$27
|
||||||
|
ret nz
|
||||||
|
ld hl,ScaredText
|
||||||
|
call PrintText
|
||||||
|
xor a
|
||||||
|
ret
|
||||||
|
.next\@
|
||||||
|
ld hl,GetOutText
|
||||||
|
call PrintText
|
||||||
|
xor a
|
||||||
|
ret
|
||||||
|
|
||||||
|
ScaredText:
|
||||||
|
TX_FAR _ScaredText
|
||||||
|
db "@"
|
||||||
|
|
||||||
|
GetOutText:
|
||||||
|
TX_FAR _GetOutText
|
||||||
|
db "@"
|
||||||
|
|
||||||
|
INCBIN "baserom.gbc",$3D83A,$3E474 - $3D83A
|
||||||
|
|
||||||
TypeEffects: ; 6474
|
TypeEffects: ; 6474
|
||||||
; format: attacking type, defending type, damage multiplier
|
; format: attacking type, defending type, damage multiplier
|
||||||
|
|
@ -13936,7 +13970,17 @@ _MultiHitText:
|
||||||
TX_NUM W_NUMHITS,1,1
|
TX_NUM W_NUMHITS,1,1
|
||||||
db 0," times!",$58
|
db 0," times!",$58
|
||||||
|
|
||||||
INCBIN "baserom.gbc",$898C7,$8A425 - $898C7
|
_ScaredText:
|
||||||
|
db 1
|
||||||
|
dw $D009
|
||||||
|
db 0," is too",$4F
|
||||||
|
db "scared to move!",$58
|
||||||
|
|
||||||
|
_GetOutText:
|
||||||
|
db 0,"GHOST: Get out...",$4F
|
||||||
|
db "Get out...",$58
|
||||||
|
|
||||||
|
INCBIN "baserom.gbc",$89901,$8A425 - $89901
|
||||||
INCLUDE "text/oakspeech.tx"
|
INCLUDE "text/oakspeech.tx"
|
||||||
|
|
||||||
INCBIN "baserom.gbc",$8A605,$6696 - $6605
|
INCBIN "baserom.gbc",$8A605,$6696 - $6605
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue