pokegold-spaceworld/engine/debug/field/mon_following.inc
DrippingYellow baeb0acd54
Decompile and label all battle animations (#116)
* Began decompiling Bank $33

* Decompiled battle anim functions

* Decompiled battle anim OAM and AnimObjGFX, split up and labelled battle animation graphics, other minor changes

* Deleted useless files I forgot to delete

* Decompiled framesets

* Decompiled battle anim objects

* Partially started decompiling animations

* Finished decompiling and labelling bank 32 in its entirety

* Replaced gfx.c with latest version

* Labelled all sound effects, properly constantified

* Fixed up bg_effects.asm, other minor LYOverrides-related changes
2025-06-03 23:39:19 -04:00

61 lines
860 B
PHP

FieldDebug_PokemonFollowing:
call .DoPokemonFollowing
jr c, .exit
ld a, FIELDDEBUG_RETURN_REOPEN
ret
.exit
ld a, FIELDDEBUG_RETURN_CLEANUP
ret
.DoPokemonFollowing:
ld hl, .MenuHeader
call LoadMenuHeader
call VerticalMenu
jr c, .done
ld a, [wMenuCursorY]
cp 1
jr nz, .remove
ld a, [wPlayerStructEnd]
and a
jr nz, .ShowUnableText
callfar SpawnFollower
ld de, SFX_BALL_POOF
call PlaySFX
call CloseWindow
call UpdateSprites
scf
ret
.remove
callfar DeleteFollower
ld de, SFX_FAINT
call PlaySFX
jr .done
.ShowUnableText:
ld hl, .UnableText
call FieldDebug_ShowTextboxAndExit
.done
call CloseWindow
call UpdateSprites
xor a
ret
.MenuHeader:
db MENU_BACKUP_TILES
menu_coords 3, 3, 9, 9
dw .MenuData
db 1
.MenuData:
db STATICMENU_CURSOR
db 2
db "つける@"
db "はずす@"
.UnableText:
text "だめです!!"
done