pokegold-spaceworld/engine/debug/field/teleport.inc
Narishma-gb d94d75f8fc
Some checks failed
CI / build (push) Has been cancelled
Charmap and text strings update (#124)
* Add Katakana `リ`, `ヘ`, `ベ`, `ペ` in charmap and text strings

* Format text strings, using macro where possible

* Remove unused charmap entries, name `Function3036`

* Charmap update and reorder, `TextAsmEnd`
2025-11-25 14:27:50 -05:00

37 lines
599 B
PHP

FieldDebug_Teleport:
call .DoTeleport
ld a, FIELDDEBUG_RETURN_REOPEN
ret
.DoTeleport:
ld a, [wMapGroup]
ld d, a
ld a, [wMapId]
ld e, a
callfar IsSpawnPoint
jr nc, .not_spawn_point
ld a, [wMapGroup]
ld [wLastSpawnMapGroup], a
ld a, [wMapId]
ld [wLastSpawnMapNumber], a
ld hl, .MapRegisteredText
call MenuTextBoxBackup
ret
.not_spawn_point
ld hl, .CannotRegisterMapText
call MenuTextBoxBackup
ret
.MapRegisteredText:
text "このばしょを とうろくしました"
para ""
done
.CannotRegisterMapText:
text "ここは とうろくできません!"
para ""
done